/* ============================================================
   Public stylesheet
   The one loud element is the duel: two colour slabs and the OR coin.
   Everything else is deliberately quiet.
   ============================================================ */

:root {
  --a: #ff4d6d; --b: #3a86ff; --coin: #ffc93c;
  --r: 22px; --r-sm: calc(var(--r) * .55);
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-mode="dark"] {
  --bg: var(--bg-dark, #17122b); --surface: var(--surface-dark, #221b3d);
  --surface-2: color-mix(in srgb, var(--surface) 80%, #fff 6%);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f4f1ff; --muted: #a59fc4; --faint: #6f6892;
  --ink-on-color: #fff; --shadow: 0 18px 50px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: var(--bg-light, #f6f2ff); --surface: var(--surface-light, #fff);
  --surface-2: color-mix(in srgb, var(--surface) 92%, #5b3fd6 5%);
  --line: rgba(40,20,90,.09); --line-2: rgba(40,20,90,.18);
  --text: #1d1538; --muted: #615a80; --faint: #9a94b6;
  --ink-on-color: #fff; --shadow: 0 18px 40px -22px rgba(40,20,90,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-bottom: 40px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coin); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Top bar ──────────────────────────────────────────────── */
.announce { background: var(--coin); color: #1d1538; text-align: center; font-weight: 600; font-size: .9rem; padding: 8px 16px; }
.announce a { text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand img { height: 34px; width: auto; }
.brand-mark { position: relative; display: inline-flex; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; transform: rotate(-8deg); }
.brand-mark i { flex: 1; background: var(--a); }
.brand-mark i + i { background: var(--b); }
.brand-mark::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--coin); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--bg); }
.mainnav { display: flex; gap: 4px; }
.mainnav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.mainnav a:hover { color: var(--text); background: var(--surface); }
.mainnav a.on { color: var(--text); background: var(--surface-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pts { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.pts b { font-variant-numeric: tabular-nums; }
.pts.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px; min-width: 200px; box-shadow: var(--shadow); display: grid; }
.menu-pop a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; }
.menu-pop a:hover { background: var(--surface-2); }

/* ── Avatars ──────────────────────────────────────────────── */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-family: var(--font-head); flex-shrink: 0; object-fit: cover; background: var(--surface-2); }
.avatar-sm { width: 34px; height: 34px; font-size: .95rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1.15rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.6rem; }
.avatar-emoji { background: var(--surface-2); }
.avatar-sm.avatar-emoji { font-size: 1.1rem; } .avatar-md.avatar-emoji { font-size: 1.4rem; } .avatar-lg.avatar-emoji { font-size: 3rem; }

/* ── Buttons, forms, alerts ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; font: 700 1rem/1 var(--font-body); cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), filter .15s; background: var(--text); color: var(--bg); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-coin { background: var(--coin); color: #1d1538; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-a { background: var(--a); color: #fff; } .btn-b { background: var(--b); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .825rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coin); }
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--b); margin-top: 1px; flex-shrink: 0; }
.alert { padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 500; border: 1px solid var(--line-2); background: var(--surface); }
.alert-success { border-color: color-mix(in srgb, #22c55e 50%, transparent); }
.alert-error { border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.flashes { padding-top: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.auth { max-width: 440px; margin: 48px auto; }
.auth h1 { font-size: 2.2rem; }

/* ── The duel ─────────────────────────────────────────────── */
.duel { --pa: 50; --pb: 50; position: relative; }
.duel-q { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--muted); margin: 0 0 14px; text-align: center; }
.duel-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 340px; }
.opt { position: relative; overflow: hidden; border: 0; border-radius: var(--r); padding: 32px 26px 70px; cursor: pointer; color: var(--ink-on-color);
  font: 700 clamp(1.25rem, 2.6vw, 1.85rem)/1.18 var(--font-head); letter-spacing: -.015em; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: transform .25s var(--ease), filter .25s, opacity .3s; isolation: isolate; text-wrap: balance; }
.opt-a { background: var(--a); } .opt-b { background: var(--b); }
.cards-outline .opt { background: var(--surface); color: var(--text); border: 3px solid var(--a); }
.cards-outline .opt-b { border-color: var(--b); }
.cards-soft .opt-a { background: color-mix(in srgb, var(--a) 22%, var(--surface)); color: var(--text); }
.cards-soft .opt-b { background: color-mix(in srgb, var(--b) 22%, var(--surface)); color: var(--text); }
.opt:hover { transform: translateY(-4px) rotate(-.4deg); }
.opt-b:hover { transform: translateY(-4px) rotate(.4deg); }
.opt:active { transform: scale(.98); }
.opt img { width: 100%; max-height: 150px; object-fit: cover; border-radius: var(--r-sm); }
.opt-text { position: relative; z-index: 2; }
.opt-key { position: absolute; top: 14px; left: 16px; z-index: 2; font: 800 .8rem/1 var(--font-body); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.18); opacity: .75; }
.opt-pct { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 2; font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--font-head); letter-spacing: -.04em; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease) .15s, transform .5s var(--ease) .15s; font-variant-numeric: tabular-nums; }
.opt-pct small { font-size: .45em; letter-spacing: 0; }
.opt-fill { position: absolute; inset: auto 0 0 0; height: 0; background: rgba(255,255,255,.2); z-index: 1; transition: height .9s var(--ease); }
.opt-tick { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #1d1538; display: grid; place-items: center; font-size: 1.1rem; font-weight: 900; transform: scale(0); transition: transform .35s var(--ease) .1s; }
.coin { position: absolute; left: 50%; top: 50%; z-index: 5; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--coin); color: #1d1538; display: grid; place-items: center;
  font: 900 1.25rem/1 var(--font-head); letter-spacing: -.02em; box-shadow: 0 0 0 7px var(--bg), 0 10px 30px rgba(0,0,0,.35); pointer-events: none; transition: transform .6s var(--ease); }
