:root {
  --ink: #030603;
  --panel: #071008;
  --paper: #f4f0d9;
  --muted: #a7b3a5;
  --acid: #73ff3c;
  --acid-2: #c6ff38;
  --orange: #ff9d36;
  --line: rgba(196, 255, 174, .27);
  --radius: 28px;
  --mx: 50vw;
  --my: 50vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: none;
}
button, a, input { font: inherit; }
button, a { cursor: none; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #041005; background: var(--acid); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999; transform: translateY(-160%);
  padding: 12px 18px; color: var(--ink); background: var(--acid); border-radius: 99px;
}
.skip-link:focus { transform: none; }

.world-layer {
  position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(rgba(2, 7, 2, .78), rgba(2, 7, 2, .92)), url("assets/looong-world.png") center / cover;
  filter: saturate(1.08) hue-rotate(0deg); transform: scale(1.03); transition: filter .9s, opacity .9s;
}
.world-layer::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 40rem at var(--mx) var(--my), rgba(115, 255, 60, .13), transparent 70%);
}
body[data-mood="warm"] .world-layer { filter: sepia(.34) saturate(1.55) hue-rotate(320deg); opacity: .92; }
body[data-mood="ghost"] .world-layer { filter: grayscale(.72) contrast(1.25) brightness(.72); opacity: .72; }
.grain {
  position: fixed; inset: -80%; z-index: 90; opacity: .085; pointer-events: none;
  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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain .28s steps(2) infinite;
}
@keyframes grain { 0% { transform: translate(1%, -1%); } 50% { transform: translate(-1%, 1%); } 100% { transform: translate(1%, 1%); } }

.cursor-dot, .cursor-ring { position: fixed; pointer-events: none; z-index: 9998; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(158,255,119,.75); transition: width .2s, height .2s, border-color .2s; }
body.cursor-active .cursor-ring { width: 58px; height: 58px; border-color: var(--orange); }
#particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

.entry {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; overflow: hidden;
  background: #020502; transition: clip-path 1.1s cubic-bezier(.8, 0, .2, 1), visibility 1.1s;
  clip-path: inset(0 0 0 0);
}
.entry.open { clip-path: inset(0 0 100% 0); visibility: hidden; }
.entry-noise { position: absolute; inset: 0; opacity: .7; background: radial-gradient(circle at 50% 70%, rgba(89,255,36,.28), transparent 27%), linear-gradient(90deg, transparent 49.8%, rgba(115,255,60,.23) 50%, transparent 50.2%); }
.entry-noise::before, .entry-noise::after { content: ""; position: absolute; border: 1px solid rgba(115,255,60,.3); border-radius: 50%; inset: 12%; animation: spin 16s linear infinite; }
.entry-noise::after { inset: 23%; animation-direction: reverse; animation-duration: 11s; border-style: dashed; }
.entry-copy { position: relative; width: min(900px, calc(100% - 40px)); }
.entry h1 { margin: 18px 0 28px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(4rem, 12vw, 10rem); line-height: .75; letter-spacing: -.045em; }
.entry h1 span { color: transparent; -webkit-text-stroke: 2px var(--acid); text-shadow: 0 0 42px rgba(115,255,60,.25); }
.entry-meter { height: 7px; border: 1px solid var(--acid); padding: 1px; }
.entry-meter i { display: block; height: 100%; width: 0; background: var(--acid); box-shadow: 0 0 18px var(--acid); animation: boot 1.8s cubic-bezier(.1,.8,.2,1) forwards; }
@keyframes boot { to { width: 100%; } }
.entry-bottom { margin-top: 24px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.entry-bottom p { color: var(--muted); font-family: ui-monospace, monospace; font-size: .78rem; line-height: 1.55; text-transform: uppercase; }

.topbar {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%); width: min(1380px, calc(100% - 28px)); min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 12px 11px 22px;
  border: 1px solid rgba(198,255,173,.24); border-radius: 23px; background: rgba(3,8,3,.72); backdrop-filter: blur(22px); box-shadow: 0 16px 60px rgba(0,0,0,.3);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); font-family: Impact, sans-serif; font-size: 1rem; box-shadow: inset 0 0 15px rgba(115,255,60,.17); }
