/* ==========================================================================
   DownBad — visual system
   Black foundation · one hot signal color (brand coral) · one "progress" color (acid lime)
   Condensed display type · mono labels · hairline structure · light that follows you
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --panel: #121216;
  --panel-2: #18181d;
  --line: #24242b;
  --line-2: #363640;
  --text: #f4f2ec;
  --muted: #8e8c95;
  --dim: #5f5e68;

  --hot: #ff3d5a;      /* brand coral, turned up */
  --hot-rgb: 255 61 90;
  --on-hot: #ffffff;   /* text on hot fills */
  --hot-2: #ff6a3d;    /* only used inside the hot gradient */
  --lime: #c8ff2e;     /* progress, wins, "done" */
  --lime-rgb: 200 255 46;
  --amber: #ffb020;    /* warnings */
  --ink: #0a0a0a;      /* text on bright fills */

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: var(--f-display); /* monospace retired: everything small uses the condensed display face */

  --r: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain: one fixed layer, very low contrast */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* one soft key light, top-right, that drifts toward the pointer */
body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -30vmax; top: -35vmax;
  background: radial-gradient(closest-side, rgb(var(--hot-rgb) / .13), transparent 70%);
  transform: translate(calc(var(--mx, 0) * -2vmax), calc(var(--my, 0) * 2vmax));
  transition: transform 1.2s var(--ease-out);
}
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