.duel.revealed .coin { transform: rotate(360deg) scale(.82); }
.duel.revealed .opt { cursor: default; transform: none; }
.duel.revealed .opt-pct { opacity: 1; transform: none; }
.duel.revealed .opt-a .opt-fill { height: calc(var(--pa) * 1%); }
.duel.revealed .opt-b .opt-fill { height: calc(var(--pb) * 1%); }
.duel.revealed .opt.picked .opt-tick { transform: scale(1); }
.duel.revealed .opt:not(.picked) { filter: grayscale(1) brightness(.7); }
.duel.busy .opt { pointer-events: none; }
.duel-after { margin-top: 18px; min-height: 64px; text-align: center; }
.verdict { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 0 0 4px; }
.duel-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.duel-meta a { color: var(--muted); }
.pop { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--coin); color: #1d1538; font-weight: 800; font-size: .85rem; animation: popin .5s var(--ease); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }

/* Predict panel, shown inside the duel after a pick */
.predict { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); border-radius: var(--r); padding: 24px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.predict-box { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.predict-box h3 { margin-bottom: 4px; }
.predict-num { font: 800 4rem/1 var(--font-head); letter-spacing: -.04em; margin: 12px 0; font-variant-numeric: tabular-nums; }
.predict input[type=range] { width: 100%; accent-color: var(--coin); height: 32px; }
.predict-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* Mini duel (charts, lists, profiles) */
.vrow { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.vrow:last-child { border-bottom: 0; }
.vrow-rank { text-align: center; }
.vrow-rank b { display: block; font: 800 1.6rem/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vrow-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-weight: 600; line-height: 1.3; }
.vrow-opts .or { font: 800 .75rem/1 var(--font-head); color: var(--muted); }
.vrow-opts .vb { text-align: right; }
.vrow-opts a { text-decoration: none; }
.vrow-opts a:hover { text-decoration: underline; }
.splitbar { position: relative; display: flex; height: 30px; border-radius: 999px; overflow: hidden; margin-top: 10px; font: 800 .85rem/30px var(--font-body); color: #fff; background: var(--surface-2); }
.splitbar span { display: block; padding: 0 12px; white-space: nowrap; transition: width .8s var(--ease); min-width: 0; }
.splitbar .sa { background: var(--a); }
.splitbar .sb { background: var(--b); text-align: right; }
.splitbar.locked span { filter: blur(6px); }
.splitbar .vote-btns { position: absolute; inset: 0; display: flex; }
.splitbar .vote-btns button { flex: 1; border: 0; background: transparent; color: #fff; font: 800 .8rem/1 var(--font-body); cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.splitbar .vote-btns button:hover { background: rgba(255,255,255,.14); }
.splitbar .mine-a, .splitbar .mine-b { }
.vrow-meta { margin-top: 6px; font-size: .8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.mv { font-weight: 800; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-up { color: #22c55e; } .mv-down { color: var(--a); } .mv-flat { color: var(--faint); } .mv-new { color: #1d1538; background: var(--coin); padding: 1px 6px; border-radius: 6px; }

/* ── Home ─────────────────────────────────────────────────── */
.hero { padding: 44px 0 30px; }
.hero-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { max-width: 13ch; margin: 0; }
.hero-side { max-width: 380px; }
.hero-side p { color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { --chip: #7c3aed; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); text-decoration: none;
  background: color-mix(in srgb, var(--chip) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--chip) 30%, transparent); transition: transform .15s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile .ic { font-size: 1.8rem; line-height: 1; }
.cat-tile b { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -.01em; }
.cat-tile small { color: var(--muted); }
.chip { --chip: #7c3aed; display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none;
  background: color-mix(in srgb, var(--chip) 18%, transparent); border: 1px solid color-mix(in srgb, var(--chip) 35%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.today-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.today-card .big { font: 800 2.6rem/1 var(--font-head); letter-spacing: -.04em; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }

/* ── Daily player ─────────────────────────────────────────── */
.player { max-width: 860px; margin: 0 auto; padding-top: 24px; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.player-head h1 { font-size: 1.5rem; margin: 0; }
.progress { display: flex; gap: 5px; flex: 1; max-width: 380px; }
.progress i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); transition: background .3s; }
.progress i.done-a { background: var(--a); } .progress i.done-b { background: var(--b); } .progress i.now { background: var(--line-2); box-shadow: inset 0 0 0 2px var(--coin); }
.player-foot { display: flex; justify-content: center; gap: 12px; margin-top: 10px; min-height: 52px; align-items: center; flex-wrap: wrap; }
.predict-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); cursor: pointer; }
.predict-toggle input { accent-color: var(--coin); width: 18px; height: 18px; }
.nudge { margin: 26px auto 0; max-width: 560px; padding: 18px 20px; border-radius: var(--r); border: 1.5px dashed var(--line-2); text-align: center; }

/* ── Results ──────────────────────────────────────────────── */
.result { max-width: 860px; margin: 0 auto; padding-top: 28px; }
.persona { position: relative; text-align: center; padding: 40px 24px 34px; border-radius: calc(var(--r) * 1.3); background: var(--pc, #7c3aed); color: #fff; overflow: hidden; }
.persona::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.28), transparent 50%); pointer-events: none; }
.persona-emoji { font-size: 5rem; line-height: 1; margin-bottom: 10px; display: inline-block; animation: wobble 1.2s var(--ease); }
@keyframes wobble { 0% { transform: scale(.2) rotate(-30deg); } 60% { transform: scale(1.1) rotate(8deg); } }
.persona h1 { color: #fff; margin-bottom: 8px; }
.persona .tagline { font-size: 1.15rem; opacity: .92; max-width: 32ch; margin: 0 auto 16px; font-weight: 500; }
.persona-desc { max-width: 56ch; margin: 0 auto; opacity: .9; }
.persona-who { font-weight: 600; opacity: .9; margin-bottom: 14px; }
.share-grid { font-size: 1.7rem; letter-spacing: 2px; margin: 18px 0 8px; line-height: 1.2; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.stat b { display: block; font: 800 1.9rem/1.05 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .875rem; }
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 6px; }
.traitbars { display: grid; gap: 10px; }
.traitbar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; font-size: .95rem; }
.traitbar .track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.traitbar .track i { display: block; height: 100%; border-radius: 99px; background: var(--tc, var(--coin)); }
.traitbar em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.answers { display: grid; gap: 10px; }
.ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ans > div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; line-height: 1.3; position: relative; }
.ans .pa { color: var(--muted); font-weight: 700; font-size: .8rem; display: block; margin-top: 4px; }
.ans > div.chose-a { background: var(--a); color: #fff; border-color: transparent; }
.ans > div.chose-b { background: var(--b); color: #fff; border-color: transparent; }
.ans > div.chose-a .pa, .ans > div.chose-b .pa { color: rgba(255,255,255,.85); }
.ans .them { position: absolute; top: -8px; right: 8px; font-size: .72rem; background: var(--coin); color: #1d1538; padding: 2px 7px; border-radius: 6px; font-weight: 800; }
.vsbox { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; }
.vsbox .score { font: 800 3.4rem/1 var(--font-head); letter-spacing: -.04em; }

/* ── Lists and tables ─────────────────────────────────────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a, .tabs button { padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.tabs a.on, .tabs button.on { background: var(--text); color: var(--bg); border-color: transparent; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700; color: var(--muted); }
.seg a.on { background: var(--coin); color: #1d1538; }
.people { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.person .n { color: var(--faint); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.person b { display: block; line-height: 1.2; }
.person small { color: var(--muted); }
.person .score { font: 800 1.35rem/1 var(--font-head); font-variant-numeric: tabular-nums; text-align: right; }
.person .score small { display: block; font: 500 .72rem/1.3 var(--font-body); color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--a), var(--b)); }
.empty { text-align: center; padding: 36px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty .big { font-size: 2.6rem; margin-bottom: 6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.geo-list { display: grid; gap: 8px; }
.geo { display: grid; grid-template-columns: 28px minmax(90px, 160px) 1fr 52px; gap: 10px; align-items: center; font-size: .92rem; }
.geo .flag { font-size: 1.3rem; }
.geo .bar { height: 14px; display: flex; border-radius: 99px; overflow: hidden; }
.geo .bar i { background: var(--a); } .geo .bar u { background: var(--b); flex: 1; }
.geo em { font-style: normal; color: var(--muted); font-size: .8rem; text-align: right; }
.spark { width: 100%; height: 60px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 16px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.badge .ic { font-size: 2rem; }
.badge b { display: block; font-size: .9rem; margin-top: 4px; }
.badge small { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; }
.badge.locked { opacity: .4; filter: grayscale(1); }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 30px 0 10px; }
.profile-head h1 { margin: 0; font-size: 2.2rem; }
.pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 20px 0; color: var(--muted); }
.pager a { font-weight: 700; }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.archive a { padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.archive a b { font-family: var(--font-head); font-size: 1.2rem; display: block; }
.archive a.played { border-color: color-mix(in srgb, #22c55e 50%, transparent); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.ad-slot { text-align: center; margin: 16px auto; max-width: var(--wrap); padding: 0 20px; }

/* ── Footer, tab bar, toasts ──────────────────────────────── */
.sitefoot { border-top: 1px solid var(--line); padding: 30px 0 100px; color: var(--muted); font-size: .92rem; }
.sitefoot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sitefoot strong { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }
.sitefoot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sitefoot nav a { text-decoration: none; }
.sitefoot nav a:hover { color: var(--text); }
.tabbar { display: none; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 13px 16px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; animation: toastin .35s var(--ease); }
.toast .ic { font-size: 1.6rem; }
.toast small { display: block; font-weight: 500; opacity: .75; }
@keyframes toastin { from { transform: translateY(20px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }


/* ── Prompt formats (Agree or Disagree, Hot Take) ─────────── */
.duel-prompt { font: 800 clamp(1.3rem, 3vw, 2rem)/1.15 var(--font-head); letter-spacing: -.02em; text-align: center; margin: -4px auto 16px; max-width: 30ch; text-wrap: balance; }

/* ════════════════════════════════════════════════════════════
   Full-screen play. The duel takes the whole viewport, the site chrome goes away.
   ════════════════════════════════════════════════════════════ */
body.focus { min-height: 100dvh; overflow: hidden; }
body.focus main { padding: 0; }
.player-focus { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 10px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; max-width: none; margin: 0; }
.fbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; height: 44px; flex-shrink: 0; }
.fbar-c { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.fbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font: 900 1.15rem/1 var(--font-head); }
.fbtn:hover { background: var(--surface-2); }
.fcat { border: 0; background: var(--surface); color: var(--text); font: 700 .9rem/1 var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.fdaily { font: 800 .95rem/1 var(--font-head); white-space: nowrap; }
.fbar .progress { max-width: 260px; }
.flame { font: 800 .95rem/1 var(--font-body); padding: 7px 11px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.flame.flash { animation: bump .5s var(--ease); }
.fnotes { flex-shrink: 0; }
.fnotes .alert { margin: 0; padding: 9px 12px; font-size: .88rem; }
.fstage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fstage > .ad-slot { flex-shrink: 0; margin: 0 0 8px; }
.fstage > .empty { margin: auto; }
.player-focus .duel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-focus .duel-q { margin: 0 0 8px; font-size: .95rem; }
.player-focus .duel-prompt { margin: 0 auto 10px; font-size: clamp(1.15rem, 3.4vw, 2rem); }
.player-focus .duel-cards { flex: 1; min-height: 0; gap: 10px; }
.player-focus .opt { padding: 24px 20px 64px; font-size: clamp(1.35rem, 3.2vw, 2.6rem); min-height: 0; }
.player-focus .opt-pct { font-size: clamp(2.6rem, 6vw, 5rem); bottom: 20px; }
.player-focus .coin { width: 58px; height: 58px; margin: -29px 0 0 -29px; font-size: 1rem; box-shadow: 0 0 0 6px var(--bg); }
.player-focus .duel-after { margin: 8px 0 0; min-height: 0; flex-shrink: 0; }
.player-focus .duel-after:empty { display: none; }
.player-focus .verdict { font-size: 1rem; margin: 0; }
.player-focus .duel-meta { font-size: .82rem; gap: 10px; }
.player-focus .duel.revealed .opt { cursor: pointer; }
.ffoot { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; flex-shrink: 0; position: relative; }
.ffoot [data-count] { position: absolute; left: 6px; }
.nextring { position: absolute; right: 2px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--text); color: var(--bg); border-radius: 999px; padding: 4px 16px 4px 4px; font: 700 .95rem/1 var(--font-body); cursor: pointer; }
.nextring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.nextring circle { fill: none; stroke-width: 3.5; }
.nextring .nr-bg { stroke: color-mix(in srgb, var(--bg) 25%, transparent); }
.nextring .nr-fg { stroke: var(--coin); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; stroke-linecap: round; }
.nextring.run .nr-fg { animation: ring var(--ring, 2200ms) linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.player-focus [data-next].btn { position: absolute; right: 2px; }
.nudge-float { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); width: min(420px, calc(100% - 24px)); background: var(--surface); border-style: solid; z-index: 30; box-shadow: var(--shadow); }
.nudge-float .pmenu-x { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; font-size: 1.4rem; }

/* Full-screen menu */
.pmenu { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); overflow-y: auto; animation: fade .18s; }
.pmenu[hidden] { display: none; }
.pmenu-x { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; }
.pmenu-in { max-width: 420px; margin: 0 auto; padding: 56px 20px 40px; display: grid; gap: 4px; }
.pm-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none; font: 800 1.35rem/1.2 var(--font-head); letter-spacing: -.01em; color: var(--muted); }
.pm-item b { font-size: 1.5rem; font-weight: 400; }
.pm-item:hover, .pm-item.on { color: var(--text); background: var(--surface); }
.pm-daily { color: var(--text); background: var(--coin); color: #1d1538; margin-bottom: 8px; }
.pm-daily:hover { background: var(--coin); filter: brightness(1.05); color: #1d1538; }
.pm-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pm-links a { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .92rem; }

@media (max-width: 640px) {
  .player-focus { padding: 8px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .player-focus .duel-cards { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .player-focus .opt { padding: 20px 18px 20px; font-size: 1.45rem; }
  .player-focus .opt-pct { left: 0; right: 0; bottom: 14px; font-size: 2.7rem; text-align: center; }
  .player-focus .duel.revealed .opt-text { transform: translateY(-18px); transition: transform .4s var(--ease); }
  .player-focus .opt-key { display: none; }
  .player-focus .duel.revealed .coin { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
  .player-focus .duel-q { font-size: .85rem; margin-bottom: 6px; }
  .fbar { grid-template-columns: 40px 1fr 40px; height: 40px; }
  .fbtn { width: 40px; height: 40px; }
  .fdaily { display: none; }
  .ffoot [data-count] { display: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .mainnav { display: none; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-in { height: 56px; gap: 10px; }
  .brand-name { font-size: 1.15rem; }
  .duel-cards { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .opt { min-height: 170px; }
  .opt-fill { inset: 0 auto 0 0; height: 100%; width: 0; transition: width .9s var(--ease); }
  .duel.revealed .opt-a .opt-fill { height: 100%; width: calc(var(--pa) * 1%); }
  .duel.revealed .opt-b .opt-fill { height: 100%; width: calc(var(--pb) * 1%); }
  .opt-pct { left: auto; right: 18px; bottom: 12px; font-size: 2.2rem; }
  .opt { padding: 26px 22px 54px; }
  .player .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .player .chips::-webkit-scrollbar { display: none; }
  .player .chips .chip { flex-shrink: 0; }
  .player-head h1 { font-size: 1.3rem; }
  .coin { width: 58px; height: 58px; margin: -29px 0 0 -29px; font-size: 1rem; box-shadow: 0 0 0 5px var(--bg); }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; font-size: .7rem; font-weight: 600; color: var(--muted); display: grid; gap: 1px; padding: 4px 0; }
  .tabbar a span { font-size: 1.25rem; filter: grayscale(.7); }
  .tabbar a.on { color: var(--text); } .tabbar a.on span { filter: none; }
  .toasts { bottom: 84px; }
  .pts { padding: 5px 10px; }
  .today-card { grid-template-columns: 1fr; text-align: center; }
  .vrow { grid-template-columns: 40px 1fr; gap: 10px; }
  .vrow-rank b { font-size: 1.25rem; }
  .vrow-opts { font-size: .9rem; }
  .traitbar { grid-template-columns: 110px 1fr 36px; font-size: .85rem; }
  .ans { grid-template-columns: 1fr 1fr; }
  .ans > div { font-size: .85rem; padding: 10px; }
  .person { grid-template-columns: 26px auto 1fr auto; gap: 10px; padding: 10px; }
  .geo { grid-template-columns: 24px 80px 1fr 44px; }
  .vsbox .score { font-size: 2.4rem; }
  .persona { padding: 32px 18px 28px; }
  .persona-emoji { font-size: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
