
/* Layout: one arcade cabinet — HUD bar, a framed game screen as hero, levels as cards, settings as a scoreboard. */
:root {
  --bg: #090c09;          /* cabinet black */
  --panel: #0f150f;       /* screen bezel */
  --line: #273025;        /* pixel rules */
  --dim: #35573c;         /* inactive pixels */
  --muted: #8a9786;       /* body copy on black */
  --text: #e3eadf;        /* headings */
  --lime: #b4fa56;        /* the pill */
  --lime-deep: #6ea03c;   /* extrusion */
  --ink: #0b120b;         /* text on lime */
  --display: "Pill Screen", "Courier New", monospace;
  --body: "Pill Pixel", "Trebuchet MS", system-ui, sans-serif;
  --mono: "Pill Pixel", ui-monospace, Menlo, monospace;
  --step--1: .8rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.75rem; --step-3: 2.6rem; --step-4: clamp(3rem, 9vw, 6.4rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--muted); font-family: var(--body); font-size: var(--step-0); line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--display); font-size: var(--step--1); letter-spacing: .08em; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--lime); }
.chip { font-family: var(--display); font-size: var(--step--1); letter-spacing: .08em; border: 2px solid var(--line); padding: 6px 10px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.chip i { width: 7px; height: 7px; background: var(--lime); display: inline-block; }
.btn { font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-decoration: none; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; background: var(--lime); color: var(--ink); border: 0; box-shadow: 4px 4px 0 var(--lime-deep), 8px 8px 0 #1c2c16; transition: transform .08s, box-shadow .08s; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--lime-deep), 9px 9px 0 #1c2c16; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--lime-deep); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--lime); color: var(--lime); transform: none; }
.btn.small { padding: 8px 14px; box-shadow: 3px 3px 0 var(--lime-deep); font-size: var(--step--1); }

/* ---------- hero ---------- */
.hero { padding-block: 56px 40px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.press { font-family: var(--display); font-size: var(--step--1); letter-spacing: .3em; color: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.word { font-family: var(--display); font-weight: 700; font-size: var(--step-4); line-height: .95; letter-spacing: .02em; margin: 0; color: var(--lime);
  background: linear-gradient(180deg, #f4fbe9 0 22%, #d9ffb0 22% 42%, var(--lime) 42% 78%, #8fd04a 78%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 var(--lime-deep)) drop-shadow(3px 3px 0 #2b4a1e) drop-shadow(2px 2px 0 #050805); }
.tag { font-family: var(--display); font-size: var(--step-1); color: var(--text); margin: 0; letter-spacing: .04em; text-wrap: balance; }
.screen { width: 100%; max-width: 960px; background: var(--panel); border: 2px solid var(--line); padding: 10px; box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--line); }
.hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 8px 10px 12px; font-family: var(--display); font-size: .72rem; letter-spacing: .08em; text-align: left; }
.hud b { display: block; color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; }
.hud .bar { display: block; height: 8px; border: 2px solid var(--dim); margin-top: 6px; position: relative; overflow: hidden; }
.hud .bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--lime); animation: fill 8s steps(16) infinite; }
@keyframes fill { to { width: 100%; } }
.vid { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vid video, .vid img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; }
.vid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.screen-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 6px 2px; font-family: var(--display); font-size: .7rem; letter-spacing: .08em; }
.screen-foot button { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: inherit; }
.screen-foot button:hover { color: var(--lime); }
.ctas { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lede { max-width: 52ch; margin: 0; color: var(--muted); font-size: var(--step-1); text-wrap: balance; }

/* ---------- status strip ---------- */
.status { border-block: 2px solid var(--line); background: var(--panel); }
.status .wrap { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; padding-block: 14px; font-size: .95rem; }
.status strong { font-family: var(--display); color: var(--lime); letter-spacing: .1em; font-size: .8rem; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.eyebrow { font-family: var(--display); font-size: var(--step--1); letter-spacing: .2em; color: var(--lime); margin: 0 0 10px; }
h2 { font-family: var(--display); color: var(--text); font-size: var(--step-3); line-height: 1.05; margin: 0 0 14px; text-wrap: balance; letter-spacing: .01em; }
.sub { max-width: 60ch; margin: 0 0 36px; }

.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.level { background: var(--panel); border: 2px solid var(--line); display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, transform .15s; }
.level:hover { border-color: var(--dim); transform: translateY(-3px); }
.level .vid { aspect-ratio: 4 / 3; border-bottom: 2px solid var(--line); }
.level .body { padding: 16px 16px 18px; display: grid; gap: 8px; }
.level .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--display); font-size: .7rem; letter-spacing: .1em; }
.state { padding: 3px 7px; border: 2px solid currentColor; }
.state.live { color: var(--lime); }
.state.soon { color: var(--muted); border-style: dashed; }
.level h3 { font-family: var(--display); color: var(--text); font-size: var(--step-1); margin: 4px 0 0; letter-spacing: .02em; }
.level p { margin: 0; font-size: .95rem; }

/* scoreboard */
.board { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.score { border: 2px solid var(--line); background: var(--panel); }
.score div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 2px dashed var(--line); font-family: var(--display); font-size: .8rem; letter-spacing: .08em; }
.score div:last-child { border-bottom: 0; }
.score b { color: var(--lime); font-variant-numeric: tabular-nums; font-size: 1rem; text-align: right; }
.note { font-family: var(--mono); font-size: .82rem; line-height: 1.6; color: var(--muted); border-left: 2px solid var(--dim); padding-left: 14px; margin: 18px 0 0; max-width: 60ch; }

.final { text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: 80px 96px; }
.final .word { font-size: clamp(2.4rem, 7vw, 4.6rem); }
footer { border-top: 2px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 22px; font-size: .85rem; }
footer nav { display: flex; gap: 18px; font-family: var(--display); font-size: .72rem; letter-spacing: .1em; }
footer a { text-decoration: none; }
footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top .chip.net { display: none; }
  .levels { grid-template-columns: 1fr; }
  .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-block: 52px; }
  .hero { padding-block: 36px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .press, .hud .bar::after { animation: none; }
  .hud .bar::after { width: 40%; }
  .btn, .level { transition: none; }
}

