/* Chalk & Gold — styles taken from the design canvas (black ground, gold rules, chalk type). */
:root {
  --bg: #000000;
  --panel: #171B22;
  --panel-2: #0B0D11;
  --ink: #E6E8EB;
  --ink-2: #C5CBD3;
  --muted: #9AA3AE;
  --gold: #D4AF37;
  --gold-hi: #E8C963;
  --gold-dim: #6B5A22;
  --gold-deep: #3A2F12;
  --line-dark: #2A2F38;
  --won-bg: #1E3A2B; --won: #4ADE80;
  --lost-bg: #3A1E22; --lost: #F87171;
  --push-bg: #2A2F38; --push: #C5CBD3;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --gold-text: linear-gradient(105deg, #9C7A22 0%, #D4AF37 30%, #F2D675 45%, #FFF6D2 52%, #F2D675 60%, #D4AF37 75%, #9C7A22 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chalk { font-family: "Cabin Sketch", cursive !important; font-weight: 700 !important; letter-spacing: .03em; text-shadow: 0 0 1px rgba(255,255,255,.3), 0 0 6px rgba(255,255,255,.06); }
.display { font-family: var(--display); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* Motion from the design */
@keyframes rise { 0% { opacity: 0; transform: translateY(22px) scale(.94); filter: blur(6px) } 100% { opacity: 1; transform: none; filter: none } }
.r > * { animation: rise .65s cubic-bezier(.22,1,.36,1) both; }
.r > *:nth-child(2) { animation-delay: .07s } .r > *:nth-child(3) { animation-delay: .14s } .r > *:nth-child(4) { animation-delay: .21s }
.r > *:nth-child(5) { animation-delay: .28s } .r > *:nth-child(6) { animation-delay: .35s } .r > *:nth-child(n+7) { animation-delay: .42s }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 1px #F7E7A1, 0 0 6px rgba(212,175,55,.7), 0 0 16px rgba(212,175,55,.35) } 50% { box-shadow: 0 0 0 1px #FFF4C4, 0 0 12px rgba(232,201,99,.95), 0 0 30px rgba(212,175,55,.6), 0 0 46px rgba(212,175,55,.25) } }
.glow { animation: glow 2.2s ease-in-out infinite; }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px) scale(.97) } 100% { opacity: 1; transform: none } }
@keyframes dim { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .r > *, .glow, .modal, .scrim, .toast { animation: none !important; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .22em; font-family: "Rye", serif; font-weight: 400; letter-spacing: .06em; line-height: 1; font-size: 20px; color: #EDEDED; }
.logo .gold-word { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo svg { overflow: visible; }

/* Header */
.site-header { border-bottom: 1px solid var(--gold); position: sticky; top: 0; z-index: 30; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
.header-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.header-in .brand { margin-right: 8px; }
.search { position: relative; flex: 1 1 240px; }
.search label { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 0 14px; height: 44px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: none; color: var(--ink); font-size: 14px; font-family: inherit; outline: none; }
.search-results { position: absolute; left: 0; right: 0; top: 50px; background: var(--panel-2); border: 1px solid var(--gold); border-radius: 14px; padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--panel); }
.main-nav { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.main-nav a { color: var(--muted); padding: 12px 12px; }
.main-nav a[aria-current="page"] { color: var(--gold); font-family: var(--font) !important; text-shadow: none; letter-spacing: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--gold); background: var(--panel); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 4px; background: var(--gold); }
.me-btn { width: 40px; height: 40px; border-radius: 20px; background: var(--gold); color: #000; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; border: none; padding: 0; overflow: hidden; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 50px; min-width: 240px; background: var(--panel-2); border: 1px solid var(--gold); border-radius: 14px; padding: 6px; z-index: 40; display: flex; flex-direction: column; animation: pop .18s ease-out both; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500; background: none; border: none; text-align: left; width: 100%; }
.menu a:hover, .menu button:hover { background: var(--panel); color: var(--ink); }
.menu .menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-dark); margin-bottom: 4px; }
.menu .notice { flex-direction: column; align-items: flex-start; gap: 2px; }
.auth-links { display: flex; gap: 8px; align-items: center; }

/* Bottom nav (phones) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .header-in { padding: 12px 16px; gap: 10px; }
  .main-nav { display: none; }
  .search { order: 5; flex-basis: 100%; }
  .header-in .brand { flex: 1; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #000; border-top: 1px solid var(--gold); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 6px 0; min-height: 44px; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  body { padding-bottom: 76px; }
}

/* Layout */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
.page.narrow { max-width: 1000px; }
.page.slim { max-width: 640px; }
@media (max-width: 760px) { .page { padding: 20px 16px 40px; } }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
h1.title { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.3px; }
.subtitle { color: var(--muted); font-size: 15px; margin-top: 6px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }

/* Panels & cards */
.panel { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.card { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .who { flex: 1; min-width: 0; }
.card-head .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.card-head .meta { color: var(--muted); font-size: 13px; }
.stack { position: relative; padding-bottom: 12px; }
.stack .layer { position: absolute; height: 30px; border-radius: 16px; }
.stack .l1 { left: 16px; right: 16px; bottom: 0; border: 1px solid var(--gold-dim); background: #0D0F13; }
.stack .l2 { left: 8px; right: 8px; bottom: 6px; border: 1px solid #8C7428; background: #12151B; }
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-family: var(--display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sport-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 7px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.verified { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.last5 { display: flex; gap: 3px; justify-content: flex-end; }
.last5 span { width: 16px; height: 16px; border-radius: 4px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.last5 .w { background: var(--gold); color: #000; } .last5 .l { background: #3A3F4A; color: var(--ink-2); } .last5 .p { background: #22262E; color: var(--muted); }
.slip { background: #000; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.slip-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slip-type { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.slip-type.caps { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.odds { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--gold); }
.slip-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.leg { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.leg .o { color: var(--muted); }
.leg .ok { color: var(--gold); } .leg .x { color: var(--lost); }
.rule { height: 1px; background: var(--line-dark); }
.rule.gold { background: var(--gold); }
.slip-foot { display: flex; justify-content: space-between; font-size: 15px; }
.hidden-legs { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.hidden-legs div { display: flex; align-items: center; gap: 8px; }
.hidden-legs span { height: 10px; border-radius: 5px; background: var(--line-dark); }
.slip-photo { border-radius: 10px; border: 1px solid var(--line-dark); max-height: 360px; object-fit: contain; background: #000; width: 100%; }
.note { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.badge.won { background: var(--won-bg); color: var(--won); }
.badge.lost { background: var(--lost-bg); color: var(--lost); }
.badge.push { background: var(--push-bg); color: var(--push); }
.badge.pending { border: 1px solid var(--gold); color: var(--gold); }
.badge.outline { border: 1px solid var(--gold-dim); color: var(--ink-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 4px; min-height: 40px; }
.link-btn:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; text-align: center; }
.btn-gold { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); color: #000; }
.btn-gold:disabled { background: #3A3220; color: var(--muted); border-color: #3A3220; box-shadow: none; animation: none; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-line:hover { background: var(--gold-deep); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--gold-dim); }
.btn-danger { background: transparent; color: var(--lost); border-color: var(--gold-dim); }
.btn-block { width: 100%; }
.btn-lg { height: 52px; border-radius: 14px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* Pills & chips */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 10px 16px; border-radius: 999px; background: var(--panel); color: var(--ink); border: 1px solid var(--gold); font-size: 14px; font-weight: 600; }
.pill[aria-pressed="true"] { background: var(--gold); color: #000; font-family: var(--font) !important; text-shadow: none; letter-spacing: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--gold); font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--gold); color: #000; font-family: var(--font) !important; text-shadow: none; letter-spacing: 0; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--gold); font-size: 15px; font-weight: 600; overflow-x: auto; }
.tabs a { color: var(--muted); padding: 0 0 10px; white-space: nowrap; display: inline-flex; align-items: flex-start; gap: 5px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--gold); }
.live-dot { width: 6px; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--gold); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span.lab, .lab { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.input, select.input, textarea.input { width: 100%; height: 48px; border: 1px solid var(--gold); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 0 14px; font-family: inherit; font-size: 15px; outline: none; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.input.bad { border-color: var(--lost); }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--gold); border-radius: 12px; background: var(--panel); padding-left: 14px; color: var(--muted); }
.input-prefix .input { border: none; background: transparent; padding-left: 4px; box-shadow: none; }
.input-prefix.bad { border-color: var(--lost); }
.hint { font-size: 13px; color: var(--muted); }
.hint.ok { color: var(--gold); } .hint.bad { color: var(--lost); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--gold); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { height: 46px; border-radius: 12px; border: 1px solid var(--gold); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #000; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid #3A3220; background: var(--panel-2); color: var(--ink); text-align: left; width: 100%; font-size: 15px; }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--gold); background: var(--panel); }
.option .radio { width: 20px; height: 20px; border-radius: 10px; border: 2px solid var(--gold); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.option .radio i { width: 10px; height: 10px; border-radius: 5px; background: transparent; }
.option[aria-pressed="true"] .radio i, .option[aria-checked="true"] .radio i { background: var(--gold); }
.option .t { font-weight: 700; } .option .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.option:disabled { opacity: .55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .rules { grid-template-columns: 1fr; } }
.legs-edit { display: flex; flex-direction: column; gap: 8px; }
.leg-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; border: 1.5px dashed var(--gold-dim); border-radius: 14px; background: var(--panel-2); color: var(--muted); font-size: 14px; text-align: center; padding: 16px; cursor: pointer; position: relative; }
.upload:hover { border-color: var(--gold); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload img { max-height: 220px; border-radius: 10px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #000; border: 1px solid var(--gold); border-radius: 14px; padding: 14px 0; text-align: center; width: 100%; }
.stats > div { padding: 0 6px; }
.stats > div + div { border-left: 1px solid var(--gold-dim); }
.stat-n { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--gold); }
.stat-l { color: var(--muted); font-size: 12px; }

/* Profile */
.profile-card { flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px; }
.profile-card h1 { margin: 8px 0 0; font-family: var(--display); font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.profile-card .bio { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.row-card { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.row-card .t { font-size: 17px; font-weight: 700; }
.row-card .s { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Lists */
.list-row { display: flex; align-items: center; gap: 12px; }
.list-row .grow { flex: 1; min-width: 0; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--gold); border-radius: 14px; color: var(--ink); }
.lb-row:hover { background: #1C212A; color: var(--ink); }
.lb-rank { width: 28px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--gold); text-align: center; }
.lb-row.top1 { box-shadow: 0 0 0 1px #F7E7A1, 0 0 16px rgba(212,175,55,.35); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* Chat */
.chat-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.rooms { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.rooms a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); border: 1px solid transparent; }
.rooms a[aria-current="page"] { background: var(--gold-deep); border-color: var(--gold); }
.rooms a:hover { background: var(--panel); color: var(--ink); }
.chat { position: relative; flex: 999 1 480px; min-width: 0; height: min(760px, calc(100vh - 140px)); min-height: 520px; display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--gold); border-radius: 18px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #2A2414; }
.pinned { margin: 16px 20px 0; background: var(--panel); border: 1px solid var(--gold); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pinned .lab2 { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.reacts { display: flex; flex-wrap: wrap; gap: 8px; }
.react { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gold-dim); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.react[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-deep); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; }
.msgs .spacer { flex: 1; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .who { font-size: 13px; margin: 0 0 4px 2px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.msg .who.host { color: var(--gold); font-weight: 700; }
.bubble { background: var(--panel); border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: 15px; max-width: 520px; overflow-wrap: anywhere; }
.bubble.host { background: var(--gold-deep); border: 1px solid var(--gold); }
.msg .tiny { background: none; border: none; color: var(--muted); font-size: 12px; padding: 2px 4px; }
.msg .tiny:hover { color: var(--ink); }
.composer { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--gold); }
.composer form { display: flex; gap: 10px; align-items: center; }
.composer input[type=text] { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--gold); border-radius: 24px; background: var(--panel); color: var(--ink); padding: 0 18px; font-family: inherit; font-size: 15px; outline: none; }
.send { width: 48px; height: 48px; border-radius: 24px; border: none; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.blurred { filter: blur(8px); opacity: .5; pointer-events: none; user-select: none; }
.lock-over { position: absolute; left: 0; right: 0; bottom: 0; top: 140px; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg, rgba(11,13,17,0) 0%, rgba(11,13,17,.85) 30%, rgba(11,13,17,.97) 100%); }
.lock-box { max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.chat-side { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .rooms, .chat-side { max-width: none; } .rooms { flex-direction: row; overflow-x: auto; flex-basis: 100%; } .rooms .lab { display: none; } }

/* Auth */
.auth { min-height: calc(100vh - 0px); display: flex; flex-wrap: wrap; }
.auth-hero { flex: 1 1 420px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px; border-right: 1px solid var(--gold); background: radial-gradient(1200px 500px at 0% 0%, #15130B 0%, #000 60%); }
.auth-hero .logo { font-size: 46px; flex-wrap: wrap; }
.auth-hero .est { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 5px; }
.auth-hero p { margin: 0; font-size: 22px; line-height: 1.4; color: var(--ink-2); max-width: 460px; }
.auth-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--gold-dim); }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin: 0; }
.demo-box { border: 1px dashed var(--gold-dim); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.demo-box button { background: none; border: none; color: var(--gold); font-weight: 700; padding: 4px 2px; font-size: 13px; }
/* Desktop: the brand panel stays centered in the window while a long form (sign up) scrolls beside it. */
@media (min-width: 761px) {
  .auth { align-items: flex-start; }
  .auth-hero { position: sticky; top: 0; height: 100vh; border-right: none; align-items: center; text-align: center; gap: 0; padding: 48px 40px;
    --glow-x: 50%; --glow-y: 44%; --glow-w: 560px; --glow-h: 380px; }
  .auth-hero > a { display: inline-flex; justify-content: center; }
  .auth-hero .logo { font-size: clamp(26px, 4.1vw, 62px); justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
  .auth-hero .est { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; letter-spacing: 6px; }
  .auth-hero .est::before, .auth-hero .est::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
  .auth-hero .est::after { background: linear-gradient(90deg, var(--gold), transparent); }
  .auth-hero p { max-width: 400px; font-size: 20px; line-height: 1.5; text-wrap: balance; }
  .auth-form { min-height: 100vh; border-left: 1px solid var(--gold); }
}
@media (max-width: 760px) { .auth-hero { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--gold); flex-basis: 100%; } .auth-hero .logo { font-size: 32px; } .auth-hero p { font-size: 17px; } }

/* Breathing gold glow behind the sign-up logo: brightens, fades, comes back (first impression). */
.auth-hero { position: relative; isolation: isolate; }
@media (max-width: 760px) { .auth-hero { --glow-x: 30%; --glow-y: 30%; --glow-w: 420px; --glow-h: 260px; } }
.auth-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--glow-w, 560px) var(--glow-h, 380px) at var(--glow-x, 50%) var(--glow-y, 44%), rgba(212,175,55,.20) 0%, rgba(212,175,55,.07) 38%, rgba(212,175,55,0) 70%);
  opacity: .45; transform-origin: var(--glow-x, 50%) var(--glow-y, 44%);
  animation: cng-breathe 4.5s ease-in-out infinite;
}
.auth-hero .logo { animation: cng-shine 4.5s ease-in-out infinite; }
@keyframes cng-breathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes cng-shine {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(212,175,55,0)); }
  50% { filter: drop-shadow(0 0 14px rgba(212,175,55,.38)) drop-shadow(0 0 2px rgba(255,226,140,.25)); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-hero::before { animation: none; opacity: .8; transform: none; }
  .auth-hero .logo { animation: none; }
}

/* Phone intro: logo full screen with the breathing glow, then fades into the normal page. */
.auth-splash { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; padding: 24px; isolation: isolate;
  animation: cng-splash-out .7s ease 2.5s forwards; cursor: pointer; }
.auth-splash::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px 300px at 50% 47%, rgba(212,175,55,.24) 0%, rgba(212,175,55,.08) 40%, rgba(212,175,55,0) 72%);
  animation: cng-breathe 2.2s ease-in-out infinite; }
.auth-splash-in { display: flex; flex-direction: column; align-items: center; animation: cng-splash-in .9s cubic-bezier(.2,.7,.2,1) both; }
.auth-splash .logo { font-size: clamp(28px, 9vw, 44px); white-space: nowrap; flex-wrap: nowrap; animation: cng-shine 2.2s ease-in-out infinite; }
.auth-splash .est { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 6px; }
.auth-splash .est::before, .auth-splash .est::after { content: ''; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.auth-splash .est::after { background: linear-gradient(90deg, var(--gold), transparent); }
.auth-splash.gone { animation: cng-splash-out .35s ease forwards; }
@keyframes cng-splash-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cng-splash-out { to { opacity: 0; visibility: hidden; } }
@media (min-width: 761px) {
  .auth-splash .logo { font-size: clamp(48px, 6vw, 84px); }
  /* Fallback fade if the float never starts; normally slideSplash() takes over at 2.3s. */
  .auth-splash { animation: cng-splash-out .7s ease 6s forwards; transition: background-color 2.4s ease .3s; }
  .auth-splash.slide { animation: none; background-color: rgba(0,0,0,0); pointer-events: none; }
  .auth-splash.slide::before { opacity: 0; transition: opacity 2.2s ease; animation: none; }
  /* The logo floats slowly to the left and settles on the logo of the login page. */
  .auth-splash.slide .auth-splash-in { animation: none; transform: translate(var(--dx), var(--dy)) scale(var(--k)); transition: transform 2.8s cubic-bezier(.45,.05,.2,1); }
  .auth-splash.slide .est { opacity: 0; transition: opacity 1s ease; }
  /* While it floats, the login page's own logo waits, and the words beside it ease in. */
  .cng-floating .auth-hero .logo { opacity: 0; }
  .cng-floating .auth-hero .est, .cng-floating .auth-hero p, .cng-floating .auth-form { animation: cng-float-in 2.4s ease .4s both; }
  @keyframes cng-float-in { from { opacity: 0; } to { opacity: 1; } }
  .auth-splash::before { background: radial-gradient(720px 480px at 50% 47%, rgba(212,175,55,.24) 0%, rgba(212,175,55,.08) 40%, rgba(212,175,55,0) 72%); }
  .auth-splash .est { margin-top: 26px; font-size: 14px; letter-spacing: 9px; }
  .auth-splash .est::before, .auth-splash .est::after { width: 64px; }
}

/* "Now launching" panel for the live site before the first picks */
.launch { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 32px; text-align: center; align-items: center; }
.launch::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 220px at 50% 0%, rgba(212,175,55,.18) 0%, rgba(212,175,55,0) 70%); animation: cng-breathe 4.5s ease-in-out infinite; }
.launch-tag { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 5px 12px; }
.launch-h { margin: 0; font-size: 26px; line-height: 1.2; }
.launch-p { margin: 0; color: var(--ink-2); max-width: 480px; line-height: 1.55; text-wrap: balance; }
.launch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 6px; text-align: left; }
.launch-step { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #2a2a2a); border-radius: 12px; padding: 12px; background: rgba(0,0,0,.25); }
.launch-n { flex: none; width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #000; background: var(--gold); }
.launch-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.launch.compact { padding: 26px 22px; }
.launch.compact .launch-h { font-size: 22px; }
@media (max-width: 760px) { .launch { padding: 24px 18px; } .launch-steps { grid-template-columns: 1fr; } .launch-h { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .launch::before { animation: none; } }

.linked-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold-dim); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; vertical-align: 1px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps span { height: 4px; border-radius: 2px; background: #2A2414; }
.steps span.on { background: var(--gold); }

/* Modal & toast */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 60; animation: dim .2s ease-out both; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 440px; max-width: calc(100% - 32px); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--panel-2); border: 1px solid var(--gold); border-radius: 20px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; z-index: 61; }
.modal h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; }
.modal p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 70; animation: pop .2s ease-out both; max-width: calc(100% - 32px); }
@media (max-width: 760px) { .toast { bottom: 92px; } }

/* Share card */
.share-card { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--gold); background: radial-gradient(600px 300px at 50% 0%, #2A2410 0%, #0B0D11 60%); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.share-card .big { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cashed { display: inline-block; transform: rotate(-6deg); border: 2px solid var(--won); color: var(--won); padding: 4px 10px; border-radius: 8px; font-family: "Rye", serif; letter-spacing: 2px; font-size: 18px; }

/* Misc */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-deep); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.banner.warn { background: #2A1E10; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.kv .k { color: var(--muted); }
.kv.total { font-size: 18px; font-weight: 700; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--gold-dim); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line-dark); vertical-align: middle; }
.scroll-x { overflow-x: auto; }
.demo-ribbon { background: var(--gold-deep); color: var(--ink-2); font-size: 12px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--gold-dim); }
.demo-ribbon b { color: var(--gold); }
.foot { max-width: 1200px; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; border-top: 1px solid #1A1A1A; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper .val { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--gold); min-width: 140px; text-align: center; }
.stepper button { width: 52px; height: 52px; border-radius: 26px; border: 1px solid var(--gold); background: var(--panel); color: var(--ink); font-size: 24px; }
.banner > svg, .list-row > svg { flex-shrink: 0; }
.modal p.fine { font-size: 12px; color: var(--muted); }

/* ---------- policy pages ---------- */
.foot { flex-direction: column; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a, .foot a { color: var(--ink-2); font-weight: 600; }
.terms-row { align-items: flex-start; line-height: 1.5; min-height: 0; }
.terms-row input { flex-shrink: 0; margin-top: 2px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.legal-nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.legal-nav a[aria-current="page"] { background: var(--panel); color: var(--gold); }
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal-body h1.title { margin: 4px 0 0; }
.legal-body section { scroll-margin-top: 88px; }
.legal-body h2 { font-size: 18px; margin: 18px 0 8px; color: var(--ink); }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul, .legal-body ol { margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-body a { color: var(--gold); }
.legal-draft { font-size: 14px; }
.ph { background: #3A2F12; color: var(--gold-hi); border-radius: 4px; padding: 0 4px; }
.legal-toc { padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.legal-toc .link-btn { padding: 4px 0; min-height: 0; color: var(--ink-2); font-size: 14px; text-align: left; }
.legal-tools { padding: 20px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--gold-dim); }
.legal-tools h2 { margin: 0 0 4px; font-size: 22px; }
.legal-tools p { margin: 0; }
.rg-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rg-row .input-prefix { width: 160px; }
.rg-row select.input { width: auto; flex: 1; min-width: 200px; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.legal-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.legal-card:hover { border-color: var(--gold-dim); }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .legal-layout > aside { min-width: 0; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .legal-nav a { white-space: nowrap; background: var(--panel); }
}
.legal-tools .fine, .legal-body .fine { text-align: left; margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- chat emoji picker ---------- */
.composer { position: relative; }
.emoji-btn { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-dim); background: var(--panel); font-size: 22px; line-height: 1; cursor: pointer; }
.emoji-btn[aria-expanded="true"] { border-color: var(--gold); }
.emoji-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); background: var(--panel); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; box-shadow: 0 12px 32px rgba(0,0,0,.6); z-index: 20; }
.emoji-panel[hidden] { display: none; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; }
.emoji-grid button { height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 22px; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: #232833; }
.react-emo { font-size: 16px; line-height: 1; }
.react[aria-pressed="true"] { border-color: var(--gold); background: #2A230F; }
.react-add { position: relative; display: inline-flex; }
.emoji-pop { position: absolute; left: 0; right: auto; top: calc(100% + 8px); bottom: auto; width: min(320px, 80vw); }
/* Picks tied to a game on the schedule */
.leg-block { display: flex; flex-direction: column; gap: 6px; }
.leg-block + .leg-block { padding-top: 10px; border-top: 1px dashed var(--line-dark); }
.leg-game { display: block; font-family: Inter, system-ui, sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px; }
.leg-when { font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Home: upcoming games strip. No scrollbar; it glides slowly on its own and pauses when touched or hovered. */
.games-strip { margin: 14px 0 6px; }
.gs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.gs-row { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.gs-track { display: flex; gap: 12px; padding: 4px 2px 8px; width: max-content; will-change: transform; }
.gs-row[data-loop] { cursor: grab; } .gs-row.dragging { cursor: grabbing; } .gs-row.dragging .gs-card { pointer-events: none; }
.gs-card { -webkit-user-drag: none; }
.gs-head .gs-hint { margin-left: auto; }
.gs-nav { display: none; gap: 6px; }
.games-strip.looping .gs-nav { display: inline-flex; }
.gs-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); background: var(--panel); color: var(--gold); font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.gs-nav button:hover, .gs-nav button:focus-visible { background: var(--gold); color: #000; outline: none; }
.gs-head { align-items: center; }
@media (max-width: 760px) { .gs-head .gs-hint { display: none; } .gs-head .gs-nav { margin-left: auto; } }
.gs-card { flex: 0 0 224px; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 13px 15px; border-radius: 16px;
  background: linear-gradient(180deg, #1A1E24 0%, var(--panel) 100%); border: 1px solid var(--gold); color: var(--ink); font: inherit; cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease; }
.gs-card:hover, .gs-card:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 6px 22px rgba(212,175,55,.22); outline: none; }
.gs-top { display: flex; align-items: center; white-space: nowrap; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.gs-when { margin-left: auto; padding-left: 8px; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 600; white-space: nowrap; }
.gs-team { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(212,175,55,.25); font-size: 12px; color: var(--muted); }
