:root {
  --bg: #1A0F24;
  --bg-deep: #160C1F;
  --card: #2A1A38;
  --card-2: #24162F;
  --line: #3D2A4F;
  --hot: #3A1640;
  --hot-line: #6B2A6E;
  --plum: #4A2A5C;
  --ink: #FFF5FA;
  --quiet: #C9B6D6;
  --accent: #FF4FA3;
  --gold: #F5C451;
  --good: #7FE0A8;
  --bad: #FF8A8A;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: #FF6FB5; }
a:hover { color: #FF9ACB; }
button, input, select { font: inherit; color: inherit; }
b { font-weight: 700; }

.wrap { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 18px 40px; }
.app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-tight { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between, .between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hidden { display: none !important; }

/* Type */
h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.08; margin: 6px 0 0; }
h1 em, .logo em, .cname em { color: var(--accent); font-style: italic; }
.h1-sm { font-size: 28px; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--quiet); margin: 24px 0 10px; }
.section-head h2 { margin: 0; }
.section-head { margin: 24px 0 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin: 0; }
.eyebrow .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lede { font-size: 15px; color: var(--quiet); margin: 20px 0 8px; }
.muted { color: var(--quiet); }
.small { font-size: 13px; }
.caps { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 12px; }
.gold { color: var(--gold); font-weight: 700; }
.good { color: var(--good); font-weight: 700; }
.err { color: var(--bad); font-size: 14px; }
.ok { color: var(--good); font-size: 14px; }
.big { font-family: var(--display); font-size: 30px; line-height: 1; }
.strike { text-decoration: line-through; }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.topbar-title { flex: 1; text-align: center; font-weight: 800; }
.logo { font-family: var(--display); font-size: 24px; color: var(--ink); text-decoration: none; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; flex: none; }
.avatar.me { width: 44px; height: 44px; background: #F3D9C9; color: #6B3A2E; text-decoration: none; font-size: 17px; }

/* Cards */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; color: var(--ink); text-decoration: none; }
.hot { background: var(--hot); border-color: var(--hot-line); }
.err-card { margin-top: 20px; }
.banner { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hot); border: 1px solid var(--hot-line);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.loading { padding: 60px 0; text-align: center; color: var(--quiet); }
.line { padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: none; padding-top: 0; }
.line:last-child { padding-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; min-height: 52px; font-size: 16px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 700; color: var(--quiet); margin-bottom: 6px; }
input, select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 800; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--line); color: var(--ink); white-space: nowrap; }
.pill.out { background: transparent; border: 1px solid var(--line); color: var(--quiet); }
.pill.live { background: var(--accent); color: var(--bg); }
.pill.safe { background: var(--good); color: var(--bg); }
.pill.dark { background: var(--bg); color: var(--gold); }
.big-pill { font-size: 12px; letter-spacing: 1px; padding: 8px 14px; background: var(--hot); border: 1px solid var(--hot-line); }
.big-pill.live { background: var(--accent); border-color: var(--accent); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); margin-right: 6px; animation: pulse 1.6s infinite; }
.live-dot.dark { background: var(--bg); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Hero / leagues */
.hero { padding-top: 48px; }
.league-row { display: flex; align-items: center; gap: 12px; }
.league-row .grow { display: flex; flex-direction: column; gap: 2px; }
.league-name { font-family: var(--display); font-size: 24px; font-weight: 400; }
.cta-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cta-row .grow { display: flex; flex-direction: column; }
.cta-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }

/* Standings */
.standings { margin-top: 18px; }
.standing { padding: 12px 0; }
.standing-main { display: flex; align-items: center; gap: 12px; }
.standing .split { text-align: right; }
.standing + .standing { border-top: 1px solid var(--line); }
.rank { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--line); flex: none; }
.rank.first { background: var(--accent); color: var(--bg); }
.who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 16px; }
.right { text-align: right; }
.split { font-size: 12px; color: var(--quiet); margin-top: 6px; }
.row.between > .small.gold, .row.between > .small.muted:last-child { white-space: nowrap; }
.admin-controls { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 10px; align-items: end; }

/* Show night picks */
.pickbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pickbtn { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; text-decoration: none; background: var(--card-2); color: var(--ink); min-height: 64px; }
.pickbtn b { font-size: 14px; font-weight: 800; }
.pickbtn span { font-size: 12px; font-weight: 600; }
.pickbtn.pink { background: var(--accent); color: var(--bg); }
.pickbtn.gold { background: var(--gold); color: var(--bg); }
.pickbtn:only-child { grid-column: 1 / -1; }

