:root {
  color-scheme: dark;
  background: #000;
  color: #ece9e6;
  font-family: Georgia, "Times New Roman", serif;
  --gold: #d3b169;
  --line: #393124;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.entry-screen {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1rem, env(safe-area-inset-top))
    max(0.5rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
  border: 0;
  overflow: clip;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

.entry-screen:focus-visible {
  outline: 3px solid #f6cc82;
  outline-offset: -5px;
}

.entry-stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: min(100%, 100vh, 55rem);
  width: min(100%, 100svh, 55rem);
  aspect-ratio: 1.16;
}

.entry-art {
  position: absolute;
  z-index: -1;
  inset: 0 auto auto -1%;
  width: 108%;
  height: auto;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(#000 65%, transparent 95%);
}

.entry-question {
  position: absolute;
  inset: 35% 0 auto;
  display: block;
  font-size: 10.3cqw;
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.entry-question span { display: block; }
.entry-question strong { color: #fff; font-weight: inherit; }
.entry-intro { color: #e7b9a8; }
.entry-age { margin-top: 0.61em; color: #be9f9b; }
.entry-ending { margin-top: 0.16em; font-size: 0.55em; letter-spacing: -0.015em; }

.entry-choices {
  position: absolute;
  inset: auto 0 3%;
  display: flex;
  justify-content: center;
  gap: 3cqw;
}

.entry-choice {
  display: grid;
  place-items: center;
  min-width: 28cqw;
  min-height: 44px;
  padding: 0.49em 0.72em;
  border: 2px solid #e7ae58;
  border-radius: 0.93em;
  background: linear-gradient(#b93637, #740e11 49%, #510407 52%, #7a0c0d);
  box-shadow: inset 0 2px 4px #ffd5b280, inset 0 -2px 5px #21000080;
  color: #fff;
  font-size: clamp(1rem, 6.6cqw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 4px #420000;
}

.entry-no {
  border-color: #936159;
  background: linear-gradient(#fa3427, #c70404 49%, #a20000 52%, #d90b05);
}

.guide {
  width: min(100% - 2.5rem, 52rem);
  margin-inline: auto;
  padding: clamp(4rem, 11vw, 10rem) 0 2rem;
}
.guide:focus { outline: none; }

.guide-intro {
  border-bottom: 1px solid var(--gold);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.guide h1, .guide h2 { color: var(--gold); }
.guide h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.3rem, 4.9vw, 3.65rem);
  line-height: 1.02;
}
.guide-intro p {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
}
.guide-section, .guide-footer {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.guide h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}
.guide h3 { margin: 1.5rem 0 0.4rem; font-size: 1.25rem; }
.guide p { line-height: 1.62; }
.guide-section p, .guide-footer p { margin: 0; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.guide-cards > div { border: 1px solid var(--line); padding: 1rem; }
.guide-cards h3 { margin-top: 0; color: var(--gold); }
.guide-footer { border-bottom: 0; }
.guide-footer > p:last-child { margin-top: 1.5rem; color: #b8ad9f; }

@media (max-width: 560px) {
  .guide-cards { grid-template-columns: 1fr; }
}
