/* ============================================================
   Sonoduck — "Sonar room" design system
   ============================================================ */
:root {
  --bg: #07090c;
  --bg-2: #0c1116;
  --bg-3: #111820;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #edf2f4;
  --text-2: #a9b4bc;
  --text-3: #6c7882;
  --amber: #ffb23e;
  --amber-2: #ff7d33;
  --cyan: #57e3d6;
  --cyan-2: #2bb7c9;
  --violet: #a594ff;
  --good: #4fe39a;
  --bad: #ff6b6b;
  --gold: #ffd75e;
  --grad: linear-gradient(135deg, #ffcf5a 0%, #ff8a2e 100%);
  --grad-cool: linear-gradient(135deg, #57e3d6 0%, #6b8cff 100%);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-amber: 0 0 0 1px rgba(255, 178, 62, 0.35), 0 10px 40px rgba(255, 140, 50, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--cyan); text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 178, 62, 0.35); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cool-text { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 11px 20px; font-weight: 600; font-size: 14.5px; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: var(--grad); color: #1a0f02; box-shadow: var(--glow-amber); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 178, 62, 0.6), 0 14px 50px rgba(255, 140, 50, 0.5); transform: translateY(-1px); }
.btn.ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--panel-3); }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.chip { border: 0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.on { background: rgba(87, 227, 214, 0.14); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(87, 227, 214, 0.45); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill.pro { background: var(--grad); color: #1a0f02; box-shadow: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 26px; background: rgba(7, 9, 12, 0.72); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--amber); }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { color: var(--text-2); padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--text); background: var(--panel-2); }
.hud { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hud-streak { display: flex; align-items: center; gap: 5px; font-weight: 700; font-family: var(--mono); font-size: 14px; }
.hud-streak .flame { filter: grayscale(1) opacity(0.5); font-size: 16px; }
.hud-streak.live .flame { filter: none; animation: flick 1.6s infinite; }
@keyframes flick { 50% { transform: scale(1.12) rotate(-4deg); } }
.hud-goal { position: relative; width: 30px; height: 30px; }
.hud-goal svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.hud-goal circle { fill: none; stroke-width: 3.2; }
.hud-goal .bg { stroke: var(--panel-3); }
.hud-goal .fg { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dasharray 0.6s; }
.hud-goal.done .fg { stroke: var(--good); }
.hud-level { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.hud-level .lvl { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #1a0f02; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--display); }
.hud-level .xpbar { width: 90px; height: 5px; border-radius: 9px; background: var(--panel-3); overflow: hidden; }
.hud-level .xpbar i { display: block; height: 100%; background: var(--grad); border-radius: 9px; transition: width 0.6s; }
.hud-level .xpnum { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }

/* ---------- landing ---------- */
.landing { overflow: hidden; }
.hero { position: relative; min-height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 30px; padding: 40px 6vw 60px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 120%; background: radial-gradient(closest-side, rgba(87, 227, 214, 0.13), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(255, 140, 50, 0.12), transparent 70%); pointer-events: none; }
.hero h1 { font-size: clamp(42px, 5.6vw, 82px); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .l2 { display: block; }
.hero .sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); max-width: 540px; margin: 22px 0 30px; }
.hero .proof { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero .proof div b { display: block; font-family: var(--display); font-size: 26px; }
.hero .proof div span { color: var(--text-3); font-size: 12.5px; }
.hero-stage { position: relative; height: min(76vh, 680px); }
.hero-holo { position: absolute; inset: 0 22% 6% 0; border-radius: 28px; overflow: hidden; }
.hero-holo canvas { width: 100%; height: 100%; display: block; }
.hero-monitor { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 640 / 560; border-radius: 22px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(87, 227, 214, 0.12); overflow: hidden; }
.hero-monitor canvas { width: 100%; height: 100%; display: block; }
.hero-monitor .mon-bar { position: absolute; left: 14px; right: 14px; top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #8fa5a0; }
.hero-monitor .mon-label { position: absolute; left: 16px; bottom: 14px; font-family: var(--display); font-size: 17px; color: var(--amber); text-shadow: 0 2px 10px #000; }
.hero-badge { position: absolute; left: 4%; bottom: 10%; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(12, 17, 22, 0.8); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; animation: bob 4s ease-in-out infinite; }
.hero-badge .ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--panel-3) 0); position: relative; }
.hero-badge .ring::after { content: attr(data-v); position: absolute; inset: 4px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 12px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.section { padding: 100px 6vw; position: relative; }
.section h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; max-width: 820px; }
.section .lede { color: var(--text-2); font-size: 18px; max-width: 640px; margin: 16px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; }
.feature .f-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(87, 227, 214, 0.12); color: var(--cyan); margin-bottom: 16px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.feature.wide { grid-column: span 2; }
.feature .f-art { margin-top: auto; padding-top: 18px; }
.marquee { overflow: hidden; margin-top: 50px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 70s linear infinite; }
.marquee img { height: 150px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); opacity: 0.85; }
@keyframes marq { to { transform: translateX(-50%); } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); color: var(--amber); font-size: 13px; }
.step h3 { font-size: 20px; margin: 10px 0 6px; }
.step p { color: var(--text-2); margin: 0; }
.curriculum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.cur { padding: 18px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.cur b { font-family: var(--display); font-size: 17px; display: block; margin-bottom: 6px; }
.cur ul { margin: 0; padding-left: 16px; color: var(--text-2); font-size: 13.5px; }
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; margin-top: 44px; max-width: 900px; }
.price { padding: 28px; border-radius: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.price.pro { background: linear-gradient(160deg, rgba(255, 178, 62, 0.12), rgba(255, 125, 51, 0.04) 50%, var(--panel)); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.45), 0 30px 80px rgba(255, 125, 51, 0.12); position: relative; }
.price .tag { position: absolute; right: 22px; top: 22px; }
.price h3 { font-size: 22px; }
.price .amt { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .amt small { font-size: 16px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.price li::before { content: "✓"; color: var(--good); font-weight: 800; }
.price.free li::before { color: var(--text-3); }
.price .btn { margin-top: auto; }
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; }
.cta-band { margin: 40px 6vw 80px; padding: 56px; border-radius: 32px; text-align: center; background: radial-gradient(circle at 50% 120%, rgba(255, 140, 50, 0.35), transparent 60%), var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 50px); margin: 0 auto 14px; max-width: 760px; }
.cta-band .duck { width: 90px; margin: 0 auto 10px; display: block; }
.footer { padding: 30px 6vw 50px; color: var(--text-3); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer a { color: var(--text-2); }

/* ---------- course map ---------- */
.mapwrap { max-width: 1180px; margin: 0 auto; padding: 34px 26px 120px; }
.greet { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; border-radius: 26px; background: radial-gradient(circle at 0% 0%, rgba(87, 227, 214, 0.12), transparent 50%), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.greet .duck { width: 92px; }
.greet h1 { font-size: 30px; }
.greet p { margin: 6px 0 0; color: var(--text-2); }
.greet-stats { display: flex; gap: 12px; }
.gstat { padding: 12px 16px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 104px; }
.gstat b { display: block; font-family: var(--display); font-size: 24px; }
.gstat span { font-size: 12px; color: var(--text-3); }
.daily { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.dcard { border-radius: 22px; padding: 20px 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 18px; align-items: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.dcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2); }
.dcard .d-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; flex: none; }
.dcard h3 { font-size: 19px; }
.dcard p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.world { margin-top: 46px; }
.world-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.world-head .wnum { font-family: var(--mono); color: var(--amber); font-size: 13px; }
.world-head h2 { font-size: 26px; }
.world-head .wprog { margin-left: auto; color: var(--text-3); font-family: var(--mono); font-size: 13px; }
.nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.node { position: relative; border-radius: 20px; padding: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; min-height: 150px; display: flex; flex-direction: column; overflow: hidden; }
.node:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.35); }
.node .n-num { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.node h3 { font-size: 19px; margin: 6px 0 4px; }
.node p { margin: 0; color: var(--text-2); font-size: 13px; }
.node .n-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.node .n-bar { flex: 1; height: 4px; border-radius: 9px; background: var(--panel-3); overflow: hidden; }
.node .n-bar i { display: block; height: 100%; background: var(--grad-cool); }
.node.done { box-shadow: inset 0 0 0 1px rgba(79, 227, 154, 0.35); }
.node.done .n-bar i { background: var(--good); }
.node.next { box-shadow: inset 0 0 0 1.5px var(--amber), 0 10px 40px rgba(255, 140, 50, 0.18); }
.node.next::after { content: "Up next"; position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 700; color: #1a0f02; background: var(--grad); padding: 2px 9px; border-radius: 999px; }
.node.locked { opacity: 0.72; }
.node.locked::after { content: "🔒 Pro"; position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 700; color: var(--amber); background: rgba(255, 178, 62, 0.12); padding: 2px 9px; border-radius: 999px; }
.node .n-art { position: absolute; right: -14px; bottom: -14px; font-size: 64px; opacity: 0.08; }

/* ---------- lesson ---------- */
.lesson { display: grid; grid-template-columns: 430px minmax(0, 1fr); height: calc(100vh - 57px); }
.l-side { overflow-y: auto; padding: 26px 28px 80px; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.l-fig { min-width: 0; min-height: 0; padding: 18px; overflow-y: auto; position: relative; }
.l-head { margin-bottom: 18px; }
.l-head .crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.l-head .crumbs a { color: var(--text-2); }
.l-head h1 { font-size: 34px; line-height: 1.04; }
.l-head .kicker { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.l-prog { display: flex; gap: 6px; margin-top: 14px; }
.l-prog i { flex: 1; height: 4px; border-radius: 9px; background: var(--panel-3); }
.l-prog i.on { background: var(--grad-cool); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text); margin: 0 0 16px; }
.l-side h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin: 26px 0 10px; }
.l-side p, .l-side li { color: var(--text-2); font-size: 15px; line-height: 1.62; }
.l-side b, .l-side strong { color: var(--text); font-weight: 600; }
.l-side ul, .l-side ol { padding-left: 20px; margin: 0 0 12px; }
.l-side li { margin-bottom: 5px; }
.term { color: var(--text); border-bottom: 1px dashed rgba(87, 227, 214, 0.6); cursor: help; }
.callout { border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: rgba(87, 227, 214, 0.07); box-shadow: inset 0 0 0 1px rgba(87, 227, 214, 0.22); color: var(--text-2); font-size: 14.5px; }
.callout.warn { background: rgba(255, 107, 107, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.25); }
.callout b { color: var(--text); }
.keypoints { counter-reset: kp; list-style: none; padding: 0 !important; }
.keypoints li { counter-increment: kp; position: relative; padding-left: 34px; margin-bottom: 10px; }
.keypoints li::before { content: counter(kp); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 178, 62, 0.14); color: var(--amber); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.ctl { margin: 16px 0; }
.ctl-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.ctl-label output { letter-spacing: 0; text-transform: none; color: var(--amber); font-size: 13px; }
.ctl-hint { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; height: 22px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 9px; background: linear-gradient(90deg, var(--cyan) var(--fill, 50%), var(--panel-3) var(--fill, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 0 4px rgba(87, 227, 214, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 9px; background: var(--panel-3); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 9px; background: var(--cyan); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(87, 227, 214, 0.25); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 7px 13px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; transition: all 0.15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { border-radius: 12px; padding: 10px 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.stat span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.stat b { font-family: var(--mono); font-weight: 600; font-size: 20px; }
.stat b small { font-size: 11px; color: var(--text-3); margin-left: 3px; font-weight: 400; }
.stat.alert b { color: var(--bad); }
.dabble { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; margin: 20px 0; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 178, 62, 0.09), transparent); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.2); }
.dabble .d-duck { width: 52px; }
.dabble .d-text { font-size: 14.5px; color: var(--text); }
.dabble .d-text::before { content: "Dabble says"; display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.tasks { list-style: none; padding: 0 !important; margin: 8px 0 14px; display: grid; gap: 8px; }
.tasks li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: all 0.15s; margin: 0 !important; }
.tasks li:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--panel-2); }
.tasks li .box { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--text-3); }
.tasks li.active { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 8px 30px rgba(87, 227, 214, 0.12); }
.tasks li.done .box { background: rgba(79, 227, 154, 0.15); color: var(--good); }
.tasks li .box.g-S { background: var(--grad); color: #1a0f02; }
.tasks li .box.g-A { background: rgba(255, 215, 94, 0.18); color: var(--gold); }
.tasks li b { color: var(--text); font-size: 14.5px; font-weight: 600; display: block; }
.tasks li small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.tasks li .go { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.check { border-radius: 18px; padding: 16px; margin: 16px 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.check .q { font-size: 16px; color: var(--text); margin-bottom: 12px; font-weight: 500; }
.check .opts { display: grid; gap: 7px; }
.check .opt { text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; display: flex; gap: 10px; color: var(--text-2); transition: all 0.15s; }
.check .opt:hover:not(:disabled) { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateX(2px); }
.check .opt .k { font-family: var(--mono); font-size: 12px; color: var(--text-3); width: 16px; }
.check .opt.right { background: rgba(79, 227, 154, 0.12); box-shadow: inset 0 0 0 1px rgba(79, 227, 154, 0.5); color: var(--text); }
.check .opt.wrong { background: rgba(255, 107, 107, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.35); opacity: 0.7; animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check .opt:disabled { cursor: default; }
.check .why { margin-top: 12px; font-size: 14px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: rgba(79, 227, 154, 0.07); }
.check .why.bad { background: rgba(255, 178, 62, 0.07); }
.check-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.next-up { margin-top: 30px; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 12px; }
.realstrip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.realthumb { border: 0; border-radius: 12px; background: #000; padding: 0; cursor: pointer; overflow: hidden; text-align: left; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s; }
.realthumb:hover { transform: translateY(-2px); }
.realthumb img { width: 100%; height: 90px; object-fit: cover; display: block; opacity: 0.9; }
.realthumb span { background: var(--bg-3); color: var(--text-2); font-size: 11.5px; padding: 6px 8px; line-height: 1.3; flex: 1; }

/* ---------- scanner ---------- */
.scanner { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 600px; }
.sc-stage { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
.scanner.no3d .sc-stage { grid-template-columns: 1fr; }
.sc-3d { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #12212a 0%, #0a1015 55%, #06080b 100%); box-shadow: inset 0 0 0 1px var(--line); min-height: 300px; }
.sc-gl { width: 100%; height: 100%; display: block; touch-action: none; }
.sc-3d-hint { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--text-3); pointer-events: none; }
.sc-3d-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.sc-3d-tools span { color: var(--cyan); font-weight: 600; }
.sc-screen { position: relative; display: flex; flex-direction: column; background: #000; border-radius: 22px; padding: 12px 14px 14px; min-height: 0; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px rgba(0, 0, 0, 0.5); }
.sc-screen::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.45) 100%); }
.sc-screen-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 0 4px 8px; }
.sc-title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--amber); }
.sc-params { color: #7f948f; font-size: 11px; font-family: var(--mono); }
.sc-canvas-wrap { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; }
.sc-us, .sc-ov { max-width: 100%; max-height: 100%; aspect-ratio: 640 / 540; display: block; }
.sc-ov { position: absolute; inset: 0; margin: auto; cursor: crosshair; }
.sc-tip { position: absolute; display: none; pointer-events: none; background: rgba(12, 17, 22, 0.88); color: var(--amber); font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); z-index: 3; }
.sc-mm { width: 100%; border-radius: 10px; margin-top: 8px; }
.sc-coach { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); position: relative; z-index: 2; }
.sc-coach.good { box-shadow: inset 0 0 0 1px rgba(79, 227, 154, 0.55), 0 0 40px rgba(79, 227, 154, 0.12); }
.sc-ring { position: relative; width: 54px; height: 54px; flex: none; }
.sc-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 3.2; }
.sc-ring .bg { stroke: rgba(255, 255, 255, 0.08); }
.sc-ring .fg { stroke: var(--amber); stroke-dasharray: 0 100; transition: stroke-dasharray 0.25s, stroke 0.25s; stroke-linecap: round; }
.sc-coach.good .fg { stroke: var(--good); }
.sc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: #fff; font-weight: 700; }
.sc-task { font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--mono); }
.sc-hint { font-size: 15px; color: var(--text); font-weight: 500; line-height: 1.35; margin-top: 2px; }
.sc-hold { height: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); margin-top: 6px; overflow: hidden; }
.sc-hold i { display: block; height: 100%; width: 0; background: var(--good); transition: width 0.15s linear; }
.sc-controls { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.sc-group { display: flex; flex-direction: column; gap: 8px; }
.sc-glabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.sc-glabel .kbd { letter-spacing: 0; text-transform: none; color: var(--text-3); margin-left: 8px; opacity: 0.8; }
.moves, .knobs { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 4px 18px; }
.mv, .kn { display: grid; grid-template-columns: 64px 1fr 62px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.mv output, .kn output { font-family: var(--mono); font-size: 11.5px; color: var(--amber); text-align: right; }
.mv-wide { grid-template-columns: 64px 1fr !important; }
.nudge { display: flex; gap: 5px; }
.nudge button { border: 0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 9px; width: 36px; height: 28px; cursor: pointer; font-size: 13px; color: var(--text); user-select: none; }
.nudge button:hover { background: var(--panel-3); }
.nudge button:active { background: var(--cyan); color: #000; }
.nudge2 { display: flex; gap: 6px; }
.sc-toggles { flex-direction: row; flex-wrap: wrap; align-items: center; }
.sc-windows { font: inherit; font-size: 12.5px; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.sc-windows option, .sc-windows optgroup { background: var(--bg-2); }

/* ---------- album ---------- */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.card { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 3 / 4; display: flex; flex-direction: column; transition: transform 0.2s; cursor: pointer; }
.card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.card img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.card .c-meta { padding: 10px 12px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.card .c-meta b { display: block; font-size: 14px; font-family: var(--display); }
.card .c-meta span { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.card .c-grade { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.g-S { background: var(--grad); color: #1a0f02; box-shadow: 0 0 30px rgba(255, 178, 62, 0.6); }
.g-A { background: rgba(255, 215, 94, 0.2); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 215, 94, 0.5); }
.g-B { background: rgba(87, 227, 214, 0.15); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(87, 227, 214, 0.45); }
.g-C { background: rgba(255, 255, 255, 0.08); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.card.empty { background: var(--panel); }
.card.empty .ghost-art { flex: 1; display: grid; place-items: center; font-size: 46px; color: var(--text-3); opacity: 0.35; }
.card.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, rgba(87, 227, 214, 0.18) 50%, rgba(255, 178, 62, 0.14) 55%, transparent 70%); background-size: 250% 250%; animation: holo 4s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes holo { 50% { background-position: 100% 100%; } }

/* ---------- arcade ---------- */
.arcade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.mode { border-radius: 24px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; position: relative; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s; }
.mode:hover { transform: translateY(-3px); }
.mode .m-ico { font-size: 34px; }
.mode h3 { font-size: 24px; margin: 12px 0 6px; }
.mode p { color: var(--text-2); margin: 0; font-size: 14px; }
.mode .m-best { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.mode.m1 { background: radial-gradient(circle at 100% 0%, rgba(255, 178, 62, 0.22), transparent 55%), var(--panel); }
.mode.m2 { background: radial-gradient(circle at 100% 0%, rgba(87, 227, 214, 0.2), transparent 55%), var(--panel); }
.mode.m3 { background: radial-gradient(circle at 100% 0%, rgba(165, 148, 255, 0.22), transparent 55%), var(--panel); }
.game-hud { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.game-hud .gh { padding: 10px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.game-hud .gh span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.game-hud .gh b { font-family: var(--display); font-size: 26px; }
.game-hud .gh.timer b { color: var(--amber); }
.combo { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--cyan); text-shadow: 0 0 30px rgba(87, 227, 214, 0.6); transition: transform 0.15s; }
.combo.pop { transform: scale(1.35); }
.quiz-img { border-radius: 20px; overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); min-height: 380px; }
.quiz-img img, .quiz-img video, .quiz-img canvas { max-width: 100%; max-height: 62vh; display: block; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.answers button { border: 0; border-radius: 16px; padding: 16px; text-align: left; font-size: 15px; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); cursor: pointer; transition: all 0.12s; }
.answers button:hover { background: var(--panel-3); transform: translateY(-1px); }
.answers button.right { background: rgba(79, 227, 154, 0.18); box-shadow: inset 0 0 0 1px var(--good); }
.answers button.wrong { background: rgba(255, 107, 107, 0.14); box-shadow: inset 0 0 0 1px var(--bad); }

/* ---------- profile ---------- */
.prof { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.panel { border-radius: 22px; padding: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.heat { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--panel-2); }
.heat i.l1 { background: rgba(87, 227, 214, 0.25); } .heat i.l2 { background: rgba(87, 227, 214, 0.5); } .heat i.l3 { background: var(--cyan); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ach { padding: 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.4; filter: grayscale(1); }
.ach.got { opacity: 1; filter: none; box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.4); }
.ach .a-ico { font-size: 22px; }
.ach b { display: block; font-size: 13.5px; margin-top: 4px; }
.ach span { font-size: 11.5px; color: var(--text-3); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(3, 5, 7, 0.6); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.25s; }
.modal.in { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 960px; max-height: 88vh; overflow: auto; border-radius: 28px; padding: 30px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transform: translateY(14px) scale(0.98); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.2); }
.modal.in .modal-card { transform: none; }
.modal.center .modal-card { max-width: 640px; }
.modal-x { position: absolute; right: 16px; top: 14px; border: 0; background: var(--panel-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--text-2); z-index: 2; }
.modal h2 { font-size: 28px; margin-bottom: 10px; }
.viewer .img-wrap { position: relative; background: #000; border-radius: 16px; overflow: hidden; display: flex; justify-content: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 58vh; display: block; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin i { display: block; width: 14px; height: 14px; border: 2px solid var(--amber); border-radius: 50%; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 12px var(--amber); }
.pin span { position: absolute; left: 18px; top: -12px; white-space: nowrap; font-weight: 700; font-size: 13px; color: var(--amber); text-shadow: 0 1px 4px #000, 0 0 2px #000; }
.credit { font-size: 11.5px; color: var(--text-3); margin-top: 10px; }
.credit a { color: var(--text-2); }

/* grade reveal */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.grade-photo { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 640 / 540; box-shadow: inset 0 0 0 1px var(--line-2); animation: snap 0.5s cubic-bezier(.2, .9, .3, 1.4); }
.grade-photo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes snap { 0% { transform: scale(1.15) rotate(3deg); filter: brightness(3); } 100% { transform: none; filter: none; } }
.grade-stamp { position: absolute; right: 12px; top: 12px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 36px; animation: stamp 0.6s 0.25s cubic-bezier(.2, .9, .3, 1.6) both; }
@keyframes stamp { 0% { transform: scale(3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.grade h2 { font-size: 26px; margin: 6px 0 10px; }
.grade-score span { font-size: 46px; font-weight: 800; font-family: var(--display); }
.grade-score small { color: var(--text-3); margin-left: 6px; }
.grade .row { margin-top: 18px; }
/* level up */
.levelup { text-align: center; padding: 10px 0; position: relative; }
.levelup .lv-duck { width: 110px; margin: 0 auto; position: relative; z-index: 1; }
.lv-num { font-family: var(--display); font-size: 96px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-name { font-family: var(--display); font-size: 26px; margin-bottom: 20px; }
.lv-rings { position: absolute; left: 50%; top: 60px; }
.lv-rings div { position: absolute; width: 140px; height: 140px; left: -70px; top: -70px; border-radius: 50%; border: 2px solid var(--amber); animation: rip 2.2s ease-out infinite; opacity: 0; }
.lv-rings div:nth-child(2) { animation-delay: 0.7s; } .lv-rings div:nth-child(3) { animation-delay: 1.4s; }

/* paywall */
.paywall { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.paywall .pw-art { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1; position: relative; }
.paywall .pw-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.paywall .pw-art .duck { position: absolute; width: 110px; right: 14px; bottom: 6px; }
.paywall h2 { font-size: 32px; line-height: 1.05; }
.paywall ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; }
.paywall li { color: var(--text-2); display: flex; gap: 10px; }
.paywall li::before { content: "✓"; color: var(--good); font-weight: 800; }
.paywall .price-line { font-family: var(--display); font-size: 44px; font-weight: 800; }
.paywall .price-line small { font-size: 15px; color: var(--text-2); font-weight: 500; }
.license { display: flex; gap: 8px; margin-top: 12px; }
.license input { flex: 1; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-family: var(--mono); font-size: 13px; }
.license-msg { font-size: 13px; margin-top: 8px; }

/* ---------- effects ---------- */
.ripple { position: fixed; z-index: 90; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid; pointer-events: none; animation: rip 1.3s ease-out forwards; opacity: 0; }
@keyframes rip { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(9); opacity: 0; } }
.spark { position: fixed; z-index: 90; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; animation: spark 0.9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes spark { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(240deg) scale(0.3); opacity: 0; } }
.xpfloat { position: fixed; z-index: 91; font-family: var(--display); font-weight: 800; font-size: 20px; pointer-events: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: xpf 1.3s cubic-bezier(.2, .7, .3, 1) forwards; transform: translateX(-50%); }
@keyframes xpf { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -50px) scale(1); } }
.toast { position: fixed; right: 26px; bottom: 26px; z-index: 70; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(17, 24, 32, 0.92); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); max-width: 420px; transform: translateY(20px) scale(0.96); opacity: 0; transition: all 0.35s cubic-bezier(.2, .9, .3, 1.3); }
.toast.in { transform: none; opacity: 1; }
.toast-duck { width: 46px; flex: none; }
.toast-text { font-size: 14.5px; color: var(--text); }
.ach-pop { position: fixed; left: 50%; top: 76px; z-index: 72; display: flex; gap: 14px; align-items: center; padding: 12px 20px 12px 12px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 178, 62, 0.18), rgba(17, 24, 32, 0.95)); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.5), var(--shadow); transform: translate(-50%, -30px); opacity: 0; transition: all 0.45s cubic-bezier(.2, .9, .3, 1.4); }
.ach-pop.in { transform: translate(-50%, 0); opacity: 1; }
.ach-medal { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--grad); color: #1a0f02; }
.ach-pop b { display: block; font-family: var(--display); font-size: 17px; }
.ach-pop span { color: var(--text-2); font-size: 13px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn 0.45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-stage { height: 520px; }
  .feature-grid, .steps, .arcade-grid, .curriculum { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .lesson { grid-template-columns: 1fr; height: auto; }
  .l-fig { order: -1; height: auto; }
  .l-side { border-right: 0; overflow: visible; }
  .sc-stage { grid-template-columns: 1fr; }
  .sc-3d { height: 340px; }
  .scanner { min-height: 0; }
  .daily, .prof, .grade, .paywall, .pricing { grid-template-columns: 1fr; }
  .greet { grid-template-columns: auto 1fr; }
  .greet-stats { grid-column: 1 / -1; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .hud-level .xpbar, .hud-level .xpnum { display: none; }
  .feature-grid, .steps, .arcade-grid, .curriculum, .answers { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .section { padding: 70px 20px; }
  .hero { padding: 30px 20px; }
  .hero-stage { height: 420px; }
  .moves, .knobs { grid-template-columns: 1fr; }
  .cta-band { margin: 20px; padding: 36px 22px; }
}

/* hero scanner composition: hologram behind, monitor in front */
.hero-sc.scanner { min-height: 0; height: 100%; gap: 0; }
.hero-sc .sc-stage { display: block; position: relative; height: 100%; }
.hero-sc .sc-3d { position: absolute; inset: 0 18% 10% 0; border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.hero-sc .sc-screen { position: absolute; right: 0; bottom: 0; width: 56%; height: 72%; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 90px rgba(87, 227, 214, 0.14); }
.hero-sc .sc-3d-hint, .hero-sc .sc-3d-tools, .hero-sc .sc-coach { display: none; }
.hero-sc .sc-ov { cursor: default; }
/* atlas */
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.atlas-card { border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s; }
.atlas-card:hover { transform: translateY(-3px); }
.atlas-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.atlas-card .cap { background: var(--bg-3); padding: 9px 11px; font-size: 12.5px; flex: 1; }
.atlas-card .cap b { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; }
.atlas-card .cap small { color: var(--text-3); font-size: 11px; }
.plate { border-radius: 22px; padding: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plate-title { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plate-sub { font-size: 12px; color: var(--text-3); margin-bottom: 10px; font-family: var(--mono); }
.sketch { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 200px); display: block; margin: 0 auto; }
.pagewrap { max-width: 1180px; margin: 0 auto; padding: 34px 26px 120px; }
.page-title { font-size: 40px; }
.page-sub { color: var(--text-2); margin: 8px 0 0; max-width: 640px; }
.node, .dcard, .mode, .card, .next-up, .room { color: var(--text); }
.gstat b, .greet-stats b { font-variant-numeric: lining-nums; }
.gstat b span, [data-c] { font-family: var(--display); font-feature-settings: "lnum"; }
.feature-grid .feature.wide:last-child { grid-column: span 3; }
.tasks li small b { display: inline; font-size: inherit; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; } table.simple th, table.simple td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--text-2); } table.simple th { color: var(--text); }
/* gating */
.tasks li.locked { opacity: 0.62; }
.tasks li.locked .go { color: var(--amber); }
.lockbox { font-size: 14px; }
.node.preview::after { content: "Preview"; position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 700; color: var(--cyan); background: rgba(87, 227, 214, 0.1); padding: 2px 9px; border-radius: 999px; }
.callout.pv { background: rgba(255, 178, 62, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.28); }
.callout.pv a { color: var(--amber); font-weight: 600; }
.lockthumb { display: grid; place-items: center; min-height: 118px; background: linear-gradient(135deg, rgba(255, 178, 62, 0.14), var(--bg-3)) !important; }
.lt-inner { text-align: center; font-size: 20px; padding: 10px; }
.lt-inner b { display: block; font-size: 12.5px; color: var(--text); margin-top: 4px; }
.lt-inner span { font-size: 11px; color: var(--amber); }
.atlas-card.locked img { filter: blur(5px) brightness(0.5); }
.c-pro { background: rgba(255, 178, 62, 0.14); color: var(--amber); font-size: 11px !important; width: auto !important; padding: 0 10px; box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.45); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.wordmark em { font-style: normal; color: var(--amber); }

/* ============================================================
   Mobile (≤ 900px): app-like layout
   ============================================================ */
.tabbar, .l-tabs, .sc-3d-hint .touch { display: none; }
@media (hover: none) { .sc-3d-hint .desk { display: none; } .sc-3d-hint .touch { display: inline; } .sc-glabel .kbd { display: none; } }
@media (max-width: 900px) {
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { padding: 10px 14px; gap: 10px; }
  .nav { display: none; }
  .brand { gap: 8px; }
  .wordmark { font-size: 19px; }
  .hud { gap: 8px; }
  .hud-goal { display: none; }
  .hud-level { padding: 3px; }
  .hud-level .xpbar, .hud-level .xpnum { display: none; }
  .hud-pro { padding: 7px 12px !important; font-size: 13px !important; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(9, 12, 16, 0.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: 11px; font-weight: 600; padding: 4px 0; border-radius: 12px; }
  .tabbar a .ti { font-size: 19px; line-height: 1.2; }
  .tabbar a.on { color: var(--amber); background: rgba(255, 178, 62, 0.08); }

  /* landing */
  .hero { padding: 26px 18px 30px; gap: 22px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 16.5px; margin: 16px 0 22px; }
  .hero .row .btn { flex: 1; }
  .hero .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
  .hero .proof div b { font-size: 24px; }
  .hero-stage { height: 470px; }
  .hero-sc .sc-3d { inset: 0 0 34% 0; }
  .hero-sc .sc-screen { width: 74%; height: 58%; right: 0; }
  .hero-badge { left: 0; bottom: 4%; font-size: 12px; max-width: 58%; }
  .section { padding: 64px 18px; }
  .section h2 { font-size: 32px; }
  .section .lede { font-size: 16px; }
  .feature-grid, .steps, .curriculum, .pricing, .arcade-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature.wide, .feature-grid .feature.wide:last-child { grid-column: auto; }
  .feature { min-height: 0; }
  .marquee img { height: 110px; }
  .price .amt { font-size: 44px; }
  .cta-band { margin: 10px 14px 40px; padding: 36px 20px; }
  .cta-band h2 { font-size: 30px; }
  .footer { padding: 24px 18px 40px; }

  /* map */
  .mapwrap, .pagewrap { padding: 18px 14px 40px; }
  .greet { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; border-radius: 22px; }
  .greet > div:first-child { width: 64px !important; }
  .greet h1 { font-size: 22px; }
  .greet p { font-size: 14px; }
  .greet-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gstat { min-width: 0; padding: 10px; }
  .gstat b { font-size: 20px; }
  .daily { grid-template-columns: 1fr; gap: 10px; }
  .dcard { padding: 14px; gap: 14px; }
  .dcard .d-ico { width: 46px; height: 46px; font-size: 20px; }
  .dcard h3 { font-size: 17px; }
  .world { margin-top: 30px; }
  .world-head h2 { font-size: 21px; }
  .nodes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .node { min-height: 132px; padding: 14px; border-radius: 18px; }
  .node h3 { font-size: 16.5px; }
  .node p { font-size: 12.5px; }
  .node.next::after, .node.locked::after, .node.preview::after { top: 10px; right: 10px; font-size: 10px; }
  .page-title { font-size: 28px; }

  /* lesson: Read / Scan tabs */
  .lesson { display: block; height: auto; }
  .l-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: sticky; top: 57px; z-index: 25; margin: 0; padding: 8px 12px; background: rgba(7, 9, 12, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .l-tabs button { border: 0; border-radius: 12px; padding: 10px; font-weight: 700; font-size: 14.5px; background: var(--panel); color: var(--text-2); }
  .l-tabs button.on { background: var(--grad); color: #1a0f02; }
  .lesson.show-read .l-fig { display: none; }
  .lesson.show-scan .l-side { display: none; }
  .l-side { padding: 18px 16px 30px; border: 0; overflow: visible; }
  .l-head h1 { font-size: 30px; }
  .l-fig { padding: 10px; overflow: visible; }
  .lead { font-size: 16.5px; }
  .l-side p, .l-side li { font-size: 15.5px; }
  .tasks li { grid-template-columns: 30px 1fr auto; padding: 12px; }
  .tasks li .box { width: 30px; height: 30px; }

  /* scanner */
  .scanner { min-height: 0; height: auto; gap: 10px; }
  .sc-stage { display: flex; flex-direction: column; gap: 10px; }
  .sc-screen { order: -1; padding: 10px; border-radius: 18px; }
  .sc-screen-head { flex-wrap: wrap; gap: 2px 10px; }
  .sc-params { font-size: 10px; }
  .sc-canvas-wrap { flex: none; }
  .sc-us, .sc-ov { width: 100%; max-height: none; }
  .sc-3d { height: 230px; min-height: 0; border-radius: 18px; flex: none; }
  .sc-3d-tools .chip { font-size: 11.5px; padding: 5px 10px; }
  .sc-coach { gap: 10px; padding: 8px 10px; }
  .sc-ring, .sc-ring svg { width: 44px; height: 44px; }
  .sc-hint { font-size: 14px; }
  .sc-controls { padding: 12px; gap: 12px; border-radius: 18px; }
  .sc-group { width: 100%; }
  .moves, .knobs { grid-template-columns: 1fr; gap: 6px; }
  .mv, .kn { grid-template-columns: 58px 1fr 52px; }
  .nudge { gap: 6px; }
  .nudge button { width: 44px; height: 38px; font-size: 15px; border-radius: 11px; }
  .nudge2 .chip { padding: 8px 12px; }
  .sc-toggles { margin-top: 0; gap: 6px; }
  .sc-windows { width: 100%; padding: 10px 12px; }
  .scanner.no3d .sc-stage { display: flex; }

  /* game / arcade */
  .game-hud { gap: 8px; }
  .game-hud .gh { padding: 8px 12px; }
  .game-hud .gh b { font-size: 20px; }
  .game-hud .gh:has(.g-target) { flex-basis: 100%; order: 5; }
  .g-sc { height: auto !important; min-height: 0 !important; }
  .answers { grid-template-columns: 1fr; }
  .quiz-img { min-height: 240px; }
  .quiz-img img, .quiz-img video { max-height: 46vh; }

  /* album, profile */
  .album { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .c-meta b { font-size: 12.5px; }
  .card .c-grade { width: 32px; height: 32px; font-size: 16px; }
  .prof { grid-template-columns: 1fr; }
  .heat { grid-template-columns: repeat(18, 1fr); gap: 3px; }
  .achs { grid-template-columns: 1fr 1fr; }

  /* modals & toasts */
  .modal { padding: 10px; align-items: end; }
  .modal-card { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px; max-height: 92vh; }
  .grade, .paywall { grid-template-columns: 1fr; gap: 14px; }
  .paywall .pw-art { display: none; }
  .paywall h2 { font-size: 26px; }
  .license { flex-direction: column; }
  .lv-num { font-size: 76px; }
  .toast { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .ach-pop { width: calc(100% - 20px); top: 66px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .nodes { grid-template-columns: 1fr; }
  .wordmark { font-size: 17px; }
}
@media (max-width: 900px) {
  .scanner { display: flex; flex-direction: column; }
  .scanner .sc-stage { display: contents; }
  .scanner .sc-screen { order: 1; }
  .scanner .sc-controls { order: 2; }
  .scanner .sc-3d { order: 3; }
  .modal-card .eyebrow { padding-right: 40px; }
  .sc-coach .sc-hint { font-size: 15px; }
}

.waitlist { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.waitlist input { flex: 1 1 200px; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: inherit; font-size: 15px; }
.waitlist input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
.waitlist .wl-msg { flex-basis: 100%; font-size: 13px; }
.wl-done { color: var(--good); font-weight: 600; padding: 10px 0; }
.lesson.inline-fig .l-tabs { display: none !important; } .lesson.inline-fig .plate { margin: 10px -6px 16px; padding: 10px; }

/* ---- phone: keep the screen in view while you turn the dials ---- */
@media (max-width: 900px) {
  :root { --topbar-h: 57px; --tabs-h: 58px; }
  .lesson.show-scan .sc-screen, .lesson .scanner.no3d .sc-screen, .hero-sc ~ * .sc-screen { position: sticky; top: calc(var(--topbar-h) + var(--tabs-h)); z-index: 22; }
  .g-sc .sc-screen { position: sticky; top: var(--topbar-h); z-index: 22; }
  .sc-screen { padding: 8px 8px 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--line-2); }
  .sc-screen-head { padding-bottom: 4px; }
  .sc-title { font-size: 13.5px; }
  .sc-canvas-wrap { display: flex; justify-content: center; }
  .sc-us, .sc-ov { width: auto !important; max-width: 100%; max-height: 36vh !important; height: auto; }
  .sc-coach { margin-top: 6px; padding: 6px 8px; }
  .sc-ring, .sc-ring svg { width: 38px !important; height: 38px !important; }
  .sc-ring b { font-size: 12px; }
  .sc-task { display: none; }
  .sc-hint { font-size: 13.5px !important; }
  .sc-mm { max-height: 70px; }
  .fig-ctls { width: 100%; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .fig-ctls .ctl { margin: 6px 0; }
  .fig-ctls .callout { margin: 6px 0; font-size: 13.5px; }
  .figpack { margin: 10px -16px 16px; padding: 0 16px 10px; }
  .figpack .plate { position: sticky; top: var(--topbar-h); z-index: 22; margin: 0 -6px 8px; padding: 6px; background: var(--bg-2); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--line); }
  .figpack .plate-title, .figpack .plate-sub { display: none; }
  .figpack .sketch { max-height: 40vh; width: auto; }
  /* nicer touch sliders */
  input[type=range] { height: 34px; }
  input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -11px; }
}
@media (max-width: 900px) {
  .scanner.no3d .sc-stage, .scanner .sc-stage { display: contents !important; }
  .topbar { background: rgba(7, 9, 12, 0.97); }
  .l-tabs { background: rgba(7, 9, 12, 0.97); padding: 6px 12px; }
  .l-tabs button { padding: 8px; }
  :root { --tabs-h: 50px; }
  .sc-screen-head { flex-wrap: nowrap; }
  .sc-params { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
  .sc-us, .sc-ov { max-height: 31vh !important; }
  .sc-controls { scroll-margin-top: 50vh; }
}
@media (max-width: 900px) {
  .sc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; font-size: 13px !important; }
  .sc-params { font-size: 9.5px !important; max-width: 46%; }
}

/* plans */
.plans { margin-top: 4px; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan { position: relative; border: 0; border-radius: 16px; padding: 14px 10px 12px; text-align: center; cursor: pointer; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.plan b { font-size: 13px; color: var(--text-2); font-weight: 600; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.plan-price small { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.plan-save { font-size: 11px; font-weight: 700; color: var(--good); }
.plan-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 800; background: var(--grad); color: #1a0f02; padding: 2px 9px; border-radius: 999px; }
.plan.on { background: rgba(255, 178, 62, 0.1); box-shadow: inset 0 0 0 2px var(--amber), 0 10px 30px rgba(255, 140, 50, .18); }
.plan-note { font-size: 13px; margin: 10px 0; min-height: 1.4em; }
.plan-buy .btn { width: 100%; }
.pricing.three { grid-template-columns: 1fr 1.25fr 1fr; max-width: 1180px; align-items: start; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 28px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.ticks li::before { content: "✓  "; color: var(--good); font-weight: 800; }
.price-box .amt { font-family: var(--display); font-size: 40px; font-weight: 800; }
.price-box .amt small { font-size: 14px; color: var(--text-2); font-weight: 500; }
.prog-form-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.prog-form { display: grid; gap: 10px; }
.prog-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prog-form input, .prog-form select, .prog-form textarea { border: 0; border-radius: 12px; padding: 12px 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: inherit; }
.prog-form select option { background: var(--bg-2); }
@media (max-width: 900px) {
  .pricing.three, .prog-grid, .prog-form-wrap, .prog-form .f2 { grid-template-columns: 1fr; }
  .prog-duck { display: none; }
  .plan { padding: 12px 6px 10px; }
  .plan-price { font-size: 21px; }
}

.daily { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 900px) { .daily { grid-template-columns: 1fr; } }
/* first scan */
.fs-steps { padding-left: 20px; color: var(--text-2); }
.fs-steps li { margin-bottom: 6px; }
/* challenge */
.ch-card { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 28px; background: radial-gradient(circle at 0% 0%, rgba(255,178,62,.14), transparent 55%), var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); max-width: 900px; margin: 20px auto; }
.ch-stats { display: flex; gap: 12px; margin: 18px 0; }
.ch-stats div { padding: 10px 16px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.ch-stats b { display: block; font-family: var(--display); font-size: 28px; }
.ch-stats .ch-g { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto; font-size: 22px; }
.ch-stats span { font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) { .ch-card { grid-template-columns: 1fr; padding: 20px; } .ch-duck { width: 90px; } .ch-card .page-title { font-size: 28px !important; } }
/* squads */
.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sq-form { display: grid; gap: 10px; }
.sq-form input, .namebox input { border: 0; border-radius: 12px; padding: 12px 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: inherit; }
.namebox { text-align: center; } .namebox > div:first-child { margin: 0 auto; } .namebox form { justify-content: center; margin-top: 10px; } .namebox input { min-width: 220px; }
.lb { border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.lb-head { padding: 8px 12px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.lb-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; }
.lb-row:nth-child(odd) { background: var(--panel); }
.lb-row.me { box-shadow: inset 0 0 0 1.5px var(--amber); }
.lb-rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-family: var(--display); background: var(--panel-2); }
.lb-rank.top1 { background: var(--grad); color: #1a0f02; } .lb-rank.top2 { background: rgba(220,230,240,.25); } .lb-rank.top3 { background: rgba(205,127,50,.35); }
.lb-name { font-weight: 600; } .lb-meta { font-size: 12px; color: var(--text-3); } .lb-xp { font-family: var(--mono); color: var(--amber); }
.refcard { display: grid; grid-template-columns: 60px 1fr; gap: 16px; margin-top: 18px; background: linear-gradient(135deg, rgba(255,178,62,.1), var(--panel)); }
.rc-gift { font-size: 42px; }
.rc-prog { display: flex; gap: 8px; } .rc-prog i { flex: 1; height: 8px; border-radius: 9px; background: var(--panel-3); } .rc-prog i.on { background: var(--grad); }
.rc-count { font-size: 13px; margin-top: 6px; }
.emailcap { text-align: center; } .emailcap > div:first-child { margin: 0 auto; } .emailcap .waitlist { justify-content: center; margin-top: 12px; }
@media (max-width: 900px) { .sq-grid { grid-template-columns: 1fr; } .lb-row { grid-template-columns: 34px 1fr auto; } .lb-meta { display: none; } }

.fs-banner { display: none; }
@media (max-width: 900px) {
  .fs-banner { display: block; margin: 4px 2px 10px; font-size: 15px; color: var(--text-2); }
  .fs-banner b { color: var(--amber); font-family: var(--display); font-size: 20px; display: block; }
  .lesson.first-scan .l-side { display: block; }
  .lesson.first-scan .l-side > *:not(.fs-tasks):not(.fs-after) { display: none; }
}
@media (max-width: 900px) { .lesson.first-scan { display: flex; flex-direction: column; } .lesson.first-scan .l-fig { order: -1; } .lesson.first-scan .l-side { padding-top: 4px; } }

/* ============================================================
   Simple mode: the path (home) and the one-step lesson player
   ============================================================ */
body.in-player .topbar, body.in-player .tabbar { display: none !important; }
body.in-player { padding-bottom: 0 !important; overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); }
.pl-top { display: flex; align-items: center; gap: 14px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; max-width: 1100px; width: 100%; margin: 0 auto; }
.pl-x { color: var(--text-3); font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.pl-x:hover { background: var(--panel-2); color: var(--text); }
.pl-bar { flex: 1; height: 12px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.pl-count { font-size: 12px; color: var(--text-3); min-width: 32px; text-align: right; }
.pl-body { flex: 1; overflow-y: auto; padding: 8px 16px 20px; width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; animation: pageIn .35s cubic-bezier(.2,.8,.2,1); }
.pl-body.step-scan { max-width: 1100px; }
.pl-card h2 { font-family: var(--display); font-size: 25px; line-height: 1.15; margin: 6px 0 8px; letter-spacing: -0.02em; }
.pl-card p { font-size: 17.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.pl-card b { color: var(--text); }
.pl-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); position: relative; }
.pl-btn { display: block; width: 100%; max-width: 720px; margin: 0 auto; min-height: 56px; font-size: 17px; border-radius: 16px; }
.pl-btn.ghost { background: var(--panel-2); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.pl-sheet { max-width: 720px; margin: 0 auto 10px; border-radius: 16px; padding: 12px 14px; animation: sheetIn .3s cubic-bezier(.2,.9,.3,1.2); }
.pl-sheet.ok { background: rgba(79, 227, 154, 0.12); box-shadow: inset 0 0 0 1px rgba(79, 227, 154, 0.45); }
.pl-sheet.bad { background: rgba(255, 178, 62, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, 0.4); }
.pl-sheet-in { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; font-size: 15px; color: var(--text-2); }
.pl-sheet-in b { font-family: var(--display); font-size: 19px; color: var(--text); }
.pl-sheet.ok b { color: var(--good); } .pl-sheet.bad b { color: var(--amber); }
@keyframes sheetIn { from { transform: translateY(16px); opacity: 0; } }
/* visuals */
.pl-media { border-radius: 18px; overflow: hidden; background: #000; display: flex; flex-direction: column; align-items: center; }
.pl-media img, .pl-media video { max-width: 100%; max-height: 40vh; display: block; }
.pl-credit { font-size: 10.5px; color: var(--text-3); padding: 4px 8px; align-self: stretch; background: var(--bg-3); }
.pl-sim, .pl-scan { position: relative; }
.pl-sim .scanner, .pl-scan .scanner { min-height: 0; height: auto; gap: 0; }
.pl-sim .sc-stage, .pl-scan .sc-stage { display: block !important; }
.player .sc-screen { position: static !important; padding: 8px; border-radius: 18px; }
.player .sc-screen-head, .player .sc-coach, .player .sc-3d-hint, .player .sc-3d-tools { display: none !important; }
.player .sc-us, .player .sc-ov { max-height: 40vh !important; width: auto !important; max-width: 100%; }
.player .sc-ov { cursor: pointer; }
.pl-mark { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid; pointer-events: none; animation: pop .3s; }
.pl-mark.ok { border-color: var(--good); } .pl-mark.bad { border-color: var(--amber); }
@keyframes pop { from { transform: scale(2); opacity: 0; } }
/* scan step: 3D patient beside (desktop) or behind a button (phone) */
.pl-scan .sc-3d { display: none; }
.pl-patient { position: absolute; right: 10px; top: 10px; z-index: 5; background: rgba(12,17,22,.8); }
@media (min-width: 901px) {
  .pl-scan .sc-stage { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pl-scan .sc-3d { display: block; height: 100%; min-height: 360px; }
  .pl-scan .pl-patient { display: none; }
  .player .pl-scan .sc-us, .player .pl-scan .sc-ov { max-height: 46vh !important; }
}
@media (max-width: 900px) { .pl-scan.show-3d .sc-3d { display: block; height: 220px; margin-bottom: 8px; } .pl-scan.show-3d .sc-stage { display: flex !important; flex-direction: column-reverse; } }
/* coach */
.pl-coach { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pl-coach.good { box-shadow: inset 0 0 0 1.5px var(--good); }
.pl-ring { position: relative; width: 48px; height: 48px; flex: none; }
.pl-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 3.4; } .pl-ring .bg { stroke: var(--panel-3); }
.pl-ring .fg { stroke: var(--amber); stroke-dasharray: 0 100; stroke-linecap: round; transition: stroke-dasharray .25s; }
.pl-coach.good .fg { stroke: var(--good); }
.pl-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.pl-hint { font-size: 16px; font-weight: 600; color: var(--text); }
/* guided move button */
.pl-ctl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pl-move { width: 100%; max-width: 520px; min-height: 84px; border: 0; border-radius: 20px; cursor: pointer; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 10px 16px; gap: 0 12px;
  background: linear-gradient(135deg, rgba(255,178,62,.2), rgba(255,125,51,.1)); box-shadow: inset 0 0 0 2px var(--amber); color: var(--text); user-select: none; -webkit-user-select: none; touch-action: none; }
.pl-move:active { transform: scale(.98); background: rgba(255,178,62,.3); }
.pm-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--grad); color: #1a0f02; }
.pm-lab { font-family: var(--display); font-size: 19px; font-weight: 700; }
.pm-sub { font-size: 12.5px; color: var(--text-3); }
.pl-move.hold { box-shadow: inset 0 0 0 2px var(--good); background: rgba(79,227,154,.1); }
.pl-move.hold .pm-ico { background: var(--good); }
.pl-move.hold .pm-sub { visibility: hidden; }
.pl-move[data-anim="slide-v"] .pm-ico { animation: amv 1.2s ease-in-out infinite; }
.pl-move[data-anim="slide-h"] .pm-ico { animation: amh 1.2s ease-in-out infinite; }
.pl-move[data-anim="spin"] .pm-ico { animation: ams 1.6s ease-in-out infinite; }
.pl-move[data-anim="tilt"] .pm-ico { animation: amt 1.2s ease-in-out infinite; }
@keyframes amv { 50% { transform: translateY(-4px); } } @keyframes amh { 50% { transform: translateX(4px); } }
@keyframes ams { 50% { transform: rotate(25deg); } } @keyframes amt { 50% { transform: skewX(-10deg); } }
.pl-link { border: 0; background: none; color: var(--text-3); font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 6px; }
/* pad */
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.pad-b { height: 64px; border: 0; border-radius: 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; user-select: none; -webkit-user-select: none; touch-action: none; }
.pad-b span { font-size: 24px; line-height: 1; } .pad-b small { font-size: 10px; color: var(--text-3); }
.pad-b:active { background: var(--cyan); color: #000; }
.pad-b.suggest { box-shadow: inset 0 0 0 2.5px var(--amber), 0 0 24px rgba(255,178,62,.45); animation: pulse 1s ease-in-out infinite; }
.pad-hint.on { background: rgba(255,178,62,.15); }
@keyframes pulse { 50% { transform: scale(1.05); } }
.pad-extra { margin-top: 4px; }
.pl-got { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); width: 100%; max-width: 520px; }
.pl-got img { width: 96px; border-radius: 10px; } .pl-got > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
/* quiz */
.pl-opts { display: grid; gap: 10px; }
.pl-opt { min-height: 58px; border: 0; border-radius: 16px; padding: 14px 16px; text-align: left; font-size: 16.5px; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1.5px var(--line-2), 0 3px 0 rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: transform .1s; }
.pl-opt:active { transform: translateY(2px); }
.pl-opt.right { background: rgba(79,227,154,.15); box-shadow: inset 0 0 0 2px var(--good); }
.pl-opt.wrong { background: rgba(255,107,107,.1); box-shadow: inset 0 0 0 2px var(--bad); opacity: .7; animation: shake .35s; }
/* knob */
.pl-knob { padding: 14px 16px 6px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pl-knob-head { display: flex; justify-content: space-between; font-weight: 700; } .pl-knob-head output { color: var(--amber); font-family: var(--mono); }
.pl-knob input[type=range] { height: 44px; }
.pl-knob input[type=range]::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -14px; }
/* done */
.pl-done { text-align: center; padding-top: 10px; }
.pl-done-duck { width: 120px; margin: 0 auto; } .pl-done h1 { font-size: 34px; margin: 8px 0 18px; }
.pl-done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pl-done-stats div { padding: 14px 8px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pl-done-stats b { display: block; font-family: var(--display); font-size: 26px; } .pl-done-stats span { font-size: 12px; color: var(--text-3); }
.pl-caps { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pl-cap { position: relative; } .pl-cap img { width: 120px; border-radius: 12px; display: block; }
.pl-cap span { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.pl-email { margin-top: 22px; text-align: left; padding: 14px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pl-email p { margin: 0 0 8px; flex-basis: 100%; }

/* ---------- home / path ---------- */
.home { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.h-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.h-duck { width: 54px; flex: none; }
.h-stats { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.h-st b { color: var(--text); }
.h-goal { display: inline-block; width: 70px; height: 7px; border-radius: 9px; background: var(--panel-3); vertical-align: middle; overflow: hidden; }
.h-goal i { display: block; height: 100%; background: var(--cyan); }
.h-next { display: block; position: relative; padding: 22px 80px 22px 22px; border-radius: 24px; color: #1a0f02; background: var(--grad); box-shadow: 0 16px 50px rgba(255,140,50,.3); margin-bottom: 26px; transition: transform .15s; }
.h-next:active { transform: scale(.99); }
.h-next.done { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); padding-right: 22px; }
.h-next-k { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.h-next-t { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.1; margin: 4px 0; letter-spacing: -.02em; }
.h-next-s { font-size: 14px; opacity: .8; }
.h-next-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: #1a0f02; color: var(--amber); display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.unit { margin-bottom: 22px; }
.unit-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.unit-i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.unit-h b { font-family: var(--display); font-size: 19px; display: block; } .unit-h small { color: var(--text-3); font-size: 12.5px; }
.unit-ls { display: grid; gap: 8px; padding-left: 20px; border-left: 2px solid var(--line); margin-left: 20px; }
.pl-node { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 600; font-size: 16px; }
.pn-c { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--text-3); flex: none; font-size: 15px; }
.pl-node.d .pn-c { background: rgba(79,227,154,.18); color: var(--good); }
.pl-node.cur { box-shadow: inset 0 0 0 2px var(--amber); } .pl-node.cur .pn-c { background: var(--grad); color: #1a0f02; }
.pl-node.lk { opacity: .6; }
.h-pro { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; padding: 18px; border-radius: 20px; margin: 6px 0 22px; background: linear-gradient(135deg, rgba(255,178,62,.14), var(--panel)); box-shadow: inset 0 0 0 1px rgba(255,178,62,.4); color: var(--text); }
.h-pro b { display: block; font-family: var(--display); font-size: 18px; } .h-pro span { font-size: 13.5px; color: var(--text-2); }
.h-deep { border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; }
.h-deep summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.deep-grid a { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 600; }
.deep-grid small { display: block; color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.play-h { font-size: 32px; margin: 4px 0 14px; }
.play-big { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 24px; background: radial-gradient(circle at 100% 0%, rgba(165,148,255,.3), transparent 60%), var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); margin-bottom: 12px; }
.pb-i { font-size: 34px; } .play-big b { display: block; font-family: var(--display); font-size: 22px; } .play-big span { color: var(--text-2); font-size: 14px; }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.play-t { padding: 16px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); display: flex; flex-direction: column; gap: 2px; min-height: 120px; }
.pt-i { font-size: 26px; margin-bottom: 6px; } .play-t b { font-family: var(--display); font-size: 17px; } .play-t small { color: var(--text-3); font-size: 12.5px; }
@media (max-width: 900px) {
  .tabbar { grid-template-columns: repeat(3, 1fr) !important; }
  .hud-level, .hud-goal { display: none !important; }
  .pl-card h2 { font-size: 22px; } .pl-card p { font-size: 16.5px; }
  .player .sc-us, .player .sc-ov { max-height: 34vh !important; }
  .pl-body { gap: 12px; }
}
.pl-sim.scanner, .pl-scan.scanner { display: block !important; height: auto !important; min-height: 0 !important; }
.pl-sim.scanner .sc-stage, .pl-scan.scanner .sc-stage { flex: none !important; height: auto !important; min-height: 0 !important; }
@media (min-width: 901px) { .pl-scan.scanner .sc-stage { display: grid !important; } }
.pl-body > * { flex-shrink: 0; }

/* scan steps must fit one phone screen: no scrolling while you scan */
@media (max-width: 900px) {
  .player.scanning .pl-foot { display: none; }
  .step-scan .pl-card h2 { font-size: 19px; margin: 2px 0 0; }
  .step-scan { gap: 10px !important; padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
  .player .step-scan .sc-us, .player .step-scan .sc-ov { max-height: 30vh !important; }
  .step-scan .pl-coach { padding: 6px 10px; }
  .step-scan .pl-ring, .step-scan .pl-ring svg { width: 40px; height: 40px; }
  .pad { grid-template-columns: repeat(3, 64px); gap: 8px; }
  .pad-b { height: 54px; border-radius: 15px; }
  .pad-b span { font-size: 21px; }
  .pl-move { min-height: 72px; }
  .pad-extra { margin: 0 0 4px; }
}
.sp-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 6px; max-width: 1100px; width: 100%; margin: 0 auto; }
.sp-t { font-size: 22px; font-weight: 700; color: var(--amber); } .sp-s { font-size: 15px; color: var(--text-2); }
.sp-title { font-size: 13px; color: var(--text-3); font-family: var(--mono); }
.player .pl-btn.ghost:disabled { opacity: .7; }
