/* LOCKED: passed review round 6(2026-11-12). Read LOCKS.md before editing. */
/* Explore Beyond · eb.css — studio tokens shared with mechssiah.com (void, ink-gold, bone, machine). */
:root {
  --void: #070707; --ink-gold: #C8A85A; --deep-gold: #8A6F35; --bone: #E8E2D5; --machine: #9AA0A6;
  --line: rgba(200, 168, 90, .22); --panel: #0b0b0b; --accent: var(--ink-gold);
  --display: 'Cinzel', Georgia, serif; --serif: 'EB Garamond', Garamond, Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* overscroll-behavior-x: a finger dragged sideways through the dust must not trigger the browser's swipe-back. */
html { background: var(--void); -webkit-text-size-adjust: 100%; overscroll-behavior-x: none; }
body { margin: 0; background: var(--void); color: var(--bone); font-family: var(--serif);
  font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--deep-gold); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--void); color: var(--ink-gold);
  font-family: var(--mono); font-size: .8rem; padding: 8px 12px; border: 1px solid var(--line); }
.skip:focus { top: 12px; }

#space { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; background: #030304; }
.no-space #space { display: none; }
#travel { position: relative; height: 0; pointer-events: none; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 20px 16px; pointer-events: none; }
.top a { pointer-events: auto; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 500; font-size: .82rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-gold); opacity: .62; transition: opacity .3s; }
.wordmark:hover { opacity: 1; }
.top-link { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--machine); }
.top-link:hover { color: var(--bone); }
.top-right { display: flex; align-items: center; gap: 20px; }
.top a, .sound { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 430px) { .wordmark { font-size: .72rem; letter-spacing: .24em; } .top-right { gap: 12px; } .top-link { letter-spacing: .08em; } }
.sound { pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; }
.sound[aria-pressed="true"] { color: var(--ink-gold); }

/* the travel rail */
.track { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); height: 42vh; z-index: 5; }
.track-rail { position: relative; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(200,168,90,.3) 12%, rgba(200,168,90,.3) 88%, transparent); }
.track-marker { position: absolute; left: -6px; width: 13px; height: 1px; top: 0; background: var(--ink-gold); box-shadow: 0 0 6px var(--ink-gold); transition: top .12s linear; }
.tick { position: absolute; left: -10px; width: 21px; height: 21px; margin-top: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
.tick::before { content: ''; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; transform: rotate(45deg);
  border: 1px solid var(--accent); background: transparent; transition: background .3s; }
.tick.reached::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.tick-label { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: 0; transition: opacity .2s; pointer-events: none; }
.tick:hover .tick-label, .tick:focus-visible .tick-label { opacity: .9; }
/* (the rail's names show on hover or keyboard focus only: the worlds now sit on the right, under where the names would be) */

.telemetry { position: fixed; left: 20px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 5; margin: 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--machine); line-height: 1.6; }
.telemetry span { display: block; }
.tele-name { color: var(--bone); opacity: .8; }

.hint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; margin: 0; text-align: center;
  width: max-content; max-width: 88vw; color: var(--bone); text-shadow: 0 1px 10px #000, 0 0 3px #000; transition: opacity .6s; }
.hint p { margin: 0; }
.hint-what { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.4; opacity: .92; }
.hint-how { margin-top: 8px !important; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.for-touch { display: none; }
@media (pointer: coarse) { .for-mouse { display: none; } .for-touch { display: inline; } }
.hint::after { content: ''; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: linear-gradient(var(--ink-gold), transparent);
  animation: drop 2.2s ease-in-out infinite; }
.hint.gone { opacity: 0; }
/* On a phone the hint is one short block that sits above the rock counter and clear of the lowest world's label. */
@media (max-width: 520px) { .hint { bottom: 44px; } .hint::after { display: none; } .hint-what { font-size: 1rem; } .hint-how { margin-top: 5px !important; letter-spacing: .14em; } }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.track, .telemetry { transition: opacity .4s, visibility 0s 0s; }
.at-index .track, .at-index .telemetry, .at-index .hint, .at-index .arrival.on {
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }

.tick.focus::before { box-shadow: 0 0 9px var(--accent); border-width: 2px; }

/* the rock counter */
.score { position: fixed; right: 20px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 5; margin: 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--machine); }
.score b { font-weight: 500; color: var(--ink-gold); margin-left: .5em; }
.at-index .score { opacity: 0; visibility: hidden; }

/* the black hole: opens where a world was struck and draws the screen in before that world's site loads */
#space { cursor: crosshair; }
.hole { position: fixed; z-index: 30; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #000;
  box-shadow: 0 0 0 2px rgba(255,236,200,.9), 0 0 26px 10px rgba(200,168,90,.55), 0 0 90px 40px rgba(138,99,201,.35);
  transform: scale(0); animation: hole 1.45s cubic-bezier(.55, 0, .85, .35) forwards; pointer-events: none; }
