/* Shared styles for PickLab's static content pages (/scoring/, /faq/, /guides/ …).
   The React app does not load this file. Dark-only, matching the app and the brand book. */
:root {
  color-scheme: dark;
  --bg: #0F0F0F;
  --surface: #171717;
  --panel: #1F1F1F;
  --line: #2A2A2A;
  --text: #E5E5E5;
  --muted: #A3A3A3;
  --dim: #77726A;
  --amber: #F59E0B;
  --amber-lt: #FBBF24;
  --ink: #141210;
  --green: #4ADE80;
  --red: #F87171;
  --rose: #FB7185;
  --blue: #60A5FA;
  --f-display: 'Black Ops One', Impact, 'Arial Black', sans-serif;
  --f-body: 'Geist', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--amber-lt); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(15, 15, 15, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { max-width: 1120px; display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--f-display); font-size: 20px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.btn { display: inline-block; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 10px; padding: 11px 20px; line-height: 1.2; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 0 24px rgba(245, 158, 11, 0.22); }
.btn-primary:hover { background: var(--amber-lt); color: var(--ink); }
.btn-ghost { color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.5); }
.btn-ghost:hover { color: #fff; border-color: var(--amber); }
.nav .btn { color: var(--ink); padding: 8px 14px; font-size: 14px; }

/* Hero band: same title-screen art and 60% dark overlay as the app's landing page */
.hero { position: relative; background: #0F0F0F url('/assets/login-bg.webp') center / cover no-repeat; border-bottom: 1px solid var(--line); }
@media (min-width: 1440px) { .hero { background-image: url('/assets/login-bg-hd.webp'); } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(15, 15, 15, 0.85)); }
.hero .wrap { position: relative; padding-block: 8px 40px; }
.hero .lede { color: #EDEDED; }
.hero .updated { margin-bottom: 0; }

/* Underdog tier cards (colors from the app's Rules page) */
.ud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.ud div { border-radius: 10px; border: 1px solid; text-align: center; padding: 12px 8px; }
.ud b { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.ud .n { display: block; font-size: 24px; font-weight: 900; line-height: 1.3; }
.ud small { display: block; border-top: 1px solid; margin-top: 6px; padding-top: 6px; font-family: var(--f-mono); font-style: italic; font-size: 12px; }
.ud-contender { color: #2DD4BF; border-color: rgba(20, 184, 166, 0.5); background: linear-gradient(135deg, rgba(19, 78, 74, 0.4), rgba(19, 78, 74, 0.1)); }
.ud-contender small { color: rgba(94, 234, 212, 0.7); }
.ud-brawler { color: #FACC15; border-color: rgba(234, 179, 8, 0.5); background: linear-gradient(135deg, rgba(113, 63, 18, 0.4), rgba(113, 63, 18, 0.1)); }
.ud-brawler small { color: rgba(253, 224, 71, 0.7); }
.ud-darkhorse { color: #FB923C; border-color: rgba(249, 115, 22, 0.5); background: linear-gradient(135deg, rgba(124, 45, 18, 0.4), rgba(124, 45, 18, 0.1)); }
.ud-darkhorse small { color: rgba(253, 186, 116, 0.7); }
.ud-kingslayer { color: #F87171; border-color: rgba(239, 68, 68, 0.5); background: linear-gradient(135deg, rgba(127, 29, 29, 0.4), rgba(127, 29, 29, 0.1)); }
.ud-kingslayer small { color: rgba(252, 165, 165, 0.7); }
.ud-giant { color: #F43F5E; border-color: rgba(136, 19, 55, 0.7); background: linear-gradient(135deg, rgba(136, 19, 55, 0.5), rgba(136, 19, 55, 0.15)); }
.ud-giant small { color: rgba(251, 113, 133, 0.7); }

/* Pick'em scoring rows (colors from the app's Rules page) */
.pl { display: grid; gap: 10px; margin: 12px 0 20px; }
.pl div { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border: 1px solid; border-radius: 10px; padding: 14px 16px; }
.pl b { display: block; color: #fff; font-size: 16px; }
.pl small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pl .n { font-size: 22px; font-weight: 800; color: #4ADE80; white-space: nowrap; }
.pl-exact { border-color: rgba(168, 85, 247, 0.5) !important; }
.pl-narrow { border-color: rgba(59, 130, 246, 0.3) !important; }
.pl-medium { border-color: rgba(34, 197, 94, 0.3) !important; }
.pl-wide { border-color: rgba(234, 179, 8, 0.3) !important; }
.pl-swiss { border-color: rgba(6, 182, 212, 0.3) !important; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--dim); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* Article */
main { padding-bottom: 64px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); opacity: 0.85; margin: 24px 0 8px; }
h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; color: #fff; margin: 0 0 18px; text-wrap: balance; }
h1 .hl, h2 .hl { color: var(--amber); }
.lede { font-size: 19px; color: var(--text); max-width: 64ch; margin: 0 0 24px; }
.updated { font-size: 13px; color: var(--dim); margin-bottom: 32px; }
h2 { font-size: 26px; line-height: 1.25; color: #fff; margin: 56px 0 14px; text-wrap: balance; }
h3 { font-size: 18px; color: #fff; margin: 28px 0 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
ul, ol { padding-left: 22px; margin: 0 0 16px; max-width: 66ch; }
li { margin-bottom: 6px; }
strong { color: #fff; }
.mono, code { font-family: var(--f-mono); }
code { font-size: 0.92em; color: var(--amber-lt); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.pts { font-family: var(--f-mono); font-weight: 700; color: var(--amber-lt); white-space: nowrap; text-align: right; }
th.pts { text-align: right; }

/* Risk tiers */
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.tier { border-radius: 12px; border: 1px solid; padding: 14px 10px; text-align: center; }
.tier b { display: block; font-size: 13px; }
.tier .n { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 30px; line-height: 1.2; color: #fff; }
.tier small { display: block; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.t-safe { color: var(--green); border-color: rgba(74, 222, 128, 0.5); background: rgba(20, 83, 45, 0.3); }
.t-risky { color: var(--amber-lt); border-color: rgba(251, 191, 36, 0.5); background: rgba(113, 63, 18, 0.3); }
.t-ext { color: var(--red); border-color: rgba(248, 113, 113, 0.5); background: rgba(127, 29, 29, 0.3); }
.t-imp { color: var(--rose); border-color: rgba(251, 113, 133, 0.5); background: rgba(136, 19, 55, 0.35); }
.t-ot { color: var(--blue); border-color: rgba(96, 165, 250, 0.5); background: rgba(30, 58, 138, 0.3); }

/* Callouts and example */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 16px 0 24px; }
.card > :last-child { margin-bottom: 0; }
.example .row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.example .row:last-child { border-bottom: none; }
.example .row span:nth-child(2) { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }
.example .row span:nth-child(3) { font-family: var(--f-mono); font-weight: 700; color: var(--amber-lt); text-align: right; min-width: 3ch; }
.example .total { font-weight: 700; color: #fff; }
.example .total span:nth-child(3) { color: var(--amber); font-size: 18px; }
.cta { margin: 56px 0 0; padding: 28px; border-radius: 14px; background: rgba(15, 15, 15, 0.9); border: 1px solid rgba(245, 158, 11, 0.4); box-shadow: 0 0 30px rgba(255, 128, 0, 0.18), inset 0 0 0 1px rgba(255, 128, 0, 0.15); }
.cta h2 { margin-top: 0; font-family: var(--f-display); font-weight: 400; }
.cta p { color: var(--muted); }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: #fff; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--dim); }
.site-foot .wrap { max-width: 1120px; display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--amber); }
.foot-note { font-size: 13px; }
.foot-social { display: flex; align-items: center; gap: 10px; }
.foot-social-label { font-size: 13px; color: var(--dim); margin-right: 4px; }
.foot-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
.foot-social a:hover { color: var(--amber); border-color: var(--amber); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--amber); }

/* Card grids, steps and guide lists */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 20px; }
.grid2 .card { margin: 0; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 12px; max-width: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-weight: 700; color: var(--amber); font-size: 18px; line-height: 1.6; }
.steps b { color: #fff; display: block; }
.steps span { color: var(--muted); font-size: 15px; }
.guide-list { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 12px; max-width: none; }
.guide-list li { margin: 0; }
.guide-list a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.guide-list a:hover { border-color: rgba(245, 158, 11, 0.5); }
.guide-list b { display: block; color: #fff; font-size: 18px; }
.guide-list span { color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 21px; margin-top: 40px; }
.legal p, .legal li { font-size: 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiers, .ud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { margin-left: 0; width: 100%; }
  h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .mg-bar i { animation: none !important; } }

/* ── Major pick'em guide (/guides/cs2-major-pickem/, built by scripts/build-major-guide.mjs) ── */
.mg-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.mg-chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.mg-chips li { margin: 0; font-size: 13px; font-weight: 600; color: var(--amber-lt); border: 1px solid rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); border-radius: 999px; padding: 4px 12px; }
.mg-how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 16px 0 8px; }
.mg .tag { display: inline-block; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.6); background: rgba(124, 45, 18, 0.45); border-radius: 4px; padding: 1px 5px; vertical-align: 2px; line-height: 1.3; }
.mg-pin { position: absolute; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--ink); font: 700 12px/22px var(--f-mono); text-align: center; box-shadow: 0 0 0 3px #111; }
.mg-shot { margin: 0; }
.mg-shot-img { position: relative; border-radius: 14px; border: 1px solid #333; box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(245, 158, 11, 0.08); }
.mg-shot-img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.mg-shot-img .mg-pin { left: -11px; transform: translateY(-50%); }
.mg-shot figcaption { font-size: 13px; color: var(--dim); text-align: center; margin-top: 10px; }
.mg-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; max-width: none; }
.mg-steps li { counter-increment: s; position: relative; margin: 0; padding-left: 40px; }
.mg-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--ink); font: 700 13px/26px var(--f-mono); text-align: center; }
.mg-steps b { display: block; color: #fff; font-size: 17px; }
.mg-steps span { color: var(--muted); font-size: 15px; }
.mg-pts { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0 10px; }
.mg-bar-row { display: grid; grid-template-columns: 1fr 48px; align-items: end; gap: 6px 14px; margin-bottom: 18px; }
.mg-bar-row:last-child { margin-bottom: 0; }
.mg-bar-row .who { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.mg-bar-row .who b { color: #fff; font-size: 15px; margin-right: 8px; }
.mg-bar-row.is-pl .who b { color: var(--amber); }
.mg-bar-row .tot { font-family: var(--f-mono); font-size: 22px; color: var(--dim); text-align: right; line-height: 34px; }
.mg-bar-row.is-pl .tot { color: var(--amber); font-size: 30px; }
.mg-bar { display: flex; gap: 3px; height: 34px; }
.mg-bar i { display: grid; place-items: center; min-width: 0; border-radius: 6px; font: 700 13px var(--f-mono); font-style: normal; color: #0F0F0F; }
.mg-bar .s-empty { background: repeating-linear-gradient(135deg, #1F1F1F 0 6px, #191919 6px 12px); border: 1px dashed var(--line); }
.mg-pts .s-win { background: #E5E5E5; }
.mg-pts .s-ser { background: var(--blue); }
.mg-pts .s-safe { background: var(--green); }
.mg-pts .s-risky { background: var(--amber-lt); }
.mg-pts .s-extra { background: #2DD4BF; }
.mg-pts .s-up { background: #FB923C; }
@keyframes mgGrow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.mg-note { font-size: 14px; color: var(--muted); }
.mg-compare th:not(:first-child), .mg-compare td:not(:first-child) { text-align: center; }
.mg-compare td.y { color: var(--green); font-weight: 800; font-size: 18px; }
.mg-compare td.n { color: var(--dim); }
.mg-compare td.p { color: var(--muted); font-size: 13px; }
.mg-compare th:last-child, .mg-compare td:last-child { background: rgba(245, 158, 11, 0.07); }
.mg-compare th:last-child { color: var(--amber); }
.mg-road { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: none; position: relative; }
.mg-road li { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 12px; padding: 14px 14px 12px; }
.mg-road li:last-child { border-top-color: #FACC15; background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), var(--surface)); }
.mg-road b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 18px; color: #fff; letter-spacing: 0.02em; }
.mg-road span { display: block; font-size: 13px; color: var(--muted); }
.mg-road .d { font-family: var(--f-mono); color: var(--amber-lt); font-size: 13px; margin: 2px 0 6px; }
.mg-road .f { color: var(--text); font-weight: 600; margin-top: 2px; }
.mg-smart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 20px; }
.mg-smart div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 14px 16px; }
.mg-smart div:last-child { grid-column: 1 / -1; }
.mg-smart b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.mg-smart span { color: var(--muted); font-size: 15px; }
.mg-friends { margin: 40px 0; padding: 24px; border-radius: 14px; border: 1px solid rgba(96, 165, 250, 0.35); background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(15, 15, 15, 0.6)); }
.mg-friends h2 { margin-top: 0; }
.mg-friends ol { list-style: none; counter-reset: f; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; }
.mg-friends li { counter-increment: f; margin: 0; background: rgba(15, 15, 15, 0.55); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.mg-friends li::before { content: "0" counter(f); display: block; font: 700 13px var(--f-mono); color: var(--blue); }
.mg-friends li b { display: block; color: #fff; }
.mg-friends li span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .mg-how { grid-template-columns: 1fr; }
  .mg-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mg-smart, .mg-friends ol { grid-template-columns: 1fr; }
  .mg-bar { height: 28px; }
  .mg-bar i { font-size: 11px; }
}


/* ─── Event and match pages (built by the seo-pages function) ───
   One type family everywhere: Geist (numbers in Geist 900), Black Ops One only for the hero title and CTA, like the
   other content pages. Team colours work like the app's result cards. */
.muted { color: var(--muted); }
.notice { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; color: var(--muted); }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: #fff; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(245, 158, 11, 0.5); color: var(--amber-lt); }
.chip-live { border-color: rgba(248, 113, 113, 0.6); color: var(--red); }
.chip-done { border-color: rgba(255, 255, 255, 0.15); color: var(--muted); }
.facts th { width: 38%; background: transparent; border-bottom: 1px solid var(--line); }
.facts td { vertical-align: middle; }

/* Team logo; its initials show only when there is no logo or it fails to load */
.tl { --h: 30; position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle; border-radius: 8px; }
.tl b { font-weight: 800; color: hsl(var(--h) 60% 80%); }
.tl:not(:has(img)) { background: linear-gradient(135deg, hsl(var(--h) 30% 22%), hsl(var(--h) 25% 12%)); border: 1px solid rgba(255, 255, 255, 0.08); }
.tl:has(img) b { visibility: hidden; }
.tl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tl-sm { width: 24px; height: 24px; } .tl-sm b { font-size: 9px; }
.tl-row { width: 30px; height: 30px; } .tl-row b { font-size: 10px; }
.tl-md { width: 40px; height: 40px; } .tl-md b { font-size: 13px; }
.tl-lg { width: 84px; height: 84px; border-radius: 16px; } .tl-lg b { font-size: 24px; }
.tl-tbd { color: var(--dim); font-weight: 700; background: var(--panel); }

/* Event banner: the poster, or a generated one with the event name */
.ev-banner { position: relative; aspect-ratio: 1276 / 312; border-radius: 14px; overflow: hidden; margin: 18px 0 4px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(245, 158, 11, 0.28), transparent 55%), linear-gradient(135deg, #1d1a14, #0f0f0f); }
.ev-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-banner-gen-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 6%; }
.ev-banner-gen-in small { font-size: clamp(10px, 1.6vw, 13px); letter-spacing: 0.3em; color: var(--amber); font-weight: 700; }
.ev-banner-gen-in span { font-family: var(--f-display); font-size: clamp(20px, 4.6vw, 44px); line-height: 1.05; color: #fff; }

/* Team grid and other events */
.ev-teams { list-style: none; padding: 0; margin: 12px 0 20px; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ev-teams li { display: flex; align-items: center; gap: 12px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ev-teams b { display: block; color: #fff; font-size: 15px; line-height: 1.25; }
.ev-teams small { color: var(--muted); font-size: 12px; }
.ev-more { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ev-more li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.ev-more a { display: block; font-weight: 600; text-decoration: none; }
.ev-more small { color: var(--dim); font-size: 12px; }

/* Team tints: each half tinted with its team's logo colour (--ca / --cb, set by the page script), the loser's half plain */
.mr, .mx-card { --ca: 107 114 128; --cb: 107 114 128; --ka: 1; --kb: 1; position: relative; overflow: hidden; }
.win-a { --kb: 0; } .win-b { --ka: 0; }
.mr::before, .mx-card::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to right, rgb(var(--ca) / calc(0.32 * var(--ka))) 0%, rgb(var(--ca) / calc(0.28 * var(--ka))) 30%, rgb(var(--ca) / calc(0.10 * var(--ka))) 47%, transparent 50%,
    rgb(var(--cb) / calc(0.10 * var(--kb))) 53%, rgb(var(--cb) / calc(0.28 * var(--kb))) 70%, rgb(var(--cb) / calc(0.32 * var(--kb))) 100%); }
.mr::after, .mx-card::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.5) 25%, rgba(212, 175, 55, 0.5) 75%, transparent); }
.mr > *, .mx-card > * { position: relative; z-index: 1; }
.mr-t.lost .tl img, .mx-team.lost .tl img { filter: grayscale(1); opacity: 0.6; }

/* Match rows: time | name logo | score | logo name | predict */
.mrows { display: grid; gap: 6px; margin: 6px 0 14px; }
.mr { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px minmax(0, 1fr) 92px; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid rgba(212, 175, 55, 0.12); color: var(--text); text-decoration: none; transition: border-color 200ms, transform 200ms; }
a.mr:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); transform: translateY(-1px); }
.mr.is-live { border-color: rgba(250, 204, 21, 0.45); }
.mr-when { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; color: var(--muted); }
.mr-when small { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mr-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-a { justify-content: flex-end; text-align: right; } .mr-a .tl { order: 2; }
.mr-n { font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-t.lost .mr-n { color: rgba(255, 255, 255, 0.55); }
.mr-s.vs { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mr-s.live { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #111; background: rgba(250, 204, 21, 0.9); border-radius: 999px; padding: 3px 0; }
.mr-s.ff { font-size: 13px; color: var(--muted); }
.mr-go { justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--amber); border-radius: 999px; padding: 4px 10px; }
.mr-go.mr-arrow { background: none; color: var(--dim); font-size: 20px; line-height: 1; padding: 0 4px; }

/* Stages fold open / closed, rounds inside */
.phase { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(23, 23, 23, 0.6); }
.phase summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; cursor: pointer; list-style: none; }
.phase summary::-webkit-details-marker { display: none; }
.phase summary::after { content: "▾"; margin-left: auto; color: var(--amber); transition: transform 200ms; }
.phase[open] summary::after { transform: rotate(180deg); }
.phase summary span { font-weight: 700; font-size: 17px; color: #fff; }
.phase summary small { color: var(--muted); font-size: 13px; }
.phase > :not(summary) { margin-left: 14px; margin-right: 14px; }
.phase > :last-child { margin-bottom: 14px; }
h4.round { margin: 14px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); opacity: 0.85; }

/* Match page header */
.mx-h1 { font-family: var(--f-body); font-weight: 700; font-size: clamp(18px, 3vw, 22px); color: #fff; margin: 0 0 4px; }
.mx-h1 .hl { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8em; margin-left: 6px; }
.mx-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 22px; padding: 22px 16px; border-radius: 16px;
  background: rgba(15, 15, 15, 0.8); border: 1px solid rgba(212, 175, 55, 0.25); }
.mx-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; }
.mx-team b { color: #fff; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.mx-team.lost b { color: rgba(255, 255, 255, 0.6); }
.mx-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mx-vs { font-weight: 900; font-size: 28px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); line-height: 1; }
.mx-score { font-weight: 900; font-size: 44px; color: #fff; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mx-score i { font-style: normal; color: var(--dim); margin: 0 6px; }
.mx-score.live { color: #FACC15; font-size: 26px; letter-spacing: 0.1em; }
.mx-when { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.stakes { color: var(--muted); font-size: 15px; }

/* Map tiles, centred */

/* Community pick bar */
.pickbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); max-width: 640px; }
.pickbar span { display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink); }
.pickbar span:first-child { background: var(--amber); }
.pickbar span:last-child { background: #60A5FA; }
.pickbar-legend { display: flex; justify-content: space-between; max-width: 640px; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Recent form / head to head */
.fcol h3 { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.fcol h3 small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.fr { list-style: none; padding: 0; margin: 0 0 16px; max-width: none; display: grid; gap: 6px; }
.fr li { margin: 0; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fr-wl { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 800; font-size: 12px; }
.fr li.w .fr-wl { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.fr li.l .fr-wl { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.fr-name { min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-name small { display: block; font-weight: 400; font-size: 12px; color: var(--dim); }
.fr-score { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.fr li.w .fr-score { color: #fff; } .fr li.l .fr-score { color: var(--muted); }
.h2h-sum { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.h2h-sum i { font-style: normal; color: var(--dim); }
.h2h-sum span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }

@media (max-width: 640px) {
  .mr { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); grid-template-areas: "when when when" "a s b"; row-gap: 4px; padding: 8px 10px; }
  .mr-when { grid-area: when; flex-direction: row; gap: 8px; }
  .mr-a { grid-area: a; } .mr-s { grid-area: s; } .mr-b { grid-area: b; }
  .mr-go { display: none; }
  .mr-n { font-size: 14px; }
  .tl-row { width: 26px; height: 26px; }
  .mx-card { padding: 16px 8px; gap: 6px; }
  .tl-lg { width: 64px; height: 64px; border-radius: 14px; }
  .mx-team b { font-size: 15px; }
  .mx-score { font-size: 34px; } .mx-vs { font-size: 22px; }
  .phase summary { padding: 12px 14px; }
  .phase > :not(summary) { margin-left: 8px; margin-right: 8px; }
}

/* Event insights: status tags, numbers, standings, bracket, upsets, community picks */
.chip-go { border-color: rgba(74, 222, 128, 0.5); color: var(--green); }
.chip-out { border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.ev-teams li.out { opacity: 0.6; }
.ev-teams li span { min-width: 0; }


table.stand td, table.stand th { padding: 9px 12px; vertical-align: middle; }
table.stand .c { text-align: center; }
table.stand .n { color: var(--dim); font-weight: 700; width: 36px; }
.st-team { display: flex; align-items: center; gap: 10px; }
.st-team b { color: #fff; font-weight: 700; }
table.stand .rec { font-weight: 900; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
table.stand .rd, table.stand .pk { color: var(--muted); font-variant-numeric: tabular-nums; }
table.stand tr.out td { opacity: 0.55; }
table.stand tr.hi td { background: rgba(245, 158, 11, 0.08); }
table.stand tr.hi td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; margin: 8px 0 20px; }
.bk-col { flex: 1 0 190px; display: flex; flex-direction: column; }
.bk-col h4.round { margin: 0 0 8px; }
.bk-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bk-m { display: grid; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.15); background: var(--line); text-decoration: none; color: var(--text); }
a.bk-m:hover { border-color: rgba(212, 175, 55, 0.45); color: var(--text); }
.bk-m.hi { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.bk-t { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface); font-size: 14px; font-weight: 600; }
.bk-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-t b { font-weight: 900; color: var(--dim); font-variant-numeric: tabular-nums; }
.bk-t.won span, .bk-t.won b { color: #fff; }
.bk-t.lost span { color: rgba(255, 255, 255, 0.5); }
.bk-t.lost .tl img { filter: grayscale(1); opacity: 0.6; }

.ups { display: grid; gap: 8px; margin: 8px 0 20px; }
.up { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.up:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); }
.up-tag { display: flex; align-items: baseline; gap: 6px; border: 1px solid; border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.up-tag b { font-size: 16px; font-weight: 900; }
.up-txt { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.up-txt b { color: #fff; font-weight: 700; }
.up-txt small { color: var(--dim); font-size: 12px; }
.up-beat { color: var(--muted); margin: 0 4px; }
.up-s { font-weight: 900; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }

.pbars { display: grid; gap: 8px; margin: 8px 0 20px; max-width: 680px; }
.pbar { display: grid; grid-template-columns: auto 170px 1fr 48px; align-items: center; gap: 10px; }
.pbar-n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar-n em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.pbar-track { height: 10px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.pbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--amber-lt)); }
.pbar.won .pbar-track i { background: linear-gradient(90deg, #22C55E, var(--green)); }
.pbar b { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .up { grid-template-columns: 1fr auto; } .up-tag { grid-column: 1 / -1; justify-self: start; }
  .pbar { grid-template-columns: auto minmax(0, 1fr) 44px; } .pbar-track { grid-column: 1 / -1; order: 3; }
  table.stand .rd { display: none; }
}

/* ─── Brand pills, tags, tiles (brand book: amber is the one accent; green = through / win, red = out / loss,
   sky = info / waiting, blue = overtime, violet = live brackets). Cards get a top-to-transparent tint of their colour. */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px; border: 1px solid; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1; vertical-align: middle; }
.pill b { font-size: 12px; font-weight: 900; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pill-go { color: #4ADE80; border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.12); }
.pill-out { color: #F87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); }
.pill-live, .pill-amber { color: #FBBF24; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.12); }
.pill-wait { color: #38BDF8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.pill-blue { color: #60A5FA; border-color: rgba(96, 165, 250, 0.45); background: rgba(96, 165, 250, 0.12); }
.pill-done { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.pill-silver { color: #E5E7EB; border-color: rgba(203, 213, 225, 0.45); background: rgba(203, 213, 225, 0.1); }
.pill-gold { color: #141210; border-color: transparent; background: linear-gradient(180deg, #FBBF24, #F59E0B); box-shadow: 0 0 14px rgba(245, 158, 11, 0.35); }
.rk { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 800; color: var(--amber-lt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-none { color: var(--dim); }

/* Teams grid: name + rank on one line, the status pill under it */
.ev-teams { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ev-teams li { align-items: center; }
.tm { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; flex: 1; }
.tm-top { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tm-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* Numbers strip: one colour per tile */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.stat { --acc: 245 158 11; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid rgb(var(--acc) / 0.28);
  background: linear-gradient(180deg, rgb(var(--acc) / 0.14), transparent 75%), var(--surface); }
.stat-sky { --acc: 56 189 248; } .stat-blue { --acc: 96 165 250; } .stat-violet { --acc: 167 139 250; } .stat-gold { --acc: 251 191 36; }
.stat-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: rgb(var(--acc)); background: rgb(var(--acc) / 0.14); border: 1px solid rgb(var(--acc) / 0.3); }
.stat-tx { display: flex; flex-direction: column; min-width: 0; }
.stat-tx small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--acc)); }
.stat-tx b { font-weight: 900; font-size: 24px; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.stat-tx em { font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Format: a numbered path through the event */
.flow { list-style: none; padding: 0; margin: 10px 0 20px; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: none; }
.flow-step { position: relative; margin: 0; padding: 16px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, 0.25);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), transparent 70%), var(--surface); display: flex; flex-direction: column; gap: 6px; }
.flow-step:not(:last-child)::after { content: "›"; position: absolute; right: -12px; top: 22px; z-index: 1; width: 12px; text-align: center; color: var(--amber); font-weight: 900; font-size: 18px; }
.flow-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--amber); color: var(--ink); font-weight: 900; font-size: 13px; }
.flow-name { color: #fff; font-size: 17px; }
.flow-meta { color: var(--muted); font-size: 13px; }
.flow-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.flow-notes { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--muted); }
.flow-notes li { margin-bottom: 2px; }

/* Match rows: the ":" always sits on the centre line */
.mr-s { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 8px; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--dim); }
.mr-s b { font-weight: 900; } .mr-s b:first-child { text-align: right; } .mr-s b:last-child { text-align: left; }
.mr-s b.w { color: #fff; } .mr-s i { font-style: normal; }
.mr-s.vs, .mr-s.live, .mr-s.ff { display: flex; justify-content: center; }

/* Map by map: tinted with the winner's team colour */
.maps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 20px; }
.map { --cw: var(--ca); flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px 14px; border-radius: 12px;
  border: 1px solid rgb(var(--cw, 245 158 11) / 0.35); background: linear-gradient(180deg, rgb(var(--cw, 245 158 11) / 0.22), transparent 80%), var(--surface); }
.map-b { --cw: var(--cb); }
.map-top { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 22px; }
.map-top small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.map-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.map-s { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; width: 100%; font-weight: 900; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.map-s b { font-weight: 900; color: var(--dim); } .map-s b:first-child { text-align: right; } .map-s b.w { color: #fff; } .map-s i { font-style: normal; color: var(--dim); }
.map-w { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--amber-lt); }

/* World ranking: two rank badges and the gap, then the underdog pill */
.rankvs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 560px; margin: 10px 0 12px; }
.rv-side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rv-side b { font-size: 26px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.rv-side small { font-size: 12px; color: var(--muted); }
.rv-side.fav { border-color: rgba(245, 158, 11, 0.35); background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), transparent 75%), var(--surface); }
.rv-gap { display: flex; flex-direction: column; align-items: center; }
.rv-gap b { font-size: 22px; font-weight: 900; color: var(--amber); }
.rv-gap small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.ud-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.stat-tx em { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.mr { grid-template-columns: 116px minmax(0, 1fr) 96px minmax(0, 1fr) 116px; }
.mr-when { font-size: 11.5px; white-space: nowrap; }
@media (max-width: 640px) { .mr { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); } }

/* PickLab separator between sections (event and match pages) */
main.seo > h2 { position: relative; padding-top: 30px; margin-top: 42px; }
main.seo > h2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55) 15%, rgba(245, 158, 11, 0.7) 50%, rgba(212, 175, 55, 0.55) 85%, transparent); }
main.seo > h2::after { content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--amber); box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }

/* Map by map v2: a mini scoreboard, the winner's half in its team colour, the ":" on the centre line */
.map { --ka: 1; --kb: 1; position: relative; overflow: hidden; flex: 0 1 250px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.18); background: var(--surface); }
.map.win-a { --kb: 0; } .map.win-b { --ka: 0; }
.map::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to right, rgb(var(--ca, 107 114 128) / calc(0.30 * var(--ka))), rgb(var(--ca, 107 114 128) / calc(0.10 * var(--ka))) 47%, transparent 50%,
    rgb(var(--cb, 107 114 128) / calc(0.10 * var(--kb))) 53%, rgb(var(--cb, 107 114 128) / calc(0.30 * var(--kb)))); }
.map::after { content: ""; position: absolute; top: 44px; bottom: 10px; left: 50%; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.5) 30%, rgba(212, 175, 55, 0.5) 70%, transparent); }
.map > * { position: relative; z-index: 1; }
.map-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; min-height: 22px; }
.map-top small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.map-top .pill { justify-self: end; }
.map-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.map-s { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 10px; width: 100%; font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.map-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.map-side-b { justify-content: flex-start; }
.map-side b { font-weight: 900; color: #fff; }
.map-side.lost b { color: var(--dim); }
.map-side.lost .tl img { filter: grayscale(1); opacity: 0.6; }
.map-s i { font-style: normal; color: var(--dim); }

/* World ranking, centred */
.rankvs { margin-left: auto; margin-right: auto; }
.ud-line { justify-content: center; text-align: center; }
.pill-bronze { color: #E8A56A; border-color: rgba(205, 127, 50, 0.5); background: rgba(205, 127, 50, 0.14); }
.pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Team links, team cards, event cards, team page */
a.tlink { color: inherit; text-decoration: none; }
a.tlink:hover { color: var(--amber-lt); text-decoration: underline; text-underline-offset: 3px; }
.ev-teams li:has(> a.tcard) { padding: 0; }
a.tcard { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: 10px; }
a.tcard:hover { background: rgba(245, 158, 11, 0.06); color: var(--text); }
a.tcard:hover b { color: var(--amber-lt); }
.stat-green { --acc: 74 222 128; } .stat-red { --acc: 248 113 113; } .stat-rose { --acc: 251 113 133; }
.called-maps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cm { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.cm b { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.team-head { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.team-head .tl-lg { width: 110px; height: 110px; }
.team-head h1 { margin-bottom: 8px; }
.team-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.mapbars { display: grid; gap: 8px; max-width: 680px; margin: 8px 0 20px; }
.mapbar { display: grid; grid-template-columns: 110px 1fr 56px 48px; align-items: center; gap: 12px; }
.mapbar b { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.mapbar-track { height: 10px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.mapbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22C55E, var(--green)); }
.mapbar-n { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.mapbar-p { font-weight: 900; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.tevents { list-style: none; padding: 0; margin: 8px 0 20px; max-width: none; display: grid; gap: 6px; }
.tevents li { margin: 0; }
.tevents a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tevents a:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); }
.tev-name { display: flex; flex-direction: column; min-width: 0; }
.tev-name b { color: #fff; } .tev-name small { color: var(--dim); font-size: 12px; }
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 20px; }
a.evcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 200ms, transform 200ms; }
a.evcard:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-2px); color: var(--text); }
a.evcard .ev-banner { margin: 0; border: 0; border-radius: 0; }
.evcard-tx { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.evcard-tx b { color: #fff; font-size: 16px; }
.evcard-tx small { color: var(--muted); font-size: 12.5px; }
.evcard-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 640px) { .team-head { gap: 14px; } .team-head .tl-lg { width: 72px; height: 72px; } .mapbar { grid-template-columns: 84px 1fr 44px 40px; gap: 8px; } }
a.evcard .ev-banner-gen-in span { font-size: 22px; line-height: 1.1; }
a.evcard .ev-banner-gen-in small { font-size: 10px; }
.stat-tx em { -webkit-line-clamp: 3; }

/* Stat tiles v2: icon + one-line label on top, the number in the display font (like the app's "By the numbers"),
   one detail line. Nothing wraps: long text ends in "…". */
.stat { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px 14px; min-width: 0; }
.stat-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stat-hd .stat-ic { width: 26px; height: 26px; border-radius: 8px; }
.stat-hd .stat-ic svg { width: 15px; height: 15px; }
.stat-hd small { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--acc)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tx { gap: 2px; }
.stat-tx b { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tx em { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.h2h-sum { justify-content: center; flex-wrap: wrap; text-align: center; }

/* Scores and big numbers in the display font (Black Ops One), like the stat tiles and the app's cards */
.mr-s b, .mr-s i, .map-s b, .map-s i, .mx-score, .mx-vs, .rv-side b, .rv-gap b, .h2h-sum b, .h2h-sum i, .fr-score, .rec, .pickbar span, .pbar b, .up-s, .mapbar-p {
  font-family: var(--f-display); font-weight: 400; letter-spacing: 0.02em; }
.mr-s { font-size: 19px; } .map-s { font-size: 30px; } .mx-score { font-size: 48px; } .fr-score { font-size: 15px; }
/* World ranking: just the logos and ranks, the underdog pill in the middle with its name under it */
.rv-side small { display: none; }
.ud-line { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px auto 0; }
.ud-line small { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Rows of tiles and cards are centred when they don't fill the width (stats, events, teams, bracket) */
.stats { display: flex; flex-wrap: wrap; justify-content: center; }
.stats > .stat { flex: 0 1 172px; }
.evgrid { display: flex; flex-wrap: wrap; justify-content: center; }
.evgrid > a.evcard { flex: 0 1 272px; }
.ev-teams { display: flex; flex-wrap: wrap; justify-content: center; }
.ev-teams > li { flex: 0 1 262px; }
.bracket { justify-content: center; }
.bk-col { flex: 0 1 200px; }
.stats > .stat { flex: 1 1 148px; max-width: 200px; }

/* Majors on the hub: a gold strip under the banner and a gold frame */
a.evcard.is-major { border-color: rgba(245, 158, 11, 0.55); box-shadow: 0 0 22px rgba(245, 158, 11, 0.16); }
a.evcard.is-major:hover { border-color: var(--amber); box-shadow: 0 0 28px rgba(245, 158, 11, 0.28); }
.major-strip { display: block; padding: 5px 0; text-align: center; font-family: var(--f-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(90deg, #B45309, #F59E0B 30%, #FBBF24 50%, #F59E0B 70%, #B45309); }

/* Event cards: a small tier label in the banner corner ("CS2 MAJOR" / "TIER 1 EVENT") */
.ev-tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 2px; }
/* Team names in the match header: big enough to tap on a phone */
.mx-team a.tlink { display: inline-block; padding: 6px 4px; margin: -6px -4px; }

/* Phone polish from the UX check */
.mapbar-n, .mapbar-p { white-space: nowrap; }
@media (max-width: 640px) {
  .stat-tx b { font-size: 22px; }
  .mapbar { grid-template-columns: 78px 1fr 54px 40px; }
  main.seo .table-wrap table:not(.stand):not(.facts table) { min-width: 560px; }
}

.evcard-tx small.ev-tag { color: var(--amber); font-size: 10px; }
/* the tier strip: a thin gold line at the top of the card, above the banner */
.major-strip { padding: 2px 0; font-size: 10px; letter-spacing: 0.26em; line-height: 1.4; }
/* the tier line as it first was: small amber spaced text, left, on the dark card above the banner */
.major-strip { text-align: left; padding: 7px 12px 5px; font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: 0.3em; line-height: 1.2;
  color: var(--amber); background: linear-gradient(135deg, #1d1a14, #0f0f0f); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

/* An analysis article (seo-pages articleHtml): event, match and Major pick'em guide pages. Plain reading text under the data. */
.article { margin-top: 56px; padding-top: 4px; border-top: 1px solid var(--line); }
.article > h2 { margin-top: 28px; }
.art-meta { margin: -6px 0 20px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.article h3 { margin-top: 30px; }
.article strong { color: #fff; font-weight: 600; }
/* the article's lead, team mentions (logo + link), its one big number and the match cards between paragraphs */
.article .art-lead { font-size: 19px; line-height: 1.6; color: #fff; }
.art-team { white-space: nowrap; }
.art-team .tl-sm { width: 1.15em; height: 1.15em; margin: -0.15em 0.3em 0 0; border-radius: 5px; }
.art-team .tl-sm b { font-size: 7px; }
.art-team a { color: inherit; text-decoration: underline; text-decoration-color: rgba(251, 191, 36, 0.45); text-underline-offset: 3px; }
.art-team a:hover { color: var(--amber-lt); }
.art-num { display: flex; align-items: center; gap: 18px; max-width: 68ch; margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--amber); background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent 75%); }
.art-num b { font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; color: #fff; white-space: nowrap; }
.art-num span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.art-match { max-width: 68ch; margin: 4px 0 22px; }
