/* Layout: a wide marketing page at "/", and a phone-first single column for
   creating and playing pools. Field greens, chalk, and end-zone pylon orange. */
:root {
  --bg: #eef1ec;
  --surface: #ffffff;
  --surface-2: #f2f5f1;
  --ink: #0e1913;
  --muted: #56655c;
  --line: #d6ddd5;
  --accent: #d24c15;
  --accent-soft: #fdebe1;
  --accent-ink: #8c2f07;
  --primary: #0e1913;
  --primary-ink: #ffffff;
  --win: #18794a;
  --win-soft: #e1f1e7;
  --loss: #b3261e;
  --loss-soft: #fbe5e3;
  --warn-soft: #fff3d1;
  --warn-ink: #6f4b00;
  --bubble-me: #1d6a3e;
  --bubble-me-ink: #ffffff;
  --shadow: 0 30px 60px -36px rgba(14, 25, 19, .45), 0 2px 8px rgba(14, 25, 19, .05);
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e0b; --surface: #121a15; --surface-2: #19231d; --ink: #e7eee9; --muted: #97a69d; --line: #29352e;
    --accent: #ff7a3d; --accent-soft: #3a1c0f; --accent-ink: #ffbb98; --primary: #e7eee9; --primary-ink: #0e1913;
    --win: #4cc287; --win-soft: #11301f; --loss: #ff8a80; --loss-soft: #3a1513; --warn-soft: #30270f; --warn-ink: #f0c66a;
    --bubble-me: #2b8250; --bubble-me-ink: #ffffff;
    --shadow: 0 30px 60px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.45;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── shared type ── */
.eyebrow { margin: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h-display { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 9vw, 52px); line-height: .9; text-wrap: balance; }
.h-display.sm { font-size: 36px; }
.lede { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }
.label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.h-sm { margin: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ── controls ── */
.btn { border: 0; border-radius: 14px; min-height: 50px; padding: 12px 20px; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .08s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .38; cursor: default; }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.accent { background: var(--accent); color: #ffffff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; font-size: 15px; padding: 8px 14px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; flex-shrink: 0; }
.btn.small.danger { color: var(--loss); }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.input, textarea, select.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.45; outline: none; transition: border-color .15s; }
textarea { resize: vertical; min-height: 150px; }
.input:focus, textarea:focus { border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.row .input { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.note { margin: 0; font-size: 14px; background: var(--surface-2); border: 1px dashed var(--muted); border-radius: 12px; padding: 10px 12px; color: var(--muted); }
.alert { margin: 0; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.ok-box { margin: 0; font-size: 15px; background: var(--win-soft); border-radius: 12px; padding: 12px 14px; }
.ok-box b { color: var(--win); }

/* ── app column ── */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 900; font-size: 21px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.mark { width: 10px; height: 22px; border-radius: 3px; background: var(--accent); transform: rotate(-10deg); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14); }
.topbar .spacer { flex: 1; }
.topnav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover { color: var(--ink); }
.demo-bar { max-width: 1080px; margin: 10px auto 0; font-size: 13px; background: var(--warn-soft); color: var(--warn-ink); border-radius: 10px; padding: 8px 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo-bar button { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; font-weight: 700; }
.col { max-width: 560px; margin: 0 auto; padding-block: 24px 120px; display: flex; flex-direction: column; gap: 18px; }
.savebar { position: sticky; bottom: 0; z-index: 10; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 22px max(16px, env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent 0, var(--bg) 22px); }
.savebar-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.savebar .fine { text-align: center; }
.foot { max-width: 1080px; margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot p { margin: 0; flex-basis: 100%; max-width: 70ch; }

/* ── posters (each look keeps fixed colors, like a printed card) ── */
[data-vibe="turf"] { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .2) 38px 40px), linear-gradient(160deg, #227a48, #155532); }
[data-vibe="pylon"] { background: repeating-linear-gradient(-45deg, rgba(30, 10, 0, .09) 0 12px, transparent 12px 24px), linear-gradient(160deg, #ff7c3a, #ea5317); }
[data-vibe="primetime"] { background: radial-gradient(90% 60% at 10% -8%, rgba(255, 212, 128, .62), transparent 60%), radial-gradient(90% 60% at 94% -12%, rgba(255, 212, 128, .45), transparent 60%), linear-gradient(#141f46, #070b1d); }
[data-vibe="sheet"] { background: linear-gradient(90deg, transparent 26px, #e39696 26px 28px, transparent 28px), repeating-linear-gradient(180deg, #fbfbf6 0 25px, #c6d3ee 25px 26px); }
.poster { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 6px; --p-ink: #ffffff; --p-sub: rgba(255, 255, 255, .82); color: var(--p-ink); }
.poster[data-vibe="pylon"] { --p-ink: #1c0b02; --p-sub: rgba(28, 11, 2, .78); }
.poster[data-vibe="primetime"] { --p-ink: #fff6e2; --p-sub: rgba(255, 246, 226, .78); }
.poster[data-vibe="sheet"] { --p-ink: #1c2a6c; --p-sub: #3f4f8c; padding-left: 42px; box-shadow: inset 0 0 0 1px #d6ddeb; }
.poster p { margin: 0; }
.poster-num { position: absolute; right: -4px; bottom: -30px; z-index: -1; font-family: var(--f-display); font-weight: 900; font-size: 150px; line-height: 1; opacity: .16; pointer-events: none; white-space: nowrap; }
.poster-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-sub); }
.poster-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 46px; line-height: .88; text-wrap: balance; overflow-wrap: anywhere; }
.poster-sub { font-size: 15px; color: var(--p-sub); max-width: 34ch; }
.poster-host { font-size: 13px; font-weight: 700; padding-top: 8px; }
.poster.sm { padding-block: 16px 14px; }
.poster.sm .poster-title { font-size: 30px; }
.poster.sm .poster-sub { display: none; }
.poster.sm .poster-num { font-size: 100px; bottom: -20px; }
.vibes { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe { display: flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 14px; font-weight: 600; }
.vibe.on { border-color: var(--ink); }
.vibe-sw { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* ── cards and rules ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.soft { background: var(--surface-2); border: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--surface); border-radius: 6px; padding: 4px 8px; }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rules li { position: relative; padding-left: 18px; font-size: 15.5px; }
.rules li::before { content: ""; position: absolute; left: 1px; top: .68em; width: 8px; height: 2px; background: var(--accent); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.facts div { min-width: 0; }
.facts dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.money-note { margin: 0; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.callout { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.callout h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.callout ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.callout.assumed { background: var(--warn-soft); }
.callout.assumed h3 { color: var(--warn-ink); }
.callout.unsupported { background: var(--accent-soft); }
.callout.unsupported h3 { color: var(--accent-ink); }

/* ── create flow ── */
.tpl-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.tpl-tabs::-webkit-scrollbar { display: none; }
.tpl-tab { flex-shrink: 0; border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tpl-tab:hover { color: var(--ink); }
.tpl-tab.on { background: var(--ink); color: var(--surface); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 11px; min-width: 0; text-decoration: none; }
.tpl:hover:not(:disabled) { border-color: var(--ink); }
.tpl.on { border-color: var(--accent); background: var(--accent-soft); }
.tpl:disabled { cursor: default; opacity: .7; }
.tpl-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-family: var(--f-display); font-weight: 900; font-size: 17px; line-height: 1; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tpl-icon[data-vibe="pylon"] { color: #1c0b02; }
.tpl-icon[data-vibe="primetime"] { color: #fff6e2; }
.tpl-icon[data-vibe="sheet"] { color: #1c2a6c; background: linear-gradient(90deg, transparent 6px, #e39696 6px 7px, transparent 7px), repeating-linear-gradient(180deg, #fbfbf6 0 9px, #c6d3ee 9px 10px); }
.tpl-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tpl-blurb { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tpl.on .tpl-blurb { color: var(--accent-ink); }
.soon { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.quote { margin: 0; border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); font-size: 15px; max-height: 9.6em; overflow: hidden; }
.pulse-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pulse-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; animation: pulse 1.8s ease-in-out infinite; }
.pulse-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); flex-shrink: 0; }
.pulse-list li:nth-child(2) { animation-delay: .5s; }
.pulse-list li:nth-child(3) { animation-delay: 1s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.qlist { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.qlist span { color: var(--muted); }
.linkbox { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--ink); border-radius: 14px; padding: 7px 7px 7px 14px; background: var(--surface); }
.linkbox .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.thread-head { text-align: center; font-weight: 700; padding: 2px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.msg { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.msg p { margin: 0; padding: 8px 12px; border-radius: 18px; font-size: 15px; line-height: 1.3; }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--bubble-me); color: var(--bubble-me-ink); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; }
.msg.them p { background: var(--surface-2); border-bottom-left-radius: 6px; }
.from { font-size: 11.5px; color: var(--muted); padding-left: 12px; }
.preview { align-self: flex-end; width: 80%; max-width: 260px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.preview .poster { border-radius: 0; padding: 14px 14px 12px; }
.preview .poster[data-vibe="sheet"] { padding-left: 38px; }
.preview .poster-title { font-size: 26px; }
.preview .poster-sub, .preview .poster-host { display: none; }
.preview .poster-num { font-size: 88px; bottom: -18px; }
.pv-text { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px 11px; font-size: 13px; }
.pv-text b { font-size: 14.5px; }
.pv-text span { color: var(--muted); }

/* ── pool page ── */
.tabs { position: sticky; top: var(--topbar-h, 63px); z-index: 15; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg); padding: 6px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; color: var(--muted); }
.tab.on { background: var(--ink); color: var(--surface); }
.tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 5px; vertical-align: middle; }
.facts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts-row b { font-size: 15px; }
.whos-in { display: flex; align-items: center; gap: 12px; }
.whos-in p { margin: 0; font-size: 14.5px; color: var(--muted); min-width: 0; }
.whos-in b { color: var(--ink); }
.avatars { display: flex; flex-shrink: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #ffffff; background: var(--c); border: 2px solid var(--bg); margin-left: -9px; flex-shrink: 0; }
.av:first-child { margin-left: 0; }
.av.sm { width: 26px; height: 26px; font-size: 11px; margin: 0; border: 0; }
.week-head { display: flex; flex-direction: column; gap: 8px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.game { border: 1.5px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.g-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 2px; flex-wrap: wrap; align-items: center; }
.g-meta .right { margin-left: auto; font-family: var(--f-mono); font-weight: 500; }
.g-meta .live { color: var(--accent); font-weight: 700; }
.g-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.at { font-size: 12px; color: var(--muted); }
.team { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); min-width: 0; text-align: left; }
.team .ab { font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.team .rec { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.team .ln { margin-left: auto; font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.team .score { margin-left: auto; font-family: var(--f-mono); font-size: 17px; font-weight: 700; }
.team.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.team.on .rec { color: var(--accent-ink); }
.team:disabled { cursor: default; }
.team.used { opacity: .4; text-decoration: line-through; }
.team.right { background: var(--win-soft); border-color: var(--win); color: var(--win); }
.team.wrong { background: var(--loss-soft); border-color: var(--loss); color: var(--loss); }
.sw { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.g-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.conf { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.conf select { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 6px 8px; font-family: var(--f-mono); font-weight: 600; font-size: 15px; }
.result { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.result.w { color: var(--win); } .result.l { color: var(--loss); } .result.p { color: var(--muted); }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-pill.alive { background: var(--win-soft); color: var(--win); }
.status-pill.out { background: var(--loss-soft); color: var(--loss); }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.tchip .x { font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.tchip.w { border-color: var(--win); } .tchip.l { border-color: var(--loss); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }

.props { margin: 0; padding: 0; list-style: none; counter-reset: q; display: flex; flex-direction: column; gap: 10px; }
.props > li { counter-increment: q; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.props .q { font-weight: 700; font-size: 15.5px; display: flex; gap: 8px; }
.props .q::before { content: counter(q); font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 3px; min-width: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 24px; }
.choice { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14.5px; min-height: 42px; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.choice.right { border-color: var(--win); background: var(--win-soft); color: var(--win); }
.choice:disabled { cursor: default; }

.sq-wrap { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px; }
.sq-side { align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sq-top { grid-column: 2; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sq { display: grid; grid-template-columns: 20px repeat(10, minmax(0, 1fr)); gap: 3px; font-family: var(--f-mono); }
.sq .hd { font-size: 12px; font-weight: 700; color: var(--ink); display: grid; place-items: center; min-height: 20px; }
.sq .cell { aspect-ratio: 1; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 10px; font-weight: 600; padding: 0; display: grid; place-items: center; color: var(--muted); min-width: 0; overflow: hidden; }
.sq .cell.taken { background: var(--surface-2); }
.sq .cell.mine { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.sq .cell.win { box-shadow: 0 0 0 2px var(--win); }
.sq button.cell:not(.taken):not(.mine):hover { border-color: var(--ink); }

.table-wrap { overflow-x: auto; }
table.standings { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.standings th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
.standings td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.standings .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.standings tr.you td { background: var(--accent-soft); }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.members li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; min-width: 0; }
.members .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.members .st { margin-left: auto; font-size: 12px; font-weight: 700; }
.st.done { color: var(--win); } .st.wait { color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plist li:last-child { border-bottom: 0; }
.plist .nm { flex: 1; font-weight: 600; min-width: 8ch; }
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-list li { font-size: 15px; overflow-wrap: anywhere; }
.chat-list .who-n { font-weight: 700; margin-right: 6px; }
.chat-list .sys { color: var(--muted); font-size: 13px; font-style: italic; }
.chat-list .mine .who-n { color: var(--accent); }
.chat-list time { font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.keyq { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.keyq:last-child { border-bottom: 0; }
.upsell { background: var(--accent-soft); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.upsell h3 { margin: 0; font-size: 16px; }
.upsell p { margin: 0; font-size: 14.5px; }

.status { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.st-ok { color: var(--win); } .st-err { color: var(--loss); } .st-hint, .st-saving { color: var(--muted); }
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; color: inherit; }
.av.emo { background: var(--surface-2); font-size: 18px; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.emo-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; }
.emo-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.featured { margin-top: 20px; border-radius: 18px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #ffffff; box-shadow: var(--shadow); }
.featured .f-k { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.featured .f-t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: .95; }
.featured .f-s { font-size: 15px; font-weight: 600; opacity: .92; max-width: 34em; }
.featured .f-go { align-self: flex-start; margin-top: 10px; background: #ff7a3d; color: #1c0b02; font-weight: 700; border-radius: 999px; padding: 9px 18px; }
.standings tr.bot td { color: var(--muted); }
.versus .vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; margin: 4px 0; }
.versus .vs-row b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 46px; line-height: 1; }
.versus .vs-row .lead b { color: var(--accent); }
.versus .vs-k { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.versus .vs-mid { font-weight: 700; font-size: 15px; }
.versus .btn { align-self: flex-start; background: var(--accent); color: #ffffff; border-color: transparent; }
.mine { padding: 20px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.mine-head { display: flex; align-items: center; gap: 10px; }
.mine-head .spacer { flex: 1; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.mine-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mini { flex: 0 0 200px; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: #ffffff; min-height: 104px; }
.mini[data-vibe="pylon"] { color: #1c0b02; } .mini[data-vibe="primetime"] { color: #fff6e2; } .mini[data-vibe="sheet"] { color: #1c2a6c; padding-left: 36px; }
.mini.new { background: var(--surface); border: 1.5px dashed var(--line); color: var(--ink); justify-content: center; }
.mini-k { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .8; }
.mini-t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: .95; }
.mini-h { font-size: 12.5px; font-weight: 600; opacity: .85; margin-top: auto; }
.join-as { flex-direction: row; align-items: center; gap: 14px; }
.join-as .av { width: 48px; height: 48px; font-size: 18px; margin: 0; }
.join-as .av.emo { font-size: 26px; }
.join-as b { font-size: 19px; }
.cta-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px 16px; }
.cta-card span { color: var(--muted); font-size: 14.5px; }
.cta-card:hover { border-color: var(--ink); }
.tip { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 10px 8px 10px 14px; }
.tip p { margin: 0; flex: 1; font-size: 14px; }
.tip-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ask { border: 2px solid var(--accent); }
.ask-q { display: flex; flex-direction: column; gap: 8px; }
.ask-q p { margin: 0; font-weight: 700; font-size: 16px; }
.settings > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary .h-sm::after { content: " ▾"; }
.settings[open] > summary .h-sm::after { content: " ▴"; }
.set-grid { display: flex; flex-direction: column; gap: 8px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.set-row .input { padding: 9px 10px; font-size: 15px; }
textarea.short { min-height: 84px; }
.sheet th, .sheet td { white-space: nowrap; }
.sheet .pk { font-weight: 700; }
.sheet .pk.w { color: var(--win); background: var(--win-soft); }
.sheet .pk.l { color: var(--loss); }
.sheet .pk.p { color: var(--muted); }
.sheet .pk small { font-weight: 500; font-size: 10.5px; margin-left: 3px; color: var(--muted); }
.tab .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.wrapup { border: 2px solid var(--accent); }
.remind { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.house { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.adj-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 8px; }
.adj-form #adj-note { grid-column: 1 / -1; }
.adj-form .btn { grid-column: 1 / -1; }
.guide .lede { color: var(--ink); font-size: 17px; }
.guide .lede + .lede { color: var(--muted); font-size: 16px; }
.steps-plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list h3 { margin: 0 0 2px; font-size: 17px; }
.faq-list p { margin: 0; color: var(--muted); }
.more-guides { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more-guides .h-sm { flex-basis: 100%; }
.more-guides a { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.col-tight { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 360px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 50; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 11px 16px; font-size: 14.5px; font-weight: 600; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); width: max-content; max-width: calc(100% - 32px); }
.center { text-align: center; }
.empty { padding: 48px 0; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ── landing ── */
.land { max-width: 1080px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 7vw, 86px); line-height: .88; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lede { font-size: 19px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.promise { display: flex; flex-wrap: wrap; gap: 6px; }
.promise span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.fan { position: relative; height: 470px; }
.fan .poster { position: absolute; width: min(320px, 80%); box-shadow: var(--shadow); }
.fan .poster:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.fan .poster:nth-child(2) { right: 0; top: 120px; transform: rotate(5deg); }
.fan .poster:nth-child(3) { left: 8%; top: 255px; transform: rotate(-2deg); }
.section { padding: 56px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.section h2 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 5vw, 48px); line-height: .92; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps3 li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps3 li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.steps3 h3 { margin: 0; font-size: 19px; }
.steps3 p { margin: 0; color: var(--muted); }
.land .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1; }
.plan .price small { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--win); border-bottom: 2px solid var(--win); transform: rotate(-45deg); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq div { display: flex; flex-direction: column; gap: 6px; }
.faq h3 { margin: 0; font-size: 17px; }
.faq p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 28px; }
  .fan { height: 430px; }
  .steps3, .faq, .plans { grid-template-columns: minmax(0, 1fr); }
  .land .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { display: none; }
}
@media (max-width: 400px) {
  .team { padding-inline: 8px; gap: 5px; }
  .team .rec { display: none; }
  .members { grid-template-columns: 1fr; }
  .choices { padding-left: 0; }
  .poster-title { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