@keyframes hole { 0% { transform: scale(0); } 22% { transform: scale(1.5); } 62% { transform: scale(3.4); } 100% { transform: scale(140); } }
.swallowed #space { animation: swallow 1.3s cubic-bezier(.6, 0, .9, .4) .12s forwards; }
@keyframes swallow { to { transform: scale(.02) rotate(300deg); filter: brightness(.35); } }
.swallowed .top, .swallowed .track, .swallowed .telemetry, .swallowed .hint, .swallowed .arrival, .swallowed .score, .swallowed .index { opacity: 0; transition: opacity .35s; }

/* the arrival card */
.arrival { position: fixed; z-index: 5; left: clamp(20px, 6vw, 96px); bottom: clamp(70px, 17vh, 190px); width: min(440px, 38vw);
  padding: 22px 24px; background: radial-gradient(closest-side, rgba(7,7,7,.78), rgba(7,7,7,0)); text-shadow: 0 1px 12px #000;
  visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s, visibility 0s .5s; }
.arrival.on { visibility: visible; opacity: 1; transform: none; transition: opacity .6s .15s, transform .6s .15s; }
.arrival p { margin: 0; }
.arrival-kind { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.arrival .arrival-name { margin: .2em 0 .25em; font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.15rem);
  letter-spacing: .06em; line-height: 1.15; color: var(--bone); text-wrap: balance; }
.arrival-line { font-style: italic; font-size: 1.12rem; color: rgba(232,226,213,.86); }
.arrival-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px !important; }
.arrival-enter { font-family: var(--display); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--accent); border: 1px solid var(--accent); padding: .7em 1.4em; transition: background .25s, color .25s; text-shadow: none; }
.arrival-enter:hover { background: var(--accent); color: var(--void); }
.arrival-host, .arrival-reached { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--machine); }
.arrival-reached { color: var(--accent); }

/* the plain index */
.index { position: relative; z-index: 2; min-height: 100vh;
  background: linear-gradient(to bottom, rgba(7,7,7,0) 0, rgba(7,7,7,.88) 22vh, var(--void) 40vh); padding: 30vh 20px 0; }
.index:focus { outline: none; }
.index-inner { max-width: 1080px; margin: 0 auto; }
.index-lead { margin: -.9em 0 2.6em; text-align: center; font-style: italic; color: rgba(232,226,213,.82); }
.index-title { margin: 0 0 1.4em; text-align: center; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-gold); }
.index-section { margin-bottom: 4em; }
.index-h { margin: 0 0 1.1em; font-family: var(--mono); font-weight: 400; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--machine); border-bottom: 1px solid var(--line); padding-bottom: .7em; }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.work-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  padding: 20px 20px 22px; transition: border-color .3s; }
.work-link:hover { border-color: var(--accent); }
.work-emblem { display: block; padding: 6px 12% 14px; }
.work-emblem img { display: block; width: 100%; height: auto; max-width: 220px; margin: 0 auto; aspect-ratio: 10 / 11; object-fit: contain;
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 14px rgba(200,168,90,.25)); transition: filter .3s; }
.work-link:hover .work-emblem img { filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 22px var(--accent)); }
.work-text { display: flex; flex-direction: column; gap: 4px; }
.work-kind, .comet-kind { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.work-name, .comet-name { font-family: var(--display); font-weight: 600; font-size: 1.22rem; letter-spacing: .06em; color: var(--bone); line-height: 1.25; }
.work-line, .comet-line { font-style: italic; color: rgba(232,226,213,.82); }
.work-host, .comet-host { margin-top: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--machine); overflow-wrap: anywhere; }
.reached { margin-left: .8em; color: var(--accent); }
.reached::before { content: '◆ '; font-size: .8em; }
.passing { list-style: none; margin: 0; padding: 0; }
.comet { border-bottom: 1px solid var(--line); }
.comet-link { display: flex; flex-direction: column; gap: 3px; padding: 16px 4px; text-decoration: none; }
.comet-link:hover .comet-name { color: var(--accent); }
.imprint { padding: 40px 0 max(40px, env(safe-area-inset-bottom)); text-align: center; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .22em; color: var(--deep-gold); }

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .arrival { left: 16px; right: 16px; width: auto; bottom: max(58px, calc(env(safe-area-inset-bottom) + 50px)); text-align: center;
    background: radial-gradient(closest-side, rgba(7,7,7,.82), rgba(7,7,7,0)); }
  .arrival-actions { justify-content: center; }
  .track { right: 8px; height: 34vh; }
  .tick-label { display: none; }
  .telemetry { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