/* Live application shell and shared motion controls. */
.top{width:100%;height:auto;padding:0;margin:0}.top .wrap{width:100%}.top .brand .logo-motion{width:29px;height:29px}.top .brand img{width:100%;height:100%}.top .header-right{gap:9px}.top .nav{margin-left:auto}.top .nav a{font-size:12px}.top .wallet{color:var(--ink);font-size:11px}.top .motion-switch{flex-shrink:0}.hero{padding-block:38px 42px;gap:22px}.screen{max-width:820px}.word{display:flex;align-items:center;gap:14px}.word .logo-motion{width:72px;height:72px;-webkit-text-fill-color:initial;filter:none}.word .logo-motion img{width:100%;height:100%}.hero .tag{font-size:18px}.hero .lede{font-size:19px}.screen-foot .film-note{font-family:var(--body);font-size:12px;letter-spacing:0;color:var(--muted)}.film-context{margin:8px 0 0;font-size:13px;color:var(--muted)}.hud{font-size:10px}.hud b{font-size:12px}.hero .ctas{margin-top:2px}.status{font-family:var(--body)}.status strong{font-size:10px}.score b{font-size:12px}.screen-foot button{padding:3px;min-height:24px}footer{margin-top:0}.hero .btn,.final .btn{font-size:13px}.level h3{font-size:15px}.level .row{font-size:8px}.level .state{padding:3px 5px}.level .vid{aspect-ratio:4/3}section h2{font-size:30px}.note{font-size:14px}.hero h1{margin:0}.final .word{font-size:44px}.hero .press{font-size:11px}.top nav{margin-left:0}.top .nav{margin-left:auto}.score{overflow-wrap:anywhere}.top .btn.small{white-space:nowrap}.final{padding-bottom:80px}
html[data-motion-paused="true"] .press,html[data-motion-paused="true"] .hud .bar:after{animation-play-state:paused}
@media(max-width:640px){.word .logo-motion{width:45px;height:45px}.word{gap:8px}.hero .tag{font-size:12px}.top .wrap{gap:12px;padding-block:12px}.brand{font-size:14px}.hero{padding-block:27px}.hero .lede{font-size:17px}.hud{font-size:9px}.hero .btn{font-size:11px}.screen{padding:6px}.screen-foot{font-size:9px}.score div{font-size:10px}.score b{font-size:11px}.screen-foot .film-note{font-size:10px}.top .chip.net{display:none}.top .header-right{margin-left:auto}.status .wrap{gap:8px;padding-block:13px}.final .word{font-size:34px}.level .row{font-size:10px}.level h3{font-size:18px}}

