@font-face {
  font-family: "Anton Local";
  src: url("assets/anton.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #06143b;
  --deep: #020a23;
  --blue: #063d9d;
  --blue-hot: #1672ff;
  --red: #d51e38;
  --red-dark: #77071b;
  --bone: #efe4cc;
  --bone-dim: #b8ab91;
  --gold: #e2b746;
  --ink: #07102b;
  --line: rgba(239, 228, 204, .26);
  --display: "Anton Local", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); }
body {
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 60% 0%, rgba(46, 77, 165, .56), transparent 28rem),
    linear-gradient(150deg, #06133a 0%, #020a23 45%, #071d51 100%);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 1s ease, color .5s ease;
}
body.mode-redmoon { background: radial-gradient(circle at 80% 8%, #bc1733 0, #300519 27rem, #03081b 70%); }
body.mode-dawn { background: radial-gradient(circle at 50% 4%, #825e8e 0, #243d87 24rem, #07102a 72%); }
body.locked { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--red); color: white; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.cursor-glow {
  width: 30rem;
  height: 30rem;
  position: fixed;
  z-index: 0;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31, 103, 255, .18), rgba(31, 103, 255, 0) 67%);
  pointer-events: none;
}
.relic-field {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  background: url('assets/bone-city-relics.png') center/contain no-repeat;
  filter: saturate(.8) brightness(.55) blur(.2px);
  opacity: .22;
  will-change: transform;
}
.relic-field-a { width: 64vw; height: 42vw; left: -28vw; top: 16vh; transform: rotate(-18deg); }
.relic-field-b { width: 60vw; height: 35vw; right: -27vw; bottom: 4vh; transform: rotate(11deg) scaleX(-1); }

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #020716;
  transition: opacity .8s ease, visibility .8s;
}
.boot.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-static { position: absolute; inset: 0; opacity: .35; background: radial-gradient(circle at center, #173b86, transparent 48%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.04) 4px); animation: boot-flicker 2.2s steps(2) infinite; }
.boot-card { position: relative; width: min(90vw, 44rem); text-align: center; padding: 3rem; }
.eyebrow { font-size: .72rem; letter-spacing: .17em; color: var(--bone-dim); text-transform: uppercase; }
.boot-mark { margin: 1.5rem auto; width: 5.4rem; aspect-ratio: 1; display: grid; place-items: center; transform: rotate(45deg); background: var(--red); border: 4px solid var(--bone); box-shadow: 0 0 0 9px rgba(213,30,56,.14), 0 0 70px rgba(213,30,56,.38); }
.boot-mark span { transform: rotate(-45deg); font: 3.5rem/1 var(--display); color: var(--gold); }
.boot h1 { margin: 1.5rem 0 .7rem; font: clamp(3rem, 10vw, 7rem)/.9 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.boot p { color: var(--bone-dim); margin-bottom: 2rem; }
.text-button { display: block; margin: 1rem auto 0; border: 0; background: none; color: var(--bone-dim); text-decoration: underline; text-underline-offset: .35rem; cursor: pointer; font-size: .8rem; }

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 5.8rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .8rem 2.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 10, 35, .91), rgba(2,10,35,.54));
  backdrop-filter: blur(18px);
}
.brand { display: flex; width: max-content; align-items: center; gap: .75rem; text-decoration: none; font: 1.05rem/.9 var(--display); letter-spacing: .04em; }
.brand-shield { width: 2.55rem; height: 2.55rem; display: grid; place-items: center; background: var(--red); color: var(--gold); clip-path: polygon(50% 0, 96% 25%, 80% 82%, 50% 100%, 20% 82%, 4% 25%); font: 1.65rem/1 var(--display); }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { position: relative; text-decoration: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; color: var(--bone-dim); }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -.6rem; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.desktop-nav a:hover::after { width: 100%; }
.top-actions { justify-self: end; display: flex; gap: .6rem; align-items: center; }
.sound-button, .x-button, .buy-button { min-height: 2.7rem; border: 1px solid var(--line); background: rgba(5,19,57,.75); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--bone); cursor: pointer; transition: transform .25s, border .25s, background .25s; }
.sound-button { gap: .55rem; padding: 0 .8rem; font-size: .65rem; }
.sound-bars { display: flex; gap: 2px; align-items: center; height: 1rem; }
.sound-bars i { width: 2px; height: 4px; background: currentColor; }
.sound-button.active .sound-bars i { animation: bars .6s ease-in-out infinite alternate; }
.sound-button.active .sound-bars i:nth-child(2) { animation-delay: -.35s; }
.sound-button.active .sound-bars i:nth-child(3) { animation-delay: -.15s; }
.x-button { width: 2.7rem; font-weight: 700; }
.buy-button { padding: 0 1.2rem; background: var(--red); border-color: var(--red); font-weight: 700; font-size: .78rem; }
.top-actions > *:hover { transform: translateY(-2px); border-color: var(--bone); }