/* Couple rows */
.couple { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); color: var(--ink); text-decoration: none; }
.couple .name { flex: 1; font-weight: 600; min-width: 0; }
.mono { width: 36px; height: 36px; border-radius: 10px; background: var(--plum); color: var(--ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: none; padding-top: 0; }
.feed li:last-child { padding-bottom: 0; }
.feed .what { flex: 1; min-width: 0; }
.feed .pts { font-weight: 800; font-size: 16px; }

/* Watch */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile .big { margin: 8px 0 4px; font-size: 32px; }
.spotlight { margin-top: 14px; border-width: 2px; border-color: var(--accent); display: flex; flex-direction: column; gap: 10px; }
.spot-name { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.spot-total { font-family: var(--display); font-size: 30px; color: var(--accent); }
.judges { display: grid; gap: 8px; }
.judges div { background: var(--bg); border-radius: 14px; padding: 10px 0; text-align: center; display: flex; flex-direction: column; }
.judges b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--gold); line-height: 1.1; }
.judges span { font-size: 11px; color: var(--quiet); }
.ratings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ratings button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 800; font-size: 15px; cursor: pointer; }
.ratings button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Couple cards */
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 14px; }
.ccard.gold { border: 2px solid var(--gold); }
.ccard .top { position: relative; height: 150px; background: var(--plum); display: flex; align-items: center; justify-content: center; }
.ccard .top .corner-l { position: absolute; top: 14px; left: 14px; }
.ccard .top .corner-r { position: absolute; top: 14px; right: 14px; }
.ccard .top .pill.out { background: var(--bg); }
.big-mono { width: auto; height: auto; background: none; font-family: var(--display); font-weight: 400; font-size: 64px; color: rgba(255, 245, 250, 0.35); }
.ccard .body { padding: 18px 18px 18px; }
.chead { display: flex; align-items: center; gap: 14px; }
.chead .cname { margin-top: 6px; }
.ccard .pill.out { background: var(--bg); }
.cmono { border-radius: 50%; border: 1.5px solid; font-family: var(--display); font-weight: 400; letter-spacing: 0.5px; }
.cname { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.story { color: var(--quiet); font-size: 14px; margin: 8px 0 14px; line-height: 1.4; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--bg); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.stats span { font-size: 11px; color: var(--quiet); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; }
.bars .b { width: 100%; border-radius: 6px 6px 2px 2px; background: #6B4A80; }
.bars .b.last { background: var(--accent); }
.barlabels { display: flex; gap: 6px; margin-top: 4px; }
.barlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--quiet); }

/* Sub navigation */
.subnav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--quiet); font-weight: 700; font-size: 13px; text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--quiet); font-weight: 700; font-size: 12px; }
tbody tr:last-child td { border-bottom: none; }
tfoot td { font-weight: 800; border-top: 1px solid var(--line); border-bottom: none; }
.me-row td { color: var(--accent); font-weight: 700; }

.mode-off { text-align: center; padding: 28px 16px; margin-top: 14px; }
.mode-off .big { display: block; margin-bottom: 8px; }

/* Picks */
.pickgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pickgrid button { min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2);
  font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.pickgrid button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pickgrid button:disabled { opacity: 0.45; cursor: default; }

/* Create flow */
.steps { display: flex; gap: 6px; margin: 18px 0 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.done { background: var(--accent); }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.choice button { min-height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); font-weight: 800; font-size: 17px; cursor: pointer; }
.choice button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.stepnav { display: flex; gap: 10px; margin-top: 24px; }
.stepnav .btn { flex: 1; min-height: 52px; font-size: 16px; }
.review { list-style: none; margin: 0; padding: 0; }
.review li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.review li:first-child { border-top: none; padding-top: 0; }
.review li:last-child { padding-bottom: 0; }

