/* Secrets (board #120, secrets.js): quiet, text-only until Codex's art arrives (assets/art/new/secrets/v1/).
   Joe's glyph look: cream on near-black, tiny monospace marks, widely tracked serif. Reduced motion = fades only. */
.sx-whisper { position: fixed; left: 50%; bottom: max(12vh, 96px); z-index: 60; margin: 0; max-width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%); pointer-events: none; text-align: center; color: var(--bone, #ece4d8); opacity: 0;
  font: italic 400 16px/1.5 var(--serif, Georgia, serif); letter-spacing: .06em; text-shadow: 0 1px 14px #000, 0 0 2px #000;
  transition: opacity 1.2s cubic-bezier(.23, 1, .32, 1); }
.sx-whisper.on { opacity: .82; }
.sx-whisper.is-side { bottom: auto; transform: none; max-width: clamp(180px, 16vw, 260px); text-align: left; font-size: 15px; letter-spacing: .04em; }

/* 1 her name: each letter of the menu's IRIS is cut again in glyphs, then set */
.brand b .sx-l { display: inline-block; text-align: center; }
.brand b .sx-l.is-cut { font-family: ui-monospace, Consolas, monospace; color: var(--red-hi, #cf1c26); opacity: .85; }
.brand b .sx-l.is-set { animation: sx-set .7s cubic-bezier(.23, 1, .32, 1); }
@keyframes sx-set { from { text-shadow: 0 0 18px var(--red-hi, #cf1c26); } to { text-shadow: none; } }
.brand b.sx-glow { text-shadow: 0 0 16px rgba(207, 28, 38, .7); transition: text-shadow .6s; }

/* 2 the star map */
.sx-map { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; cursor: pointer;
  background: rgba(5, 4, 5, .86); opacity: 0; transition: opacity .42s ease; outline: none; }
.sx-map.on { opacity: 1; }
.sx-sky { display: grid; justify-items: center; gap: 14px; width: min(880px, 100%); }
.sx-num, .sx-coord, .sx-cue { margin: 0; text-align: center; color: var(--bone-2, #b9b0a5); }
.sx-num { font: 400 14px/1 var(--wordmark, Georgia, serif); letter-spacing: .6em; padding-left: .6em; color: var(--bone-3, #847b72); }
.sx-coord { font: 500 14px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .28em; color: var(--bone, #ece4d8); }
.sx-cue { font: italic 400 15px/1.4 var(--serif, Georgia, serif); letter-spacing: .05em; opacity: 0; animation: sx-in 1.4s 1.6s ease forwards; }
.sx-field { position: relative; width: 100%; aspect-ratio: 16 / 10; background: center / contain no-repeat; }
.sx-word { display: none; margin: 0; font: 400 21px/1.4 Georgia, "Times New Roman", serif; letter-spacing: .22em; color: #e0303a; }
/* with Codex's route (constellation-path): the night fills the screen, the words sit in its calm upper left (README) */
.sx-map.has-art { place-items: start; padding: max(10vh, 48px) 16px 16px max(5vw, 16px);
  background: linear-gradient(90deg, rgba(5, 4, 5, .72), rgba(5, 4, 5, .2) 48%, transparent 70%), #070506 var(--sx-art) center / cover no-repeat; }
.sx-map.has-art .sx-sky { justify-items: start; width: min(34vw, 560px); min-width: min(320px, 100%); gap: 16px; }
.sx-map.has-art .sx-field { display: none; }
.sx-map.has-art .sx-sky > * { text-shadow: 0 1px 12px #000, 0 0 2px #000; }
.sx-map.has-art .sx-word { display: block; opacity: 0; animation: sx-in 1.2s .5s ease forwards; }
.sx-map.has-art .sx-num, .sx-map.has-art .sx-coord, .sx-map.has-art .sx-cue { text-align: left; padding-left: 0; }
.sx-star { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #f6eadb;
  box-shadow: 0 0 8px 1px rgba(246, 234, 219, .55); animation: sx-twinkle 3.2s var(--d, 0s) ease-in-out infinite; }
.sx-star.is-dust { width: 2px; height: 2px; margin: -1px 0 0 -1px; opacity: .45; box-shadow: none; }
.sx-letter { position: absolute; transform: translate(10px, -22px); font: 400 14px/1 var(--wordmark, Georgia, serif); color: var(--red-hi, #cf1c26);
  letter-spacing: .1em; opacity: 0; animation: sx-in 1s calc(.5s + var(--i) * .22s) ease forwards; }
.sx-line { position: absolute; height: 0; border-top: 1px dashed rgba(236, 228, 216, .38); transform-origin: 0 0; text-decoration: none;
  clip-path: inset(0 100% 0 0); animation: sx-draw .5s calc(var(--i) * .22s) cubic-bezier(.23, 1, .32, 1) forwards; }
@keyframes sx-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes sx-in { to { opacity: 1; } }
@keyframes sx-twinkle { 50% { opacity: .55; } }

/* 3 the lyre's title, in the Locker */
.sx-locker, .sx-tally { display: flex; align-items: center; gap: 12px; }
.sx-glyph { flex: none; width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.sx-tally .sx-glyph { width: 96px; height: 96px; }
.sx-locker { margin: 4px 0 10px; font: 400 13.5px/1.4 var(--sans, sans-serif); color: var(--bone-3, #847b72); letter-spacing: .04em; }
.sx-locker b, .sx-tally b { font: italic 400 15px/1.4 var(--serif, Georgia, serif); color: var(--bone, #ece4d8); letter-spacing: .03em; }
.sx-k { text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; margin-right: 6px; }

/* 4 the watcher: behind the desk, in front of the world */
.sx-eye { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: center / min(70vmin, 720px) auto no-repeat; transition: opacity 1.6s ease; }
.sx-eye.on { opacity: .16; }
.sx-eye.has-art pre { display: none; }
.sx-eye.has-art { background-size: min(52vmin, 512px) auto; background-position: calc(50% + 12vw) 50%; }
.sx-eye.has-art.on { opacity: .2; }
.sx-eye pre { margin: 0 0 0 18vw; font: 400 clamp(12px, 1.6vw, 22px)/1.15 ui-monospace, Consolas, monospace; color: #f6eadb; white-space: pre; }

/* 6 the bridge: the world passes through every colour once */
.stage.sx-bridge { animation: sx-bridge 4.2s ease-in-out; }
@keyframes sx-bridge { 0% { filter: none; } 15% { filter: hue-rotate(0deg) saturate(1.6); } 85% { filter: hue-rotate(360deg) saturate(1.6); } 100% { filter: none; } }

/* the tally, in Account */
.sx-tally { margin: 14px 4px 0; font: 400 13.5px/1.5 var(--sans, sans-serif); color: var(--bone-3, #847b72); }
.sx-marks { margin-left: 8px; font: 400 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .35em; color: var(--red-hi, #cf1c26); }

/* the door's page (secret.html) */
body.sx-door-page { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; box-sizing: border-box;
  background: #0b0909; color: #ece4d8; }
body.sx-door-page.has-art { place-items: start; padding: max(10vh, 48px) 16px 48px max(5vw, 16px);
  background: linear-gradient(90deg, rgba(11, 9, 9, .75), rgba(11, 9, 9, .25) 50%, transparent 72%), #0b0909 var(--sx-door) center / cover no-repeat; background-attachment: fixed; }
body.sx-door-page.has-art .sx-room { justify-items: start; text-align: left; max-width: min(520px, 100%); }
body.sx-door-page.has-art .sx-place { padding-left: 0; }
.sx-room { display: grid; justify-items: center; gap: 18px; max-width: 560px; text-align: center; animation: sx-in 2s ease both; opacity: 0; }
.sx-place { margin: 0; font: 400 clamp(30px, 6vw, 46px)/1 Georgia, "Times New Roman", serif; letter-spacing: .5em; padding-left: .5em; color: #cf1c26; } /* Georgia: Bodoni's hairline Delta vanishes on dark and reads as a Lambda */
.sx-rule { margin: 0; font: 400 13px/1 ui-monospace, Consolas, monospace; color: #847b72; white-space: pre; overflow: hidden; max-width: 100%; }
.sx-text { margin: 0; font: 400 16px/1.7 "Libre Caslon Text", Georgia, serif; color: #b9b0a5; }
.sx-riddle { margin: 8px 0 0; font: italic 400 17px/1.7 "Libre Caslon Text", Georgia, serif; color: #ece4d8; }
.sx-shut { margin: 0; font: italic 400 17px/1.5 "Libre Caslon Text", Georgia, serif; color: #847b72; }
.sx-back { font: 500 13px/1 Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #847b72; text-decoration: none; padding: 10px; }
.sx-back:hover, .sx-back:focus-visible { color: #ece4d8; }
.sx-room .sx-num { font: 400 13px/1 "Bodoni Moda", Georgia, serif; letter-spacing: .6em; color: #847b72; }

@media (prefers-reduced-motion: reduce) {
  .sx-star, .sx-letter, .sx-cue, .sx-line, .sx-room, .brand b .sx-l.is-set { animation: none; }
  .sx-map.has-art .sx-word { animation: none; }
  .sx-letter, .sx-cue, .sx-room, .sx-map.has-art .sx-word { opacity: 1; }
  .sx-line { clip-path: none; }
  .stage.sx-bridge { animation: none; }
}
