/* Block Beat — marketing site. Midnight hardware, amber screen, glowing pads. */

@font-face { font-family: "Doto"; src: url("../fonts/Doto.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08080a;
  --body: #111114;
  --panel: #16161a;
  --well: #0c0c0f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --dim: #a8a8b0;
  --label: #7e7e86;
  --amber: #ffb547;
  --amber-hi: #ffc266;
  --amber-lo: #7a5724;
  --oled: #0b0806;
  --on-amber: #2a1703;
  --red: #ff3b6b;
  --orange: #ffb020;
  --green: #22e0a0;
  --blue: #3d7bff;
  --violet: #b45cff;
  --cyan: #22c7ff;
  --goo: #8ce63a;
  --ice: #bfe9f7;
  --radius: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dot: "Doto", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255, 181, 71, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--on-amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 8px 14px; border-radius: 99px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(34px, 5.4vw, 64px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 60ch; }
.dot { font-family: var(--dot); font-weight: 900; letter-spacing: 0.02em; }
.glow { color: var(--amber-hi); text-shadow: 0 0 18px rgba(255, 181, 71, 0.75); }
.grad {
  background: linear-gradient(92deg, #ff3b6b 0%, #ffb020 26%, #22e0a0 52%, #22c7ff 74%, #b45cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: hue 8s linear infinite;
}
@keyframes hue { to { background-position: -200% 0; } }

/* ---------- glass + buttons ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 34px rgba(0, 0, 0, 0.45);
}
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.3s;
  position: relative; isolation: isolate; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-amber {
  background: linear-gradient(180deg, #ffc66b, #ffab35); color: var(--on-amber);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(120, 60, 0, 0.3), 0 14px 40px rgba(255, 160, 50, 0.35);
}
.btn-amber:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 60px rgba(255, 160, 50, 0.55); }
.btn-glass { color: var(--text); }
.btn small { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.28); text-decoration: none; transition: transform .25s var(--ease-spring), border-color .3s; }
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.6); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { font: 500 11px var(--font); opacity: 0.8; }
.store-badge b { font: 700 20px var(--font); letter-spacing: -0.02em; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav .bar {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 14px; border-radius: 999px;
  width: min(var(--max), 100% - 24px); margin-inline: auto; transition: background 0.3s, box-shadow 0.3s;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 20px rgba(255, 181, 71, 0.35); }
.nav .links { display: flex; gap: 2px; margin-left: auto; }
.nav .links a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav .links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav .btn { --h: 44px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; color: var(--text); background: rgba(255,255,255,0.08); cursor: pointer; }
@media (max-width: 860px) {
  .nav .links { display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 24px; }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 14px 16px; font-size: 16px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .bar > .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 60px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(255, 59, 107, 0.16), transparent 70%),
    radial-gradient(35% 35% at 80% 20%, rgba(34, 199, 255, 0.14), transparent 70%),
    radial-gradient(40% 40% at 60% 80%, rgba(180, 92, 255, 0.14), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) rotate(4deg); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(48px, 8.2vw, 112px); line-height: 0.92; letter-spacing: -0.055em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin: 26px 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill { font: 600 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); display: inline-flex; gap: 8px; align-items: center; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.fade-in { opacity: 0; transform: translateY(18px); animation: fade 1s var(--ease-out) forwards; }
@keyframes fade { to { opacity: 1; transform: none; } }

/* The live board: an 8x8 pad controller that plays itself. */
.device {
  position: relative; border-radius: 34px; padding: 18px;
  background: linear-gradient(180deg, #1c1c21, #0d0d10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 90px rgba(0,0,0,0.65), 0 0 120px rgba(255, 181, 71, 0.08);
  transform: perspective(1400px) rotateX(var(--rx, 8deg)) rotateY(var(--ry, -10deg));
  transition: transform 0.6s var(--ease-out);
}
.device .screen {
  border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; position: relative; overflow: hidden;
  background-color: var(--oled);
  background-image: linear-gradient(155deg, rgba(255,255,255,0.08), transparent 36%), repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.95);
  display: flex; justify-content: space-between; align-items: flex-end; min-height: 84px;
}
.screen .label { font: 900 12px var(--dot); color: var(--amber-lo); letter-spacing: 0.04em; }
.screen .score { font: 900 50px/0.9 var(--dot); color: var(--amber-hi); text-shadow: 0 0 16px rgba(255,181,71,0.8); }
.screen .praise { font: 900 20px var(--dot); color: var(--amber-hi); text-shadow: 0 0 12px rgba(255,181,71,0.8); opacity: 0; transform: scale(0.6); transition: opacity .2s, transform .35s var(--ease-spring); }
.screen .praise.show { opacity: 1; transform: none; }
.screen .fever { color: #ff5a4a; text-shadow: 0 0 12px rgba(255, 59, 74, 0.9); }
.board {
  --cell: clamp(30px, 5.2vw, 50px);
  display: grid; grid-template-columns: repeat(8, var(--cell)); gap: 5px; padding: 12px; border-radius: 18px;
  background: var(--well); box-shadow: inset 0 3px 12px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.06);
  position: relative; touch-action: manipulation;
}
.pad {
  width: var(--cell); height: var(--cell); border-radius: 22%; border: 0; padding: 0; cursor: pointer; position: relative;
  background: #18181c; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -2px 4px rgba(0,0,0,0.55);
  transition: background 0.18s, box-shadow 0.25s, transform 0.25s var(--ease-spring);
}
.pad.on {
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 45%, white) 0%, var(--c) 50%);
  box-shadow: 0 0 calc(var(--cell) * 0.35) color-mix(in srgb, var(--c) 70%, transparent), 0 0 calc(var(--cell) * 0.9) color-mix(in srgb, var(--c) 25%, transparent), inset 0 1px 0 rgba(255,255,255,0.55);
}
.pad.land { animation: land 0.32s var(--ease-spring); }
@keyframes land { 0% { transform: scale(0.6) translateY(-8px); } 60% { transform: scale(1.1, 0.9); } 100% { transform: none; } }
.pad.clear { animation: pop 0.42s var(--ease-out) forwards; }
@keyframes pop { 0% { transform: scale(1); background: #fff; box-shadow: 0 0 30px #fff; } 40% { transform: scale(1.18); background: #fff; } 100% { transform: scale(0.2) rotate(40deg); opacity: 0; } }
.pad.ghost { background: color-mix(in srgb, var(--c) 30%, #18181c); }
.pad.tap { animation: tap 0.5s var(--ease-out); }
@keyframes tap { 0% { transform: scale(0.86); background: var(--c); box-shadow: 0 0 40px var(--c); } 100% { transform: none; } }
.shard { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 5; will-change: transform, opacity; }
.ring { position: absolute; border-radius: 50%; border: 3px solid var(--amber); pointer-events: none; z-index: 4; animation: ring 0.6s var(--ease-out) forwards; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(0.1); opacity: 1; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.tray { display: flex; justify-content: space-around; gap: 10px; margin-top: 14px; }
.tray .slot { flex: 1; height: 74px; border-radius: 14px; background: var(--well); box-shadow: inset 0 3px 10px rgba(0,0,0,0.9); display: grid; place-items: center; }
.mini { display: grid; gap: 3px; }
.mini i { width: 14px; height: 14px; border-radius: 4px; }
.mini i.on { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 45%, white), var(--c) 50%); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.sound-toggle { position: absolute; top: -16px; right: 18px; --h: 38px; padding: 0 14px; font-size: 13px; z-index: 6; }
.sound-toggle .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-toggle .bars b { width: 3px; background: currentColor; border-radius: 1px; height: 30%; }
.sound-toggle.on .bars b { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-toggle.on .bars b:nth-child(2) { animation-delay: -0.3s; } .sound-toggle.on .bars b:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }
.hint { text-align: center; font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin-top: 14px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { justify-self: center; }
  .device { --rx: 0deg !important; --ry: 0deg !important; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: #0b0806; overflow: hidden; position: relative; }
.ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 3px); }
.ticker .track { display: flex; gap: 56px; width: max-content; padding: 16px 0; animation: scroll 40s linear infinite; font: 900 20px var(--dot); color: var(--amber-hi); text-shadow: 0 0 12px rgba(255,181,71,0.7); white-space: nowrap; }
.ticker .track span::before { content: "▸ "; color: var(--amber-lo); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.head.center { text-align: center; margin-inline: auto; justify-items: center; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.card {
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #17171b, #0f0f12); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.35);
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 60px color-mix(in srgb, var(--accent, #ffb547) 18%, transparent); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent, #ffb547) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card p { color: var(--dim); margin: 10px 0 0; }
.card .tag { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, var(--amber)); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode .art { height: 170px; border-radius: 16px; background: var(--well); box-shadow: inset 0 3px 12px rgba(0,0,0,0.9); margin-bottom: 22px; display: grid; place-items: center; position: relative; overflow: hidden; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }

/* OLED panel */
.oled {
  border-radius: 18px; padding: 18px 20px; position: relative; overflow: hidden;
  background-color: var(--oled);
  background-image: linear-gradient(155deg, rgba(255,255,255,0.07), transparent 36%), repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.95), 0 0 0 7px #151518, 0 0 0 8px rgba(255,255,255,0.06), 0 30px 60px rgba(0,0,0,0.5);
}

/* Song */
.song { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.roll { position: relative; height: 220px; }
.roll .note { position: absolute; height: 12px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0.35; transition: opacity .15s, transform .2s var(--ease-spring); }
.roll .note.lit { opacity: 1; transform: scaleY(1.5); }
.roll .head-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber-hi); box-shadow: 0 0 12px var(--amber); left: 0; opacity: 0; }
.kits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: 600 13px var(--font); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); cursor: pointer; transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); border-color: transparent; box-shadow: 0 0 24px rgba(255,181,71,0.4); }
.player { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.play svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .song { grid-template-columns: 1fr; } }

/* Journey blockers */
.blockers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.blocker { text-align: left; padding: 22px; }
.blocker .tile { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 18px; position: relative; display: grid; place-items: center; }
.blocker h3 { font-size: 19px; }
.blocker .lvl { font: 600 11px var(--mono); color: var(--label); letter-spacing: 0.1em; }
.t-ice { background: linear-gradient(145deg, #cfefff, #3d7bff 60%); box-shadow: 0 0 22px rgba(61,123,255,.6); }
.t-ice::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(191,233,247,.35)); border: 2px solid rgba(255,255,255,.8); }
.t-ice::before { content: ""; position: absolute; width: 60%; height: 2px; background: #fff; transform: rotate(-40deg); z-index: 1; box-shadow: 8px 8px 0 -0px rgba(255,255,255,.7); }
.t-gem { background: linear-gradient(145deg, #e8c7ff, #b45cff 60%); box-shadow: 0 0 22px rgba(180,92,255,.6); }
.t-gem i { width: 28px; height: 28px; background: linear-gradient(#fff, #bff6ff 50%, #5fd7ff); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); filter: drop-shadow(0 0 8px #fff); animation: gem 1.6s ease-in-out infinite alternate; }
@keyframes gem { to { transform: scale(1.15) rotate(8deg); } }
.t-cage { background: #24242a; border: 2px solid #8a8e98; }
.t-cage i { position: absolute; inset: 8px 12px; background: repeating-linear-gradient(90deg, #c9ced8 0 5px, transparent 5px 14px); border-radius: 4px; }
.t-bomb { background: linear-gradient(145deg, #ffb3c4, #ff3b6b 60%); box-shadow: 0 0 22px rgba(255,59,107,.6); }
.t-bomb b { width: 42px; height: 42px; border-radius: 50%; background: #16161a; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; font: 900 20px var(--dot); text-shadow: 0 0 8px var(--red); animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { transform: scale(1.12); box-shadow: 0 0 24px var(--red); } }
.t-goo { border-radius: 40%; background: radial-gradient(circle at 35% 30%, #d6ff8a, var(--goo) 50%, #3f8f12); box-shadow: 0 0 22px rgba(140,230,58,.6); animation: goo 1.4s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes goo { to { transform: scale(1.08, 0.9); border-radius: 46% 38% 44% 40%; } }
@media (max-width: 1000px) { .blockers { grid-template-columns: repeat(2, 1fr); } .blocker:last-child { grid-column: span 2; } }
.difficulty { display: flex; gap: 6px; align-items: flex-end; margin-top: 40px; height: 120px; padding: 18px; }
.difficulty i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--amber); opacity: .85; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease-spring); transition-delay: calc(var(--i) * 25ms); }
.difficulty.in i { transform: scaleY(1); }
.difficulty i.hard { background: var(--red); box-shadow: 0 0 12px var(--red); }
.difficulty i.boss { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-top: 12px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--c); vertical-align: -1px; }

/* Phones */
.phones { position: relative; overflow-x: clip; overflow-y: visible; height: clamp(540px, 52vw, 700px); display: flex; justify-content: center; align-items: center; perspective: 1600px; }
.phone {
  /* iPhone 16 Pro proportions: a thin black bezel, titanium rim, 55pt corners on a 402pt-wide screen. */
  --w: clamp(210px, 24vw, 300px);
  position: absolute; width: var(--w); padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.175);
  background: #050506;
  box-shadow:
    0 0 0 calc(var(--w) * 0.012) #2b2b30,
    0 0 0 calc(var(--w) * 0.016) #6d6d74,
    0 0 0 calc(var(--w) * 0.019) #1c1c20,
    0 50px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 181, 71, 0.06);
  transition: transform 1s var(--ease-out);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: calc(var(--w) * 0.145); background: #000;
}
/* Dynamic Island */
.phone::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.058); transform: translateX(-50%);
  width: calc(var(--w) * 0.31); height: calc(var(--w) * 0.09); border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
/* Side buttons: action + volume on the left, power and camera control on the right. */
.phone i { position: absolute; width: calc(var(--w) * 0.012); border-radius: 2px; background: linear-gradient(90deg, #4a4a52, #7a7a82 50%, #3a3a40); }
.phone i.l { left: calc(var(--w) * -0.031); }
.phone i.r { right: calc(var(--w) * -0.031); }
.phone i.action { top: 17%; height: 5%; }
.phone i.vup { top: 25%; height: 9%; }
.phone i.vdown { top: 36%; height: 9%; }
.phone i.power { top: 27%; height: 14%; }
.phone i.cam { top: 60%; height: 7%; }
.phone.p1 { transform: translateX(-72%) rotateY(18deg) rotateZ(-4deg) scale(0.86); z-index: 1; }
.phone.p2 { z-index: 3; transform: translateY(-2%); }
.phone.p3 { transform: translateX(72%) rotateY(-18deg) rotateZ(4deg) scale(0.86); z-index: 1; }
.phones.fan .phone.p1 { transform: translateX(-98%) rotateY(22deg) rotateZ(-6deg) scale(0.84); }
.phones.fan .phone.p3 { transform: translateX(98%) rotateY(-22deg) rotateZ(6deg) scale(0.84); }
@media (max-width: 700px) { .phone.p1, .phones.fan .phone.p1 { transform: translateX(-52%) rotateZ(-6deg) scale(0.78); } .phone.p3, .phones.fan .phone.p3 { transform: translateX(52%) rotateZ(6deg) scale(0.78); } }

/* Blip */
.blip { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.blip-stage { aspect-ratio: 1; display: grid; place-items: center; }
.blip-stage canvas { width: min(100%, 360px); image-rendering: pixelated; filter: drop-shadow(0 0 14px rgba(255,181,71,0.65)); }
.outfit-name { font: 900 22px var(--dot); color: var(--amber-hi); text-shadow: 0 0 12px rgba(255,181,71,.7); text-align: center; min-height: 30px; margin-top: 8px; }
@media (max-width: 900px) { .blip { grid-template-columns: 1fr; } }

/* Collection counters */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; margin-top: 30px; }
.count { text-align: center; padding: 22px 12px; }
.count .n { font: 900 clamp(34px, 3.6vw, 50px)/1 var(--dot); color: var(--amber-hi); text-shadow: 0 0 18px rgba(255,181,71,.8); }
.count .l { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-lo); margin-top: 10px; }
@media (max-width: 860px) { .counts { grid-template-columns: repeat(2, 1fr); } .count:first-child { grid-column: span 2; } }
.count:first-child .n { color: var(--green); text-shadow: 0 0 18px rgba(34,224,160,.7); }

/* Seasons */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.season { padding: 22px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; --accent: var(--c); }
.season .dates { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.season h3 { color: var(--text); }
.season .swatches { display: flex; gap: 5px; margin-top: 16px; }
.season .swatches i { width: 18px; height: 18px; border-radius: 5px; background: var(--s); box-shadow: 0 0 10px var(--s); }
.season.live { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 50px color-mix(in srgb, var(--c) 30%, transparent); }
.season .live-tag { display: none; font: 700 11px var(--mono); letter-spacing: .12em; color: var(--bg); background: var(--c); padding: 5px 9px; border-radius: 99px; width: max-content; }
.season.live .live-tag { display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 0%, transparent), 0 0 20px var(--c); } }
@media (max-width: 960px) { .seasons { grid-template-columns: repeat(2, 1fr); } }

/* Challenge demo */
.chat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.bubbles { display: grid; gap: 10px; max-width: 420px; }
.bubble { padding: 12px 16px; border-radius: 22px; max-width: 85%; font-size: 16px; }
.bubble.me { justify-self: end; background: #2b7cff; color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { background: #26262b; border-bottom-left-radius: 6px; }
.link-card { justify-self: end; width: 85%; border-radius: 18px; overflow: hidden; background: #26262b; }
.link-card .img { height: 150px; background: #0b0806 url("../img/og.png") center / cover; }
.link-card .meta { padding: 12px 14px; }
.link-card .meta b { display: block; font-size: 14px; }
.link-card .meta span { font-size: 13px; color: var(--dim); }
@media (max-width: 900px) { .chat { grid-template-columns: 1fr; } }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promise .card { text-align: center; padding: 34px 20px; }
.promise .big { font: 900 34px var(--dot); color: var(--green); text-shadow: 0 0 16px rgba(34,224,160,.6); }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 4px; background: var(--red); border-radius: 4px; box-shadow: 0 0 12px var(--red); transform: rotate(-8deg) scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out) .3s; }
.in .strike::after { transform: rotate(-8deg) scaleX(1); }
@media (max-width: 860px) { .promise { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: #111114; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 22px var(--dot); color: var(--amber); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--dim); }

/* CTA */
.cta { text-align: center; padding: clamp(60px, 9vw, 110px) 24px; border-radius: 40px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from var(--a, 0deg), #ff3b6b, #ffb020, #22e0a0, #22c7ff, #b45cff, #ff3b6b); opacity: .16; filter: blur(60px); animation: spin 12s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(40px, 7vw, 90px); }
.cta .ctas { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 60px; margin-top: 60px; color: var(--label); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { text-decoration: none; color: var(--dim); }
footer a:hover { color: var(--text); }

/* ---------- legal / doc pages ---------- */
.doc { padding: 130px 0 40px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); margin: 12px 0 10px; }
.doc .updated { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.doc h2 { font-size: 26px; margin: 44px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: #cfcfd6; font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { margin-top: 26px; padding: 22px 24px; border-radius: 18px; }
.doc .summary li { color: var(--text); }
.doc a { color: var(--amber-hi); }
.doc code { font-family: var(--mono); font-size: 0.9em; background: #1a1a1f; padding: 2px 6px; border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 26px; border-radius: 22px; margin: 26px 0; }

/* ---------- challenge landing ---------- */
.challenge { min-height: 100svh; display: grid; place-items: center; padding: 110px 0 60px; text-align: center; }
.challenge .oled { max-width: 460px; margin: 26px auto; text-align: left; }
.challenge .who { font: 900 34px var(--dot); color: var(--amber-hi); text-shadow: 0 0 16px rgba(255,181,71,.8); }
.challenge .what { font: 900 16px var(--dot); color: var(--amber-lo); margin-top: 6px; }
.challenge .ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .ticker .track { animation: none; }
}

/* The link list is only a glass panel when it drops down on phones. */
@media (min-width: 861px) {
  .nav .links.glass { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