/* Lobby & draft */
.invite { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.invite .code { font-family: var(--display); font-size: 44px; letter-spacing: 4px; }
.draft-clock { text-align: center; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.draft-clock.mine { border: 2px solid var(--accent); }

/* Admin */
.entry { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.entry:first-child { border-top: none; padding-top: 0; }
.entry-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.entry-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 56px; gap: 8px; align-items: center; }
.entry-inputs input { text-align: center; padding: 0 4px; font-size: 18px; font-weight: 700; }
.entry-total { text-align: center; font-family: var(--display); font-size: 26px; }
.entry-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg-deep); border-top: 1px solid var(--line);
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.tabbar-inner { max-width: 560px; margin: 0 auto; display: grid; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--quiet); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* Watch: one table per week */
.week-card { margin-top: 12px; padding: 14px 14px 6px; }
.week-card summary { list-style: none; cursor: pointer; padding-bottom: 8px; gap: 12px; }
.week-card summary::-webkit-details-marker { display: none; }
.week-card summary::after { content: '+'; font-weight: 800; color: var(--quiet); margin-left: 4px; }
.week-card[open] summary::after { content: '–'; }
.week-title { font-family: var(--display); font-weight: 400; font-size: 24px; }
.week-totals { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.week-totals span { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--quiet); }
.week-totals span b { color: var(--ink); margin-left: 4px; }
.week-totals span.mine { background: var(--hot); border: 1px solid var(--hot-line); }
.week-table { font-size: 14px; }
.week-table th, .week-table td { padding: 9px 4px; white-space: normal; }
.week-table th:nth-child(2), .week-table td:nth-child(2) { text-align: left; width: 22%; }
.week-table th:last-child, .week-table td:last-child { text-align: right; width: 30%; }
.week-table tbody tr:last-child td { border-bottom: none; }
.out-row td { color: var(--quiet); }

/* This week card */
.thisweek { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.pickrow { padding: 12px 0 2px; border-top: 1px solid var(--hot-line); }
.pickrow:first-of-type { margin-top: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--ink); white-space: nowrap; }
.tag.pink { background: var(--accent); color: var(--bg); }
.tag.gold { background: var(--gold); color: var(--bg); }
.pick-value { font-size: 15px; text-align: right; }
.todo { font-size: 13px; font-weight: 700; color: var(--gold); }
.todo::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--gold); margin-right: 6px; animation: pulse 1.6s infinite; }
.help { margin: 8px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hot-line); background: var(--bg); font-weight: 700; font-size: 13px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chips button:disabled { opacity: 0.5; }
.linkbtn { background: none; border: none; padding: 6px 0; color: #FF6FB5; font-weight: 700; font-size: 13px; cursor: pointer; }
.calls { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hot-line); display: flex; flex-direction: column; gap: 2px; }
.calls .line { display: flex; gap: 8px; border-top: none; padding: 4px 0; }
.settings-link { display: block; margin: 10px 4px 0; text-align: right; }

/* Settings */
.setting { padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-child { border-top: none; padding-top: 0; }
.setting:last-child { padding-bottom: 0; }
.switch { width: 52px; height: 32px; border-radius: 16px; border: none; background: var(--line); position: relative; cursor: pointer; flex: none; }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; background: var(--ink); transition: left 0.15s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { left: 24px; background: var(--bg); }

/* Cards that are links keep their text color on hover */
a.card:hover, a.couple:hover, a.league-row:hover { color: var(--ink); }

.card.row { display: flex; }

/* People at Home list */
.rate-row { padding: 10px 0; border-top: 1px solid var(--line); }
.rate-row:nth-of-type(1) { border-top: none; }
.rate-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; min-height: 36px; }

/* Photos */
.cphoto { object-fit: cover; flex: none; display: block; background: var(--plum); }
.ccard .top.has-photo { height: 240px; }
.top-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccard .top .pill { z-index: 1; }
.pickgrid button.with-photo { display: flex; align-items: center; gap: 10px; }
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; margin: 0; color: #FF6FB5; font-weight: 700; }
.photo-pick .small { font-size: 11px; }
.entry-name { gap: 12px; }
.linkbtn.small { font-size: 11px; padding: 0; color: var(--quiet); }