.chapter-rail { position: fixed; z-index: 80; left: 2.15rem; top: 50%; transform: translateY(-38%); display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.rail-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .58rem; letter-spacing: .25em; color: var(--bone-dim); }
.rail-line { width: 1px; height: 4.5rem; background: var(--line); position: relative; overflow: hidden; }
.rail-line i { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--red); }
.chapter-rail a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid transparent; color: var(--bone-dim); text-decoration: none; font-size: .65rem; transition: all .25s; }
.chapter-rail a span { display: none; }
.chapter-rail a.active { color: var(--bone); border-color: var(--red); transform: rotate(45deg); background: rgba(213,30,56,.15); }
.chapter-rail a.active b { transform: rotate(-45deg); }

main { position: relative; z-index: 2; }
.scene { position: relative; min-height: 100vh; padding: 9rem max(7vw, 6rem) 6rem; overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(20rem, .9fr) minmax(30rem, 1.15fr) 10rem; align-items: center; gap: 2rem; padding-top: 7rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,9,28,.65), transparent 50%), repeating-linear-gradient(90deg, transparent 0 8.3vw, rgba(255,255,255,.025) 8.35vw); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; }
.kicker { display: flex; gap: .7rem; align-items: center; margin: 0 0 1.4rem; text-transform: uppercase; color: var(--bone-dim); font-size: .72rem; letter-spacing: .17em; }
.kicker span { width: 2.3rem; height: 2px; background: var(--red); }
.hero h1 { margin: 0; font-family: var(--display); line-height: .76; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 0 .08em 0 rgba(0,0,0,.2); }
.hero h1 span { display: block; }
.title-super { font-size: clamp(6rem, 12vw, 12rem); color: var(--red); transform: rotate(-2deg); transform-origin: left; }
.title-skeleton { font-size: clamp(4.5rem, 8.4vw, 8.4rem); color: var(--bone); -webkit-text-stroke: 1px rgba(3,10,31,.4); }
.hero-deck { max-width: 38rem; margin: 2rem 0; color: var(--bone-dim); font-size: clamp(1rem, 1.2vw, 1.18rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.bone-button { position: relative; display: inline-flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0 1.5rem; border: 0; background: var(--bone); color: var(--ink); cursor: pointer; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; box-shadow: .45rem .45rem 0 var(--red); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bone-button i { width: 1.7rem; height: .45rem; background: var(--ink); border-radius: 999px; position: relative; }
.bone-button i::before, .bone-button i::after { content: ""; position: absolute; top: 50%; width: .65rem; height: .65rem; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.bone-button i::before { left: -.18rem; } .bone-button i::after { right: -.18rem; }
.bone-button:hover { transform: translate(.25rem, .25rem); box-shadow: .2rem .2rem 0 var(--red); }
.bone-button-large { margin: 0 auto; font-size: .82rem; }
.signal-chip { border: 1px solid var(--line); background: rgba(3,13,42,.55); min-height: 3.25rem; padding: 0 1rem; color: var(--bone); cursor: pointer; font-size: .68rem; letter-spacing: .1em; }
.pulse-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; background: var(--red); box-shadow: 0 0 0 0 rgba(213,30,56,.5); animation: pulse 1.4s infinite; }
#secretHint { display: block; margin-top: 1.2rem; color: rgba(239,228,204,.5); font-size: .68rem; }

.hero-portrait { position: relative; justify-self: center; width: min(43vw, 41rem); aspect-ratio: .88; z-index: 2; perspective: 1000px; }
.portrait-cutout { position: absolute; inset: 6% 8% 0; overflow: hidden; border-radius: 45% 45% 8% 8%; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 2rem 6rem rgba(0,0,0,.5), inset 0 0 3rem rgba(22,114,255,.4); transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); transition: transform .15s ease-out; }
.portrait-cutout::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, var(--deep)); }
.portrait-cutout img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: contrast(1.08) saturate(.92); }
.scanline { position: absolute; left: 0; right: 0; height: 2px; top: 5%; background: rgba(121,181,255,.6); box-shadow: 0 0 1rem #4ea0ff; animation: scan 5s linear infinite; }
.portrait-glitch { position: absolute; inset: 0; opacity: 0; background: url('assets/super-skeleton-original.jpg') center top/cover; mix-blend-mode: screen; }
.hero-portrait.glitch .portrait-glitch { animation: glitch .4s steps(2); }
.moon-ring { position: absolute; inset: 0; border: 1px solid rgba(76,133,255,.3); border-radius: 50%; animation: slow-spin 30s linear infinite; }
.moon-ring::before, .moon-ring::after { content: ""; position: absolute; border-radius: inherit; border: 1px dashed rgba(239,228,204,.16); }
.moon-ring::before { inset: 7%; }.moon-ring::after { inset: 15%; }
.moon-ring span { position: absolute; width: .6rem; height: .6rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 2rem var(--red); }
.moon-ring span:nth-child(1) { top: 8%; left: 18%; }.moon-ring span:nth-child(2) { right: 1%; top: 50%; }.moon-ring span:nth-child(3) { bottom: 3%; left: 28%; }
.portrait-stamp { position: absolute; right: 0; bottom: 8%; z-index: 5; width: 7rem; height: 7rem; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; text-align: center; font: 1.1rem/1.05 var(--display); color: var(--gold); transform: rotate(11deg); background: rgba(2,10,35,.75); }
.hotspot { position: absolute; z-index: 10; width: 2.3rem; height: 2.3rem; border: 1px solid var(--bone); border-radius: 50%; background: rgba(2,10,35,.75); color: var(--bone); cursor: pointer; animation: hotspot 2s infinite; }
.hotspot-ear { left: 27%; top: 18%; }.hotspot-cape { right: 16%; top: 51%; }.hotspot-heart { left: 49%; top: 64%; }
.hotspot-note { position: absolute; z-index: 12; left: 12%; bottom: 1%; width: 76%; min-height: 3rem; padding: .8rem 1rem; background: var(--bone); color: var(--ink); font-size: .72rem; opacity: 0; transform: translateY(1rem); transition: .3s var(--ease); pointer-events: none; }
.hotspot-note.visible { opacity: 1; transform: none; }
.hero-aside { position: relative; z-index: 3; display: grid; gap: .2rem; align-content: center; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.hero-aside span { color: var(--bone-dim); font-size: .58rem; letter-spacing: .15em; margin-top: 1rem; }
.hero-aside strong { font-size: .72rem; }
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .58rem; letter-spacing: .2em; color: var(--bone-dim); }
.scroll-cue i { width: 1px; height: 2rem; background: linear-gradient(var(--red) 50%, var(--line) 50%); background-size: 100% 200%; animation: scroll-line 2s infinite; }

.section-heading { position: relative; z-index: 3; max-width: 58rem; margin-bottom: 4rem; }
.section-heading h2 { margin: 0; font: clamp(3.4rem, 7.5vw, 7rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.035em; }
.section-heading h2 em { color: var(--red); font-style: normal; }
.section-deck { max-width: 38rem; color: var(--bone-dim); }

.story { background: var(--bone); color: var(--ink); }
.story::after { content: ""; position: absolute; width: 36rem; height: 36rem; right: -11rem; top: 10rem; background: url('assets/bone-city-relics.png') 84% 9% / 220% auto no-repeat; filter: sepia(.4) grayscale(.25); opacity: .12; transform: rotate(12deg); }
.story .kicker, .story .story-time { color: #5e5a54; }
.story-shell { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(14rem, .36fr) 1fr; max-width: 78rem; margin: 0 auto; border: 2px solid var(--ink); box-shadow: 1rem 1rem 0 var(--red); }
.story-tabs { display: flex; flex-direction: column; background: var(--ink); }
.story-tab { min-height: 6.8rem; display: grid; grid-template-columns: 2.8rem 1fr; text-align: left; align-items: center; border: 0; border-bottom: 1px solid rgba(239,228,204,.17); background: transparent; color: var(--bone-dim); padding: 1rem; cursor: pointer; font-size: .75rem; text-transform: uppercase; }
.story-tab span { color: var(--red); font-weight: 700; }
.story-tab.active { color: var(--ink); background: var(--bone); }
.story-card { position: relative; min-height: 36rem; padding: 4rem 4rem 5rem; overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(7,16,43,.05) 29px); }
.story-number { position: absolute; top: -3rem; right: 1rem; font: 14rem/1 var(--display); color: rgba(7,16,43,.055); }
.story-copy { position: relative; z-index: 3; max-width: 40rem; }
.story-time { font-size: .7rem; letter-spacing: .14em; }
.story-copy h3 { font: clamp(2.5rem, 5vw, 5rem)/.98 var(--display); text-transform: uppercase; margin: 1rem 0 1.5rem; }
.story-copy > p:not(.story-time):not(.story-quote) { max-width: 35rem; }
.story-quote { margin-top: 2rem; padding-left: 1.2rem; border-left: 4px solid var(--red); font-weight: 700; }
.story-art { position: absolute; right: 1rem; bottom: 1rem; width: 18rem; height: 18rem; display: grid; place-items: center; }
.story-symbol { font: 8rem/1 var(--display); color: var(--red); }
.siren-wave { position: absolute; inset: 18%; border: 2px solid var(--red); border-radius: 50%; animation: siren 2s infinite; }
.story-controls { position: absolute; left: 4rem; bottom: 1.8rem; display: flex; align-items: center; gap: 1rem; z-index: 5; }
.story-controls button { width: 2.8rem; height: 2.8rem; border: 1px solid var(--ink); background: var(--bone); cursor: pointer; }
.story-controls > span { width: 8rem; height: 3px; background: rgba(7,16,43,.15); }
.story-controls i { display: block; width: 25%; height: 100%; background: var(--red); transition: width .5s var(--ease); }

.anatomy { background: linear-gradient(135deg, #9b0e27, #cf1c36 50%, #8b081f); }
.anatomy::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(118deg, transparent 0 11rem, rgba(255,255,255,.025) 11.1rem); }
.relic-deck { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 88rem; margin: 0 auto; perspective: 1400px; }
.relic-card { position: relative; min-height: 25rem; padding: 1.5rem; border: 1px solid rgba(239,228,204,.5); background: rgba(50,2,13,.28); color: var(--bone); cursor: pointer; text-align: left; overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--ease), background .3s; }
.relic-card:hover { transform: translateY(-.7rem) rotate(-1deg); background: rgba(50,2,13,.45); }
.relic-card.flipped { transform: rotateY(180deg); background: var(--bone); }
.relic-index { font-size: .65rem; color: rgba(239,228,204,.7); }
.relic-glyph { display: grid; place-items: center; min-height: 12rem; font: 6rem/1 var(--display); color: var(--gold); text-shadow: .3rem .3rem 0 rgba(0,0,0,.15); }
.relic-card strong, .relic-card small { display: block; }
.relic-card strong { font: 1.45rem/1 var(--display); letter-spacing: .03em; }
.relic-card small { margin-top: .6rem; color: rgba(239,228,204,.65); }
.relic-back { position: absolute; inset: 0; padding: 2.2rem; display: grid; place-items: center; background: var(--bone); color: var(--ink); font-size: .9rem; line-height: 1.8; transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden; opacity: 0; transition: opacity .2s .15s; }
.relic-card.flipped .relic-back { opacity: 1; }
.radio-console { position: relative; z-index: 2; margin: 5rem auto 0; max-width: 88rem; display: grid; grid-template-columns: 1fr 1.3fr .5fr; gap: 2rem; align-items: center; padding: 2rem; border: 1px solid rgba(239,228,204,.45); background: #061437; box-shadow: 1rem 1rem 0 rgba(45,0,10,.35); }
.radio-console h3 { margin: .3rem 0 0; font: 2rem/1 var(--display); }
.radio-stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.radio-stations button { border: 1px solid var(--line); background: transparent; padding: .8rem; color: var(--bone-dim); cursor: pointer; text-align: left; font-size: .65rem; }
.radio-stations button span { display: block; color: var(--bone); font-size: .92rem; font-weight: 700; }
.radio-stations button i { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #35405e; margin-right: .4rem; }
.radio-stations button.active { border-color: var(--gold); color: var(--bone); }
.radio-stations button.active i { background: var(--red); box-shadow: 0 0 1rem var(--red); }
.frequency { display: flex; gap: 5px; height: 3rem; align-items: center; justify-content: center; }
.frequency i { display: block; width: 3px; height: 20%; background: var(--red); animation: freq 1s ease-in-out infinite alternate; }
.frequency i:nth-child(2n) { animation-delay: -.6s; height: 70%; }
.frequency i:nth-child(3n) { animation-delay: -.2s; height: 40%; }

.roadmap { background: radial-gradient(circle at 70% 50%, rgba(33,75,165,.38), transparent 35rem), var(--deep); }
.roadmap .section-heading { position: absolute; left: max(7vw, 6rem); top: 10rem; width: 36%; }
.roadmap .section-heading h2 { font-size: clamp(3.2rem, 5.4vw, 5.8rem); }
.constellation { position: relative; width: min(64vw, 50rem); aspect-ratio: 1; margin-left: auto; }
.constellation svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1.5rem rgba(22,114,255,.15)); }
.orbit { fill: none; stroke: rgba(239,228,204,.1); stroke-width: 1; stroke-dasharray: 3 8; transform-origin: center; }
.orbit-a { animation: slow-spin 25s linear infinite; }.orbit-b { animation: slow-spin 16s linear infinite reverse; }
.route-path, .route-progress { fill: none; stroke-width: 3; }
.route-path { stroke: rgba(239,228,204,.12); stroke-dasharray: .015 .025; }
.route-progress { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); filter: drop-shadow(0 0 9px var(--red)); }
.route-rays line { stroke: rgba(239,228,204,.08); stroke-width: 1; }
.route-node { position: absolute; width: 9.2rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: rgba(4,16,49,.92); color: var(--bone); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transform: translate(-50%, -50%); transition: .4s var(--ease); }
.route-node i { position: absolute; inset: .5rem; border: 1px dashed rgba(239,228,204,.14); border-radius: 50%; }
.route-node span { color: var(--red); font-weight: 700; font-size: .7rem; }
.route-node strong { font: 1.55rem/1.2 var(--display); }
.route-node small { font-size: .55rem; color: var(--bone-dim); max-width: 6rem; }
.route-node:hover { border-color: var(--bone); transform: translate(-50%, -50%) scale(1.06); }
.route-node.complete { background: var(--red); border-color: var(--red); box-shadow: 0 0 2.5rem rgba(213,30,56,.45); }
.route-node.complete span, .route-node.complete small { color: var(--bone); }
.node-1 { left: 25%; top: 23%; }.node-2 { left: 82%; top: 49%; }.node-3 { left: 25%; top: 76%; }.node-4 { left: 71.7%; top: 78%; }
.route-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 12rem; height: 12rem; display: grid; place-items: center; text-align: center; background: #030c27; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 1.2rem rgba(5,22,67,.55), 0 0 5rem rgba(22,114,255,.18); font: 1rem/1.15 var(--display); }
.core-open { display: none; color: var(--gold); }
.route-core.unlocked { border-color: var(--gold); animation: core-unlock 1.8s infinite; }
.route-core.unlocked .core-lock { display: none; }.route-core.unlocked .core-open { display: block; }
.route-readout { position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%); width: 70%; text-align: center; }
.route-readout span { color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.route-readout p { margin: .25rem 0; color: var(--bone-dim); font-size: .72rem; }

.transmission { min-height: 110vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; background: linear-gradient(120deg, var(--bone) 0 46%, var(--red) 46% 100%); color: var(--ink); padding-bottom: 12rem; }
.transmission::before { content: ""; position: absolute; right: -8rem; top: 7rem; width: 45rem; height: 26rem; background: url('assets/bone-city-relics.png') center/contain no-repeat; opacity: .13; transform: rotate(-9deg); filter: grayscale(.4); }
.phone-shell { position: relative; z-index: 3; justify-self: center; width: min(31rem, 85vw); padding: 1.1rem; border-radius: 3rem; border: .7rem solid #11192e; background: #c8b995; box-shadow: 1.5rem 1.5rem 0 rgba(7,16,43,.18), inset 0 0 0 3px #6c624f; transform: rotate(-2deg); }
.phone-top { height: 2rem; padding: 0 .9rem; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: .65rem; }
.phone-top i { width: 5rem; height: 1.2rem; border-radius: 1rem; background: var(--ink); }
.phone-screen { min-height: 36rem; border-radius: 2rem; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(#071b53, #020a23); color: var(--bone); overflow: hidden; }
.caller { margin: 2rem 0; display: flex; align-items: center; gap: 1rem; }
.caller img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.caller span { display: flex; flex-direction: column; }.caller strong { font: 1.4rem/1 var(--display); }.caller small { color: var(--bone-dim); font-size: .65rem; }
.message-log { height: 13rem; overflow-y: auto; padding-right: .4rem; }
.message-log p { width: 82%; padding: .8rem 1rem; border-radius: .9rem .9rem .9rem .2rem; background: #18356f; font-size: .78rem; animation: message-in .5s var(--ease); }
.message-log .outgoing { margin-left: auto; background: var(--red); border-radius: .9rem .9rem .2rem .9rem; }
.reply-row { display: grid; gap: .55rem; }
.reply-row button { min-height: 2.7rem; border: 1px solid var(--line); background: transparent; color: var(--bone); font-size: .7rem; cursor: pointer; transition: .2s; }
.reply-row button:hover:not(:disabled) { background: var(--bone); color: var(--ink); }.reply-row button:disabled { opacity: .35; cursor: not-allowed; }
.transmission-copy { position: relative; z-index: 3; color: var(--bone); }
.transmission-copy .kicker { color: rgba(239,228,204,.8); }
.transmission-copy h2 { margin: 0; font: clamp(3.5rem, 6vw, 6.5rem)/.88 var(--display); text-transform: uppercase; }
.transmission-copy > p:not(.kicker):not(.contract-label) { max-width: 35rem; }
.final-actions { margin-top: 2rem; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.link-button { text-decoration: none; }
.outline-button { min-height: 3.5rem; display: inline-flex; align-items: center; padding: 0 1.2rem; border: 1px solid var(--bone); text-decoration: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.contract-label { margin-top: 2.5rem; font-size: .65rem; letter-spacing: .1em; }
.contract-label button { margin-left: .5rem; padding: .7rem .9rem; border: 1px solid rgba(239,228,204,.5); background: rgba(3,9,29,.2); color: var(--bone); cursor: pointer; font-weight: 700; }
.contract-label button span { margin-left: .8rem; color: rgba(239,228,204,.65); font-size: .55rem; }
footer { position: absolute; z-index: 4; left: 0; bottom: 0; width: 100%; min-height: 7rem; padding: 1.4rem max(7vw, 6rem); display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; border-top: 1px solid rgba(7,16,43,.2); color: var(--ink); }
.footer-brand { font-size: .85rem; }.footer-brand .brand-shield { width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
footer p { text-align: center; font-size: .7rem; } footer > div:last-child { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; font-size: .62rem; } footer a { font-weight: 700; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 2rem; transform: translate(-50%, 2rem); padding: .9rem 1.2rem; background: var(--bone); color: var(--ink); border-left: 5px solid var(--red); font-size: .72rem; opacity: 0; pointer-events: none; transition: .35s var(--ease); box-shadow: 0 1rem 3rem rgba(0,0,0,.35); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes boot-flicker { 0%,100%{opacity:.2} 52%{opacity:.55} 54%{opacity:.15} }
@keyframes bars { to { height: 100%; } }
@keyframes pulse { 70%{box-shadow:0 0 0 12px rgba(213,30,56,0)} 100%{box-shadow:0 0 0 0 rgba(213,30,56,0)} }
@keyframes scan { from{top:4%} to{top:96%} }
@keyframes glitch { 0%{opacity:.6;clip-path:inset(10% 0 72% 0);transform:translateX(-8px)} 33%{clip-path:inset(45% 0 39% 0);transform:translateX(8px)} 70%{clip-path:inset(78% 0 8% 0);transform:translateX(-4px)} 100%{opacity:0} }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes hotspot { 50% { box-shadow: 0 0 0 .7rem rgba(239,228,204,0); } 0%,100% { box-shadow: 0 0 0 0 rgba(239,228,204,.25); } }
@keyframes scroll-line { from{background-position:0 100%} to{background-position:0 -100%} }
@keyframes siren { 0%{transform:scale(.6);opacity:1} 100%{transform:scale(1.5);opacity:0} }
@keyframes freq { to { height: 100%; } }
@keyframes core-unlock { 50%{box-shadow:0 0 0 1.8rem rgba(226,183,70,0),0 0 6rem rgba(226,183,70,.5)} }
@keyframes message-in { from{opacity:0;transform:translateY(.8rem)} }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-aside { display: none; }
  .title-super { font-size: clamp(5.5rem, 15vw, 9rem); }
  .title-skeleton { font-size: clamp(4rem, 10vw, 6rem); }
  .relic-deck { grid-template-columns: 1fr 1fr; }
  .roadmap .section-heading { position: relative; left: auto; top: auto; width: 100%; }
  .constellation { width: min(90vw, 46rem); margin: 0 auto; }
}

@media (max-width: 760px) {
  .topbar { min-height: 4.8rem; padding: .65rem 1rem; }
  .brand { font-size: .8rem; }.brand-shield { width: 2.2rem; height: 2.2rem; }
  .sound-label, .top-actions .x-button { display: none; }
  .sound-button { width: 2.5rem; padding: 0; }.buy-button { padding: 0 .8rem; }
  .chapter-rail { display: none; }
  .scene { padding: 7rem 1.2rem 4rem; }
  .hero { display: flex; flex-direction: column; min-height: auto; gap: 1rem; padding-bottom: 6rem; }
  .hero-copy { order: 1; width: 100%; }.hero-portrait { order: 2; width: min(96vw, 36rem); }.scroll-cue { display: none; }
  .title-super { font-size: clamp(5.2rem, 26vw, 8rem); }.title-skeleton { font-size: clamp(3.8rem, 18vw, 6rem); }
  .hero-deck { margin: 1.4rem 0; }
  .section-heading { margin-bottom: 2.5rem; }.section-heading h2 { font-size: clamp(3rem, 17vw, 5rem); }
  .story-shell { grid-template-columns: 1fr; box-shadow: .5rem .5rem 0 var(--red); }
  .story-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .story-tab { min-height: 4.5rem; padding: .7rem; grid-template-columns: 2rem 1fr; }
  .story-card { min-height: 39rem; padding: 2.5rem 1.5rem 5rem; }
  .story-controls { left: 1.5rem; }.story-art { opacity: .2; }
  .relic-deck { grid-template-columns: 1fr; }.relic-card { min-height: 18rem; }.relic-glyph { min-height: 8rem; }
  .radio-console { grid-template-columns: 1fr; margin-top: 3rem; }.radio-stations { grid-template-columns: 1fr; }.frequency { display: none; }
  .constellation { width: 100%; margin-top: 2rem; }
  .route-node { width: 6.4rem; }.route-node strong { font-size: 1.1rem; }.route-node small { display: none; }
  .route-core { width: 8.5rem; height: 8.5rem; font-size: .75rem; }
  .route-readout { width: 90%; bottom: -3rem; }
  .transmission { display: flex; flex-direction: column; background: linear-gradient(165deg, var(--bone) 0 46%, var(--red) 46%); padding-bottom: 11rem; }
  .phone-shell { order: 2; }.transmission-copy { order: 1; }.transmission-copy h2 { font-size: clamp(3.1rem, 15vw, 5rem); }
  footer { min-height: 8.5rem; padding: 1rem 1.2rem; grid-template-columns: 1fr 1fr; }.footer-brand { display: none; } footer p { text-align: left; } footer > div:last-child { text-align: right; }
  .relic-field-a, .relic-field-b { width: 100vw; height: 60vw; opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
