/* The About overlay shared by Worlds 20 to 22. Each world sets --about-ink and --about-delay. */
.about { position: fixed; inset: 0; z-index: 8; overflow: auto; opacity: 0; pointer-events: none; transition: opacity 700ms ease 0s; font-family: 'JetBrains Mono', monospace; color: var(--about-ink, #141414); }
body.about-on .about { opacity: 1; pointer-events: auto; transition-delay: var(--about-delay, 0s); }
/* Leaving: the page goes first, at once, before the world behind it moves. */
.about.about-out { opacity: 0 !important; pointer-events: none !important; transition-delay: 0s !important; }
.about-inner { min-height: 100%; display: grid; place-items: center; padding: 10vh 24px 14vh; }
.about h2 { font: 700 clamp(26px, 4.2vmin, 46px)/1.05 'JetBrains Mono', monospace; margin: 0 0 0.6em; letter-spacing: 0.02em; }
.about p { font-size: clamp(14px, 1.7vmin, 17px); line-height: 1.6; max-width: 32em; margin: 0 0 1em; }
.about a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
.about-back { position: fixed; left: clamp(10px, 2.5vw, 24px); top: clamp(10px, 2.5vh, 24px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: inherit; z-index: 9; }
.about-back svg { width: 28px; height: 28px; }
.about-back:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Instagram, top right: the back arrow's mirror, the same 44 px target at the same distance from the edges. */
.about-ig { position: fixed; right: clamp(10px, 2.5vw, 24px); top: clamp(10px, 2.5vh, 24px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: inherit; z-index: 9; }
.about-ig svg { width: 26px; height: 26px; }
.about-ig:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* The door: a round button over the gold, named on hover. */
.enter { position: fixed; left: 0; top: 0; border-radius: 50%; background: none; border: 0; padding: 0; cursor: pointer; z-index: 7; }
.enter span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple, #6032bb); background: var(--paper, #f4f1ea); padding: 0.6em 0.9em; opacity: 0; transition: opacity 200ms; white-space: nowrap; pointer-events: none; }
.enter:hover span, .enter:focus-visible span { opacity: 1; }
.enter:focus-visible { outline: 2px solid var(--purple, #6032bb); outline-offset: 6px; }
body.about-on .enter { opacity: 0; pointer-events: none; }
/* The room steps back while the page is open. A world that keeps the Latin ring says so with ring-stays. */
.wedge, .name, #ring, .enter { transition: opacity 600ms; }
body.about-on :is(.wedge, .name) { opacity: 0; pointer-events: none; }
body.about-on #ring { opacity: 0; }
body.about-on.ring-stays #ring { opacity: 1; }
/* A window taller than it is wide: the ring passes close above and below the words, so the words start a quarter of
   the way down and scroll in a box of their own that fades out before the ring at the foot (and, scrolled, at the
   top), which also says there is more below. The back arrow is outside that box, so it never fades. */
@media (orientation: portrait) {
  .about { overflow: hidden; }
  .about-inner {
    position: absolute; inset: 0; min-height: 0; overflow: auto; align-items: start; padding: 25vh 24px 24vh;
    -webkit-mask-image: linear-gradient(transparent 11%, #000 21%, #000 76%, transparent 88%);
    mask-image: linear-gradient(transparent 11%, #000 21%, #000 76%, transparent 88%);
  }
}
