.file-open-guide {
  display: none;
}

html.is-file-protocol {
  min-width: 280px;
  min-height: 100%;
  color: #17221e;
  background:
    radial-gradient(circle at 12% 12%, rgb(209 178 88 / 22%), transparent 32rem),
    radial-gradient(circle at 88% 82%, rgb(18 111 94 / 18%), transparent 36rem),
    #f1eee4;
}

html.is-file-protocol body {
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  background:
    linear-gradient(90deg, rgb(23 34 30 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(23 34 30 / 4%) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html.is-file-protocol body > * {
  display: none !important;
}

html.is-file-protocol body > .file-open-guide {
  display: grid !important;
}

.file-open-guide {
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  box-sizing: border-box;
}

.file-open-guide__card {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 64px);
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgb(23 34 30 / 14%);
  border-radius: 32px;
  background: rgb(252 250 244 / 94%);
  box-shadow:
    0 36px 100px rgb(45 52 42 / 15%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  backdrop-filter: blur(18px);
}

.file-open-guide__card::after {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 280px;
  height: 280px;
  border: 58px solid rgb(201 154 55 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.file-open-guide__eyebrow {
  margin: 0 0 30px;
  color: #6d756d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.file-open-guide__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #f8f3e8;
  background: #17221e;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.file-open-guide h1 {
  max-width: 530px;
  margin: 26px 0 18px;
  font-family: "Songti SC", "STSong", "Iowan Old Style", Georgia, serif;
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.file-open-guide__lead {
  max-width: 560px;
  margin: 0;
  color: #59635d;
  font-size: clamp(14px, 2.4vw, 17px);
  line-height: 1.75;
}

.file-open-guide code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  color: #1c4d41;
  background: #e5efe9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.file-open-guide__steps {
  display: grid;
  gap: 10px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.file-open-guide__steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgb(23 34 30 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 52%);
  font-size: 14px;
  line-height: 1.5;
}

.file-open-guide__steps span {
  flex: 0 0 auto;
  color: #9a7520;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.file-open-guide__address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #ecf5ef;
  background: #17221e;
  font-size: 12px;
}

.file-open-guide__address span {
  color: #aeb9b1;
  letter-spacing: 0.08em;
}

.file-open-guide__address code {
  color: #f3cf78;
  background: transparent;
  font-size: 13px;
}

.file-open-guide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 999px;
  color: #fffdf7;
  background: #116c5b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.file-open-guide__button:hover {
  background: #0b594b;
  transform: translateY(-1px);
}

.file-open-guide__button:focus-visible {
  outline: 3px solid rgb(17 108 91 / 28%);
  outline-offset: 4px;
}

.file-open-guide__hint {
  margin: 18px 0 0;
  color: #7b827c;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .file-open-guide {
    padding: 14px;
  }

  .file-open-guide__card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .file-open-guide__eyebrow {
    margin-bottom: 22px;
  }

  .file-open-guide__address {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-open-guide__button {
    width: 100%;
  }
}