.brand-mark span { font-size: .45rem; letter-spacing: -2px; }
.brand-name { font-weight: 900; line-height: .88; letter-spacing: -.04em; }
.brand-name small { color: var(--acid); font-family: ui-monospace, monospace; font-size: .57rem; letter-spacing: .08em; }
.topbar nav { display: flex; gap: 26px; color: #c9d3c8; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.topbar nav a { position: relative; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--acid); transition: right .28s; }
.topbar nav a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.circle-link { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-weight: 900; transition: .25s; }
.circle-link:hover { color: var(--ink); background: var(--paper); transform: rotate(-8deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; padding: 0 22px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: .77rem; font-weight: 950; text-transform: uppercase; letter-spacing: .07em; transition: transform .25s, box-shadow .25s, background .25s; }
.btn span { font-size: 1.05rem; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn-primary { color: #071108; border-color: var(--acid); background: var(--acid); box-shadow: 0 0 0 rgba(115,255,60,0); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(115,255,60,.42); }
.btn-buy { color: #071108; border-color: var(--paper); background: var(--paper); }
.text-button { display: inline-flex; gap: 10px; align-items: center; border: 0; padding: 10px 0; background: none; color: var(--paper); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.text-button:hover { color: var(--acid); }
.sound-icon { color: var(--acid); text-shadow: 0 0 9px var(--acid); animation: pulse 1.5s infinite; }

.hero { position: relative; min-height: 100svh; padding: 150px max(5vw, 24px) 88px; display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 4vw; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,6,3,.97) 0%, rgba(3,6,3,.6) 48%, rgba(3,6,3,.25) 100%); }
.eyebrow { margin: 0; color: var(--acid); font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.hero h2, .origin-title h2, .mood-copy h2, .lab-copy h2, .route-head h2, .game-copy h2, .finale h2 {
  margin: 18px 0 24px; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 900; font-size: clamp(4.7rem, 9vw, 10.2rem); line-height: .76; letter-spacing: -.045em; text-transform: uppercase;
}
.hero h2 em, .origin-title h2 em, .route-head h2 em, .finale h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--acid); }
.lede { max-width: 580px; margin: 0; color: #d4ddd2; font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.signal-readout { margin-top: 45px; display: flex; align-items: baseline; gap: 16px; font-family: ui-monospace, monospace; text-transform: uppercase; }
.signal-readout span { color: var(--muted); font-size: .67rem; letter-spacing: .11em; }
.signal-readout strong { color: var(--acid); font-size: .82rem; }

.hero-visual { position: relative; min-height: 710px; display: grid; place-items: center; perspective: 1000px; }
.dog-portal { position: relative; width: min(620px, 47vw); aspect-ratio: 1; padding: 0; border: 1px solid rgba(160,255,125,.55); border-radius: 50%; overflow: hidden; background: #061006; box-shadow: 0 0 60px rgba(73,255,24,.26), inset 0 0 50px rgba(73,255,24,.15); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-radius .45s; }
.dog-portal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 50px #061006, inset 0 0 12px rgba(255,255,255,.25); pointer-events: none; }
.dog-portal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.1,.8,.2,1), filter .6s; }
.dog-portal:hover img { transform: scale(1.045); filter: saturate(1.2) contrast(1.04); }
.portal-scan { position: absolute; z-index: 2; left: 0; right: 0; height: 3px; top: 10%; background: var(--acid); box-shadow: 0 0 20px 5px var(--acid); opacity: .55; animation: scan 4.5s ease-in-out infinite; }
@keyframes scan { 50% { top: 88%; } }
.orbit { position: absolute; width: 90%; height: 35%; border: 1px solid rgba(115,255,60,.36); border-radius: 50%; transform: rotate(-13deg); box-shadow: 0 0 22px rgba(115,255,60,.12); animation: orbit 12s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 13px; height: 13px; top: 45%; left: -6px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 22px var(--acid); }
.orbit-b { width: 72%; transform: rotate(54deg); animation-direction: reverse; animation-duration: 9s; }
@keyframes orbit { to { rotate: 360deg; } }
.sticker { position: absolute; z-index: 5; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; color: var(--ink); background: var(--orange); font-family: Impact, sans-serif; font-size: 1.15rem; line-height: .85; text-align: center; transform: rotate(10deg); box-shadow: 7px 9px 0 rgba(0,0,0,.35); }
.sticker-one { top: 9%; right: 2%; }
.sticker-two { left: 0; bottom: 7%; color: var(--paper); background: #142013; border: 2px solid var(--acid); transform: rotate(-12deg); }
.coordinate { position: absolute; right: 6%; bottom: 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: .65rem; letter-spacing: .12em; }
.scroll-cue { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; }
.scroll-cue i { display: block; width: 1px; height: 28px; background: var(--acid); animation: scrollCue 1.5s infinite; transform-origin: top; }
@keyframes scrollCue { 50% { transform: scaleY(.3); opacity: .4; } }

.ticker { overflow: hidden; padding: 15px 0; color: var(--ink); background: var(--acid); border-block: 1px solid #b8ff9a; font-family: Impact, sans-serif; font-size: 1.05rem; letter-spacing: .06em; white-space: nowrap; transform: rotate(-1deg) scale(1.02); }
.ticker div { width: max-content; animation: ticker 26s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-shell { position: relative; padding: 140px max(5vw, 24px); }
.section-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3,6,3,.72); backdrop-filter: blur(3px); }
.section-kicker { display: flex; align-items: center; gap: 12px; color: var(--acid); font-family: ui-monospace, monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--acid); border-radius: 50%; }
.origin-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 7vw; align-items: end; }
.origin-title h2 { font-size: clamp(4rem, 8vw, 8rem); }
.origin-title p { max-width: 350px; color: var(--muted); line-height: 1.6; }
.story-machine { min-width: 0; overflow: hidden; outline: none; }
.story-progress { height: 2px; margin-bottom: 32px; background: rgba(255,255,255,.15); }
.story-progress i { display: block; width: 20%; height: 100%; background: var(--acid); box-shadow: 0 0 12px var(--acid); transition: width .55s ease; }
.story-track { display: flex; transition: transform .65s cubic-bezier(.3,.8,.2,1); touch-action: pan-y; }
.story-card { flex: 0 0 100%; padding-right: 5vw; }
.story-card > span { color: var(--orange); font-family: ui-monospace, monospace; font-size: .68rem; letter-spacing: .1em; }
.story-card h3 { margin: 18px 0; max-width: 850px; font-size: clamp(2.2rem, 4vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.story-card p { max-width: 690px; color: #b9c3b7; font-size: 1.05rem; line-height: 1.7; }
.story-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 38px; }
.story-controls button { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; background: rgba(4,13,5,.82); font-size: 1.3rem; transition: .25s; }
.story-controls button:hover { color: var(--ink); background: var(--acid); transform: scale(1.07); }
.story-controls span { color: var(--muted); font-family: ui-monospace, monospace; }
.story-controls b { color: var(--paper); font-size: 1.5rem; }

.mood-deck { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: end; min-height: 800px; }
.mood-deck::before { background: linear-gradient(90deg, rgba(3,6,3,.96), rgba(3,6,3,.36)); }
.mood-copy h2 { font-size: clamp(4.2rem, 8vw, 8.5rem); }
.mood-copy p { max-width: 430px; color: #bdc7bb; line-height: 1.65; }
.mood-console { border-top: 1px solid var(--line); }
.mood-button { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px; padding: 24px 18px; border: 0; border-bottom: 1px solid var(--line); background: rgba(5,11,5,.5); text-align: left; transition: .35s; }
.mood-button > span { color: var(--acid); font-family: ui-monospace, monospace; font-size: .7rem; }
.mood-button b { font-size: clamp(1.4rem, 2.5vw, 2.4rem); text-transform: uppercase; letter-spacing: -.035em; }
.mood-button small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mood-button.active, .mood-button:hover { color: var(--ink); background: var(--acid); transform: translateX(-14px); }
.mood-button.active span, .mood-button.active small, .mood-button:hover span, .mood-button:hover small { color: #183119; }

.lab { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; background: #e8e4d1; color: var(--ink); overflow: hidden; }
.lab::before { display: none; }
.lab-stage { position: relative; min-height: 750px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius); background: #061006; box-shadow: 15px 18px 0 #1c301d; }
.lab-ruler { position: absolute; z-index: 3; left: 22px; top: 32px; bottom: 32px; display: flex; flex-direction: column; justify-content: space-between; color: var(--acid); font: .6rem ui-monospace, monospace; }
.lab-ruler::after { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 12px; border-block: 1px solid var(--acid); background: repeating-linear-gradient(to bottom, var(--acid) 0 1px, transparent 1px 22px); }
.lab-dog-wrap { width: min(78%, 560px); aspect-ratio: 1 / 1.25; overflow: hidden; border-radius: 45% 45% 20% 20%; border: 2px solid var(--acid); transition: height .45s cubic-bezier(.2,.8,.2,1), border-radius .45s; box-shadow: 0 0 40px rgba(115,255,60,.35); }
.lab-dog-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.lab-status { position: absolute; left: 72px; right: 24px; bottom: 24px; display: flex; justify-content: space-between; color: var(--acid); font: .63rem ui-monospace, monospace; letter-spacing: .12em; }
.lab-copy .section-kicker { color: #326d27; }
.lab-copy .section-kicker span { border-color: #326d27; }
.lab-copy h2 { font-size: clamp(4.5rem, 8vw, 8.8rem); }
.lab-copy > p { max-width: 480px; color: #3b443a; font-size: 1.05rem; line-height: 1.65; }
.lab-copy label { display: flex; justify-content: space-between; margin: 38px 0 12px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.lab-copy output { color: #3c762f; font-family: ui-monospace, monospace; }
input[type="range"] { width: 100%; height: 8px; appearance: none; border: 1px solid #1c321c; border-radius: 20px; background: linear-gradient(90deg, #193919, #73ff3c); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 34px; height: 34px; border: 8px solid var(--ink); border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.artifact-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 30px; }
.artifact-buttons button { padding: 14px 12px; border: 1px solid #738073; border-radius: 99px; background: transparent; color: var(--ink); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; transition: .2s; }
.artifact-buttons button:hover, .artifact-buttons button.active { color: var(--paper); border-color: var(--ink); background: var(--ink); transform: rotate(-1deg); }
.artifact-orbit { min-height: 48px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.artifact-orbit span { align-self: start; padding: 8px 11px; color: #285a21; border: 1px dashed #487340; border-radius: 4px; font: .62rem ui-monospace, monospace; letter-spacing: .07em; }

.route { min-height: 1050px; overflow: hidden; }
.route::before { background: rgba(2,5,2,.9); }
.route-head { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.route-head h2 { font-size: clamp(4rem, 7vw, 7.8rem); }
.route-head > p { max-width: 420px; margin-bottom: 34px; color: var(--muted); line-height: 1.6; }
.constellation { position: relative; height: 560px; margin-top: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, rgba(40,116,30,.25), transparent 50%), rgba(0,0,0,.28); overflow: hidden; }
.constellation::before { content: ""; position: absolute; inset: 0; opacity: .33; background-image: radial-gradient(var(--acid) .7px, transparent .7px); background-size: 34px 34px; }
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-shadow, .route-line { fill: none; stroke-linecap: round; }
.route-shadow { stroke: rgba(115,255,60,.12); stroke-width: 15; }
.route-line { stroke: var(--acid); stroke-width: 2; stroke-dasharray: 11 9; filter: drop-shadow(0 0 8px var(--acid)); animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.route-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.route-node i { width: 21px; height: 21px; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--acid), 0 0 20px rgba(115,255,60,.55); transition: .25s; }
.route-node:hover i, .route-node.active i { transform: scale(1.6); background: var(--acid); }
.route-node.active { color: var(--paper); }
.memory-card { position: absolute; z-index: 3; top: 42px; left: 43%; width: min(390px, 42%); padding: 26px; border: 1px solid var(--acid); border-radius: 3px 22px 22px 22px; background: rgba(5,14,6,.88); box-shadow: 12px 12px 0 rgba(115,255,60,.09); backdrop-filter: blur(14px); transition: transform .3s, opacity .3s; }
.memory-card.flash { transform: translateY(-8px) rotate(-1deg); opacity: .65; }
.memory-card > span { color: var(--acid); font: .65rem ui-monospace, monospace; letter-spacing: .12em; }
.memory-card h3 { margin: 15px 0 11px; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.memory-card p { color: #c0c9be; line-height: 1.55; }
.memory-card small { color: var(--muted); font-family: ui-monospace, monospace; }
.memory-card b { color: var(--orange); }

.game { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; align-items: center; background: var(--acid); color: var(--ink); }
.game::before { display: none; }
.game-copy .section-kicker { color: #23581c; }
.game-copy .section-kicker span { border-color: #23581c; }
.game-copy h2 { font-size: clamp(4rem, 7vw, 7.6rem); }
.game-copy > p { max-width: 420px; line-height: 1.6; }
.game-stats { display: flex; gap: 40px; margin: 35px 0; }
.game-stats div { display: flex; flex-direction: column; }
.game-stats span { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.game-stats strong { font: 2.6rem Impact, sans-serif; }
.game .btn-primary { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.game-shell { position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: #020502; box-shadow: 15px 15px 0 rgba(9,27,7,.35); }
#game-canvas { display: block; width: 100%; aspect-ratio: 1.52; touch-action: none; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; gap: 11px; color: var(--paper); background: rgba(2,5,2,.7); text-align: center; backdrop-filter: blur(3px); transition: opacity .35s, visibility .35s; }
.game-overlay.hidden { opacity: 0; visibility: hidden; }
.game-overlay span, .game-overlay small { color: var(--acid); font: .68rem ui-monospace, monospace; letter-spacing: .1em; }
.game-overlay strong { font: clamp(2rem, 4vw, 4rem)/.9 Impact, sans-serif; }

.finale { min-height: 940px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.finale::before { background: radial-gradient(circle, rgba(36,136,23,.32), rgba(2,5,2,.95) 60%); }
.finale h2 { position: relative; z-index: 2; font-size: clamp(5rem, 11vw, 12.5rem); }
.finale-ring { position: absolute; width: 65vw; aspect-ratio: 1; border: 1px solid var(--acid); border-radius: 50%; box-shadow: 0 0 70px rgba(115,255,60,.24), inset 0 0 70px rgba(115,255,60,.13); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.9); opacity: .5; } }
.finale-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 30px; }
.btn-massive { min-height: 64px; padding: 0 30px; font-size: .85rem; }
.tiny-note { position: absolute; bottom: 40px; color: var(--muted); font: .64rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px max(5vw, 24px); border-top: 1px solid var(--line); background: #020402; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-brand { color: var(--paper); font-weight: 950; }
.footer-brand span { color: var(--acid); }

.sound-toggle { position: fixed; z-index: 110; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(3,8,3,.82); backdrop-filter: blur(12px); font-size: .59rem; font-weight: 900; letter-spacing: .09em; }
.sound-toggle i { width: 8px; height: 8px; border-radius: 50%; background: #596258; }
.sound-toggle[aria-pressed="true"] i { background: var(--acid); box-shadow: 0 0 11px var(--acid); animation: pulse 1s infinite; }
.transition-wipe { position: fixed; z-index: 450; inset: 0; pointer-events: none; background: var(--acid); transform: scaleY(0); transform-origin: bottom; }
.transition-wipe.play { animation: wipe .7s cubic-bezier(.7,0,.3,1); }
@keyframes wipe { 0% { transform: scaleY(0); transform-origin: bottom; } 45% { transform: scaleY(1); transform-origin: bottom; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-copy { position: relative; z-index: 5; }
  .hero-visual { min-height: 590px; margin-top: -80px; opacity: .84; }
  .dog-portal { width: min(650px, 82vw); }
  .origin-grid, .mood-deck, .lab, .game { grid-template-columns: 1fr; }
  .origin-grid { gap: 50px; }
  .mood-deck { min-height: auto; }
  .lab-copy { order: -1; }
  .lab-stage { min-height: 680px; }
  .route-head { display: block; }
  .constellation { height: 620px; overflow-x: auto; }
  .game-shell { margin-top: 10px; }
  .finale-ring { width: 110vw; }
}

@media (max-width: 650px) {
  .topbar { top: 8px; width: calc(100% - 16px); min-height: 62px; padding: 8px 9px 8px 13px; border-radius: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .78rem; }
  .circle-link { display: none; }
  .btn-buy { min-height: 42px; padding-inline: 16px; }
  .entry-bottom { align-items: stretch; flex-direction: column; }
  .entry-bottom .btn { width: 100%; }
  .hero { padding-inline: 20px; padding-top: 120px; }
  .hero h2 { font-size: clamp(4rem, 20vw, 6.3rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 450px; margin-top: -30px; }
  .dog-portal { width: 94vw; }
  .sticker { width: 78px; height: 78px; font-size: .8rem; }
  .sticker-one { right: 1%; }
  .sticker-two { left: 1%; }
  .section-shell { padding: 100px 20px; }
  .origin-title h2, .mood-copy h2, .lab-copy h2, .route-head h2, .game-copy h2 { font-size: clamp(3.5rem, 18vw, 5.6rem); }
  .story-card { padding-right: 0; }
  .story-card h3 { font-size: 2.2rem; }
  .mood-button { grid-template-columns: 35px 1fr; padding-inline: 8px; }
  .mood-button small { display: none; }
  .lab { padding-inline: 20px; }
  .lab-stage { min-height: 550px; box-shadow: 8px 10px 0 #1c301d; }
  .lab-dog-wrap { width: 84%; }
  .lab-status { left: 58px; }
  .artifact-buttons { grid-template-columns: 1fr; }
  .route { min-height: 1050px; }
  .constellation { height: 700px; }
  .memory-card { top: 32px; left: 20px; width: calc(100% - 40px); }
  .route-node:nth-of-type(1) { --x: 12% !important; --y: 82% !important; }
  .route-node:nth-of-type(2) { --x: 32% !important; --y: 64% !important; }
  .route-node:nth-of-type(3) { --x: 54% !important; --y: 75% !important; }
  .route-node:nth-of-type(4) { --x: 75% !important; --y: 57% !important; }
  .route-node:nth-of-type(5) { --x: 90% !important; --y: 43% !important; }
  .route-node span { writing-mode: vertical-rl; text-orientation: mixed; }
  .game-shell { border-radius: 18px; box-shadow: 8px 8px 0 rgba(9,27,7,.35); }
  .finale { min-height: 800px; }
  .finale h2 { font-size: clamp(4rem, 20vw, 6.3rem); }
  .finale-actions { flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
  .sound-toggle { right: 10px; bottom: 10px; }
}

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