/* ============================================================================
   Scoreix V3 — "warm-luxe quant terminal" design system.
   Ivory paper + espresso ink + gold, one electric-blue data accent. Premium,
   spacious, typographically confident. One file, no per-page CSS.
   ========================================================================== */
:root {
  /* ground */
  --bg-1: #f5efe2; --bg-2: #ebe0cb; --paper: #fdfaf3; --paper-2: #f4ecd9;
  --espresso: #201a11; --espresso-2: #2c241786;
  /* ink */
  --ink: #211c13; --ink-2: #6c6350; --ink-3: #9d927b; --ink-inv: #f3ead4;
  /* line */
  --line: rgba(92,79,52,0.14); --line-2: rgba(92,79,52,0.22); --line-gold: rgba(176,130,26,0.30);
  /* accent */
  --gold: #b0821c; --gold-2: #d8b24e; --gold-soft: rgba(176,130,26,0.12);
  --blue: #2f6bd0; --blue-2: #6fa0e8; --green: #12905a; --red: #c8452f; --orange: #cf6a1a; --purple: #7c4ddb;
  /* elevation */
  --sh-1: 0 2px 8px rgba(120,96,44,0.06), 0 8px 24px rgba(120,96,44,0.08);
  --sh-2: 0 4px 14px rgba(120,96,44,0.10), 0 18px 44px rgba(120,96,44,0.13);
  --sh-gold: 0 10px 30px rgba(176,130,26,0.22);
  --r: 20px; --r-md: 15px; --r-sm: 11px;
  --maxw: 940px;
  --font: 'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,system-ui,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --mono: 'Outfit',var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font);
  font-weight: 420; font-size: 15px; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(176,130,26,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 8%, rgba(47,107,208,0.05), transparent 55%),
    linear-gradient(172deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
}
/* meaningful-unit line breaking, identical on iOS / Android / PC */
*, body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, .sect-h, .card-t, .ph h1 { text-wrap: balance; }
a { color: var(--blue); text-decoration: none; }
::selection { background: rgba(176,130,26,0.24); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 72px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- top bar: slim, glassy, minimal ---------- */
.nav { position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(247,241,229,0.92), rgba(247,241,229,0.72));
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { position: relative; font-family: var(--mono); font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.brand b { color: var(--gold); }
.brand-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 3px; vertical-align: 3px; box-shadow: 0 0 0 3px rgba(18,144,90,0.16); animation: pulse 2s infinite; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nlink { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nlink:hover { color: var(--ink); background: rgba(92,79,52,0.06); }
.nlink.on { color: var(--gold); }
.nlink.login { color: var(--ink-2); }
.njoin { font-size: 14px; font-weight: 800; color: #2a2008; margin-left: 4px; padding: 8px 16px; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); transition: transform .15s, box-shadow .15s; }
.njoin:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(176,130,26,0.30); }

/* ---------- page header ---------- */
.ph { display: flex; flex-direction: column; gap: 4px; }
.ph h1 { font-size: 25px; font-weight: 850; color: var(--ink); margin: 0; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.ph p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- home hero spotlight (the #1 AI pick, cinematic) ---------- */
.spot { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px 22px 20px;
  background: radial-gradient(120% 140% at 8% 0%, #2c2415 0%, #1b160e 60%, #141009 100%);
  color: var(--ink-inv); box-shadow: var(--sh-2); border: 1px solid rgba(176,130,26,0.22); }
.spot::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 200px at 92% -10%, rgba(216,178,78,0.20), transparent 60%),
  radial-gradient(500px 240px at -5% 120%, rgba(47,107,208,0.16), transparent 60%); pointer-events: none; }
.spot-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(216,178,78,0.10); border: 1px solid rgba(216,178,78,0.28); padding: 4px 11px; border-radius: 999px; }
.spot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
.spot-body { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 14px; }
.spot-league { font-size: 12px; color: rgba(243,234,212,0.6); font-weight: 600; }
.spot-match { font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 8px; line-height: 1.12; }
.spot-match .vs { color: var(--gold-2); font-size: 15px; margin: 0 8px; font-weight: 700; }
.spot-pick { font-size: 14px; color: rgba(243,234,212,0.82); }
.spot-pick b { color: #fff; font-weight: 800; }
.spot-num { text-align: center; padding-left: 8px; }
.spot-num .n { font-family: var(--mono); font-size: 52px; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.spot-num .n span { font-size: 22px; color: var(--gold-2); }
.spot-num .cap { font-size: 11px; color: rgba(243,234,212,0.6); font-weight: 700; margin-top: 4px; letter-spacing: 0.03em; }
.spot-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 800; color: #2a2008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 9px 16px; border-radius: 11px; box-shadow: var(--sh-gold); }
.spot-cta:hover { transform: translateY(-1px); }

/* ---------- segmented filter tabs (sleek, not a button jumble) ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; scrollbar-width: none;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(92,79,52,0.04); }
.tabs::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 7px 15px; border-radius: 10px; cursor: pointer; white-space: nowrap; user-select: none; transition: color .15s, background .15s, box-shadow .15s; }
.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }

/* ---------- cards / sections ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-1); }
.card-t { font-size: 13px; font-weight: 850; color: var(--ink); margin: 0 0 13px; display: flex; align-items: center; gap: 7px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3,1fr); }
.sect { display: flex; flex-direction: column; gap: 11px; }
.sect-h { font-size: 13px; font-weight: 850; color: var(--ink-2); letter-spacing: 0.02em; padding: 4px 2px 0; display: flex; align-items: center; gap: 9px; }
.sect-h::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(var(--gold-2), var(--gold)); }
.note { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.home-txt { color: #1d4ed8; } .away-txt { color: #b4172c; }

/* ---------- match row (horizontal scoreboard card) ---------- */
.mrow { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.mrow:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-gold); }
.mstatus { font-size: 11.5px; font-weight: 800; text-align: center; letter-spacing: 0.02em; }
.mstatus.live { color: var(--red); } .mstatus.live::before { content: "●"; font-size: 8px; margin-right: 3px; vertical-align: 1.5px; animation: pulse 1.2s infinite; }
.mstatus.fin { color: var(--green); } .mstatus.sched { color: var(--ink-3); }
.mteams-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-width: 0; }
.mteam { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mteam.away { justify-content: flex-end; }
.mteam .nm { font-weight: 750; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.mteam.away .nm { text-align: right; }
.tava { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 850; font-size: 12.5px; color: var(--ink-2); }
.mteam.win .nm { color: var(--blue); font-weight: 850; }
.mteam.win .tava { color: var(--blue); background: rgba(47,107,208,0.08); border-color: rgba(47,107,208,0.4); }
.mscore { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mscore .sc { font-size: 17.5px; font-weight: 850; color: var(--ink); min-width: 1ch; text-align: center; }
.mscore i { font-style: normal; }
.mscore i::before { content: ":"; color: var(--ink-3); font-weight: 800; font-size: 13px; }
.mscore .sc:empty + i::before { content: "vs"; font-size: 11px; letter-spacing: 0.05em; font-weight: 800; color: var(--ink-3); }
.mpick { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mpick .c { font-size: 10.5px; color: var(--ink-2); font-weight: 700; }

/* ---------- login gate (premium / value picks hidden until signed in) ---------- */
body:not(.auth-in) .gate-blur { filter: blur(6px); pointer-events: none; user-select: none; }
.gate-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: var(--gold); white-space: nowrap; text-align: center; }
.gate-note { margin-left: 6px; font-size: 11px; color: var(--gold-2); font-weight: 800; white-space: nowrap; }
.gated { position: relative; }
.gate-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 9px 16px; border-radius: 11px; box-shadow: var(--sh-gold); }
body.auth-in .gate-lock, body.auth-in .gate-note { display: none; }
.tier-badge { font-size: 9.5px; font-weight: 900; padding: 3px 8px; border-radius: 999px; display: inline-block; letter-spacing: 0.02em; }
.t-premium { background: linear-gradient(135deg,#f0cf6b,#cf9a24); color: #3a2c05; box-shadow: 0 3px 10px rgba(207,154,36,0.3); }
.t-value { background: linear-gradient(135deg,#57d6a0,#12905a); color: #05271a; }
.t-general { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- standings ---------- */
table.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-1); }
.tbl th, .tbl td { padding: 11px 13px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--paper-2); color: var(--ink-2); font-weight: 800; font-size: 11.5px; letter-spacing: 0.02em; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: rgba(176,130,26,0.05); }
.tbl td.rk { font-family: var(--mono); font-weight: 800; color: var(--ink); width: 40px; font-variant-numeric: tabular-nums; }
.tbl td.tm { font-weight: 700; color: var(--ink); }
.tbl td.elo { text-align: right; font-family: var(--mono); font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.form { display: inline-flex; gap: 3px; }
.form span { width: 17px; height: 17px; border-radius: 5px; font-size: 10px; font-weight: 900; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.f-w { background: var(--green); } .f-l { background: var(--red); } .f-d { background: var(--ink-3); }

/* ---------- match detail ---------- */
.crumb { display: flex; gap: 7px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--ink-2); }
.hero { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px 20px; box-shadow: var(--sh-2);
  background: linear-gradient(158deg, #fefcf6 0%, #f1e8d5 100%); border: 1px solid var(--line-gold); }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hteam { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hteam .nm { font-size: 16.5px; font-weight: 850; color: var(--ink); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; letter-spacing: -0.01em; }
.hteam .side { font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.04em; }
.hcenter { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.hscore { font-family: var(--mono); font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.hkick { font-size: 11px; color: var(--ink-2); }
.verdict { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(135deg, rgba(176,130,26,0.11), rgba(253,250,243,0.5)); border: 1px solid var(--line-gold); border-radius: var(--r-md); padding: 16px 18px; }
.vlabel { font-size: 10px; font-weight: 800; color: var(--gold); letter-spacing: 0.09em; text-transform: uppercase; }
.vpick { font-family: var(--mono); font-size: 25px; font-weight: 900; color: var(--green); margin: 4px 0 5px; letter-spacing: -0.01em; }
.vsub { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.vsub b { color: var(--ink); font-weight: 800; }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge-lab { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.gauge-arc { stroke-dasharray: 110; animation: arc 1.2s cubic-bezier(.4,0,.2,1) both; }
.prob { margin-top: 15px; }
.prob-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.prob-bar { height: 13px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(92,79,52,0.10); }
.prob-h { background: linear-gradient(90deg, var(--blue), var(--blue-2)); } .prob-d { background: var(--ink-3); } .prob-a { background: linear-gradient(90deg,#e08a7a,var(--red)); }
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 15px 8px; text-align: center; box-shadow: var(--sh-1); transition: transform .16s, box-shadow .16s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile .ic { font-size: 19px; margin-bottom: 6px; } .tile .v { font-family: var(--mono); font-size: 21px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; } .tile .l { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 3px; }
.bar { height: 8px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(92,79,52,0.10); margin-top: 7px; }
.bar > div { height: 100%; }
.cmp { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin: 8px 0 2px; }
details.acc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--sh-1); }
details.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 850; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc[open] .arw { transform: rotate(180deg); } .arw { transition: transform .2s; color: var(--ink-3); }
.iscore { width: 100%; border-collapse: collapse; text-align: center; }
.iscore th, .iscore td { padding: 7px 5px; font-size: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.iscore th { background: var(--paper-2); color: var(--ink-2); font-weight: 800; }
.iscore td.tm { text-align: left; font-weight: 800; color: var(--ink); }
.iscore td.r { font-weight: 900; color: var(--blue); }

/* calibration badge (self-calibrated confidence) */
.calbadge { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 600; background: rgba(47,107,208,0.07); border: 1px solid rgba(47,107,208,0.18); padding: 5px 11px; border-radius: 999px; }
.calbadge b { font-family: var(--mono); font-size: 15px; font-weight: 900; color: var(--blue); }

/* ---------- live win-probability curve ---------- */
.wpcard { background: linear-gradient(162deg, #fefcf6, #f5eede); }
.wp-tag { font-size: 9.5px; font-weight: 900; letter-spacing: .3px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); padding: 3px 9px; border-radius: 999px; margin-left: auto; }
.wp-now { font-size: 13px; color: var(--ink-2); font-weight: 700; margin-bottom: 11px; }
.wp-now b { color: var(--ink); }
.wp-now .wp-val { font-family: var(--mono); font-size: 23px; font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; }
.wp-now span { font-size: 13px; color: var(--blue); font-weight: 900; }
.wp-chart { position: relative; }
.wp-chart svg { width: 100%; height: 100px; display: block; overflow: visible; }
.wp-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); font-weight: 700; margin-top: 5px; }
.wp-axis span:nth-child(2) { color: var(--ink-2); }

/* ---------- track record ---------- */
.tr-hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tr-hero > * { min-width: 0; }
.tr-big, .tr-gloss { border-radius: var(--r); padding: 24px 20px; text-align: center; box-shadow: var(--sh-2); }
.tr-big { background: linear-gradient(158deg, #fefcf6, #f1e7d3); border: 1px solid var(--line-gold); }
.tr-gloss { background: radial-gradient(120% 140% at 10% 0%, #2c2415, #17120b); border: 1px solid rgba(18,144,90,0.3); display: flex; flex-direction: column; justify-content: center; color: var(--ink-inv); }
.tr-num { font-family: var(--mono); font-size: 62px; font-weight: 900; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tr-num span { font-size: 27px; margin-left: 2px; }
.tr-cap { font-size: 13px; font-weight: 850; color: var(--ink); margin-top: 8px; }
.tr-gloss .tr-cap { color: var(--ink-inv); }
.tr-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.tr-vs { font-size: 11.5px; color: rgba(243,234,212,0.65); font-weight: 700; }
.tr-edge { font-family: var(--mono); font-size: 38px; font-weight: 900; color: #57d6a0; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tr-method { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; margin: 0; }
.tr-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; box-shadow: var(--sh-1); }
.tr-sp { font-size: 13px; font-weight: 850; color: var(--ink); }
.tr-track { position: relative; height: 15px; border-radius: 999px; background: rgba(92,79,52,0.10); overflow: hidden; }
.tr-fill { height: 100%; border-radius: 999px; }
.tr-fill.hi { background: linear-gradient(90deg, #57d6a0, var(--green)); }
.tr-fill.mid { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.tr-fill.lo { background: linear-gradient(90deg, #e0a08a, var(--orange)); }
.tr-mark { position: absolute; top: -3px; width: 2px; height: 21px; background: rgba(33,28,19,0.35); }
.tr-pct { font-family: var(--mono); font-weight: 900; font-size: 17px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tr-pct small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.tr-live { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.tr-livecard { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px 8px; text-align: center; box-shadow: var(--sh-1); }
.tr-livecard .v { font-family: var(--mono); font-size: 22px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-livecard .l { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 3px; }
.tr-feed { display: flex; flex-direction: column; gap: 6px; }
.tr-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 11px; padding: 10px 13px; font-size: 12.5px; }
.tr-item.hit { border-left-color: var(--green); } .tr-item.miss { border-left-color: var(--red); }
.tr-v { font-weight: 900; font-size: 11.5px; } .tr-item.hit .tr-v { color: var(--green); } .tr-item.miss .tr-v { color: var(--red); } .tr-item.push .tr-v { color: var(--ink-3); }
.tr-mt { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tr-mt b { font-family: var(--mono); }
.tr-pk { font-size: 11px; color: var(--ink-2); font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- auth (signup / login) ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line-gold); min-height: 540px; }
.auth-story { position: relative; overflow: hidden; padding: 34px 30px; color: var(--ink-inv);
  background: radial-gradient(130% 130% at 0% 0%, #2c2415, #16110a); display: flex; flex-direction: column; justify-content: space-between; }
.auth-story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 100% -10%, rgba(216,178,78,0.22), transparent 60%); }
.auth-brand { position: relative; font-family: var(--mono); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.auth-brand b { color: var(--gold-2); }
.auth-head { position: relative; font-size: 27px; font-weight: 850; line-height: 1.28; margin: 20px 0 14px; letter-spacing: -0.02em; }
.auth-head .hl { color: var(--gold-2); }
.auth-pts { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.auth-pt { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: rgba(243,234,212,0.86); }
.auth-pt .ico { flex: 0 0 26px; height: 26px; border-radius: 8px; background: rgba(216,178,78,0.14); border: 1px solid rgba(216,178,78,0.3); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.auth-pt b { color: #fff; font-weight: 800; }
.auth-foot { position: relative; font-size: 11.5px; color: rgba(243,234,212,0.5); }
.auth-form { background: var(--paper); padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 21px; font-weight: 850; margin: 0 0 4px; letter-spacing: -0.01em; }
.auth-form .sub { font-size: 13px; color: var(--ink-2); margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.field input { font-family: var(--font); font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: #fffdf8; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,208,0.12); }
.field .hint { font-size: 11px; color: var(--ink-3); }
.field.err input { border-color: var(--red); } .field .msg { font-size: 11.5px; color: var(--red); font-weight: 700; display: none; } .field.err .msg { display: block; }
.btn-primary { font-family: var(--font); font-size: 15px; font-weight: 800; color: #2a2008; cursor: pointer; border: none; margin-top: 6px; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(176,130,26,0.32); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.agree { margin: 4px 0 4px; }
.agree-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.agree-row input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--gold); }
.agree-row a { font-weight: 700; } .agree-row b { color: var(--ink); }
.field.agree.err .agree-row { color: var(--red); }
.form-error { font-size: 12.5px; color: var(--red); font-weight: 700; background: rgba(200,69,47,0.08); border: 1px solid rgba(200,69,47,0.25); padding: 10px 13px; border-radius: 10px; margin-bottom: 12px; }
.auth-alt { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 18px; }
.auth-alt a { font-weight: 800; }
.auth-ok { display: none; text-align: center; padding: 24px 8px; }
.auth-ok .big { font-size: 40px; } .auth-ok h3 { font-size: 18px; font-weight: 850; margin: 10px 0 6px; } .auth-ok p { font-size: 13px; color: var(--ink-2); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- home two-column layout: left chat sidebar ---------- */
.wrap-wide { max-width: 1260px; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.chat-fab { display: none; }
@media (min-width: 1100px) {
  .home-lay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
  .chat-side { position: sticky; top: 64px; }
  .chat-side .chat-msgs { height: calc(100vh - 300px); min-height: 320px; max-height: 640px; }
  .chat-close { display: none; }
}
@media (max-width: 1099.9px) {
  .chat-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); z-index: 90;
    transform: translateX(-105%); transition: transform .25s cubic-bezier(.2,.7,.2,1);
    padding: 12px; background: var(--bg-1); box-shadow: 12px 0 40px rgba(0,0,0,0.18); overflow-y: auto; }
  .chat-side.open { transform: none; }
  .chat-side .chat-msgs { height: calc(100vh - 210px); }
  .chat-fab { display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: 18px; z-index: 80;
    width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 22px; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); }
}
.chat-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 850; color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-close { border: none; background: none; font-size: 14px; color: var(--ink-3); cursor: pointer; }

/* ---------- date navigation (어제/오늘/내일) ---------- */
.daynav { display: flex; gap: 8px; }
.day-chip { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 6px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink-2); transition: transform .15s, border-color .15s; }
.day-chip b { font-size: 13.5px; color: inherit; } .day-chip span { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.day-chip:hover { transform: translateY(-1px); border-color: var(--line-gold); }
.day-chip.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #2a2008; box-shadow: var(--sh-gold); }
.day-chip.on span { color: rgba(42,32,8,0.7); }

/* ---------- yesterday AI record banner ---------- */
.yban { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-gold); border-radius: 13px; padding: 11px 15px; box-shadow: var(--sh-1); font-size: 13px; color: var(--ink-2); }
.yban b { color: var(--ink); } .yban-ic { font-size: 16px; }
.yban-cta { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }

/* ---------- favorite team star ---------- */
.favstar { border: none; background: none; font-size: 17px; color: var(--ink-3); cursor: pointer; padding: 0 2px; vertical-align: -1px; transition: transform .15s, color .15s; }
.favstar:hover { transform: scale(1.2); }
.favstar.on { color: var(--gold); }

/* ---------- 이변 레이더 ---------- */
.radar-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 13px; padding: 12px 15px; margin-bottom: 8px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s; }
.radar-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.radar-swing { font-family: var(--mono); font-weight: 900; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.radar-swing.up { color: var(--green); } .radar-swing.dn { color: var(--red); }
.radar-mt { font-weight: 700; font-size: 14px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-mt b { font-family: var(--mono); }
.radar-lg { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.radar-wp { font-size: 11.5px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.radar-wp b { color: var(--orange); font-family: var(--mono); font-size: 14px; }
.radar-wp small { display: block; color: var(--ink-3); }
.radar-gate { text-align: center; padding: 6px 0 2px; }
@media (max-width: 720px) { .radar-row { grid-template-columns: 56px 1fr; } .radar-wp { display: none; } }

/* ---------- chat ---------- */
.chat { padding: 0; overflow: hidden; }
.chat-msgs { height: 300px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, var(--paper), #fbf7ec); }
.chat-m { font-size: 13.5px; line-height: 1.5; color: var(--ink); word-break: break-word; }
.chat-m b { color: var(--gold); font-weight: 800; margin-right: 4px; }
.chat-m.mine b { color: var(--blue); }
.chat-m .t { font-size: 10px; color: var(--ink-3); margin-left: 5px; }
.chat-in { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-in input { flex: 1; font-family: var(--font); font-size: 14px; color: var(--ink); padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #fffdf8; }
.chat-in input:focus { outline: none; border-color: var(--blue); }
.chat-note { font-size: 11px; color: var(--ink-3); padding: 0 14px 11px; background: var(--paper); }
.chat-note a { font-weight: 700; }

/* ---------- board ---------- */
.bd-row { display: flex; flex-direction: column; gap: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 8px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.bd-row:hover { transform: translateY(-2px); border-color: var(--line-gold); box-shadow: var(--sh-2); }
.bd-t { font-weight: 750; font-size: 14.5px; color: var(--ink); }
.bd-t .bd-c { color: var(--gold); font-size: 12.5px; }
.bd-m { font-size: 11.5px; color: var(--ink-3); }
.btn-ghost { font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 18px; cursor: pointer; }

/* ---------- footer ---------- */
footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 28px 20px 40px; border-top: 1px solid var(--line); margin-top: 12px; }
.foot-brand { font-family: var(--mono); font-size: 18px; font-weight: 900; color: var(--ink-2); margin-bottom: 10px; }
.foot-brand b { color: var(--gold); }
footer .fl { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
footer a { color: var(--ink-2); }
footer .legal { max-width: 640px; margin: 0 auto 10px; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
footer .legal b { color: var(--ink-2); font-weight: 700; }
.empty { text-align: center; color: var(--ink-2); font-size: 13px; padding: 44px 20px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* ---------- motion ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes arc { from { stroke-dashoffset: 110; } }
@keyframes countin { from { opacity: 0; transform: translateY(6px); } }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .g2, .g3, .tiles { grid-template-columns: 1fr 1fr; }
  .g2.stack-m { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 46px 1fr auto; gap: 8px; padding: 12px 12px; }
  .tava { flex-basis: 26px; width: 26px; height: 26px; font-size: 11px; }
  .mteam { gap: 6px; } .mteam .nm { font-size: 13px; }
  .mscore { gap: 5px; } .mscore .sc { font-size: 15.5px; }
  .verdict { grid-template-columns: 1fr; text-align: center; } .gauge { margin: 0 auto; }
  .hscore { font-size: 28px; } .hteam .nm { font-size: 14.5px; }
  .spot-body { grid-template-columns: 1fr; gap: 12px; } .spot-num { text-align: left; padding-left: 0; } .spot-num .n { font-size: 44px; }
  .spot-match { font-size: 21px; }
  .auth { grid-template-columns: 1fr; min-height: 0; } .auth-story { padding: 26px 22px; } .auth-form { padding: 26px 22px; }
  .tr-num { font-size: 52px; } .tr-row { grid-template-columns: 66px 1fr auto; gap: 8px; }
  .ph h1 { font-size: 22px; }
  .nlink { padding: 8px 9px; font-size: 13px; } .njoin { padding: 8px 13px; }
}
@media (min-width: 720px) { .tr-hero { grid-template-columns: 1.35fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, .gauge-arc, .brand-dot { animation: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ============================================================================
   Dark mode — warm-luxe dark. Toggled by [data-theme="dark"] on <html>.
   ========================================================================== */
:root[data-theme="dark"] {
  --bg-1: #17130d; --bg-2: #0f0c08; --paper: #211b12; --paper-2: #2b2417;
  --ink: #ede4d0; --ink-2: #b3a88f; --ink-3: #837860; --ink-inv: #f3ead4;
  --line: rgba(237,228,208,0.09); --line-2: rgba(237,228,208,0.17); --line-gold: rgba(216,178,78,0.32);
  --gold: #d8b24e; --gold-soft: rgba(216,178,78,0.12);
  --blue: #6fa0e8; --blue-2: #8db6f0;
  --sh-1: 0 2px 8px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.3);
  --sh-2: 0 4px 14px rgba(0,0,0,0.35), 0 18px 44px rgba(0,0,0,0.45);
  --sh-gold: 0 10px 30px rgba(216,178,78,0.15);
}
[data-theme="dark"] body { background:
  radial-gradient(1100px 520px at 50% -10%, rgba(216,178,78,0.06), transparent 60%),
  linear-gradient(172deg, var(--bg-1) 0%, var(--bg-2) 100%); background-attachment: fixed; }
[data-theme="dark"] .nav { background: linear-gradient(180deg, rgba(23,19,13,0.94), rgba(23,19,13,0.78)); }
[data-theme="dark"] .njoin, [data-theme="dark"] .btn-primary, [data-theme="dark"] .spot-cta,
[data-theme="dark"] .gate-cta, [data-theme="dark"] .day-chip.on { color: #241c07; }
[data-theme="dark"] .hero { background: linear-gradient(158deg, #262013 0%, #1c160d 100%); }
[data-theme="dark"] .wpcard { background: linear-gradient(162deg, #241e12, #1c160d); }
[data-theme="dark"] .tr-big { background: linear-gradient(158deg, #262013, #1c160d); }
[data-theme="dark"] .verdict { background: linear-gradient(135deg, rgba(216,178,78,0.10), rgba(33,27,18,0.5)); }
[data-theme="dark"] .field input, [data-theme="dark"] .chat-in input, [data-theme="dark"] textarea { background: #1a1510 !important; color: var(--ink) !important; }
[data-theme="dark"] .chat-msgs { background: linear-gradient(180deg, var(--paper), #1c160d); }
[data-theme="dark"] .gauge text, [data-theme="dark"] .iscore td { fill: #ede4d0; }
[data-theme="dark"] .gauge svg text { fill: #ede4d0; }
[data-theme="dark"] .t-general { background: var(--paper-2); }
[data-theme="dark"] ::selection { background: rgba(216,178,78,0.35); }
.theme-btn { border: none; background: none; font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 10px; margin-left: 2px; }
.theme-btn:hover { background: rgba(128,116,92,0.14); }
