/* ==========================================================================
   Trixcity — design system v3 · "broadcast night"
   Written from scratch. One stylesheet for the whole site.

   Direction: an esports stats site reads like a broadcast control room. Deep
   ink-blue night (not flat black), the Trixcity yellow as the stage light, and
   the rating scale as the real colour language (ice-blue → green → yellow →
   orange → red). Surfaces gain luminance in layers (page → card → hover).
   Type: Sora for display, JetBrains Mono for tabular numbers. Motion: one
   orchestrated reveal on load; hover states that answer the hand.
   ========================================================================== */

@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbm.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg-0: #07090f; --bg-1: #0b0e17; --bg-2: #0f1320; --bg-3: #141a2b; --bg-4: #1a2236;
  --line: rgba(151, 170, 220, .10); --line-2: rgba(151, 170, 220, .18); --line-glow: rgba(255, 232, 0, .35);
  --fg: #eef1f8; --fg-2: #c3cad9; --muted: #8b95ad; --muted-2: #626c85;
  --primary: #ffe800; --primary-2: #ffd21f; --primary-ink: #14120a; --primary-soft: rgba(255, 232, 0, .12);
  --win: #38d977; --win-soft: rgba(56, 217, 119, .14); --loss: #ff5d6c; --loss-soft: rgba(255, 93, 108, .14); --live: #ff3b4e;
  --r-top: #5eb2ff; --r-top-soft: rgba(94, 178, 255, .16);
  --r-hi: #35d477;  --r-hi-soft: rgba(53, 212, 119, .16);
  --r-mid: #ffcf33; --r-mid-soft: rgba(255, 207, 51, .16);
  --r-lo: #ff9640;  --r-lo-soft: rgba(255, 150, 64, .16);
  --r-bad: #ff5d6c; --r-bad-soft: rgba(255, 93, 108, .16);
  --radius: 14px; --radius-s: 8px; --radius-xs: 6px; --gap: 18px; --maxw: 1280px;
  --font: "Sora", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg-0); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 500px at 15% -10%, rgba(255, 232, 0, .06), transparent 60%), radial-gradient(900px 500px at 95% 0%, rgba(94, 178, 255, .05), transparent 60%);
  background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--primary); color: var(--primary-ink); }
.num, .tx-table td, .tx-mrow .s, .tx-kpi .v, .tx-pcol .v, .tx-tick .s b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
header, main, footer, .tx-leagues { position: relative; z-index: 1; }