/* Landing */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.landing .hero { padding-top: 28px; }
.hero-title { font-size: 44px; line-height: 1.02; margin-top: 10px; }
.lede-lg { color: var(--quiet); font-size: 17px; line-height: 1.5; margin: 14px 0 0; }
.center-link { text-align: center; display: block; margin-top: 4px; }
.now-playing { margin-top: 18px; line-height: 1.5; }
.phone { margin: 32px auto 0; max-width: 330px; border-radius: 40px; padding: 10px; background: #0E0715; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(255, 79, 163, 0.18); }
.phone-inner { border-radius: 32px; background: var(--bg); padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.phone-head { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.phone-head em { color: var(--accent); }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.mini-card.hot { background: var(--hot); border-color: var(--hot-line); }
.mini-card.spot { border: 2px solid var(--accent); background: var(--hot); }
.mini-line { padding: 4px 0; }
.mini-big { font-family: var(--display); font-weight: 400; font-size: 20px; }
.mini-big.pink { color: var(--accent); }
.rank.sm { width: 24px; height: 24px; font-size: 12px; }
.mini-judges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-judges b { background: var(--bg); border-radius: 10px; text-align: center; padding: 6px 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--gold); }
.land-section { margin-top: 40px; }
.land-section h2 { margin-top: 0; }
.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list p { margin: 4px 0 0; }
.step-num { width: 36px; height: 36px; border-radius: 18px; background: var(--accent); color: var(--bg); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.modes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-tile p { margin: 6px 0 0; }
.mode-tile:last-child { grid-column: 1 / -1; }
.home-pitch h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 6px 0 6px; }
.home-pitch p { margin: 0; }
.land-section.center { text-align: center; }

/* Footer & legal */
.footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--quiet); line-height: 1.5; }
.footer p { margin: 0 0 8px; }
.footer nav { display: flex; gap: 16px; margin-top: 10px; }
.footer nav a { color: var(--quiet); }
.footer nav.social { flex-wrap: wrap; row-gap: 6px; }
.app .footer { margin-bottom: 20px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; line-height: 1.55; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal h2 { margin-top: 28px; }
p.center { text-align: center; }

.mini-card .todo, .mini-card .tag { white-space: nowrap; }
.mini-card .todo { font-size: 12px; }

/* Waitlist */
.waitlist h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 6px 0 6px; }
.waitlist > p { margin: 0 0 12px; }
.waitlist .chips button.done { background: var(--good); border-color: var(--good); color: var(--bg); opacity: 1; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.wl-bar { width: 90px; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; flex: none; }
.wl-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* DWTS section */
.dwts { background: var(--hot); border: 1px solid var(--hot-line); border-radius: 24px; padding: 22px 18px; scroll-margin-top: 16px; }
.dwts .eyebrow { display: inline-flex; align-items: center; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 8px 0 8px; }
.section-title em { color: var(--accent); }
.dwts > p { margin: 0 0 16px; line-height: 1.5; }
.dwts-card { background: var(--bg); }
.dwts-points { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; }
.dwts-points li { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--hot-line); }
.dwts-points li:first-child { border-top: none; }
#coming-soon { scroll-margin-top: 16px; }
html { scroll-behavior: smooth; }

