:root {
  --bg: #0b0620;
  --bg-2: #160c3a;
  --bg-3: #2b1d66;
  --ink: #fdf6e3;
  --muted: #a99fd6;
  --yellow: #ffd23f;
  --orange: #ffb347;
  --pink: #ff4f9a;
  --cyan: #3ee8ff;
  --green: #5dff7a;
  --red: #ff2d2d;
  --purple: #7c3aed;
  --line: #000;
  --px: 4px;
  --pixel: "Press Start 2P", monospace;
  --mono: "VT323", monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* No grey/blue tap box on phones (buttons have their own pixel press effect),
   and no "save image" callout or text selection when tapping the cats and games. */
canvas, .face, .chip, .btn, .icon-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.face:focus:not(:focus-visible) { outline: none; }
html { scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1.35;
  overflow-x: clip;
  cursor: var(--cursor, auto);
}
a { color: var(--cyan); }
canvas.sprite { image-rendering: pixelated; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { margin: 0; padding: 16px; background: var(--yellow); color: var(--line); font-size: 22px; text-align: center; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
#fx-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 47; pointer-events: none; }
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; image-rendering: pixelated; }

.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.16) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.5) 100%);
}

/* BOOT */
.boot { position: fixed; inset: 0; z-index: 100; background: #000; color: var(--green); display: grid; place-items: center; padding: 16px; font-size: 24px; }
.boot-inner { width: min(560px, 100%); text-align: center; }
#boot-cat { width: 240px; height: 240px; image-rendering: pixelated; display: block; margin: 0 auto 10px; filter: drop-shadow(0 0 30px rgba(255, 79, 154, .35)); }
.boot-title { font-family: var(--pixel); font-size: 16px; color: var(--yellow); }
.boot-hint { color: var(--muted); font-size: 20px; }
.boot-inner p { margin: 6px 0; }
.boot-bar { border: 3px solid var(--green); height: 24px; margin: 14px 0; padding: 3px; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1.5s steps(14); }
.boot.go .boot-bar i { width: 100%; }
.boot.gone { opacity: 0; transition: opacity .35s steps(4); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: rgba(11, 6, 32, .92);
  border-bottom: var(--px) solid var(--line);
  box-shadow: 0 var(--px) 0 var(--bg-2);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-family: var(--pixel); font-size: 14px; flex: none; }
.nav nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 21px; }
.nav nav a:hover { color: var(--yellow); }
.nav-right { display: flex; gap: 8px; flex: none; }
.icon-btn {
  font-family: var(--pixel); font-size: 10px; color: var(--line); background: var(--green);
  border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--line); padding: 8px 10px; cursor: pointer;
}
.icon-btn[aria-pressed="true"] { background: var(--muted); }
.menu-btn { display: none; background: var(--yellow); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--pixel); font-size: 14px; line-height: 1.2;
  color: var(--line); background: var(--ink); text-decoration: none; cursor: pointer;
  padding: 16px 22px; border: var(--px) solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  transition: transform .05s steps(1), box-shadow .05s steps(1);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--line); }
.btn.primary { background: var(--yellow); }
.btn.cyan { background: var(--cyan); }
.btn.small { font-size: 10px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--line); flex: none; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn.pink { background: var(--pink); }

/* HERO */
.hero { position: relative; text-align: center; padding: 40px 0 150px; }
.hero > .stage, .hero > .title, .hero > p, .hero > .ca, .hero > .cta, .hero > .live, .hero > .socials { position: relative; z-index: 1; }
.scene { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 220px; transform: translateX(-50%); pointer-events: none; z-index: 0; overflow: hidden; }
.scene canvas { position: absolute; left: 50%; bottom: 0; width: 100vw; image-rendering: pixelated; transform: translateX(-50%); will-change: transform; }
#scene-far { height: 200px; opacity: .9; }
#scene-near { height: 180px; }
.orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orbit .o { position: absolute; pointer-events: auto; cursor: pointer; will-change: transform; }
.orbit canvas { display: block; animation: float 2.4s steps(6) infinite alternate; }
.orbit .o2 canvas { animation-delay: -.6s; } .orbit .o3 canvas { animation-delay: -1.2s; } .orbit .o4 canvas { animation-delay: -1.8s; }
.orbit .o.spin { animation: spin .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.35); } 100% { transform: rotate(360deg) scale(1); } }
.orbit .o1 { top: 40px; left: 4%; }
.orbit .o2 { top: 70px; right: 4%; animation-delay: -.6s; }
.orbit .o3 { top: 300px; left: 10%; animation-delay: -1.2s; }
.orbit .o4 { top: 280px; right: 10%; animation-delay: -1.8s; }
@keyframes float { from { transform: translateY(-10px) rotate(-6deg); } to { transform: translateY(10px) rotate(6deg); } }