/* ---- header ---- */
.tx-header { position: sticky; top: 0; z-index: 50; height: 52px; background: rgba(11, 14, 23, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.tx-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-glow) 30%, var(--line-glow) 70%, transparent); opacity: .5; }
.tx-header .in { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 18px; display: flex; align-items: center; gap: 24px; min-width: 0; }
.tx-brand { font-weight: 800; letter-spacing: .06em; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tx-brand i { width: 8px; height: 8px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 12px var(--primary); transform: rotate(45deg); }
.tx-brand b { color: var(--primary); }
.tx-nav { display: flex; gap: 4px; }
.tx-nav a { color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.tx-nav a:hover { color: var(--fg); background: var(--bg-3); }
.tx-nav a.on { color: var(--primary-ink); background: var(--primary); }
.tx-nav a.game { color: var(--primary); border: 1px solid var(--line-glow); margin-left: 4px; display: inline-flex; align-items: center; gap: 6px; }
.tx-nav a.game i { width: 6px; height: 6px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); box-shadow: 0 0 8px var(--primary); }
.tx-nav a.game:hover { background: var(--primary); color: var(--primary-ink); }
.tx-nav a.game:hover i { background: var(--primary-ink); box-shadow: none; }
.tx-search { margin-left: auto; position: relative; flex: 0 1 240px; min-width: 0; }
.tx-search input { width: 100%; height: 34px; padding: 0 12px 0 34px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.tx-search input::placeholder { color: var(--muted-2); }
.tx-search input:focus { border-color: var(--line-glow); box-shadow: 0 0 0 3px var(--primary-soft); }
.tx-search svg { position: absolute; left: 11px; top: 10px; width: 14px; height: 14px; fill: var(--muted); }
.tx-search-results { position: absolute; top: 40px; right: 0; width: min(340px, 92vw); max-height: 380px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; display: none; box-shadow: var(--shadow); }
.tx-search-results.open { display: block; }
.tx-search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.tx-search-results a:hover { background: var(--bg-3); }
.tx-search-results .k { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; width: 52px; flex: 0 0 52px; }
.tx-leagues { position: sticky; top: 52px; z-index: 40; background: rgba(11, 14, 23, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tx-leagues::-webkit-scrollbar { display: none; }
.tx-leagues .in { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; }
.tx-leagues a { padding: 9px 11px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tx-leagues a:hover { color: var(--fg); }
.tx-leagues a.on { color: var(--fg); border-color: var(--primary); }

/* ---- layout ---- */
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 20px 18px 56px; }
.tx-grid { display: grid; gap: var(--gap); }
.tx-grid.cols-3 { grid-template-columns: 250px minmax(0, 1fr) 320px; }
.tx-grid.cols-2 { grid-template-columns: minmax(0, 1fr) 320px; }
.tx-grid.cols-2r { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 1100px) { .tx-grid.cols-3, .tx-grid.cols-2, .tx-grid.cols-2r { grid-template-columns: minmax(0, 1fr); }
  .tx-grid.cols-3 > *:first-child { order: 2; } .tx-grid.cols-3 > *:nth-child(2) { order: 0; } .tx-grid.cols-3 > *:nth-child(3) { order: 1; } }
.tx-rosters2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .tx-rosters2 { grid-template-columns: 1fr; gap: 12px; }
  .tx-rosters2 .tx-roster { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
  .tx-rosters2 .tx-pcard { padding: 8px 3px; } .tx-rosters2 .tx-pcard img { width: 36px; height: 36px; }
  .tx-rosters2 .tx-pcard .n { font-size: 11px; } .tx-rosters2 .tx-pcard .r { font-size: 9px; letter-spacing: .04em; } }
.tx-stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@keyframes tx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main > * { animation: tx-in .5s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .06s; } main > *:nth-child(3) { animation-delay: .12s; } main > *:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { main > * { animation: none; } }

/* ---- cards ---- */
.tx-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow); position: relative; }
.tx-card > .hd { padding: 14px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tx-card > .bd { padding: 12px 16px 16px; }
.tx-cap { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.tx-cap::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.tx-sub { font-size: 12px; color: var(--muted); }
.tx-h1 { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.tx-h2 { font-size: 16px; font-weight: 800; }
.tx-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.tx-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tx-meta img { width: 16px; height: 16px; object-fit: contain; }
.tx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg-4); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.tx-pill.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.tx-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 12px; }
.tx-tabs a { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.tx-tabs a:hover { color: var(--fg); }
.tx-tabs a.on { color: var(--fg); border-color: var(--primary); }
.tx-card.glow { border-color: var(--line-glow); box-shadow: var(--shadow), 0 0 0 1px var(--primary-soft) inset, 0 0 40px -12px var(--primary-soft); }
.tx-hero { display: flex; gap: 20px; align-items: center; padding: 20px 20px 16px; position: relative; overflow: hidden; }
.tx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 0% 0%, var(--primary-soft), transparent 70%); pointer-events: none; }
.tx-hero > * { position: relative; }
.tx-hero .logo { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 18px; background: linear-gradient(160deg, var(--bg-4), var(--bg-2)); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.tx-hero .logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tx-hero .logo.round, .tx-hero .logo.round img { border-radius: 50%; padding: 0; object-fit: cover; }
.tx-hero .body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* KPI tiles */
.tx-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tx-kpi { position: relative; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-height: 104px; overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.tx-kpi:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tx-kpi .k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-right: 76px; }
.tx-kpi .v { font-size: 30px; font-weight: 800; margin-top: 6px; line-height: 1; letter-spacing: -.02em; }
.tx-kpi .v.sm { font-size: 20px; }
.tx-kpi .v small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 5px; font-family: var(--font); }
.tx-kpi .n { font-size: 12px; color: var(--fg-2); margin-top: 8px; }
.tx-kpi .n .w, .tx-kpi .v .w { color: var(--win); font-weight: 700; } .tx-kpi .n .l, .tx-kpi .v .l { color: var(--loss); font-weight: 700; }
.tx-kpi .v .w, .tx-kpi .v .l { font-weight: 800; }
.tx-kpi .art { position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.tx-kpi .art.round { border-radius: 50%; }
.tx-kpi:has(.art) .k, .tx-kpi:has(.art) .v, .tx-kpi:has(.art) .n { padding-right: 68px; }
.tx-kpi .tag { position: absolute; right: 14px; top: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tx-kpi .tag.excellent { color: var(--r-hi); background: var(--r-hi-soft); }
.tx-kpi .tag.good { color: var(--r-mid); background: var(--r-mid-soft); }
.tx-kpi .tag.poor { color: var(--r-lo); background: var(--r-lo-soft); }
.tx-gauge { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); display: flex; gap: 3px; overflow: hidden; }
.tx-gauge i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.05); }
.tx-gauge i.on { background: linear-gradient(90deg, var(--r-hi), var(--r-top)); box-shadow: 0 0 10px var(--r-hi-soft); }
.tx-kpi.gauged { padding-bottom: 28px; }

/* ---- tables ---- */
.tx-tablewrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tx-table th { text-align: right; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tx-table th:first-child, .tx-table td:first-child, .tx-table th.l, .tx-table td.l { text-align: left; }
.tx-table td { padding: 9px 10px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tx-table td.l { white-space: normal; font-family: var(--font); }
.tx-table tbody tr { transition: background .12s; }
.tx-table tbody tr:hover { background: var(--bg-3); }
.tx-table .rank { color: var(--muted); width: 32px; }
.tx-table .ent { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font); }
.tx-table .ent img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: var(--bg-4); flex: 0 0 24px; }
.tx-table .ent img.round { border-radius: 50%; object-fit: cover; }
.tx-table .sortable { cursor: pointer; user-select: none; }
.tx-table .sortable::after { content: " ↕"; color: var(--muted-2); font-size: 10px; }
.tx-table .sortable.asc::after { content: " ↑"; color: var(--primary); }
.tx-table .sortable.desc::after { content: " ↓"; color: var(--primary); }
.tx-score { display: inline-block; min-width: 38px; text-align: center; padding: 3px 8px; border-radius: 7px; font-weight: 800; font-size: 12px; font-family: var(--mono); background: var(--primary); color: var(--primary-ink); }
.tx-score.r-top { background: var(--r-top); color: #06213a; } .tx-score.r-hi { background: var(--r-hi); color: #052a15; }
.tx-score.r-mid { background: var(--r-mid); color: #2b2100; } .tx-score.r-lo { background: var(--r-lo); color: #3a1a00; } .tx-score.r-bad { background: var(--r-bad); color: #fff; }
.tx-win { color: var(--win); font-weight: 700; } .tx-loss { color: var(--loss); font-weight: 700; }
.tx-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 4px; }
.tx-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
@media (max-width: 640px) { .tx-table .opt { display: none; } .tx-table td, .tx-table th { padding: 8px 6px; font-size: 12px; } }

/* ---- match rows ---- */
.tx-mrow { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; transition: background .12s; }
.tx-mrow:first-child { border-top: 0; }
.tx-mrow:hover { background: var(--bg-3); }
.tx-mrow .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.tx-mrow .t.r { justify-content: flex-end; text-align: right; }
.tx-mrow .t img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.tx-mrow .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-mrow .s { text-align: center; font-weight: 800; }
.tx-mrow .s .sc { color: var(--primary); font-size: 14px; }
.tx-mrow .s small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; font-family: var(--font); }
.tx-mrow .s.live .sc { color: var(--live); }
.tx-mrow .d { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tx-mrow .e { color: var(--muted); font-size: 11px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-mrow .w { color: var(--fg); } .tx-mrow .l { color: var(--muted); }
@media (max-width: 640px) { .tx-mrow { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); } .tx-mrow .e { display: none; } }
.tx-daysep { padding: 10px 14px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.tx-daysep:first-child { border-top: 0; }
.tx-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; align-items: start; align-content: start; }
.tx-h2h-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.tx-h2h-pick .tx-roster.pick { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.tx-h2h-pick .tx-roster.pick .tx-pcard { padding: 9px 6px; }
.tx-h2h-pick .tx-roster.pick.l { border-right: 1px dashed var(--line-2); padding-right: 12px; }
@media (max-width: 640px) { .tx-h2h-pick { grid-template-columns: 1fr; } .tx-h2h-pick .tx-roster.pick.l { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; } }
.tx-compact .tx-mrow { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); gap: 8px; padding: 9px 12px; font-size: 12.5px; }
.tx-compact .tx-mrow .e { display: none; }
.tx-compact .tx-mrow .t img { width: 20px; height: 20px; flex-basis: 20px; }
.tx-l5 { display: inline-flex; gap: 3px; vertical-align: middle; }
.tx-l5 i { width: 16px; height: 16px; border-radius: 4px; background: var(--bg-4); display: inline-block; }
.tx-l5 i.w { background: var(--win); box-shadow: 0 0 8px -2px var(--win); }
.tx-l5 i.l { background: var(--loss); opacity: .85; }
.tx-pcard { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 8px; text-align: center; transition: transform .2s var(--ease), border-color .2s; }
.tx-pcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tx-pcard img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; background: var(--bg-4); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.tx-pcard .n { font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-pcard .r { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.tx-pcard.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset, 0 0 24px -8px var(--primary); }
.tx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; background: var(--bg-4); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.tx-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.tx-cmp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.tx-cmp:first-child { border-top: 0; }
.tx-cmp .lab { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; text-align: center; min-width: 96px; }
.tx-cmp .a, .tx-cmp .b { font-weight: 700; font-family: var(--mono); }
.tx-cmp .a { text-align: right; } .tx-cmp .b { text-align: left; }
.tx-cmp .best { color: var(--primary); }

/* performances chart */
.tx-perf { direction: rtl; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; padding: 8px 12px 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 10px), transparent); }
.tx-perf .in { padding-left: 16px; }
.tx-perf .in { direction: ltr; display: flex; gap: 8px; min-width: max-content; }
.tx-day { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; border-left: 1px dashed var(--line-2); }
.tx-day:first-child { border-left: 0; }
.tx-day .dl { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.tx-day .cols { display: flex; gap: 8px; align-items: flex-end; height: 226px; }
.tx-pcol { width: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.tx-pcol .v { font-size: 11px; font-weight: 800; padding: 3px 6px; border-radius: 7px; margin-bottom: 5px; color: #0b0d12; }
.tx-pcol .bar { width: 24px; border-radius: 6px 6px 0 0; transition: filter .15s; }
.tx-pcol:hover .bar { filter: brightness(1.15); }
.tx-pcol .op { margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--muted); }
.tx-pcol .op img { width: 18px; height: 18px; object-fit: contain; }
.tx-pcol .op .wl { font-size: 9px; font-weight: 800; }
.tx-pcol .op .wl.w { color: var(--win); } .tx-pcol .op .wl.l { color: var(--loss); }
.r-top .v { background: var(--r-top); color: #06213a; } .r-top .bar { background: linear-gradient(to top, var(--r-top), var(--r-top-soft)); }
.r-hi  .v { background: var(--r-hi); }  .r-hi  .bar { background: linear-gradient(to top, var(--r-hi),  var(--r-hi-soft)); }
.r-mid .v { background: var(--r-mid); } .r-mid .bar { background: linear-gradient(to top, var(--r-mid), var(--r-mid-soft)); }
.r-lo  .v { background: var(--r-lo); }  .r-lo  .bar { background: linear-gradient(to top, var(--r-lo),  var(--r-lo-soft)); }
.r-bad .v { background: var(--r-bad); color: #fff; } .r-bad .bar { background: linear-gradient(to top, var(--r-bad), var(--r-bad-soft)); }

/* misc */
.tx-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tx-note { font-size: 12px; color: var(--muted); padding: 10px 16px 14px; }
.tx-cta { display: inline-block; padding: 9px 18px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 13px; box-shadow: 0 6px 20px -6px var(--primary); transition: transform .15s var(--ease), filter .15s; }
.tx-cta:hover { color: var(--primary-ink); transform: translateY(-1px); filter: brightness(1.05); }
.tx-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.tx-crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.tx-live { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--live); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 0 14px -2px var(--live); animation: tx-pulse 1.6s ease-in-out infinite; }
@keyframes tx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.tx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-3); font-size: 12px; font-weight: 700; color: var(--primary); }
.tx-mini { display: block; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; transition: background .12s; }
.tx-mini:first-child { border-top: 0; }
.tx-mini:hover { background: var(--bg-3); }
.tx-mini .hd2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 5px; white-space: nowrap; }
.tx-mini .hd2 > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tx-mini .hd2 img { width: 14px; height: 14px; object-fit: contain; flex: 0 0 14px; }
.tx-mini .ln { display: flex; align-items: center; gap: 7px; font-weight: 700; padding: 2px 0; }
.tx-mini .ln img { width: 18px; height: 18px; object-fit: contain; }
.tx-mini .ln .sc { margin-left: auto; font-family: var(--mono); }
.tx-mini .ln.w { color: var(--fg); } .tx-mini .ln.w .sc { color: var(--primary); }
.tx-mini .ln.l { color: var(--muted); }
.tx-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 16px; }
.tx-vs .t { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; }
.tx-vs .t img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.tx-vs .sc { font-size: 22px; font-weight: 800; padding: 6px 14px; border-radius: 10px; background: var(--bg-4); font-family: var(--mono); border: 1px solid var(--line); }
.tx-ticker { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 14px; scrollbar-width: none; }
.tx-ticker::-webkit-scrollbar { display: none; }
.tx-tick { flex: 0 0 auto; display: grid; grid-template-columns: auto 24px 68px 24px auto; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); font-size: 13px; font-weight: 700; transition: border-color .15s, transform .15s var(--ease); }
.tx-tick:hover { border-color: var(--line-glow); transform: translateY(-1px); }
.tx-tick img { width: 24px; height: 24px; object-fit: contain; }
.tx-tick .n { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-tick .n.r { text-align: right; }
.tx-tick .s { text-align: center; line-height: 1.1; }
.tx-tick .s b { color: var(--primary); }
.tx-tick .s small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tx-lglist a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13px; transition: background .12s; }
.tx-lglist a:first-child { border-top: 0; }
.tx-lglist a:hover { background: var(--bg-3); }
.tx-lglist img { width: 18px; height: 18px; object-fit: contain; }
.tx-lglist .st { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.tx-lglist .st.now { color: var(--primary); }
.tx-lglist .st.now::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 6px; box-shadow: 0 0 8px var(--primary); }
.tx-potm { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: end; padding: 14px 16px 0; }
.tx-potm .v { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; font-family: var(--mono); letter-spacing: -.02em; }
.tx-potm .k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tx-potm .who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; }
.tx-potm .who img { width: 20px; height: 20px; object-fit: contain; }
.tx-potm .photo { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; background: var(--bg-4); }
.tx-form { display: flex; gap: 8px; align-items: flex-end; height: 80px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.tx-form .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.tx-form .c b { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; font-family: var(--mono); }
.tx-form .c i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.tx-scoreboard { display: flex; align-items: center; gap: 24px; padding: 26px 24px 20px; position: relative; overflow: hidden; }
.tx-scoreboard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% 0%, var(--primary-soft), transparent 70%); pointer-events: none; }
.tx-scoreboard > * { position: relative; }
.tx-scoreboard .side { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.tx-scoreboard .side > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .tx-scoreboard { flex-direction: column; gap: 12px; padding: 18px 14px 14px; } .tx-scoreboard .side { justify-content: center !important; text-align: center !important; width: 100%; } .tx-scoreboard .side.r { flex-direction: row-reverse; } }
.tx-footer { border-top: 1px solid var(--line); background: var(--bg-1); }
.tx-footer .in { max-width: var(--maxw); margin: 0 auto; padding: 20px 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--muted); align-items: center; }
.tx-footer a:hover { color: var(--primary); }
.tx-footer .sp { margin-left: auto; }
@media (max-width: 720px) {
  .tx-header .in { gap: 10px; padding: 0 12px; }
  .tx-brand { font-size: 14px; letter-spacing: .04em; }
  .tx-nav { gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tx-nav::-webkit-scrollbar { display: none; }
  .tx-nav a { font-size: 12px; padding: 6px 8px; white-space: nowrap; }
  .tx-search { flex: 0 0 34px; width: 34px; transition: flex-basis .2s var(--ease); }
  .tx-search input { width: 34px; min-width: 0; padding: 0; color: transparent; caret-color: transparent; }
  .tx-search input::placeholder { color: transparent; }
  .tx-search svg { left: 10px; }
  .tx-search:focus-within { flex: 1 1 200px; width: auto; }
  .tx-search:focus-within input { width: 100%; padding: 0 10px 0 32px; color: var(--fg); caret-color: var(--primary); }
  .tx-search:focus-within input::placeholder { color: var(--muted-2); }
  .tx-search-results { right: -12px; width: 100vw; border-radius: 0 0 12px 12px; }
}

/* ---- small visuals ---- */
.tx-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tx-two > :only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .tx-two { grid-template-columns: 1fr; } }
.tx-donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 16px 16px; }
.tx-donut svg { width: 150px; height: 150px; }
.tx-donut svg path { transition: opacity .15s; }
.tx-donut svg:hover path { opacity: .55; } .tx-donut svg path:hover { opacity: 1; }
.tx-donut svg .c { fill: var(--fg); font-family: var(--mono); font-weight: 700; font-size: 22px; }
.tx-donut svg .s { fill: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.tx-donut ul { list-style: none; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tx-donut li { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; min-width: 0; }
.tx-donut li i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.tx-donut li img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: 0 0 18px; }
.tx-donut li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tx-donut li b { margin-left: auto; font-family: var(--mono); font-weight: 600; color: var(--fg-2); font-size: 11.5px; padding-left: 8px; }
@media (max-width: 420px) { .tx-donut { grid-template-columns: 1fr; justify-items: center; } }
.tx-dist { padding: 6px 16px 16px; }
.tx-dist .row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }
.tx-dist .lab { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.tx-dist .bar { height: 10px; background: var(--bg-4); border-radius: 999px; overflow: hidden; }
.tx-dist .bar i { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.tx-dist .bar i.r-top { background: var(--r-top); } .tx-dist .bar i.r-hi { background: var(--r-hi); } .tx-dist .bar i.r-mid { background: var(--r-mid); } .tx-dist .bar i.r-lo { background: var(--r-lo); } .tx-dist .bar i.r-bad { background: var(--r-bad); }
.tx-dist .n { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 12px; }

/* ---- home spotlight ---- */
.tx-link { color: var(--primary); font-weight: 700; }
.ph-empty { display: inline-block; border-radius: 6px; background: var(--bg-4); }
.tx-spot { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 16px 14px; align-items: center; transition: background .12s; }
.tx-spot:hover { background: var(--bg-3); }
.tx-spot .ph { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; object-position: top; background: var(--bg-4); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); display: block; }
.tx-spot .ph.crest { object-fit: contain; padding: 10px; background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); border: 1px solid var(--line-2); }
.tx-spot .body { min-width: 0; }
.tx-spot .nm { font-size: 18px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-spot .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; min-width: 0; }
.tx-spot .meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-spot .meta img { object-fit: contain; }
.tx-spot .meta .lg { color: var(--primary); font-weight: 800; letter-spacing: .06em; }
.tx-spot .scoreline { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.tx-spot .sc { font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tx-spot .sc small { font-size: 18px; color: var(--muted); font-weight: 700; }
.tx-spot .sc.r-top { color: var(--r-top); } .tx-spot .sc.r-hi { color: var(--r-hi); } .tx-spot .sc.r-mid { color: var(--r-mid); } .tx-spot .sc.r-lo { color: var(--r-lo); } .tx-spot .sc.r-bad { color: var(--r-bad); }
.tx-spot .tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tx-spot .tag.excellent { color: var(--r-hi); background: var(--r-hi-soft); } .tx-spot .tag.good { color: var(--r-mid); background: var(--r-mid-soft); } .tx-spot .tag.poor { color: var(--r-lo); background: var(--r-lo-soft); }
.tx-spot .rec { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-spot .rec b { color: var(--fg); font-family: var(--mono); font-weight: 700; }
.tx-spot .w, .tx-rank .w { color: var(--win); font-weight: 800; } .tx-spot .l { color: var(--loss); font-weight: 800; }
.tx-mgames { display: flex; gap: 6px; padding: 4px 16px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.tx-mgames .g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-decoration: none; }
.tx-mgames .g b { font-family: var(--mono); font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 5px; color: #0b0d12; }
.tx-mgames .g b.r-top { background: var(--r-top); } .tx-mgames .g b.r-hi { background: var(--r-hi); } .tx-mgames .g b.r-mid { background: var(--r-mid); } .tx-mgames .g b.r-lo { background: var(--r-lo); } .tx-mgames .g b.r-bad { background: var(--r-bad); color: #fff; }
.tx-mgames .g .bar { width: 100%; height: 44px; display: flex; align-items: flex-end; }
.tx-mgames .g .bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.tx-mgames .g .bar i.r-top { background: linear-gradient(180deg, var(--r-top), rgba(94,178,255,.35)); } .tx-mgames .g .bar i.r-hi { background: linear-gradient(180deg, var(--r-hi), rgba(53,212,119,.35)); }
.tx-mgames .g .bar i.r-mid { background: linear-gradient(180deg, var(--r-mid), rgba(255,207,51,.35)); } .tx-mgames .g .bar i.r-lo { background: linear-gradient(180deg, var(--r-lo), rgba(255,150,64,.35)); } .tx-mgames .g .bar i.r-bad { background: linear-gradient(180deg, var(--r-bad), rgba(255,93,108,.35)); }
.tx-mgames .g .opp img, .tx-mgames .g .opp .ph-empty { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.tx-mgames .g .wl { font-size: 9.5px; font-weight: 800; color: var(--muted-2); } .tx-mgames .g .wl.w { color: var(--win); } .tx-mgames .g .wl.l { color: var(--loss); }
.tx-mgames .g .d { font-size: 9.5px; color: var(--muted-2); font-family: var(--mono); }
.tx-rank a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; transition: background .12s; }
.tx-rank a:first-child { border-top: 0; }
.tx-rank a:hover { background: var(--bg-3); }
.tx-rank .i { width: 16px; color: var(--muted-2); font-family: var(--mono); font-size: 11px; font-weight: 700; text-align: right; flex: 0 0 16px; }
.tx-rank .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bg-4); flex: 0 0 32px; display: inline-block; }
.tx-rank .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tx-rank .who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-rank .who small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-rank .who small img { object-fit: contain; }
.tx-rank .lg { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.tx-rank .streak { font-family: var(--mono); font-size: 13px; }
.tx-rank > a > img { object-fit: contain; }
.tx-l5.sm i { width: 10px; height: 10px; border-radius: 3px; }
.tx-meta-list .m { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 42px; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.tx-meta-list .m:first-child { border-top: 0; }
.tx-meta-list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tx-meta-list .who { display: flex; flex-direction: column; min-width: 0; }
.tx-meta-list .who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta-list .who small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta-list .pres { height: 8px; background: var(--bg-4); border-radius: 999px; overflow: hidden; }
.tx-meta-list .pres i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: 999px; }
.tx-meta-list .wr { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--fg-2); }
.tx-meta-list .wr.w { color: var(--win); } .tx-meta-list .wr.l { color: var(--loss); }

/* ---- form card (replaces the consistency bars) ---- */
.tx-formcard { padding: 6px 16px 16px; }
.tx-formcard .top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tx-formcard .st { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tx-formcard .st .k { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tx-formcard .st .v { font-family: var(--mono); font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 4px; white-space: nowrap; }
.tx-formcard .st .v small { font-size: 10.5px; font-weight: 800; margin-left: 5px; font-family: var(--font); vertical-align: 3px; }
.tx-formcard .st .v.up small { color: var(--win); } .tx-formcard .st .v.down small { color: var(--loss); }
.tx-formcard .st .n { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-formcard .st .n img { width: 14px; height: 14px; object-fit: contain; }
.tx-formcard .st .v.r-top { color: var(--r-top); } .tx-formcard .st .v.r-hi { color: var(--r-hi); } .tx-formcard .st .v.r-mid { color: var(--r-mid); } .tx-formcard .st .v.r-lo { color: var(--r-lo); } .tx-formcard .st .v.r-bad { color: var(--r-bad); }
.tx-formcard .lab { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.tx-formcard .lab b { color: var(--fg); letter-spacing: 0; text-transform: none; font-size: 12px; }
.tx-stackbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg-4); gap: 2px; }
.tx-stackbar i { display: block; height: 100%; min-width: 0; }
.tx-stackbar i.r-top { background: var(--r-top); } .tx-stackbar i.r-hi { background: var(--r-hi); } .tx-stackbar i.r-mid { background: var(--r-mid); } .tx-stackbar i.r-lo { background: var(--r-lo); } .tx-stackbar i.r-bad { background: var(--r-bad); }
.tx-stackleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.tx-stackleg span { display: inline-flex; align-items: center; gap: 5px; }
.tx-stackleg i { width: 8px; height: 8px; border-radius: 2px; }
.tx-stackleg i.r-top { background: var(--r-top); } .tx-stackleg i.r-hi { background: var(--r-hi); } .tx-stackleg i.r-mid { background: var(--r-mid); } .tx-stackleg i.r-lo { background: var(--r-lo); } .tx-stackleg i.r-bad { background: var(--r-bad); }
.tx-stackleg b { color: var(--fg); font-family: var(--mono); font-weight: 700; }
.tx-formcard .sum { margin-top: 12px; font-size: 12.5px; color: var(--fg-2); }
.tx-formcard .sum b { color: var(--fg); }
@media (max-width: 420px) { .tx-formcard .top { grid-template-columns: 1fr 1fr; } }

/* ---- donut with champion portraits on the ring ---- */
.tx-donut svg image { pointer-events: none; }

/* ---- sub pages: game log, seasons ---- */
.tx-seasons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 320px; justify-content: flex-end; }
.tx-seasons .lab { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tx-seasons a { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-3); transition: color .12s, border-color .12s; }
.tx-seasons a:hover { color: var(--fg); border-color: var(--line-2); }
.tx-seasons a.on { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
@media (max-width: 720px) { .tx-hero { flex-wrap: wrap; } .tx-seasons { max-width: none; justify-content: flex-start; } }
.tx-games { padding-bottom: 4px; }
.tx-gday { display: flex; align-items: center; gap: 12px; padding: 10px 14px 6px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.tx-gday:first-child { border-top: 0; }
.tx-gday .d { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; color: var(--fg-2); white-space: nowrap; }
.tx-gday a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-gday a:hover { color: var(--fg); }
.tx-gday a img { width: 16px; height: 16px; object-fit: contain; }
.tx-gday a b { color: var(--fg-2); font-weight: 700; }
.tx-game { display: grid; grid-template-columns: 44px 76px minmax(120px, 1.2fr) minmax(120px, 1.1fr) 70px 90px 84px minmax(150px, 1fr) 46px; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; position: relative; transition: background .12s; }
.tx-game::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bg-4); }
.tx-game.w::before { background: var(--win); } .tx-game.l::before { background: var(--loss); }
.tx-game:hover { background: var(--bg-3); }
.tx-game .ch { position: relative; width: 40px; height: 40px; }
.tx-game .ch img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-4); }
.tx-game .ch i { position: absolute; right: -4px; bottom: -3px; font-style: normal; font-family: var(--mono); font-size: 9.5px; font-weight: 700; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 4px; color: var(--fg-2); }
.tx-game .res b { display: block; font-weight: 800; font-size: 12px; } .tx-game .res b.w { color: var(--win); } .tx-game .res b.l { color: var(--loss); }
.tx-game .res small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.tx-game .opp { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.tx-game .opp img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.tx-game .opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-game .st { display: flex; flex-direction: column; min-width: 0; }
.tx-game .st b { font-family: var(--mono); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tx-game .st small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-game .kda { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
.tx-game .kda b { color: var(--fg); font-weight: 700; } .tx-game .kda b.d { color: var(--loss); }
.tx-game .dif { font-family: var(--mono); font-weight: 700; } .tx-game .dif.w { color: var(--win); } .tx-game .dif.l { color: var(--loss); }
.tx-game .build { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tx-game .build > img { width: 18px; height: 18px; border-radius: 4px; }
.tx-game .build .items { display: flex; gap: 2px; }
.tx-game .build .items img { width: 22px; height: 22px; border-radius: 4px; background: var(--bg-4); }
.tx-game .tx-score { justify-self: end; }
@media (max-width: 1100px) { .tx-game { grid-template-columns: 44px 76px minmax(110px, 1fr) minmax(110px, 1fr) 70px 90px 84px 46px; } .tx-game .build { display: none; } }
@media (max-width: 760px) { .tx-game { grid-template-columns: 36px 58px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; padding: 8px 10px; } .tx-game .opt { display: none; } .tx-game .ch, .tx-game .ch img { width: 36px; height: 36px; } .tx-game .tx-score { min-width: 34px; padding: 3px 5px; } .tx-game .kda { font-size: 12px; } .tx-game .st small { font-size: 10px; } }
.tx-compact-ev .tx-mrow { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) minmax(120px, 220px); }
@media (max-width: 640px) { .tx-compact-ev .tx-mrow { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); } .tx-compact-ev .tx-mrow .e { display: none; } }
.tx-chips { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; vertical-align: middle; }
.tx-chips img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--bg-4); }
.tx-chips small { color: var(--muted); font-size: 11px; margin-left: 4px; font-family: var(--mono); }
.tx-kpi:has(.tag) .k { padding-right: 96px; }
.tx-pcard .ph { display: block; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 6px; background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); border: 1px solid var(--line-2); }
.tx-rosters2 .tx-pcard .ph { width: 36px; height: 36px; }
a[data-missing] { cursor: default; }
a[data-missing]:hover { background: inherit; }

/* ---- charts: role rankings ---- */
.tx-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 12px 16px 16px; }
@media (max-width: 1240px) { .tx-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tx-roles { grid-template-columns: 1fr; } }
.tx-rolecol { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow: hidden; }
.tx-rolecol .rl { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); padding: 10px 12px 6px; }
.tx-rolecol .lead { display: block; padding: 4px 12px 12px; border-bottom: 1px solid var(--line); text-align: center; transition: background .12s; }
.tx-rolecol .lead:hover { background: var(--bg-4); }
.tx-rolecol .lead .who { display: flex; align-items: center; gap: 10px; text-align: left; margin-top: 4px; }
.tx-rolecol .lead .who > div { min-width: 0; flex: 1; }
.tx-rolecol .lead .who b { display: block; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-rolecol .lead .who small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.tx-rolecol .lead .who .crest { width: 14px; height: 14px; object-fit: contain; }
.tx-rolecol .lead .stats5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.tx-rolecol .lead .stats5 span { display: flex; flex-direction: column; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 2px; min-width: 0; }
.tx-rolecol .lead .stats5 small { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.tx-rolecol .lead .stats5 b { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--fg-2); }
.tx-rolecol .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bg-4); flex: 0 0 40px; display: inline-block; }
.tx-rolecol .row { display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) 36px 40px; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12.5px; transition: background .12s; }
.tx-rolecol .row:hover { background: var(--bg-4); }
.tx-rolecol .row .i { color: var(--muted-2); font-family: var(--mono); font-size: 11px; font-weight: 700; text-align: right; }
.tx-rolecol .row .ph { width: 28px; height: 28px; flex-basis: 28px; }
.tx-rolecol .row .who { display: flex; flex-direction: column; min-width: 0; }
.tx-rolecol .row .who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-rolecol .row .who small { color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-rolecol .row .tx-score { justify-self: end; min-width: 34px; padding: 3px 5px; }
.tx-radar { width: 132px; height: 132px; display: block; margin: 0 auto; overflow: visible; }
.tx-radar.mini { width: 36px; height: 36px; margin: 0; }
.tx-radar .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.tx-radar .ax { stroke: var(--line); stroke-width: 1; }
.tx-radar .area { fill: rgba(255, 232, 0, .22); stroke: var(--primary); stroke-width: 1.6; stroke-linejoin: round; }
.tx-radar .dot { fill: var(--primary); }
.tx-radar .lb { fill: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.tx-radar.mini .lb, .tx-radar.mini .dot { display: none; }
.tx-radar.mini .area { stroke-width: 1.2; fill: rgba(255, 232, 0, .28); }

/* ---- polish pass (fr) ---- */
.tx-table tbody tr:nth-child(even) { background: rgba(151, 170, 220, .025); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 100px; }
.tx-card > .hd .tx-sub a:hover { color: var(--primary); }
.tx-tabs a:focus-visible { outline-offset: -2px; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-track { background: transparent; }

/* ---- language switcher ---- */
.tx-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex: 0 0 auto; }
.tx-lang a { padding: 5px 9px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); background: var(--bg-3); transition: color .12s, background .12s; }
.tx-lang a + a { border-left: 1px solid var(--line); }
.tx-lang a:hover { color: var(--fg); }
.tx-lang a.on { color: var(--primary-ink); background: var(--primary); }
@media (max-width: 720px) { .tx-lang a { padding: 5px 7px; font-size: 10.5px; } }

/* ---- newsroom ---- */
.nw-feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; transition: border-color .15s, transform .15s; }
.nw-feat:hover { border-color: var(--line-glow); transform: translateY(-2px); }
.nw-feat img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.nw-feat .in { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.nw-feat h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.nw-feat p { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.nw-feat .by, .nw-card .by, .nw-article .by { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.nw-feat .by .cta { color: var(--primary); margin-left: auto; }
.tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 3px 9px; margin-right: 6px; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.nw-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.nw-card:hover { border-color: var(--line-glow); transform: translateY(-2px); }
.nw-card img, .nw-card .ph { width: 100%; height: 160px; object-fit: cover; display: block; background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); }
.nw-card .in { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nw-card h3 { font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.nw-card p { color: var(--fg-2); font-size: 13px; line-height: 1.5; flex: 1; }
@media (max-width: 1000px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nw-feat { grid-template-columns: 1fr; } .nw-feat h2 { font-size: 22px; } .nw-grid { grid-template-columns: 1fr; } }
.nw-article { max-width: 860px; margin: 0 auto; }
.nw-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 360px; display: flex; align-items: flex-end; }
.nw-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.nw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,15,.1) 0%, rgba(7,9,15,.55) 50%, rgba(7,9,15,.95) 100%); }
.nw-hero .in { position: relative; z-index: 1; padding: 40px 34px 28px; }
.nw-hero.noimg { min-height: 0; }
.nw-hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 8px 0 12px; }
.nw-hero .dek { font-size: 17px; line-height: 1.5; color: var(--fg-2); max-width: 680px; }
.nw-hero .by { margin-top: 16px; }
.nw-hero .by .who { color: var(--fg); display: inline-flex; align-items: center; gap: 7px; }
.nw-hero .by .who i { width: 7px; height: 7px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); box-shadow: 0 0 8px var(--primary); }
.nw-body { max-width: 720px; margin: 26px auto 0; font-size: 16.5px; line-height: 1.72; color: var(--fg-2); }
.nw-body p { margin: 0 0 18px; }
.nw-body b { color: var(--fg); }
.nw-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(255,232,0,.35); text-underline-offset: 3px; }
.nw-body h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--fg); margin: 34px 0 12px; font-weight: 800; }
.nw-body ul { margin: 0 0 18px 20px; } .nw-body li { margin: 6px 0; }
.nw-body blockquote { margin: 26px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--primary); font-size: 21px; line-height: 1.4; color: var(--fg); font-weight: 600; letter-spacing: -.01em; }
.nw-body blockquote cite { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nw-body .nw-stats { margin: 22px 0 26px; }
.tx-kpi-link { display: block; min-width: 0; } .tx-kpi-link .tx-kpi { height: 100%; }
.nw-debate { margin: 30px 0 10px; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-glow); box-shadow: 0 0 40px -16px var(--primary); }
.nw-debate .q { font-size: 20px; font-weight: 800; color: var(--fg); margin: 8px 0 12px; letter-spacing: -.01em; }
.nw-debate .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.nw-debate .opt { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); font-size: 13px; font-weight: 700; color: var(--fg); }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 720px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--line); }
.nw-share .lab { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.nw-share a { padding: 7px 12px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; transition: background .12s, color .12s; }
.nw-share a:hover { background: var(--primary); color: var(--primary-ink); }
.nw-related { max-width: 860px; margin: 26px auto 0; }
.nw-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-top: 1px solid var(--line); transition: background .12s; }
.nw-row:first-child { border-top: 0; } .nw-row:hover { background: var(--bg-3); }
.nw-row b { font-size: 13px; line-height: 1.35; } .nw-row small { color: var(--muted); font-size: 11px; }
@media (max-width: 640px) { .nw-hero h1 { font-size: 27px; } .nw-hero .in { padding: 28px 18px 20px; } .nw-body { font-size: 15.5px; } }

.nw-body .tx-kpi-link, .nw-body .tx-kpi-link * { text-decoration: none; }
.nw-feat img { max-height: 440px; }
.nw-feat.crest img, .nw-card.crest img { object-fit: contain; padding: 28px; background: radial-gradient(closest-side, var(--bg-4), var(--bg-2)); }
.nw-card.crest img { padding: 18px; }