/* Chat */
.chat-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-bottom: 8px; }
.msg { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.msg.grouped { margin-top: 2px; }
.msg.mine { justify-content: flex-end; }
.msg-avatar { width: 30px; flex: none; margin-top: 18px; }
.msg-col { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-meta { font-size: 11px; color: var(--quiet); margin: 0 6px 3px; }
.bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); border-color: var(--accent); color: var(--bg); border-radius: 18px 18px 6px 18px; }
.msg-del { background: none; border: none; color: var(--quiet); font-size: 11px; padding: 2px 6px; cursor: pointer; opacity: 0; }
.msg:hover .msg-del, .msg:focus-within .msg-del { opacity: 1; }
@media (hover: none) { .msg-del { opacity: 0.7; } }
.composer { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; padding: 10px 0; background: var(--bg); }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; font-size: 16px; }
.composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sendbtn { width: 48px; height: 48px; border-radius: 24px; border: none; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sendbtn:disabled { opacity: 0.4; }
.chat-preview { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-preview .small:not(.chat-line) { color: #FF6FB5; display: inline-flex; align-items: center; gap: 2px; }
.chat-line { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-icon { position: relative; display: inline-flex; }
.tab-dot { position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 5px; background: var(--accent); border: 2px solid var(--bg-deep); }
.tabbar-inner.tight a { font-size: 10px; }

.judge-head { display: grid; gap: 8px; margin: 0 0 10px; position: sticky; top: 0; background: var(--card); padding: 6px 0; z-index: 2; font-size: 11px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.judge-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Leaderboard movement and dance styles */
.move { font-weight: 800; font-size: 13px; white-space: nowrap; }
.move.up { color: var(--good); }
.move.down { color: var(--accent); }
.move.same { color: var(--quiet); }
.pill.style { background: rgba(245, 196, 81, 0.14); color: var(--gold); border: 1px solid rgba(245, 196, 81, 0.35); text-transform: none; letter-spacing: 0; }
.style-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.rank-hero { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, 0.22); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.rank-hero b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--gold); }
.rank-hero .move { font-size: 18px; }
.style-note { display: block; }
.couple .move { margin-left: 4px; }
.style-input { width: 100%; margin: 6px 0 8px; font-size: 14px; padding: 8px 12px; min-height: 0; }

/* Couples list */
.seg { display: inline-flex; background: rgba(0,0,0,0.25); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--quiet); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--bg); }
.cast-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cast-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.cast-item.mine::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.cast-item.out { background: transparent; }
.cast-item.open { border-color: rgba(245, 196, 81, 0.5); }
.cast-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: none; border: 0; padding: 10px 12px 10px 14px; cursor: pointer; }
.cast-rank { width: 34px; flex: none; text-align: center; font-family: var(--display); font-size: 20px; color: var(--gold); white-space: nowrap; }
.cast-item.out .cast-rank { font-family: inherit; font-size: 12px; font-weight: 700; color: var(--quiet); }
.cast-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cast-main b { font-size: 15px; }
.cast-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.owner { font-size: 12px; font-weight: 700; color: var(--quiet); }
.owner.you { color: var(--accent); }
.owner.none { font-weight: 500; }
.cast-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.cast-score b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.cast-plus { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.25); color: var(--quiet); font-size: 18px; font-weight: 700; line-height: 1; }
.cast-item.open .cast-plus { background: var(--gold); color: var(--bg); }
.cast-detail { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.cast-detail .story { margin: 10px 0; }
.cell-note { display: block; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; }
tfoot tr.sub td { font-weight: 500; color: var(--quiet); font-size: 13px; }

/* Decluttered Home */
.mini-couples { display: flex; flex-wrap: wrap; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; color: var(--ink); text-decoration: none; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; }
.mini b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; }
.mini .move { font-size: 11px; }
.mini-2x { font-size: 10px; font-weight: 800; background: var(--accent); color: var(--bg); border-radius: 999px; padding: 1px 6px; }
.pick-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.pick-head:disabled { cursor: default; }
.pick-head .pick-value, .pick-head .todo { flex: 1; text-align: right; }
.pick-act { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); min-width: 14px; text-align: right; }
.tonight .line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tonight .line:last-of-type { border-bottom: 0; }
.waiting { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.waiting .mini.you .small { color: var(--accent); font-weight: 700; }
.tonight { margin-top: 12px; }
.my-couples { display: block; color: var(--ink); text-decoration: none; padding: 12px 16px; }
.mc-head { display: flex; justify-content: space-between; padding-bottom: 4px; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mc-head + .mc-row { border-top: 0; }
.mc-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-score { font-family: var(--display); font-weight: 400; font-size: 22px; min-width: 30px; text-align: right; }
.mc-row .pill { font-size: 10px; padding: 3px 8px; }
.fvj-highlights { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fvj-highlights .tag { margin-right: 6px; }

.danger { color: #ff7a8a; }
.btn.danger { background: #ff5a6e; color: var(--bg); border-color: transparent; }

/* The Traitors */
.pill.exit-murdered { background: rgba(255, 90, 110, 0.18); color: #ff8a98; }
.pill.exit-banished { background: rgba(245, 196, 81, 0.18); color: var(--gold); }
.pill.exit-out, .pill.exit-eliminated, .pill.exit-withdrew { background: var(--line); color: var(--quiet); }
.pill.role-traitor { background: #7a1f2b; color: #ffd6dc; }
.pill.role-faithful { background: rgba(127, 224, 168, 0.16); color: var(--good); }
.spot-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.spot-slot { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink);
  background: rgba(0,0,0,0.25); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; min-width: 0; }
.spot-slot b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.spot-slot.on { border-color: var(--accent); }
.spot-slot.hit { border-color: var(--good); }
.spot-slot.miss { opacity: 0.7; }
.spot-slot:disabled { cursor: default; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid label, .block-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--quiet); }
.block-label { margin-top: 10px; }
.block-label textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.season-summary { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.cast-admin { display: flex; flex-wrap: wrap; gap: 6px; }
.cast-admin .x { background: none; border: 0; color: var(--quiet); font-size: 16px; margin-left: 4px; cursor: pointer; padding: 0 2px; }
.role-select { width: auto; font-size: 13px; padding: 6px 8px; }
.spoiler { border: 1.5px dashed rgba(245, 196, 81, 0.6); margin-top: 12px; }
.spoiler-line { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spoiler-line select { width: auto; padding: 4px 8px; font-size: 13px; }
.traitors-teaser { background: linear-gradient(160deg, #2a0f18 0%, var(--card) 70%); }