#app { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
main { position: relative; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 20px; letter-spacing: -.01em; }
h3 { font-size: 17px; letter-spacing: -.005em; }
h4 {
  font: 800 condensed 13px/1.4 var(--f-display); text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 18px 0 8px;
}
p { margin: 0 0 10px; }
a { color: var(--text); text-decoration-color: var(--hot); text-underline-offset: 3px; }
a:hover { color: var(--hot); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
ol, ul { padding-left: 20px; margin: 6px 0; }
li { margin: 4px 0; }
blockquote {
  margin: 6px 0 10px; padding: 10px 14px; border-left: 2px solid var(--line-2);
  font: 600 16px/1.4 var(--f-body); background: var(--bg-2);
}
blockquote.better { border-color: var(--lime); }

/* ---------- Boot ---------- */
.boot { min-height: 90vh; display: grid; place-items: center; }
.boot .wm { font: 900 clamp(64px, 18vw, 160px)/.8 var(--f-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em; }
.boot .wm span { color: var(--hot); }
.boot .bar { height: 2px; background: var(--line); margin-top: 18px; overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 40%; background: var(--lime); animation: boot 1s var(--ease) infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1);
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 12px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(9, 9, 11, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
body.scrolled .top { border-bottom-color: var(--line); }
.brand {
  font: 900 26px/1 var(--f-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline;
}
.brand span { color: var(--hot); display: inline-block; transition: transform .5s var(--ease-out); }
.brand:hover { color: var(--text); }
.brand:hover span { transform: translateY(-4px) scale(1.4); }
.melink {
  height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r); font: 800 condensed 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em;
  transition: border-color .25s, background .25s, color .25s;
}
.melink::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.melink:hover { border-color: var(--text); background: var(--text); color: var(--ink); }

/* ---------- Page head (every screen) ---------- */
.page-head { position: relative; padding: 18px 0 26px; margin-bottom: 8px; }
.eyebrow {
  display: flex; gap: 10px; align-items: center;
  font: 800 condensed 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.eyebrow b { color: var(--hot); font-weight: 600; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.display {
  margin: 14px 0 0; font: 900 clamp(54px, 15.5vw, 112px)/.84 var(--f-display); font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.012em;
}
.display em { font-style: normal; color: var(--hot); }
.display .o { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.display .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.page-head.in .display .w > span { transform: none; }
.page-sub { max-width: 46ch; color: var(--muted); margin: 16px 0 0; font-size: 15px; }

/* ---------- Bottom nav ---------- */
nav.bottom {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%); width: min(calc(100% - 24px), 560px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(14, 14, 17, .92); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 5px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
nav.bottom a {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px; text-decoration: none; color: var(--muted);
  font: 800 12px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .03em;
  transition: color .25s;
}
nav.bottom a span { font-size: 17px; line-height: 1.2; filter: grayscale(1) brightness(1.3); transition: filter .3s, transform .4s var(--ease-out); }
nav.bottom a:hover { color: var(--text); }
nav.bottom a:hover span { transform: translateY(-2px); }
nav.bottom a.on { color: var(--ink); }
nav.bottom a.on span { filter: none; }
nav.bottom .ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 6px; background: var(--lime);
  width: calc((100% - 10px) / 6); transform: translateX(calc(var(--n, 0) * 100%));
  transition: transform .5s var(--ease-out);
}

/* ---------- Panels (replaces "cards") ---------- */
.card {
  position: relative; margin: 0 0 14px; padding: 20px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; isolation: isolate;
}
/* cursor spotlight on panels (set by fx.js) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .055), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card > h3:first-child, .card > h2:first-child { display: flex; align-items: center; gap: 8px; }
.card h3 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 21px; letter-spacing: .005em; }
.card.flat { background: transparent; border-width: 1px 0 0; border-radius: 0; padding: 22px 0 6px; }
.card.flat::before { display: none; }
.lockedcard { background: repeating-linear-gradient(135deg, var(--panel) 0 10px, var(--bg-2) 10px 20px); }
.lockedcard h3 { color: var(--muted); }
.lockic { font-size: 14px; }
.hero { border-color: var(--line-2); }
.soon {
  font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em;
  background: var(--lime); color: var(--ink); padding: 4px 6px; border-radius: 2px;
}
.warn, .info {
  position: relative; padding: 12px 14px 12px 16px; margin: 12px 0; font-size: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r);
}
.info { border-left-color: var(--lime); }
.info::after { /* loading sweep */
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(var(--lime-rgb) / .07), transparent);
  transform: translateX(-100%); animation: sweep 1.6s var(--ease) infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; overflow: hidden; isolation: isolate; cursor: pointer;
  font: 700 15px/1 var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); background: transparent; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: var(--r);
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease-out), color .3s var(--ease), border-color .3s, background .3s;
}
.btn::after { /* fill sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text);
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--ink); border-color: var(--text); }
.btn:hover::after { transform: none; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::after { display: none; }
.btn:disabled:hover { color: var(--text); border-color: var(--line-2); }
.btn.primary { background: var(--hot); border-color: var(--hot); color: var(--on-hot); box-shadow: 0 10px 30px -10px rgb(var(--hot-rgb) / .55); }
.btn.primary::after { background: var(--lime); }
.btn.primary:hover { color: var(--ink); border-color: var(--lime); box-shadow: 0 14px 34px -10px rgb(var(--lime-rgb) / .45); }
.btn.primary:disabled:hover { color: var(--on-hot); border-color: var(--hot); }
.btn.primary .arr, a.btn.primary::before { transition: transform .45s var(--ease-out); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { border-color: transparent; color: var(--muted); padding: 0 10px; }
.btn.ghost::after { background: var(--panel-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn.danger { color: var(--hot); border-color: rgb(var(--hot-rgb) / .4); }
.btn.danger::after { background: var(--hot); }
.btn.danger:hover { color: var(--on-hot); border-color: var(--hot); }
.btn.block { width: 100%; margin-top: 12px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.icon { width: 46px; padding: 0; font-size: 18px; flex: none; }
.btn.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.mini {
  margin-left: auto; cursor: pointer; padding: 5px 9px; border-radius: 2px;
  font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em;
  background: transparent; color: var(--text); border: 1px solid var(--line-2); transition: background .25s, color .25s;
}
.mini:hover { background: var(--text); color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; }

/* ---------- Forms ---------- */
.form label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font: 800 condensed 13px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.form input:not([type=radio]):not([type=checkbox]), select, textarea {
  font: 500 16px/1.3 var(--f-body); color: var(--text); text-transform: none; letter-spacing: 0;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 13px; width: 100%; transition: border-color .25s, box-shadow .25s;
}
.form input::placeholder, textarea::placeholder { color: var(--dim); }
.form input:hover, select:hover, textarea:hover { border-color: var(--dim); }
.form input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgb(var(--lime-rgb) / .12); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font: 800 condensed 13px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { position: relative; display: inline-flex; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, button.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 12px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg);
  font: 500 13px/1 var(--f-body); color: var(--text); text-transform: none; letter-spacing: 0;
  transition: border-color .25s, background .25s, color .25s, transform .3s var(--ease-out);
}
.chip span:hover, button.chip:hover { border-color: var(--text); }
.chip input:checked + span, button.chip.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.checks { display: flex; flex-direction: column; }
.check {
  display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 11px 0; margin: 0 !important; border-bottom: 1px solid var(--line);
  font: 400 14px/1.45 var(--f-body) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important;
  transition: padding .3s var(--ease-out);
}
.check:last-child { border-bottom: 0; }
.check:hover { padding-left: 4px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0; cursor: pointer;
  width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 3px; background: var(--bg);
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .3s var(--ease-out);
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease-out); margin-top: -3px; }
.check input:checked { background: var(--lime); border-color: var(--lime); transform: scale(1.08); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

/* ---------- Home ---------- */
.streak-hero { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: end; padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.streak-hero .num { font: 900 clamp(120px, 38vw, 220px)/.78 var(--f-display); font-stretch: 62%; letter-spacing: -.03em; color: var(--text); }
.streak-hero.ok .num { color: var(--lime); }
.streak-hero.bad .num { color: transparent; -webkit-text-stroke: 2px var(--hot); }
.streak-hero .lab { font: 800 condensed 13px/1.4 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.streak-hero .status { font: 600 17px/1.35 var(--f-body); margin: 8px 0 14px; max-width: 26ch; }
.streak-hero .flame { font-size: 28px; display: inline-block; animation: flick 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.06); } }

.marquee {
  position: relative; margin: 6px calc(var(--gutter) * -1) 18px; overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line); padding: 12px 0; background: var(--bg);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track { display: inline-flex; gap: 28px; animation: marq 28s linear infinite; padding-right: 28px; }
.marquee span { font: 800 22px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: .02em; }
.marquee span:nth-child(4n+2) { color: var(--hot); }
.marquee span:nth-child(4n) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.marquee i { font-style: normal; color: var(--lime); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 14px 12px 4px 0; border-right: 1px solid var(--line); padding-left: 12px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .sl { font: 800 condensed 12px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat .sv { font: 800 30px/1 var(--f-display); font-stretch: 68%; margin-top: 8px; white-space: nowrap; }
.stat .sd { font: 800 condensed 13px/1.3 var(--f-display); color: var(--lime); margin-top: 6px; }
.stats-wrap.card { padding: 0 18px 12px; }

.note { display: grid; gap: 4px; }
.note h4 { margin-top: 10px; }
.note ul { list-style: none; padding: 0; margin: 0; }
.note li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px dashed var(--line); margin: 0; }
.note li::before { content: "+"; position: absolute; left: 0; top: 7px; font: 800 condensed 16px/1.3 var(--f-display); color: var(--lime); }
.note .slips li::before { content: "−"; color: var(--hot); }
.focus {
  margin: 14px -18px -20px; padding: 18px; background: var(--lime); color: var(--ink);
}
.focus span { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.focus p { margin: 8px 0 0; font: 800 26px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }

.charts { display: grid; gap: 4px; }
.charts .chart-title { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 12px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 1.6s var(--ease-out); }
.in .chart .line, .chart.drawn .line { stroke-dashoffset: 0; }
.chart .dot { fill: var(--bg); stroke: var(--lime); stroke-width: 1.5; }
.chart .dot:last-of-type { fill: var(--lime); }
.chart .ylab, .chart .xlab { fill: var(--dim); font: 800 condensed 11px var(--f-display); text-anchor: end; }
.chart .xlab { text-anchor: start; }
.chart .xlab.end { text-anchor: end; }
.chart-empty { font: 800 condensed 14px var(--f-display); color: var(--dim); padding: 10px 0; }

.level { margin-top: 6px; }
.level h4 { display: flex; justify-content: space-between; color: var(--text); font-size: 12px; }
.level.unlocked h4 { color: var(--lime); }
.gates { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.gates li { counter-increment: g; display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.gates li:last-child { border-bottom: 0; }
.gates .ck { flex: none; width: 26px; font: 800 condensed 13px/1 var(--f-display); color: var(--dim); }
.gates .ck::before { content: counter(g, decimal-leading-zero); }
.gates li.done .ck { color: var(--lime); }
.gates li.done .ck::before { content: "✓"; font-size: 15px; }
.gates li.done .gl { color: var(--text); }
.gates .gl { color: var(--muted); }
.gates li.locked { opacity: .5; }
.gates em { font: 800 condensed 13px var(--f-display); font-style: normal; color: var(--dim); margin-left: 6px; }

/* ---------- Check-in ---------- */
.steps { display: flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.steps > * { flex: 1; padding: 9px 10px; font: 800 13px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); border-right: 1px solid var(--line); white-space: nowrap; }
.steps > *:last-child { border-right: 0; }
.steps b { color: var(--ink); background: var(--lime); font-weight: 900; }
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: 900px; }
.pose { padding: 8px; margin: 0; text-align: center; transform-style: preserve-3d; }
.ph { position: relative; aspect-ratio: 3/4; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 2px; overflow: hidden; display: grid; place-items: center; color: var(--dim); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .pose-outline { width: 68%; height: 80%; }
.pose-name { font: 700 15px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 8px; }
.pose .btn.sm { width: 100%; font-size: 12px; padding: 0 6px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs img, .thumb-empty { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); font: 800 condensed 12px var(--f-display); text-transform: uppercase; }

/* ---------- Camera ---------- */
.cam { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; animation: camIn .4s var(--ease-out); }
@keyframes camIn { from { opacity: 0; transform: scale(1.03); } }
.cam-stage { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; }
.cam-stage video, .cam-stage .ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mirror { transform: scaleX(-1); }
.cam-stage .outline { position: absolute; inset: 6% 15%; color: var(--lime); display: grid; place-items: center; pointer-events: none; opacity: .8; }
.cam-stage .outline svg { width: 100%; height: 100%; }
.count { position: absolute; font: 900 180px/1 var(--f-display); font-stretch: 62%; color: var(--lime); text-shadow: 0 10px 40px rgba(0, 0, 0, .7); animation: pop .9s var(--ease-out) infinite; }
@keyframes pop { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } }
.cam-bar { background: var(--bg); border-top: 1px solid var(--line); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.cam-bar .row { justify-content: center; }
.cam-title { font: 800 condensed 13px/1.4 var(--f-display); text-transform: uppercase; letter-spacing: .12em; text-align: center; color: var(--muted); }
.op { display: flex; align-items: center; gap: 10px; justify-content: center; font: 800 condensed 12px var(--f-display); text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.cam-err { color: var(--amber); text-align: center; font-size: 14px; }

/* ---------- Glow-Up ---------- */
.face-wrap { position: relative; max-width: 340px; margin: 6px auto 8px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; cursor: crosshair; transform-style: preserve-3d; }
.face-wrap img { display: block; width: 100%; height: auto; }
.face-wrap::after { /* scan line */
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; pointer-events: none;
  background: linear-gradient(transparent, rgb(var(--lime-rgb) / .18), transparent);
  animation: scan 3.6s var(--ease) infinite;
}
@keyframes scan { to { top: 100%; } }
.face-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.face-ov line { stroke: var(--lime); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.face-ov circle { fill: var(--hot); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.res-grid > div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .3s; }
.res-grid > div:hover { background: var(--panel-2); }
.res-grid .muted.small { font: 800 condensed 12px var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
.res-grid b { font: 800 24px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.res-grid .src { font: 800 condensed 12.5px/1.3 var(--f-display); color: var(--dim); }
.dotsw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, .5); flex: none; }
.mst-block { margin-top: 16px; }
.mst { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 10px 0 6px; }
.mstsw { aspect-ratio: 3/4; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .15); cursor: pointer; padding: 0; transition: transform .35s var(--ease-out); }
.mstsw:hover { transform: translateY(-4px); }
.mstsw.guess { outline: 1.5px dashed var(--lime); outline-offset: 3px; }
.mstsw.on { outline: 2px solid var(--hot); outline-offset: 3px; transform: translateY(-6px); }
details.fine summary { cursor: pointer; font: 700 16px/1.2 var(--f-display); font-stretch: 78%; text-transform: uppercase; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fine summary::-webkit-details-marker { display: none; }
details.fine summary::after { content: "+"; font: 800 condensed 24px/1 var(--f-display); color: var(--lime); transition: transform .4s var(--ease-out); }
details.fine[open] summary::after { transform: rotate(45deg); }
details.fine[open] summary { margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pill { font: 500 13px/1 var(--f-body); padding: 9px 11px; border-radius: 2px; border: 1px solid var(--line-2); transition: transform .3s var(--ease-out), border-color .3s; }
.pill:hover { transform: translateY(-2px); border-color: var(--text); }
.pill.ok { border-color: rgb(var(--lime-rgb) / .45); }
.pill.ok::before { content: "→ "; color: var(--lime); }
.pill.no { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--hot); border-style: dashed; }
.dl { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; margin: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.dl dt, .dl dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font: 800 condensed 12.5px/1.5 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-right: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 0; margin: 10px 0; }
.sw { width: 52px; height: 72px; border: 0; margin-right: -6px; border-radius: 2px; box-shadow: -6px 0 14px rgba(0, 0, 0, .45); transition: transform .45s var(--ease-out), margin .45s var(--ease-out); }
.swatches:hover .sw { margin-right: 4px; }
.sw:hover { transform: translateY(-10px) rotate(-3deg); }
.sw.sm { width: 30px; height: 30px; margin-right: 4px; box-shadow: none; opacity: .8; }
.places { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid var(--line); }
.places li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; transition: padding .3s var(--ease-out); }
.places li:hover { padding-left: 6px; }
.pl-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pl-links { display: flex; gap: 12px; flex: none; font: 800 condensed 13px var(--f-display); text-transform: uppercase; letter-spacing: .08em; }
.pl-links a { text-decoration: none; color: var(--lime); }
.pl-links a:hover { color: var(--text); }
.filt { margin-top: 14px; }

/* ---------- Progress ---------- */
.compare { position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: #000; margin-top: 12px; user-select: none; border: 1px solid var(--line-2); touch-action: pan-y; cursor: ew-resize; }
.compare img { pointer-events: none; -webkit-user-drag: none; }
.compare .divider::after { transition: transform .15s ease; }
.compare.dragging .divider::after { transform: translate(-50%, -50%) scale(1.15); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .divider { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); transform: translateX(-50%); box-shadow: 0 0 24px rgb(var(--lime-rgb) / .6); }
.compare .divider::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; background: var(--lime); color: var(--ink); border-radius: 50%; font-size: 16px; }
.compare .lbl { position: absolute; bottom: 12px; background: var(--ink); color: var(--text); padding: 5px 8px; font: 800 condensed 12px var(--f-display); text-transform: uppercase; letter-spacing: .1em; }
.compare .lbl.l { left: 12px; } .compare .lbl.r { right: 12px; background: var(--lime); color: var(--ink); }
#cmprange { width: 100%; margin: 14px 0 4px; accent-color: var(--lime); }
.deltas { font: 800 22px/1.1 var(--f-display); font-stretch: 72%; text-transform: uppercase; text-align: center; color: var(--lime); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.tl-head { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: baseline; }
.tl-head b { font: 800 18px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }

/* ---------- IG Coach ---------- */
.igscore { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { --p: 0; width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--hot) calc(var(--p) * 1%), var(--line) 0); transition: --p 1s; }
.ring b { width: 90px; height: 90px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 900 34px/1 var(--f-display); font-stretch: 65%; }
.igscore h2 { font: 900 34px/.9 var(--f-display); font-stretch: 65%; text-transform: uppercase; }
.rules { counter-reset: r; list-style: none; padding: 0; }
.rules li { counter-increment: r; position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); margin: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 10px; font: 800 condensed 14px var(--f-display); color: var(--hot); }

/* ---------- Practice ---------- */
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; perspective: 1000px; }
.scenario {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); margin: 0; min-height: 168px; padding: 16px;
  transform-style: preserve-3d; transition: transform .6s var(--ease-out), border-color .3s;
}
.scenario:hover { border-color: var(--text); }
.scenario:nth-child(3n+1) { grid-column: span 2; min-height: 120px; }
.scenario .sc-icon { font-size: 26px; transition: transform .5s var(--ease-out); }
.scenario:hover .sc-icon { transform: translateZ(30px) scale(1.15) rotate(-6deg); }
.scenario b { font: 800 22px/.95 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: .01em; }
.scenario .muted { font-size: 13px; line-height: 1.4; }
.tagm { margin-top: auto; font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: #e8c66a; padding: 5px 7px; border-radius: 2px; }
.dr { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); margin-top: 8px; }
.dr b { font: 800 18px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.dr.ok { border: 1px solid var(--lime); }
.dr.ok b { color: var(--lime); }
.chat-head .persona { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.chat-head .persona b { display: block; font: 800 24px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; background: var(--hot); color: var(--on-hot); font: 900 26px/1 var(--f-display); font-stretch: 70%; border-radius: var(--r); }
.goal { border-left: 2px solid var(--lime); padding-left: 10px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 12px; min-height: 30vh; }
.msg { display: flex; animation: msgIn .45s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg span { max-width: 82%; padding: 11px 14px; font-size: 15px; line-height: 1.45; border-radius: 14px; white-space: pre-wrap; }
.msg.them span { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg.me { justify-content: flex-end; }
.msg.me span { background: var(--text); color: var(--ink); border-bottom-right-radius: 3px; font-weight: 500; }
.chat.texting .msg.me span { background: var(--hot); color: var(--on-hot); }
.typing span { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); background: var(--lime); } }
.ended { text-align: center; font: 800 condensed 13px var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--hot); margin: 10px 0; }
.hint { padding: 12px 14px; border: 1px solid var(--lime); border-radius: var(--r); margin: 8px 0; animation: msgIn .45s var(--ease-out); }
.composer { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 8px; align-items: flex-end; padding: 8px; background: rgba(9, 9, 11, .94); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 8px; }
.composer textarea { resize: none; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 8px; min-height: 46px; }
.chat-tools { margin-bottom: 14px; }
.scorecard .sc-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 12px; }
.sc-big b { font: 900 120px/.8 var(--f-display); font-stretch: 62%; color: var(--lime); }
.sc-big span { font: 800 condensed 16px var(--f-display); color: var(--muted); }
.sc-verdict { font: 600 17px/1.35 var(--f-body); margin: 0; }
.bars { display: grid; gap: 8px; margin: 10px 0 16px; }
.bar { display: grid; grid-template-columns: 92px 1fr 22px; gap: 10px; align-items: center; font: 800 condensed 12.5px var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bar i { height: 8px; background: var(--line); position: relative; overflow: hidden; border-radius: 1px; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--lime); transform-origin: left; animation: grow 1.1s var(--ease-out) both; }
.bar:nth-child(even) i::after { background: var(--text); }
@keyframes grow { from { transform: scaleX(0); } }
.bar b { color: var(--text); text-align: right; }
.history { list-style: none; padding: 0; margin: 10px 0 0; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.history b { font: 800 20px/1 var(--f-display); font-stretch: 70%; color: var(--lime); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%);
  background: var(--text); color: var(--ink); padding: 12px 16px; border-left: 4px solid var(--hot);
  font: 600 14px/1.3 var(--f-body); max-width: calc(100% - 32px); border-radius: 2px;
  animation: toastIn .45s var(--ease-out);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Reveal + page transitions ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
main.enter { animation: pageIn .6s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; clip-path: inset(0 0 12% 0); transform: translateY(14px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.tilt { transition: transform .7s var(--ease-out); will-change: transform; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  #app { max-width: 760px; }
  .display { font-size: 128px; }
  .scenarios { grid-template-columns: repeat(3, 1fr); }
  .scenario:nth-child(3n+1) { grid-column: span 1; }
  .scenario:nth-child(4n+1) { grid-column: span 2; }
}

/* ---------- Phones: icon nav, label only on the active tab ---------- */
@media (max-width: 520px) {
  nav.bottom { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  nav.bottom a { font-size: 0; gap: 0; padding: 9px 0; }
  nav.bottom a span { font-size: 19px; }
  nav.bottom a.on { font-size: 11.5px; gap: 3px; padding: 6px 0 5px; }
  nav.bottom a.on span { font-size: 16px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 18px 14px; }
  .focus { margin: 14px -14px -18px; }
  .scenario { min-height: 150px; padding: 14px; }
}



/* ==========================================================================
   Home dashboard, Stars, invites
   ========================================================================== */
/* one-line rows */
.strip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; margin: 0 0 10px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .3s, transform .45s var(--ease-out), background .3s;
}
a.strip:hover { border-color: var(--text); transform: translateX(3px); color: var(--text); }
.strip .ic { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--line-2); border-radius: var(--r); }
.strip .ic.glyph { font-size: 20px; color: var(--lime); }
.strip .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.strip .tx b { font: 800 17px/1.05 var(--f-display); font-stretch: 74%; text-transform: uppercase; letter-spacing: .01em; }
.strip .tx small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.strip .arr { color: var(--muted); font-size: 18px; transition: transform .45s var(--ease-out), color .3s; }
a.strip:hover .arr { transform: translateX(4px); color: var(--lime); }
.strip.hot { border-color: rgb(var(--hot-rgb) / .5); }
.strip.hot .ic { background: var(--hot); border-color: var(--hot); }
.strip.bad { border-color: var(--hot); }
.strip.bad b { color: var(--hot); }

/* this-week tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; min-height: 128px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tl { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.tv { font: 900 34px/1 var(--f-display); font-stretch: 64%; margin-top: 6px; white-space: nowrap; }
.td { font: 800 condensed 13px/1.2 var(--f-display); color: var(--muted); }
.td.up { color: var(--lime); }
.td.down { color: var(--hot); }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; }
.spark path { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .85; }
.spark circle { fill: var(--lime); }
.dots { display: flex; gap: 5px; margin-top: auto; }
.dots i { flex: 1; height: 8px; border-radius: 1px; background: var(--line-2); }
.dots i.on { background: var(--lime); }

/* focus band */
.focus-card { display: block; padding: 18px; margin: 0 0 10px; background: var(--lime); color: var(--ink); text-decoration: none; border-radius: var(--r); transition: transform .45s var(--ease-out); }
.focus-card:hover { color: var(--ink); transform: translateY(-2px); }
.focus-card span { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.focus-card p { margin: 8px 0 8px; font: 900 28px/.98 var(--f-display); font-stretch: 66%; text-transform: uppercase; }
.focus-card small { font: 600 12px/1 var(--f-body); opacity: .75; }

/* road to goal */
.road-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.road-top b { font: 900 64px/.85 var(--f-display); font-stretch: 62%; color: var(--lime); }
.road-top span { color: var(--muted); font-size: 14px; }
.road-top strong { color: var(--text); }
.track { position: relative; height: 12px; margin: 22px 0 8px; background: var(--line); border-radius: 2px; }
.track i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--lime); border-radius: 2px; transform-origin: left; animation: grow 1.3s var(--ease-out) both; }
.track .me { position: absolute; left: var(--p); bottom: 18px; transform: translateX(-50%); font: 800 condensed 12px/1 var(--f-display); background: var(--text); color: var(--ink); padding: 4px 6px; border-radius: 2px; white-space: nowrap; }
.ends { display: flex; justify-content: space-between; font: 800 condensed 12.5px var(--f-display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* graduation (collapsed) */
details.grad > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; }
details.grad > summary::-webkit-details-marker { display: none; }
.grad .tx { display: flex; flex-direction: column; gap: 4px; }
.grad .tx small { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.grad .tx b { font: 800 22px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; }
.gcount { font: 900 30px/1 var(--f-display); font-stretch: 64%; color: var(--lime); }
.segs { grid-column: 1 / -1; display: flex; gap: 4px; }
.segs i { flex: 1; height: 6px; background: var(--line-2); border-radius: 1px; }
.segs i.on { background: var(--lime); }
details.grad[open] > summary { margin-bottom: 8px; }

/* stars widget on home */
.starw { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--text); }
.starw:hover { color: var(--text); border-color: var(--text); }
.starw .glyph { width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; color: var(--ink); background: var(--lime); border-radius: 50%; }
.starw .tx { display: flex; flex-direction: column; gap: 4px; }
.starw .tx small { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.starw .tx b { font: 700 17px/1.25 var(--f-body); }
.starw .arr { color: var(--muted); }

/* stars page */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sign { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; cursor: pointer; text-align: left; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font: inherit; transition: border-color .3s, transform .4s var(--ease-out); }
.sign span { font-size: 22px; color: var(--lime); }
.sign b { font: 800 16px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; margin-top: 6px; }
.sign small { font: 800 condensed 11.5px/1.3 var(--f-display); color: var(--muted); }
.sign:hover, .sign.on { border-color: var(--text); transform: translateY(-2px); }
.today { padding-top: 22px; }
.today-top { display: flex; justify-content: space-between; align-items: flex-start; }
.big-glyph { font-size: 64px; line-height: .9; color: var(--lime); }
.read { margin: 18px 0 20px; font: 900 clamp(34px, 9.5vw, 52px)/.95 var(--f-display); font-stretch: 64%; text-transform: uppercase; letter-spacing: -.005em; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.meters > div { padding: 12px 0 12px 12px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.meters > div:first-child { padding-left: 0; }
.meters > div:last-child { border-right: 0; }
.meters span { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.meter { display: flex; gap: 4px; }
.meter i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.meter i.on { background: var(--hot); border-color: var(--hot); }
.lucky { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lucky b { color: var(--text); }
.lc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.3); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dodont .card { margin-bottom: 10px; }
.dodont h4 { margin-top: 0; font: 900 26px/1 var(--f-display); font-stretch: 64%; letter-spacing: 0; color: var(--lime); }
.dodont .card:last-child h4 { color: var(--hot); }
.dodont ul { list-style: none; padding: 0; margin: 0; }
.dodont li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.dodont li:last-child { border-bottom: 0; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; }
.wk > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.wk i { width: 100%; height: var(--s); background: var(--line-2); border-radius: 2px; transform-origin: bottom; animation: rise 1s var(--ease-out) both; }
.wk .today-d i { background: var(--lime); }
.wk span { font: 800 condensed 12px/1 var(--f-display); color: var(--muted); }
@keyframes rise { from { transform: scaleY(0); } }
.compat label { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; }
.compat select { flex: 1; }
.cres { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.cres b { font: 900 56px/.9 var(--f-display); font-stretch: 62%; color: var(--hot); }
.cres p { margin: 0; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* invite */
.invite { border-color: rgb(var(--hot-rgb) / .45); background: linear-gradient(160deg, rgb(var(--hot-rgb) / .10), transparent 55%), var(--panel); }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card.invite h3 { font: 900 30px/.92 var(--f-display); font-stretch: 64%; margin: 0; }
.invite h3 em { font-style: normal; color: var(--hot); }
.inv-count { font: 800 condensed 12px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: right; white-space: nowrap; }
.inv-count b { display: block; font: 900 30px/1 var(--f-display); font-stretch: 64%; color: var(--text); }
.rewards { list-style: none; padding: 0; margin: 14px 0 4px; border-top: 1px solid var(--line); }
.rewards li { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rewards li span { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 800 condensed 14px var(--f-display); }
.rewards li b { font-size: 14px; }
.rewards li small { color: var(--muted); font-size: 12px; }
.rewards li.got span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.code { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; letter-spacing: .1em; color: var(--text); }

@media (max-width: 420px) {
  .tv { font-size: 30px; }
  .signs { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Coach ---------- */
.avatar-svg { display: block; width: 100%; height: 100%; }
.cc-av { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }
.cc-av.sm { width: 40px; height: 40px; }
.coach-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.cc-body small, .note-from small { font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.bubble { position: relative; margin: 8px 0 4px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px 14px 14px 14px; font: 600 15px/1.4 var(--f-body); }
.coach-card .row { margin-top: 8px; flex-wrap: wrap; }
.coach-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.coach-head b { display: block; font: 900 26px/1 var(--f-display); font-stretch: 66%; text-transform: uppercase; }
.note-from { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.note-from b { display: block; font: 800 20px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; margin-top: 4px; }
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.coach-opt { position: relative; cursor: pointer; margin: 0 !important; }
.coach-opt input { position: absolute; opacity: 0; pointer-events: none; }
.coach-opt .co { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); transition: border-color .3s, transform .4s var(--ease-out); }
.coach-opt .co svg { width: 64px; height: 64px; margin-bottom: 4px; transition: transform .5s var(--ease-out); }
.coach-opt .co b { font: 800 16px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; color: var(--text); letter-spacing: .02em; }
.coach-opt .co small { font: 800 condensed 11.5px/1.3 var(--f-display); color: var(--muted); text-transform: none; letter-spacing: 0; }
.coach-opt:hover .co { transform: translateY(-3px); }
.coach-opt:hover .co svg { transform: scale(1.06) rotate(-3deg); }
.coach-opt input:checked + .co { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.coach-opt input:focus-visible + .co { outline: 2px solid var(--lime); outline-offset: 2px; }
.quick { margin: 4px 0 10px; }
.quick .chip { font-size: 12.5px; }


/* ---------- Coach chooser ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0 calc(var(--gutter) * -1); padding: 8px calc(50% - 130px) 18px; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.coach-big {
  flex: 0 0 260px; scroll-snap-align: center; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  transform: scale(.92); opacity: .55; transition: transform .5s var(--ease-out), opacity .4s, border-color .3s, box-shadow .4s;
}
.coach-big.on { transform: none; opacity: 1; border-color: var(--lime); box-shadow: 0 24px 50px -24px rgb(var(--lime-rgb) / .45); }
.coach-big:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.cb-av { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2); transition: transform .6s var(--ease-out); }
.coach-big.on .cb-av { transform: translateY(-4px) scale(1.03); }
.cb-name { font: 900 46px/.9 var(--f-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.005em; }
.cb-vibe { font: 800 condensed 12.5px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cb-quote { margin: 10px 0 6px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; font: 600 14.5px/1.4 var(--f-body); text-align: left; }
.cb-traits { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.cb-traits li { margin: 0; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 3px; font: 500 11px/1 var(--f-body); color: var(--muted); }
.coach-big.on .cb-traits li { border-color: rgb(var(--lime-rgb) / .5); color: var(--text); }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; }
.rail-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: width .4s var(--ease-out), background .3s; }
.rail-dots i.on { width: 22px; border-radius: 4px; background: var(--lime); }
.chooser-form .btn.block { margin-top: 4px; }
.coach-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0 16px; }
.coach-row b { display: block; font: 800 20px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; }
.coach-row small { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .coach-big { transform: none; opacity: 1; } }


/* ---------- Coach chooser extras ---------- */
.style-q { margin: -6px 0 14px; }
.sq-label { display: block; font: 900 20px/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; margin-bottom: 8px; }
.style-q .chips { gap: 6px; }
.match { position: absolute; top: 12px; right: 12px; font: 800 condensed 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--ink); padding: 6px 8px; border-radius: 3px; }
a.pill.ref { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
a.pill.ref:hover { border-color: var(--lime); color: var(--text); }
.cam-ic { color: var(--lime); font-size: 12px; }
.cb-av { width: 184px; height: 184px; }

/* ==========================================================================
   Colorways — picked at sign-up (man / woman / prefer not to say), switchable any time in Me.
   Same structure, type and motion; only the light changes.
   ========================================================================== */
/* Voltage (default): coral + acid lime — the :root values above */

/* Rosé: warm black, rose signal, champagne progress */
:root[data-theme="rose"] {
  --bg: #0c090b; --bg-2: #120e11; --panel: #171216; --panel-2: #1e181d;
  --line: #2d252b; --line-2: #42373f; --text: #fbf3ef; --muted: #a8979f; --dim: #6f6068;
  --hot: #ff6fa3; --hot-2: #ff9b8a; --hot-rgb: 255 111 163; --on-hot: #1b0c13;
  --lime: #f3d39c; --lime-rgb: 243 211 156; --amber: #ffb36b; --ink: #160d11;
}
/* Cobalt: cool black, electric blue signal, mint progress */
:root[data-theme="cobalt"] {
  --bg: #08090c; --bg-2: #0d0f14; --panel: #12141a; --panel-2: #181b23;
  --line: #232733; --line-2: #343a4a; --text: #eef2f7; --muted: #8d94a3; --dim: #5d6474;
  --hot: #4a78ff; --hot-2: #3fb6ff; --hot-rgb: 74 120 255; --on-hot: #ffffff;
  --lime: #7dffcf; --lime-rgb: 125 255 207; --amber: #ffc04d; --ink: #070a0c;
}
html { transition: background-color .5s var(--ease); }

/* Colorway picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.theme-opt { position: relative; cursor: pointer; margin: 0 !important; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt .sw3 {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--tb); transition: border-color .3s, transform .4s var(--ease-out);
}
.theme-opt .sw3 i { display: flex; gap: 5px; }
.theme-opt .sw3 i b { width: 18px; height: 18px; border-radius: 50%; display: block; }
.theme-opt .sw3 span { font: 800 16px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .02em; color: var(--tt); }
.theme-opt .sw3 small { font: 800 condensed 12px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--tm); }
.theme-opt:hover .sw3 { transform: translateY(-3px); }
.theme-opt input:checked + .sw3 { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.theme-opt input:focus-visible + .sw3 { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .display .w > span { opacity: 1 !important; transform: none !important; }
  .chart .line { stroke-dashoffset: 0 !important; }
  body::after { transform: none !important; }
}

/* ---------- Install card ---------- */
.install { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-color: var(--lime); }
.install img { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line-2); }
.install h3 { margin: 0 0 4px; }
.install p { margin: 0; font-size: 14px; color: var(--muted); }
.install .row { grid-column: 1 / -1; margin-top: 4px; }
.install .share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 13px; vertical-align: -5px; }
@media (display-mode: standalone) { .install { display: none; } }

/* card headings in the display face, matching section titles */
.card h2 { font: 900 30px/.95 var(--f-display); font-stretch: 64%; text-transform: uppercase; letter-spacing: 0; }

/* coach picker arrows (mouse + keyboard) */
.rail-wrap { position: relative; }
.rail-btn {
  position: absolute; top: 42%; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  font: 900 20px/1 var(--f-display); color: var(--ink); background: var(--lime); border: 0; border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); transition: transform .35s var(--ease-out), opacity .3s;
}
.rail-btn:hover { transform: scale(1.1); }
.rail-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.rail-btn.prev { left: 0; }
.rail-btn.next { right: 0; }

/* ---------- Coach builder ---------- */
.build-preview { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; position: sticky; top: 64px; z-index: 6; }
.bp-av { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-2); }
.bp-name { margin: 0; }
.build-opts h4 { margin-top: 16px; }
.build-opts h4:first-child { margin-top: 0; }
.swatches.pick { gap: 8px; margin: 6px 0; }
.swb { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); cursor: pointer; padding: 0; transition: transform .3s var(--ease-out); }
.swb:hover { transform: scale(1.1); }
.swb.on { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Devices ---------- */
.devices { display: grid; gap: 8px; margin-bottom: 12px; }
.dev { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s; }
.dev.on { border-color: var(--lime); }
.dmark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #0a0a0a; font: 900 22px/1 var(--f-display); font-stretch: 70%; }
.dtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dtx b { font: 800 18px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.dtx small { color: var(--muted); font-size: 12.5px; }
.dg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dg i { font: 800 condensed 11px/1 var(--f-display); font-style: normal; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); }
.dev.on .dg i { border-color: rgb(var(--lime-rgb) / .45); color: var(--text); }
.consent { border-color: var(--lime); }
.consent-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.consent-top h3 { margin: 0; }
.reads { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.reads li { margin: 0; padding: 6px 9px; border: 1px solid var(--lime); border-radius: 3px; font-weight: 600; font-size: 13px; }
.sync-top { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.sync-top h3 { margin: 0; }
.mini-bars { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 26px; display: flex; gap: 3px; align-items: flex-end; }
.mini-bars i { flex: 1; height: var(--h); background: rgb(var(--lime-rgb) / .55); border-radius: 1px; }
.vbadge { font: 800 condensed 11px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--lime); padding: 3px 5px; border-radius: 2px; margin-left: 4px; }
.vnote { background: rgb(var(--lime-rgb) / .12); border: 1px solid rgb(var(--lime-rgb) / .4); padding: 10px 12px; border-radius: var(--r); font-weight: 600; font-size: 14px; }

/* Account */
.acct .err { color: var(--hot); margin-top: 8px; }

/* ---------- Back button (sub-screens) ---------- */
.backbtn {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 -6px; padding: 8px 12px 8px 8px; min-height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer;
  font: 800 condensed 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em;
}
.backbtn span { color: var(--hot); font-size: 16px; }
.backbtn:hover { border-color: var(--line-2); }
.backbtn:active { transform: scale(.97); }
.devkey { margin-top: 6px; }
.devkey summary { cursor: pointer; padding: 6px 0; }
.devkey[open] summary { margin-bottom: 8px; }