.stage { position: relative; display: inline-block; z-index: 1; transform-style: preserve-3d; will-change: transform; }
.moon { position: absolute; left: 50%; top: 50%; z-index: -1; width: 98%; height: auto; aspect-ratio: 1; image-rendering: pixelated; transform: translate(-50%, -50%); filter: drop-shadow(0 0 60px rgba(255, 200, 110, .35)); pointer-events: none; }
.face {
  background: none; border: 0; padding: 0; cursor: pointer; margin: 0 auto;
  display: inline-block; animation: bob 1.6s steps(4) infinite;
  filter: drop-shadow(0 0 28px rgba(255, 79, 154, .35));
}
.face:active { transform: scale(.94); }
.face.laughing { animation: squash .55s cubic-bezier(.3, 1.6, .5, 1); }
.face.twitch { animation: twitch .35s steps(4); }
@keyframes squash { 0% { transform: scale(1); } 18% { transform: scale(1.2, .8); } 40% { transform: scale(.86, 1.16) translateY(-14px); } 65% { transform: scale(1.07, .94); } 100% { transform: scale(1); } }
@keyframes twitch { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 50% { transform: rotate(2.5deg) translateX(2px); } 75% { transform: rotate(-1deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes shake { 0% { transform: translate(-6px, 2px) rotate(-4deg); } 100% { transform: translate(6px, -2px) rotate(4deg); } }

.bubble {
  position: absolute; top: 12%; right: -24px; z-index: 2;
  background: #fff; color: #000; border: var(--px) solid var(--line); box-shadow: 4px 4px 0 var(--line);
  font-family: var(--pixel); font-size: 16px; padding: 10px 14px; pointer-events: none;
  transform: scale(0); transform-origin: bottom left;
}
.bubble::after { content: ""; position: absolute; left: 10px; bottom: -14px; width: 12px; height: 12px; background: #fff; border: var(--px) solid var(--line); border-top: 0; border-right: 0; }
.bubble.show { animation: bubble 1.2s steps(6) forwards; }
@keyframes bubble { 0% { transform: scale(0); } 15%, 80% { transform: scale(1); } 100% { transform: scale(0); } }

.title {
  font-family: var(--pixel);
  font-size: clamp(64px, 16vw, 150px);
  margin: 16px 0 8px; letter-spacing: 6px;
  color: var(--yellow);
  text-shadow: 6px 6px 0 var(--pink), 12px 12px 0 var(--line);
}
.title span { display: inline-block; animation: hop 1.2s steps(3) infinite, shine 4.5s linear infinite; }
.title span:nth-child(2) { animation-delay: .15s, .2s; }
.title span:nth-child(3) { animation-delay: .3s, .4s; }
@keyframes shine { 0%, 80%, 100% { filter: none; } 86% { filter: brightness(1.7) drop-shadow(0 0 10px rgba(255, 255, 255, .8)); } }
.title.glitch { text-shadow: -6px 0 var(--cyan), 6px 0 var(--pink), 12px 12px 0 var(--line); }
.title.glitch span { animation: glitch .38s steps(4); }
@keyframes glitch { 0% { transform: translate(-6px, 0); clip-path: inset(0 0 55% 0); } 25% { transform: translate(5px, -3px); clip-path: inset(40% 0 0 0); } 50% { transform: translate(-3px, 4px); clip-path: inset(20% 0 30% 0); } 75% { transform: translate(4px, 0); clip-path: none; } 100% { transform: none; } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
.tagline { font-size: 32px; color: var(--cyan); margin: 0; }
.hint { color: var(--muted); margin: 4px 0 26px; }

.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%; flex-wrap: wrap; justify-content: center;
  background: var(--bg-2); border: var(--px) solid var(--line);
  box-shadow: 6px 6px 0 var(--line); padding: 8px 8px 8px 14px;
}
.ca-label { font-family: var(--pixel); font-size: 11px; color: var(--pink); }
.ca code { font-family: var(--mono); font-size: 22px; overflow-wrap: anywhere; min-width: 0; text-align: left; user-select: all; }

.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.live { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 32px auto 0; border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--line); background: var(--bg-2); }
.live div { padding: 12px; border-right: var(--px) solid var(--line); }
.live div:last-child { border-right: 0; }
.live span { display: block; font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.live b { display: block; font-family: var(--pixel); font-size: 14px; margin-top: 8px; color: var(--yellow); }
.live b sub { font-size: .65em; vertical-align: -0.3em; }
.live b.up { color: var(--green); }
.live b.down { color: var(--red); }

.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.socials:empty { display: none; }
.laughs { color: var(--muted); margin-top: 26px; }
.laughs b { color: var(--yellow); }

.pop { position: fixed; pointer-events: none; z-index: 46; font-family: var(--pixel); color: var(--yellow); text-shadow: 3px 3px 0 var(--line); animation: rise 1s steps(8) forwards; }
@keyframes rise { to { transform: translateY(-120px); opacity: 0; } }

/* MARQUEE */
.marquee {
  margin: 24px -16px 0; overflow: hidden; white-space: nowrap;
  background: var(--yellow); color: var(--line);
  border-block: var(--px) solid var(--line);
  font-family: var(--pixel); font-size: 16px; padding: 12px 0;
  transform: rotate(-1.5deg);
}
.marquee.alt { background: var(--pink); transform: rotate(1.5deg); margin-top: 0; }
.marquee .track { display: inline-block; animation: scroll 30s linear infinite; }
.marquee.alt .track { animation-direction: reverse; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* WINDOWS */
.win {
  margin: 44px 0;
  background: rgba(22, 12, 58, .94);
  border: var(--px) solid var(--line);
  box-shadow: 10px 10px 0 var(--line);
}
.win-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-bottom: var(--px) solid var(--line);
  padding: 8px 12px; font-family: var(--pixel); font-size: 11px; color: #fff; text-shadow: 2px 2px 0 var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 16px; height: 16px; border: 3px solid var(--line); background: var(--yellow); }
.dots i:nth-child(2) { background: var(--green); }
.dots i:nth-child(3) { background: var(--red); }
.win-body { padding: 28px; }

/* Sections load in like a game level: a stepped top-to-bottom wipe (inset keeps the shadow). */
html.js .reveal { opacity: .25; clip-path: inset(-24px -24px calc(100% - 6px) -24px); transition: clip-path .6s steps(12), opacity .6s steps(6); }
html.js .reveal.in { opacity: 1; clip-path: inset(-24px -24px -24px -24px); }
.divider { margin: 0 -16px; background-repeat: repeat-x; background-position: 0 center; image-rendering: pixelated; animation: slide 9s linear infinite; }
@keyframes slide { to { background-position-x: var(--tw); } }

h2 { font-family: var(--pixel); font-size: clamp(18px, 3.2vw, 26px); color: var(--green); margin: 0 0 18px; line-height: 1.4; }
h2 .icon { width: 1.35em; height: auto; image-rendering: pixelated; vertical-align: -0.28em; margin-right: .55em; }
h3 { font-family: var(--pixel); font-size: 13px; color: var(--yellow); margin: 8px 0; line-height: 1.5; }
.sub { color: var(--muted); margin: -6px 0 22px; }
.sub b { color: var(--ink); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ABOUT */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lore p { margin: 0 0 14px; font-size: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.facts div { background: var(--bg); border: var(--px) solid var(--line); padding: 14px 10px; text-align: center; }
.facts b { display: block; font-family: var(--pixel); font-size: 20px; color: var(--pink); }
.facts span { color: var(--muted); font-size: 19px; }
.about-side { display: grid; gap: 18px; }
.cycler { margin: 0; text-align: center; background: var(--bg); border: var(--px) solid var(--line); padding: 16px; }
.cycler canvas { margin: 0 auto; }
.cycler figcaption { font-family: var(--pixel); font-size: 12px; color: var(--yellow); margin-top: 8px; }

.chat { background: #18181b; border: var(--px) solid var(--line); display: flex; flex-direction: column; }
.chat-head { font-family: var(--pixel); font-size: 10px; flex-wrap: wrap; color: var(--muted); padding: 10px 12px; border-bottom: 3px solid var(--line); background: #26262c; display: flex; align-items: center; gap: 8px; }
#viewers { color: var(--red); }
.chat-head em { font-style: normal; color: #8f8f9c; }
.live-dot { width: 10px; height: 10px; background: var(--red); animation: blink 1s steps(1) infinite; }
.chat-log { list-style: none; margin: 0; padding: 8px 12px; height: 220px; overflow-y: auto; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.chat-log li { margin: 2px 0; }
.chat-log li.mine { background: rgba(255,255,255,.07); }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 3px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }

/* INPUTS */
input:not([type]), input[type="text"], select {
  font-family: var(--mono); font-size: 22px; color: var(--ink); background: var(--bg);
  border: var(--px) solid var(--line); padding: 6px 10px; width: 100%; border-radius: 0;
}
input:focus, select:focus, button:focus-visible, canvas:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* MEMES */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.meme { margin: 0; background: var(--bg); border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--line); transition: transform .1s steps(2); }
.meme:nth-child(odd):hover { transform: rotate(-2deg) scale(1.02); }
.meme:nth-child(even):hover { transform: rotate(2deg) scale(1.02); }
.meme canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; cursor: pointer; }
.meme-actions { display: flex; gap: 10px; justify-content: center; padding: 12px; border-top: var(--px) solid var(--line); }

.maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.maker-preview canvas { display: block; width: 100%; max-width: 512px; height: auto; aspect-ratio: 1; border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--line); image-rendering: pixelated; background: #000; }
.maker-preview .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.maker-controls { display: grid; gap: 16px; }
.ctl { display: grid; gap: 8px; }
.ctl-label { font-family: var(--pixel); font-size: 10px; color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 0; width: 56px; height: 56px; background: var(--bg); border: var(--px) solid var(--line); cursor: pointer; display: grid; place-items: center; }
.chip canvas { width: 48px; height: 48px; image-rendering: pixelated; display: block; }
.chip[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--line); }
.chip:hover { border-color: var(--cyan); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.fry { background: var(--orange); }
.fry.on { background: var(--red); color: #fff; }
.range { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 10px; color: var(--pink); flex-basis: 100%; }
.range input { flex: 1; accent-color: var(--yellow); }
.range b { color: var(--ink); font-family: var(--mono); font-size: 22px; min-width: 3ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* PFP MAKER */
#pfp-canvas { display: block; width: 100%; max-width: 512px; height: auto; aspect-ratio: 1; border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--line); background: #000; touch-action: none; cursor: grab; }
#pfp-canvas:active { cursor: grabbing; }
#pfp-canvas.round { border-radius: 50%; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--pixel); font-size: 10px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg .btn { box-shadow: 3px 3px 0 var(--line); }
.seg .btn[aria-pressed="true"] { background: var(--yellow); }
.chip.swatch { width: 44px; height: 44px; }
.sel-tools { background: var(--bg); border: var(--px) dashed var(--yellow); padding: 12px; }
.sel-tools b { color: var(--yellow); }

/* ARCADE */
.arcade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
.cabinet { background: linear-gradient(var(--purple), var(--bg-3)); border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--line); padding: 14px; width: 392px; max-width: 100%; }
.cab-top, .cab-bottom { font-family: var(--pixel); text-align: center; color: var(--yellow); text-shadow: 3px 3px 0 var(--line); }
.cab-top { font-size: 18px; margin: 4px 0 12px; }
.cab-bottom { font-size: 10px; margin: 12px 0 2px; color: var(--ink); }
#game { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border: var(--px) solid var(--line); image-rendering: pixelated; touch-action: manipulation; cursor: pointer; background: #0b0620; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.share-score { margin-bottom: 26px; }
.scores div { background: var(--bg); border: var(--px) solid var(--line); padding: 14px; text-align: center; }
.scores span { display: block; font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.scores b { display: block; font-family: var(--pixel); font-size: 28px; color: var(--green); margin-top: 10px; }
.soundboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.soundboard .btn { padding: 16px 8px; }

/* BUY */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { background: var(--bg); border: var(--px) solid var(--line); padding: 18px; position: relative; }
.steps li canvas { position: absolute; top: -6px; right: -2px; }
.steps p { margin: 6px 0 0; }
.num { font-family: var(--pixel); font-size: 26px; color: var(--pink); }
.warn { margin: 22px 0 0; color: var(--pink); }

/* TOKENOMICS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat { background: var(--bg); border: var(--px) solid var(--line); padding: 18px; text-align: center; }
.stat canvas { margin: 0 auto 6px; }
.stat .label { color: var(--muted); font-size: 22px; }
.stat .value { font-family: var(--pixel); font-size: 18px; color: var(--cyan); margin-top: 10px; word-break: break-word; line-height: 1.5; }

/* ROADMAP */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.phase { position: relative; background: var(--bg); border: var(--px) solid var(--line); padding: 18px; }
.phase.now { border-color: var(--yellow); box-shadow: 6px 6px 0 var(--line); }
.phase.past { opacity: .75; }
.here { position: absolute; top: -14px; right: 10px; background: var(--yellow); color: var(--line); font-family: var(--pixel); font-size: 10px; padding: 6px 8px; border: 3px solid var(--line); animation: blink 1.2s steps(1) infinite; }
.phase ul { list-style: none; padding: 0; margin: 10px 0 0; }
.phase li { padding-left: 34px; position: relative; margin: 6px 0; }
.phase li::before { content: "[ ]"; position: absolute; left: 0; color: var(--muted); }
.phase li.done::before { content: "[x]"; color: var(--green); }
.phase li.done { color: var(--green); }

/* DEGENS */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.quote { margin: 0; display: flex; gap: 14px; align-items: flex-start; background: var(--ink); color: var(--line); border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--line); padding: 16px; transform: rotate(-1deg); }
.quote:nth-child(even) { transform: rotate(1deg); background: #fff3c4; }
.quote canvas { flex: none; background: var(--bg-2); border: 3px solid var(--line); }
.quote blockquote { margin: 0; font-size: 22px; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--pixel); font-size: 10px; color: #6b3fa0; }
.fine { color: var(--muted); font-size: 18px; margin: 20px 0 0; }

/* CHART */
.chart-frame { border: var(--px) solid var(--line); background: #000; min-height: 420px; display: grid; place-items: center; }
.chart-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
.placeholder { font-family: var(--pixel); font-size: 18px; color: var(--yellow); text-align: center; animation: blink 1.4s steps(1) infinite; line-height: 2; padding: 0 16px; }
.placeholder small { font-family: var(--mono); font-size: 22px; color: var(--muted); }

/* FAQ */
.faq details { background: var(--bg); border: var(--px) solid var(--line); margin-bottom: 12px; }
.faq summary { font-family: var(--pixel); font-size: 12px; line-height: 1.6; padding: 16px 48px 16px 16px; cursor: pointer; list-style: none; position: relative; color: var(--yellow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 18px; color: var(--pink); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0; padding: 0 16px 16px; }

/* FOOTER */
footer { text-align: center; padding: 30px 16px 60px; color: var(--muted); max-width: 760px; margin: 0 auto; }
.giant { font-family: var(--pixel); font-size: clamp(72px, 22vw, 220px); color: var(--yellow); text-shadow: 8px 8px 0 var(--pink), 16px 16px 0 var(--line); line-height: 1.1; }
footer .copy { font-family: var(--pixel); font-size: 10px; }
.secret { color: #8a7cc9; font-size: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); z-index: 60;
  background: var(--green); color: var(--line); border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--line);
  font-family: var(--pixel); font-size: 12px; padding: 14px 18px; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: transform .15s steps(3);
}
.toast.show { transform: translate(-50%, 0); }

/* XDD MODE (Konami) */
body.xdd-mode main, body.xdd-mode footer { animation: hue 1.2s linear infinite, wobble .3s steps(2) infinite; }
@keyframes hue { to { filter: hue-rotate(360deg) saturate(2); } }
@keyframes wobble { 0% { transform: rotate(-.6deg); } 100% { transform: rotate(.6deg); } }

/* SCREEN SHAKE (celebrations) */
body.shake main, body.shake footer { animation: bodyshake .42s steps(6); }
@keyframes bodyshake { 0%, 100% { transform: none; } 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, -3px); } 80% { transform: translate(4px, 3px); } }

/* FLOATING DOCK: music + back-to-top rocket */
.dock-btn {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  font-family: var(--pixel); font-size: 10px; color: var(--line); background: var(--ink); cursor: pointer;
  border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); padding: 10px 12px;
}
.dock-btn:active { transform: translate(4px, 4px); box-shadow: none; }
.dock-left { left: 16px; }
.dock-left.on { background: var(--green); animation: beat .45s steps(2) infinite; }
@keyframes beat { 50% { transform: translateY(-3px); } }
.dock-right { right: 16px; padding: 6px 10px; background: var(--bg-2); }
#rocket { display: block; width: 30px; height: 40px; image-rendering: pixelated; }
.dock-right:hover #rocket { animation: rumble .1s steps(2) infinite; }
@keyframes rumble { 50% { transform: translate(1px, -1px); } }
.dock-right.launch { animation: launch 1s cubic-bezier(.5, 0, .9, .4) forwards; }
@keyframes launch { 0% { transform: translateY(0); } 15% { transform: translateY(6px); } 100% { transform: translateY(-110vh); } }

/* LOW EFFECTS (FX OFF) */
body.lowfx .divider, body.lowfx .dock-left.on, body.lowfx .title span { animation: none; }
body.lowfx .crt, body.lowfx #rain { display: none; }
body.lowfx .orbit canvas, body.lowfx .face, body.lowfx .title span, body.lowfx .marquee .track, body.lowfx .blink, body.lowfx .live-dot { animation: none; }

/* RESPONSIVE */
@media (max-width: 1260px) {
  .menu-btn { display: block; }
  .nav nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: var(--px) solid var(--line);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 20px; border-top: 2px solid var(--bg-3); font-size: 24px; }
}
@media (max-width: 900px) {
  .about, .maker, .arcade { grid-template-columns: minmax(0, 1fr); }
  .cabinet { margin: 0 auto; }
  .orbit .o3, .orbit .o4 { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 20px; }
  .nav { padding: 10px 14px; }
  .hero { padding-top: 28px; }
  .face canvas { width: 240px !important; height: 240px !important; }
  .orbit canvas { width: 48px !important; height: 48px !important; }
  .hero { padding-bottom: 120px; }
  .scene { height: 160px; }
  #scene-far { height: 140px; } #scene-near { height: 120px; }
  .dock-btn { font-size: 14px; padding: 7px 11px; }
  .dock-label { display: none; }
  .orbit .o1 { top: 16px; left: 0; }
  .orbit .o2 { top: 16px; right: 0; }
  .bubble { right: -6px; font-size: 12px; }
  .live { grid-template-columns: 1fr 1fr; }
  .live div:nth-child(2) { border-right: 0; }
  .live div:nth-child(-n+2) { border-bottom: var(--px) solid var(--line); }
  .win { box-shadow: 6px 6px 0 var(--line); margin: 36px 0; }
  .win-body { padding: 18px; }
  .facts { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .chart-frame iframe { height: 460px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .meme-actions { gap: 6px; padding: 8px; }
  .meme-actions .btn { padding: 8px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; clip-path: none; }
  .bubble.show { transform: scale(1); }
}