/* Full-viewport moving hero, with the navigation and wordmark above the film. */
body[data-page="home"] .top{position:absolute;inset:0 0 auto;z-index:5;background:transparent;backdrop-filter:none;border:0}
body[data-page="home"] .top .wrap{padding-block:21px;max-width:1280px}
body[data-page="home"] .top .nav a{color:#e3eadf;text-shadow:0 2px 12px #000}
body[data-page="home"] .top .nav a:hover{color:var(--lime)}
.hero.hero-fullscreen{position:relative;isolation:isolate;width:100%;max-width:none;min-height:100svh;margin:0;padding:120px 24px 100px;display:grid;place-items:center;overflow:hidden;background:#070b07}
.hero-fullscreen .hero-background{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;object-position:center 65%;image-rendering:pixelated;pointer-events:none}
.hero-fullscreen::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#050905b8 0%,#05090526 28%,#05090545 72%,#090c09bf 100%),radial-gradient(ellipse at center,#050905a6 0%,#05090538 58%,#05090526 100%);pointer-events:none}
.hero-content{width:min(100%,1050px);position:relative;display:grid;justify-items:center;gap:25px;text-align:center;transform:translateY(-2vh)}
.hero-fullscreen .word{justify-content:center;font-size:clamp(48px,8.5vw,112px);line-height:1.1;white-space:nowrap;filter:drop-shadow(3px 3px 0 #547a31) drop-shadow(3px 3px 0 #0a1508)}
.hero-fullscreen .word .logo-motion{width:clamp(48px,7vw,88px);height:clamp(48px,7vw,88px)}
.hero-fullscreen .tag{font-size:clamp(12px,1.4vw,18px);line-height:1.6;color:#f1f6e9;text-shadow:0 2px 10px #000;margin:0}
.hero-fullscreen .ctas{margin-top:12px;gap:20px}
.hero-fullscreen .btn.ghost{background:#080e08b8;box-shadow:inset 0 0 0 2px #7e9469;color:#edf6e5}
.hero-fullscreen .btn.ghost:hover{box-shadow:inset 0 0 0 2px var(--lime)}
@media(max-width:640px){body[data-page="home"] .top .wrap{padding:16px 20px}.hero.hero-fullscreen{min-height:100svh;padding:110px 18px 85px}.hero-content{gap:20px;transform:translateY(-3vh)}.hero-fullscreen .word{font-size:clamp(34px,8.5vw,54px);gap:9px}.hero-fullscreen .word .logo-motion{width:40px;height:40px}.hero-fullscreen .hero-background{object-position:44% center}.hero-fullscreen .ctas{gap:15px;flex-direction:column;align-items:stretch;width:min(260px,100%)}.hero-fullscreen .ctas .btn{justify-content:center;min-height:48px}.hero-fullscreen .tag{font-size:11px;letter-spacing:.08em}}

/* Uploaded tokenomics loops are 640×480: preserve every edge at all breakpoints. */
.level .vid{aspect-ratio:4/3;background:#080d09;flex:none}
.level .vid video,.level .vid img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;image-rendering:pixelated}
.levels{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media(max-width:640px){.levels{grid-template-columns:1fr;gap:20px}}

@media(min-width:641px) and (max-width:900px){.levels{grid-template-columns:repeat(2,minmax(0,1fr))}}
