/* =============================================================================
   vaicair: one stylesheet, two native skins (same system as money / cs2dash).
   - iPhone (< 900px): iOS grouped lists, large title that collapses into a slim
     translucent nav bar, tab bar.
   - PC (>= 900px): Win11 skin (Mica window, navigation rail, command bar), in one
     block after the phone rules; a few shared late additions follow it.
   Theme = data-theme on <html> (static/theme.js, before paint), not prefers-color-scheme.
   Order matters: base rules, then the phone block, then the PC block. An override
   placed before its base rule silently loses (cs2dash lesson); append, don't insert.
   ============================================================================= */

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-2: #f6f6f8;
  --text: #0b100d;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  --sep: rgba(60, 60, 67, 0.17);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.2);
  --accent: #0b8f5b;
  --accent-text: #087a4e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 143, 91, 0.12);
  --bad: #d23a30;
  --bad-soft: rgba(255, 59, 48, 0.12);
  --topbar-bg: rgba(242, 242, 247, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #ffffff;
  --muted: #98989d;
  --faint: #636366;
  --sep: rgba(84, 84, 88, 0.58);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-2: rgba(118, 118, 128, 0.34);
  --accent: #34d399;
  --accent-text: #34d399;
  --accent-ink: #03150d;
  --accent-soft: rgba(52, 211, 153, 0.15);
  --bad: #ff6961;
  --bad-soft: rgba(255, 69, 58, 0.18);
  --topbar-bg: rgba(22, 22, 24, 0.8);
  --shadow: none;
}

/* ---------- zone palette (user's pick 2026-10-19: palette A of the 4 validated in the lab) ----------
   Columns sit side by side as título | liberta | sula | queda. Dataviz checker: adjacent CVD
   ΔE 13.6 light / 11.5 dark (target >= 8), normal-vision ΔE 22.6 / 16.2 (floor 15).
   Pré-Libertadores is Libertadores' hue with a hatch (texture, not a 5th colour). */
:root { --z-titulo: #eda100; --z-liberta: #3a9ae8; --z-sula: #8e44ad; --z-z4: #e34948; }
:root[data-theme="dark"] { --z-titulo: #c98500; --z-liberta: #3a9ae8; --z-sula: #b5479f; --z-z4: #e66767; }

/* ---------- base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.4 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); }
[hidden] { display: none !important; }
a, button, summary, input, select, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.app-shell, .content-col { display: block; }
.nav-rail { display: none; }
main {
  display: block; max-width: 680px; margin: 0 auto;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

/* ---------- slim nav bar (iOS) / command bar (PC) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: env(safe-area-inset-top) 6px 0;
  background: transparent; border-bottom: 0.5px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
body.scrolled .topbar {
  background: var(--topbar-bg); border-bottom-color: var(--sep);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 44px; max-width: 692px; margin: 0 auto; }
.nav-left { display: flex; align-items: center; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
/* phone: the bar always carries the address, so a screenshot shows where it came from; the page
   title lives in the large title (the h1 stays for screen readers) */
.bar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px 0 8px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; flex-shrink: 0; }
.wm { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wm b { font-weight: 700; color: var(--accent-text); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; margin: 0; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--accent-text); cursor: pointer; font: inherit;
}
.icon-btn:active { opacity: 0.45; }
.icon-btn svg { width: 22px; height: 22px; }
.nav-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 2px 0 8px; color: var(--accent-text); text-decoration: none; font-size: 17px; }
.nav-back + .brand { padding-left: 4px; }
.nb-txt { display: none; }
.large-title { font-size: 34px; font-weight: 700; letter-spacing: 0.005em; line-height: 1.15; margin: 2px 4px 14px; }
.large-title small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.js-theme .icon-sun, .js-theme .icon-moon { display: none; }
:root[data-mode="light"] .js-theme .icon-auto, :root[data-mode="dark"] .js-theme .icon-auto { display: none; }
:root[data-mode="light"] .js-theme .icon-sun { display: block; }
:root[data-mode="dark"] .js-theme .icon-moon { display: block; }

/* ---------- section headers ---------- */
.section-header {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px;
  margin: 28px 4px 10px; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text);
}
.section-header .section-sub { font-size: 15px; font-weight: 400; color: var(--muted); }
.section-header .see-all {
  margin: -12px 0 -12px auto; display: inline-flex; align-items: center; min-height: 44px; align-self: center;
  font-size: 17px; font-weight: 400; text-decoration: none; color: var(--accent-text);
}
.note { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 8px 4px 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }

/* ---------- buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; margin: 0; padding: 0 18px; border: none; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
button:active, .btn:active { opacity: 0.6; }
button:disabled { opacity: 0.35; }
button.secondary, .btn.secondary { background: var(--fill); color: var(--accent-text); }
button.plain { background: none; color: var(--accent-text); padding: 0 10px; font-weight: 400; }

/* segmented control */
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); margin: 0 0 12px; }
.seg button {
  flex: 1; white-space: nowrap; min-height: 34px; margin: 0; padding: 0 10px; border-radius: 8px; background: transparent; color: var(--text);
  font-size: 14px; font-weight: 500;
}
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #636366; }

/* horizontal chips (rounds) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--fill); font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; text-decoration: none;
}
.chip.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- crests ---------- */
.crest { width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.crest.dk { display: none; }
:root[data-theme="dark"] .crest.lt { display: none; }
:root[data-theme="dark"] .crest.dk { display: inline-block; }
.crest-lg { width: 64px; height: 64px; }

/* ---------- the table ---------- */
.tbl-card { padding: 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: auto; }
.tbl th {
  padding: 9px 4px 7px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right;
  text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 0.5px solid var(--sep); white-space: nowrap;
}
.tbl td { height: 46px; padding: 0 4px; text-align: right; border-bottom: 0.5px solid var(--sep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl th.c-team, .tbl td.c-team { text-align: left; }
.tbl .c-pos { position: relative; width: 34px; padding-left: 12px; text-align: left; font-weight: 600; color: var(--muted); font-size: 14px; }
.tbl th.c-pos { padding-left: 12px; }
.tbl .c-team { width: 100%; max-width: 0; }
.tbl .c-team a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; min-width: 0; }
.tbl .tname { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.nm-short { display: none; }
@media (max-width: 899px) { .tbl[data-view="chances"] .has-short .nm-full { display: none; } .tbl[data-view="chances"] .has-short .nm-short { display: inline; } }
.tbl .c-pts { width: 34px; font-weight: 700; padding-right: 8px; }
.tbl td.c-last, .tbl th.c-last { padding-right: 12px; }
.zbar { position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 0 3px 3px 0; background: transparent; }
tr.z-titulo .zbar { background: var(--z-titulo); }
tr.z-liberta .zbar { background: var(--z-liberta); }
tr.z-pre .zbar { background: repeating-linear-gradient(135deg, var(--z-liberta) 0 3px, transparent 3px 5px); }
tr.z-sula .zbar { background: var(--z-sula); }
tr.z-z4 .zbar { background: var(--z-z4); }
tr.fav td { background: var(--accent-soft); }
tr.fav .tname::after { content: " ★"; color: var(--accent-text); }
tr.moved td.c-pos { color: var(--text); }
.mv-up, .mv-dn { font-size: 10px; margin-left: 2px; }
.mv-up { color: var(--accent-text); }
.mv-dn { color: var(--bad); }

/* chance cells: one hue per column, intensity = probability (sequential, single hue) */
.tbl .ch { width: 50px; padding: 0 2px; }
.tbl .ch.c-last { padding-right: 8px; }
.heat {
  display: block; min-width: 44px; padding: 6px 0; border-radius: 7px; text-align: center; font-weight: 600; font-size: 14px;
  background: color-mix(in srgb, var(--zc) calc(var(--p, 0) * 78%), transparent);
}
.heat.zero { color: var(--faint); font-weight: 400; }
.heat.sure { font-weight: 700; }
.z-c-titulo { --zc: var(--z-titulo); }
.z-c-liberta, .z-c-pre { --zc: var(--z-liberta); }
.z-c-sula { --zc: var(--z-sula); }
.z-c-z4 { --zc: var(--z-z4); }
th.z-c-titulo, th.z-c-liberta, th.z-c-pre, th.z-c-sula, th.z-c-z4 { text-align: center; }
th .zk { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--zc); margin-right: 4px; vertical-align: 0; }
th.z-c-pre .zk { background: repeating-linear-gradient(135deg, var(--z-liberta) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--z-liberta); }
.pending .heat { color: transparent; background: var(--fill); }
.form { display: inline-flex; gap: 3px; }
.form i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); font-style: normal; }
.form i.V { background: var(--accent); }
.form i.D { background: var(--bad); }
.favgames { margin-top: 22px; }
.form i.hyp { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.form i.V.hyp { box-shadow: inset 0 0 0 1.5px var(--accent); }
.form i.D.hyp { box-shadow: inset 0 0 0 1.5px var(--bad); }

/* phone: one table, two views; fixed layout so the team name keeps its width */
.tbl[data-view="chances"] .cl { display: none; }
.tbl[data-view="classif"] .ch { display: none; }
.tbl .pc { display: none; }
@media (max-width: 899px) {
  .tbl { table-layout: fixed; }
  .tbl .c-pos { width: 30px; padding-left: 10px; }
  .tbl .c-team { width: auto; max-width: none; padding-right: 2px; }
  .tbl .c-team a { gap: 6px; }
  .tbl .crest { width: 22px; height: 22px; }
  .tbl .c-pts { width: 32px; padding-right: 6px; }
  .tbl .ch { width: 44px; }
  .tbl .ch.c-last { width: 50px; }
  .heat { min-width: 40px; font-size: 13.5px; }
  .tbl[data-view="classif"] .cl { width: 34px; }
  .tbl[data-view="classif"] .c-form { width: 64px; padding-right: 10px; }
  .tbl th.ch { font-size: 10px; letter-spacing: 0; padding-left: 0; padding-right: 0; }
  .tbl th .zk { display: none; }
  .tbl th.ch.c-last { padding-right: 6px; }
}

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend .l-titulo { background: var(--z-titulo); }
.legend .l-liberta { background: var(--z-liberta); }
.legend .l-pre { background: repeating-linear-gradient(135deg, var(--z-liberta) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--z-liberta); }
.legend .l-sula { background: var(--z-sula); }
.legend .l-z4 { background: var(--z-z4); }
.sim-note { font-size: 12.5px; color: var(--muted); margin: 8px 4px 0; min-height: 1.4em; }

/* scenario bar */
.scn {
  position: sticky; top: calc(44px + env(safe-area-inset-top)); z-index: 15;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 6px 6px 6px 14px;
  border-radius: 12px; background: var(--card); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1); border: 0.5px solid var(--sep);
  font-size: 15px;
}
.scn .scn-txt { flex: 1; min-width: 150px; }
.scn .scn-txt b { color: var(--accent-text); }
.scn button { min-height: 36px; font-size: 15px; padding: 0 12px; border-radius: 9px; }

/* favourite team hero */
.fav-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  color: #fff; border-radius: 18px; padding: 14px 16px; margin: 0 0 12px; text-decoration: none;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(140deg, #054a35, #0b8f5b);
}
.fav-hero .crest-lg { grid-row: span 2; background: rgba(255, 255, 255, 0.92); border-radius: 16px; padding: 6px; }
.fh-name { font-size: 20px; font-weight: 700; }
.fh-sub { font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.fh-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.fh-stats div { background: rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 6px 8px; }
.fh-stats b { display: block; font-family: var(--font-num); font-size: 20px; font-weight: 700; line-height: 1.15; }
.fh-stats span { font-size: 11.5px; color: rgba(255, 255, 255, 0.8); }
.pickfav { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 8px 8px 8px 14px; }
.pickfav .pf-q { font-weight: 600; white-space: nowrap; color: var(--accent-text); }
.pickfav select { flex: 1; min-width: 0; min-height: 38px; border: none; border-radius: 10px; background: var(--fill); color: var(--text); font: 16px var(--font); padding: 0 10px; }
.pickfav .plain { flex-shrink: 0; font-size: 15px; padding: 0 8px; min-height: 38px; }

/* ---------- match cards ---------- */
.matches { display: grid; gap: 10px; }
.match { background: var(--card); border-radius: var(--radius); padding: 10px 12px 12px; box-shadow: var(--shadow); }
.m-when { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.m-tag { margin-left: auto; font-size: 12px; font-weight: 600; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.ldot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.m-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.m-team.away { justify-content: flex-end; text-align: right; }
.m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-score { font-family: var(--font-num); font-size: 20px; font-weight: 700; min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.m-score i { font-style: normal; color: var(--faint); font-weight: 400; font-size: 15px; }
.m-score.guess { color: var(--accent-text); }
.m-picks { display: grid; grid-template-columns: 1fr 1fr 1fr 44px; gap: 6px; margin-top: 10px; }
.pick, .pick-score {
  min-height: 44px; padding: 4px 6px; border-radius: 10px; background: var(--fill); color: var(--text);
  display: flex; flex-direction: column; gap: 0; font-size: 12px; font-weight: 500; line-height: 1.2;
}
.pick .pk-lab { color: var(--muted); font-size: 11.5px; }
.pick .pk-p { font-family: var(--font-num); font-size: 16px; font-weight: 700; }
.pick[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pick[aria-pressed="true"] .pk-lab { color: var(--accent-ink); opacity: 0.85; }
.pick .pk-eff { font-size: 10.5px; color: var(--muted); }
.pick-score { padding: 0; align-items: center; justify-content: center; color: var(--accent-text); }
.pick-score svg { width: 18px; height: 18px; }
.pick-score.on { background: var(--accent); color: var(--accent-ink); font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.match.st-final .m-score, .match.st-live .m-score, .match.st-halftime .m-score { color: var(--text); }
.match.edited { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- home strip: today's games, live first ---------- */
.strip .section-header { margin-top: 8px; }
.lv-list {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 -16px; padding: 2px 16px 8px; scroll-padding: 0 16px; scrollbar-width: none;
}
.lv-list::-webkit-scrollbar { display: none; }
.lv-card {
  flex: 0 0 232px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border-radius: var(--radius); padding: 10px 12px 10px; box-shadow: var(--shadow);
}
.lv-head { display: flex; align-items: center; gap: 6px; min-height: 18px; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.lv-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-card.st-live.kicked .lv-st, .lv-card.st-halftime .lv-st { color: var(--accent-text); font-weight: 700; }
.lv-meta { margin-left: auto; }
.lv-team { display: flex; align-items: center; gap: 8px; min-height: 30px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.lv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-sc { min-width: 18px; text-align: right; font-family: var(--font-num); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-card.st-scheduled .lv-team { font-weight: 500; }
.lv-card.st-live:not(.kicked) .lv-sc { visibility: hidden; }
.lv-rule { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.lv-imp { list-style: none; display: grid; gap: 3px; margin: 6px 0 0; padding: 7px 0 0; border-top: 0.5px solid var(--sep); font-size: 12.5px; color: var(--muted); }
.lv-imp li { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.lv-imp b { color: var(--text); font-weight: 700; }
.lv-who { min-width: 30px; font-weight: 700; color: var(--text); }
.dlt { margin-left: auto; padding-left: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dlt.good { color: var(--accent-text); }
.dlt.bad { color: var(--bad); }

/* ---------- "O que está em jogo na rodada" ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 10px 0 4px; padding: 0 14px;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--accent-text); font-weight: 600; text-decoration: none; }
.rd-link span { font-size: 20px; line-height: 1; }
.rd-intro { margin: 2px 4px 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rd-list { display: grid; gap: 12px; }
.rd-game { padding: 12px 14px 10px; }
.rd-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rd-rank { font-weight: 700; color: var(--text); }
.rd-badge { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 11.5px; }
.rd-sim { margin-left: auto; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.rd-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 2px; }
.rd-x { color: var(--faint); }
.rd-odds { text-align: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-tbl { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rd-tbl th, .rd-tbl td { padding: 6px 4px; border-top: 0.5px solid var(--sep); }
.rd-tbl thead th { border-top: none; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.rd-tbl tbody th { text-align: left; font-weight: 600; }
.rd-tbl tbody th a { color: var(--text); text-decoration: none; }
.rd-tbl tbody th small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rd-tbl td { width: 22%; text-align: center; font-weight: 600; border-radius: 0; }
.rd-tbl td.good { color: var(--accent-text); background: var(--accent-soft); }
.rd-tbl td.bad { color: var(--bad); background: var(--bad-soft); }
.rd-quiet { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rd-done { display: grid; }
.rd-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px; color: var(--text); text-decoration: none; font-size: 14px; border-top: 0.5px solid var(--sep); }
.rd-row:first-child { border-top: none; }
.rd-row span:nth-child(3) { text-align: right; }
.rd-row small { color: var(--muted); font-size: 11.5px; min-width: 56px; text-align: right; }

/* "Quem mais mudou hoje" under the strip */
.movers { margin: 2px 0 8px; padding: 10px 14px; }
.movers-head { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.movers-head span { font-weight: 400; color: var(--muted); }
.movers .lv-imp { border-top: none; margin-top: 2px; padding-top: 2px; font-size: 13px; }

/* live score next to the name in the table (counted from the whistle) */
.lvb {
  flex: none; padding: 1px 5px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.35;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; background: var(--fill); color: var(--text);
}
.lvb.w { background: var(--accent-soft); color: var(--accent-text); }
.lvb.l { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 899px) {
  /* phone: the team cell is too narrow for name + badge side by side, so the badge goes under
     the name (crest spans both lines); the movement arrow sits under the position number */
  .tbl .c-team a:has(.lvb) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 1px; align-content: center; }
  .tbl .c-team a:has(.lvb) .crest { grid-row: 1 / span 2; }
  .tbl .c-team a:has(.lvb) .tname { grid-column: 2; align-self: end; line-height: 1.15; }
  .tbl .c-team a:has(.lvb) .lvb { grid-column: 2; justify-self: start; align-self: start; font-size: 11px; padding: 0 5px; }
  .tbl .mv-up, .tbl .mv-dn { position: absolute; left: 10px; bottom: 4px; margin: 0; font-size: 8px; line-height: 1; }
}

/* team page: the game that matters now (live, last 24 h, or next) */
.hero-game { margin-bottom: 22px; }
.hero-game .section-header { margin-top: 20px; }
.hero-game .match { padding: 12px 14px 14px; }
.hero-game .m-team { font-size: 15px; }
.hero-game .m-row .crest { width: 32px; height: 32px; }
.hero-game .m-score { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 28px; line-height: 1; min-width: 78px; }
.hero-game .m-score i { font-size: 18px; }
@media (max-width: 899px) {             /* scoreboard: crest over the name, so names keep their length */
  .hero-game .m-team { flex-direction: column; gap: 6px; text-align: center; }
  .hero-game .m-team.away { flex-direction: column-reverse; justify-content: center; text-align: center; }
  .hero-game .m-name { max-width: 100%; }
}
.hero-game[data-kind="live"] .match { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.hero-extra { display: grid; gap: 8px; padding: 10px 4px 0; font-size: 14px; }
.hero-extra:empty { display: none; }
.hx-rule, .hx-note { font-size: 13px; color: var(--muted); }
.hx-res { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hx-chip { padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--fill); color: var(--text); }
.hx-chip.w { background: var(--accent-soft); color: var(--accent-text); }
.hx-chip.l { background: var(--bad-soft); color: var(--bad); }
.hx-imp { margin: 0; padding: 0; border: none; font-size: 14px; gap: 4px; }
.hx-imp .dlt { font-size: 13px; }

/* team page: "Evolução das chances" (server-drawn lines, HTML labels, JS hover) */
.hc-card { padding: 12px 14px 12px; }
.hc-legend { margin: 0 0 4px; }
.hc { position: relative; height: 210px; margin-top: 4px; }
.hc-plot { position: absolute; left: 36px; right: 82px; top: 8px; bottom: 22px; touch-action: pan-y; cursor: crosshair; }
.hc-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hc-grid { stroke: var(--sep); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hc-line { fill: none; stroke: var(--zc); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.hc-y, .hc-end { position: absolute; top: calc(8px + var(--y) * (100% - 30px)); transform: translateY(-50%); font-size: 11px; color: var(--muted); line-height: 1; }
.hc-y { left: 0; width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.hc-end { right: 0; width: 76px; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11.5px; }
.hc-end i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--zc); }
.hc-end b { color: var(--text); font-weight: 700; }
.hc-dot, .hc-hdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 2px var(--card); pointer-events: none; }
.hc-dot { left: 100%; }
.hc-x { position: absolute; left: 36px; right: 82px; bottom: 0; height: 14px; }
.hc-x span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
/* "Posição na tabela": 1st on top; zone bands behind the step line */
.posc { height: 230px; }
.posc-band { position: absolute; left: 0; right: 0; background: var(--zc); opacity: 0.12; pointer-events: none; }
.posc-band.z-c-pre { background: repeating-linear-gradient(135deg, var(--z-liberta) 0 3px, transparent 3px 6px); opacity: 0.18; }
.posc-line { fill: none; stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.posc-dot { --zc: var(--text); }
.posc-end b { font-size: 13px; }
.hc-sum { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hc-cross { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--muted); opacity: 0.55; pointer-events: none; }
.hc-tip {
  position: absolute; top: -4px; z-index: 2; transform: translateY(-100%); padding: 6px 9px; border-radius: 8px;
  background: var(--card); border: 0.5px solid var(--sep); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  font-size: 12px; line-height: 1.45; white-space: nowrap; pointer-events: none;
}
.hc-tip b { font-weight: 700; }
.hc-tip i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--zc); }

/* ---------- motion for live updates: rows/cards slide (FLIP), numbers count, a goal pops ---------- */
.mo-flip { transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
tr.mo-flip { position: relative; z-index: 1; }
.tbl tr.mo-flip td { background: var(--card); }          /* rows crossing each other stay readable */
@keyframes mo-bump { from { background-color: var(--accent-soft); } to { background-color: transparent; } }
.mo-bump { animation: mo-bump 1.4s ease-out; }
.lvb.mo-bump, .lvb.mo-in { animation: mo-pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes mo-pop { 0% { transform: scale(0.6); } 45% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes mo-goal { 0% { transform: none; } 35% { transform: scale(1.5); color: var(--accent-text); } 100% { transform: none; } }
.mo-goal { display: inline-block; animation: mo-goal 0.8s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes mo-flash { from { background-color: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }
.mo-flash { animation: mo-flash 1.8s ease-out; }
@keyframes mo-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.lv-card.mo-in { animation: mo-in 0.4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .mo-flip { transition: none; }
  .mo-goal, .mo-in, .lv-card.mo-in, .lvb.mo-bump, .lvb.mo-in { animation: none; }
}

/* score sheet */
dialog.sheet {
  width: 100%; max-width: 680px; max-height: calc(100dvh - 24px); margin: auto auto 0; padding: 0; border: none;
  border-radius: 14px 14px 0 0; background: var(--bg); color: var(--text); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.42); }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 6px 8px; border-bottom: 0.5px solid var(--sep); background: var(--card); }
.sheet-head h2 { font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .plain { justify-self: start; }
.sheet-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.steppers { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stepper .s-team { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.stepper .s-row { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--fill); color: var(--accent-text); font-size: 24px; }
.stepper output { font-family: var(--font-num); font-size: 38px; font-weight: 700; min-width: 40px; text-align: center; }
.steppers .x { font-size: 22px; color: var(--faint); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions > * { flex: 1; }

/* share sheet: card preview, image / PDF, the short link */
.share-sheet .sheet-body { overflow-y: auto; }
.sh-team { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.sh-team select { flex: 1; min-width: 0; min-height: 40px; border: none; border-radius: 10px; background: var(--card); color: var(--text); font: 16px var(--font); padding: 0 10px; }
.sh-prev { position: relative; display: flex; align-items: center; justify-content: center; margin: 14px auto 0; width: min(100%, 300px); aspect-ratio: 1080 / 1350; border-radius: 12px; background: var(--fill); overflow: hidden; }
.sh-prev img { display: block; width: 100%; height: 100%; }
.sh-wait { font-size: 14px; color: var(--muted); padding: 0 16px; text-align: center; }
.share-sheet .sheet-actions { margin-top: 14px; }
.sh-link { margin-top: 20px; padding-top: 14px; border-top: 0.5px solid var(--sep); }
.sh-link h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.sh-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.35; }
.sh-link > button { width: 100%; }
.sh-made { display: flex; gap: 8px; }
.sh-made input { flex: 1; min-width: 0; min-height: 44px; border: none; border-radius: 12px; background: var(--card); color: var(--text); font: 15px var(--font); padding: 0 12px; }
.sh-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
.scn-expiry { font-size: 12.5px; color: var(--muted); margin: 6px 4px 0; }
.expired-note { margin: 0 0 12px; padding: 12px 14px; font-size: 15px; line-height: 1.4; border-left: 4px solid var(--accent); }

/* ---------- teams grid + team page ---------- */
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ttile { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 10px 12px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.ttile .crest { width: 32px; height: 32px; }
.ttile-main { min-width: 0; flex: 1; }
.ttile-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttile-sub { font-size: 12.5px; color: var(--muted); }
.team-head { display: flex; align-items: center; gap: 14px; margin: 0 4px 14px; }
.team-head h1 { font-size: clamp(23px, 6.6vw, 30px); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.team-head .sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.team-answer { font-size: 16px; margin: -4px 4px 14px; line-height: 1.45; }
.team-answer b { font-family: var(--font-num); }
.star { white-space: nowrap; flex-shrink: 0; margin-left: auto; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--fill); color: var(--accent-text); font-size: 14px; }
.star[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5px; background: var(--sep); border-radius: var(--radius); overflow: hidden; margin: 0 0 12px; }
.kpi { background: var(--card); padding: 12px 14px; min-width: 0; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.kpi-label i { width: 8px; height: 8px; border-radius: 2px; background: var(--zc); }
.kpi-value { font-family: var(--font-num); font-size: 26px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* position distribution (20 bars) */
.dist { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; align-items: end; height: 140px; padding-top: 18px; }
.dist .bar { position: relative; background: var(--fill-2); border-radius: 3px 3px 0 0; min-height: 1px; }
.dist .bar.z-titulo { background: var(--z-titulo); }
.dist .bar.z-liberta { background: var(--z-liberta); }
.dist .bar.z-pre { background: repeating-linear-gradient(135deg, var(--z-liberta) 0 3px, color-mix(in srgb, var(--z-liberta) 45%, transparent) 3px 5px); }
.dist .bar.z-sula { background: var(--z-sula); }
.dist .bar.z-z4 { background: var(--z-z4); }
.dist .bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 600; color: var(--muted); padding-bottom: 2px; white-space: nowrap; }
.dist-axis { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; margin-top: 4px; font-size: 10px; color: var(--muted); text-align: center; }
.dist-axis span:nth-child(even) { visibility: hidden; }

/* points-to-survive curve */
.pts-curve { position: relative; height: 160px; }
.pts-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-line { fill: none; stroke: var(--z-z4); stroke-width: 2; stroke-linejoin: round; }
.pc-line.t { stroke: var(--z-titulo); }
.pc-grid { stroke: var(--sep); stroke-width: 1; }
.pc-lab { font-size: 10px; fill: var(--muted); }
.pc-now { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.5; }
.target { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; margin-top: 8px; }
.target b { font-family: var(--font-num); font-size: 22px; }

/* ---------- games that matter most ---------- */
.imp-row { padding: 12px 16px; }
.imp-row + .imp-row { border-top: 0.5px solid var(--sep); }
.imp-game { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.imp-swing { font-size: 12px; color: var(--muted); white-space: nowrap; }
.imp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.imp-cell { background: var(--fill); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.imp-cell span { font-size: 11.5px; color: var(--muted); }
.imp-cell b { font-family: var(--font-num); font-size: 17px; }
.imp-cell.good { background: var(--accent-soft); }
.imp-cell.good b { color: var(--accent-text); }
.imp-cell.bad { background: var(--bad-soft); }
.imp-cell.bad b { color: var(--bad); }
.imp-empty { padding: 14px 16px; font-size: 14px; color: var(--muted); }
.fh-imp { grid-column: 1 / -1; font-size: 13px; color: rgba(255, 255, 255, 0.9); margin-top: 8px; }
.fh-fate { grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.95); color: #054a35; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.team-fate { display: inline-block; margin: 4px 0 2px; padding: 2px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--accent); }
.team-fate.fate-z4 { background: var(--z-z4); }
.team-fate-note, .fh-fate-note, .sm-foot { font-size: 12px; color: var(--muted); line-height: 1.35; margin: 2px 0 0; }
.fh-fate-note { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.85); }
.sm-foot { margin-top: 8px; }
.sm-team.prov .crest { opacity: 0.85; }
.team-fate.fate-titulo { background: var(--z-titulo); color: #1c1400; }
.team-fate.fate-liberta, .team-fate.fate-pre { background: var(--z-liberta); }
.team-fate.fate-sula { background: var(--z-sula); }
/* "Como fica a tabela" */
.summary { padding: 12px 14px; }
.sm-head { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.sm-head span { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.sm-line { display: flex; align-items: center; gap: 10px; padding: 7px 0 7px 10px; border-left: 4px solid var(--zc, var(--faint)); border-radius: 2px; }
.sm-line + .sm-line { margin-top: 6px; }
.sm-line.z-c-pre { border-left-style: dashed; }
.sm-lab { width: 104px; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sm-lab b { font-size: 14px; }
.sm-lab span { font-size: 12px; color: var(--muted); }
.sm-crests { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.sm-team { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 30px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; }
.sm-team .crest { width: 24px; height: 24px; }
.sm-team.fav .crest { border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
.sm-open { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 3px 14px; border-radius: 50%; border: 1.5px dashed var(--faint); color: var(--faint); font-size: 13px; font-weight: 700; }
.pick .pk-eff { font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.pick[aria-pressed="true"] .pk-eff { color: var(--accent-ink); opacity: 0.85; }

/* ---------- about: short lead + FAQ folds ---------- */
.about-lead p { font-size: 16px; line-height: 1.5; }
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 16px 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.faq details p b { color: var(--text); }
.faq details p + p { margin-top: -6px; }
.about-foot { margin-top: 12px; }
.about-contact { margin: 14px 4px 0; }
.prose { font-size: 16px; line-height: 1.55; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 10px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li + li { margin-top: 4px; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose h3:first-child { margin-top: 0; }

/* ---------- tab bar (iPhone) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  padding: 6px max(8px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom));
  background: var(--topbar-bg); border-top: 0.5px solid var(--sep);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 500; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.active { color: var(--accent-text); }
.tabbar a:active { opacity: 0.5; }
@media (min-width: 700px) and (max-width: 899px) {
  .tabbar { left: 50%; right: auto; width: 680px; transform: translateX(-50%); border-radius: 16px 16px 0 0; border-left: 0.5px solid var(--sep); border-right: 0.5px solid var(--sep); }
}

/* ---------- phone-only ---------- */
@media (max-width: 899px) {
  .pc-only { display: none !important; }
  .side { display: none; }
}
@media (max-width: 374px) {
  .tbl { font-size: 14px; }
  .tbl .ch { width: 44px; }
  .heat { min-width: 40px; font-size: 13px; }
}

/* =============================================================================
   Windows 11 shell (PC browser, >= 900px). Everything above is the iPhone layout.
   ============================================================================= */
@media (min-width: 900px) {
  :root {
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    --font-num: var(--font-display);
    --radius: 8px;
    --w-mica: rgba(247, 249, 248, 0.82); --w-rail: rgba(255, 255, 255, 0.3);
    --w-card: rgba(255, 255, 255, 0.78); --w-card-border: rgba(0, 0, 0, 0.07); --w-stroke: rgba(0, 0, 0, 0.09);
    --w-hover: rgba(0, 0, 0, 0.04); --w-select: rgba(11, 143, 91, 0.12);
    --w-bg-a: #cfe6da; --w-bg-b: #edf3f0;
    --sep: rgba(0, 0, 0, 0.08);
  }
  :root[data-theme="dark"] {
    --w-mica: rgba(30, 32, 31, 0.84); --w-rail: rgba(0, 0, 0, 0.18);
    --w-card: rgba(255, 255, 255, 0.05); --w-card-border: rgba(255, 255, 255, 0.08); --w-stroke: rgba(255, 255, 255, 0.09);
    --w-hover: rgba(255, 255, 255, 0.05); --w-select: rgba(52, 211, 153, 0.14);
    --w-bg-a: #0e2a20; --w-bg-b: #070c0a;
    --sep: rgba(255, 255, 255, 0.08);
  }
  * { scrollbar-width: thin; scrollbar-color: var(--w-stroke) transparent; }
  body {
    font-size: 14px; line-height: 1.43;
    background: radial-gradient(1300px 800px at 12% -10%, var(--w-bg-a), var(--w-bg-b) 62%) fixed, var(--bg);
    display: flex; justify-content: center; padding: 20px 24px; min-height: 100vh; overscroll-behavior-y: auto;
  }
  .phone-only { display: none !important; }
  .app-shell {
    display: flex; width: 100%; max-width: 1480px; height: calc(100vh - 40px); min-height: 560px;
    background: var(--w-mica); -webkit-backdrop-filter: blur(40px) saturate(150%); backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--w-stroke); border-radius: 12px; overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .tabbar, .large-title { display: none; }

  .nav-rail { display: flex; flex-direction: column; width: 232px; flex-shrink: 0; padding: 14px 10px 12px; background: var(--w-rail); border-right: 1px solid var(--w-stroke); }
  .rail-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
  .rail-brand img { border-radius: 7px; }
  .rail-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .rail-item, button.rail-item {
    position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 36px; min-height: 36px;
    margin: 0; padding: 0 12px; border: none; border-radius: 4px; background: transparent;
    color: var(--text); font: 400 14px/1 var(--font); text-align: left; text-decoration: none; cursor: pointer;
  }
  .rail-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .rail-item:hover { background: var(--w-hover); }
  .rail-item.active { background: var(--w-select); font-weight: 600; }
  .rail-item.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--accent); }
  .rail-item.active svg { color: var(--accent-text); }
  .rail-foot { border-top: 1px solid var(--w-stroke); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
  .rail-status { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; font-size: 12px; color: var(--muted); }
  .rail-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex-shrink: 0; }

  .content-col { flex: 1; min-width: 0; overflow-y: auto; }
  .topbar {
    position: sticky; top: 0; z-index: 5; padding: 0 28px; height: 56px;
    background: color-mix(in srgb, var(--w-mica) 92%, transparent); border-bottom: 1px solid var(--w-stroke);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  }
  body.scrolled .topbar { background: color-mix(in srgb, var(--w-mica) 92%, transparent); border-bottom-color: var(--w-stroke); }
  .topbar-row { display: flex; align-items: center; gap: 12px; height: 56px; max-width: none; }
  .bar-title { position: static; width: auto; height: auto; clip: auto; order: 1; flex: 1; text-align: left; font-family: var(--font-display); font-size: 20px; font-weight: 600; text-overflow: ellipsis; }
  .topbar .brand { display: none; }
  .nb-txt { display: inline; }
  .rail-brand .wm { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
  .bar-title small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; font-family: var(--font); }
  .topbar-actions { order: 2; gap: 6px; }
  .nav-left { order: 0; }
  .nav-back { min-height: 32px; padding: 0 8px 0 0; font-size: 14px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 4px; color: var(--text); }
  .icon-btn:hover { background: var(--w-hover); }
  .icon-btn svg { width: 18px; height: 18px; }
  main { max-width: 1300px; margin: 0; padding: 18px 28px 40px; }

  .section-header { margin: 22px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  main > .section-header:first-child, .side > .section-header:first-child { margin-top: 2px; }
  .section-header .section-sub { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; }
  .section-header .see-all { min-height: 24px; margin: -4px 0 -4px auto; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; }
  .note, .legend, .sim-note { font-size: 12px; }

  .card, .match, .ttile, .lv-card { background: var(--w-card); border: 1px solid var(--w-card-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); border-radius: 8px; }
  .card { padding: 16px 18px; }
  .card.flush, .tbl-card { padding: 0; }

  button, .btn { min-height: 32px; padding: 0 16px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 4px; font-size: 14px; }
  button:hover, .btn:hover { filter: brightness(1.06); }
  button:active, .btn:active { filter: brightness(0.92); opacity: 1; }
  button.secondary, .btn.secondary { background: var(--w-card); color: var(--text); border-color: var(--w-stroke); }
  button.plain { border-color: transparent; }
  .seg { border-radius: 6px; display: inline-flex; }
  .seg button { flex: 0 0 auto; min-height: 30px; font-size: 13px; padding: 0 14px; border-radius: 4px; border: none; }
  .chips { margin: 0 0 12px; padding: 0; flex-wrap: wrap; overflow: visible; }
  .chip { height: 30px; padding: 0 12px; border-radius: 4px; font-size: 13px; background: var(--w-card); border: 1px solid var(--w-stroke); }
  .chip:hover { background: var(--w-hover); }
  .chip.on { border-color: transparent; }

  /* tabela + side panel */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
  .split .tbl[data-view] .pc2 { display: none; }
  .tbl .c-team { min-width: 150px; max-width: none; width: auto; }
  .tbl th.c-pts { padding-left: 10px; }
  .pickfav { display: inline-flex; max-width: 520px; }
  .side { position: sticky; top: 74px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 2px; }
  .tbl { font-size: 13.5px; }
  .tbl th { padding: 10px 6px 8px; font-size: 11px; background: var(--w-hover); border-bottom: 1px solid var(--w-stroke); }
  .tbl td { height: 38px; padding: 0 6px; border-bottom: 1px solid var(--w-stroke); }
  .tbl .c-team a { min-height: 36px; }
  .tbl .crest { width: 22px; height: 22px; }
  .tbl[data-view] .cl, .tbl[data-view] .ch { display: table-cell; }
  .tbl .pc { display: table-cell; }
  .tbl .ch { width: 62px; }
  .heat { min-width: 52px; padding: 4px 0; border-radius: 4px; font-size: 13px; }
  .tbl tbody tr:hover td { background: var(--w-hover); }
  .tbl tbody tr.fav td { background: var(--w-select); }
  .tbl th.cl-sep, .tbl td.cl-sep { border-left: 1px solid var(--w-stroke); }
  .scn { top: 64px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); background: var(--w-mica); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
  .scn button { min-height: 30px; font-size: 13px; }
  .fav-hero { border-radius: 8px; grid-template-columns: auto 1fr auto; }
  .fav-hero .crest-lg { grid-row: span 2; width: 56px; height: 56px; }
  .fh-stats { grid-column: 3; grid-row: 1 / span 2; margin: 0; grid-template-columns: repeat(4, 92px); }
  .fh-imp { grid-column: 1 / -1; }
  .imp-row { padding: 10px 18px; }
  .imp-game { font-size: 14px; }
  .imp-cell { border-radius: 4px; }
  .imp-cell b { font-size: 15px; }

  /* home strip: a grid, no scrolling */
  .lv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; overflow: visible; margin: 0 0 4px; padding: 0; }
  .lv-card { padding: 9px 12px 10px; }
  /* games later today and finished ones: one compact line, two per row, below the live cards
     (a full Sunday must not push the table below the fold) */
  .lv-card.st-scheduled, .lv-card.st-final {
    grid-column: span 2; display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 14px; align-items: center; align-self: start; padding: 6px 12px;
  }
  .lv-card:not(.st-scheduled):not(.st-final) + .lv-card.st-scheduled,
  .lv-card:not(.st-scheduled):not(.st-final) + .lv-card.st-final { grid-column: 1 / span 2; }
  .lv-card.st-scheduled .lv-head, .lv-card.st-final .lv-head { margin: 0; }
  .lv-card.st-scheduled .lv-meta, .lv-card.st-final .lv-meta, .lv-card.st-scheduled .lv-rule, .lv-card.st-final .lv-rule { display: none; }
  .lv-card.st-final .lv-imp { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 22px; margin-top: 4px; padding-top: 5px; }
  .lv-card.st-final .lv-imp .dlt { margin-left: 2px; }
  .lv-team { font-size: 14px; min-height: 28px; }
  .lv-sc { font-size: 18px; }
  .lvb { border-radius: 4px; }
  .rd-list { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .rd-link { border-radius: 8px; background: var(--w-card); border: 1px solid var(--w-card-border); min-height: 38px; font-size: 14px; }
  .rd-badge { border-radius: 4px; }
  .side .movers { margin: 0 0 14px; }
  /* the 360px panel: tighter score column and gaps so "Internacional" / "Chapecoense" fit whole */
  .side .m-row { gap: 6px; }
  .side .m-team { gap: 6px; font-size: 13.5px; }
  .side .m-score { min-width: 42px; font-size: 18px; }
  .hero-game { max-width: 760px; }
  .hero-game .match { padding: 12px 16px 14px; }
  .hero-game[data-kind="live"] .match { border-color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
  .hx-chip { border-radius: 4px; }

  /* match cards */
  .matches.grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
  .match { padding: 10px 14px 12px; }
  .m-team { font-size: 14px; }
  .m-picks { grid-template-columns: 1fr 1fr 1fr 36px; gap: 4px; }
  .pick, .pick-score { min-height: 40px; border-radius: 4px; border: 1px solid transparent; }
  .pick:hover, .pick-score:hover { background: var(--fill-2); filter: none; }
  .pick[aria-pressed="true"]:hover { background: var(--accent); }

  dialog.sheet { max-width: 460px; margin: auto; border-radius: 8px; border: 1px solid var(--w-stroke); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); background: var(--w-mica); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
  :root[data-theme="dark"] dialog.sheet { background: #202221; }
  .sheet-head { display: flex; justify-content: space-between; min-height: 52px; padding: 0 12px 0 20px; background: transparent; border-bottom: 1px solid var(--w-stroke); }
  .sheet-head h2 { order: 0; font-family: var(--font-display); font-size: 18px; text-align: left; }
  .sheet-head .plain { order: 1; }
  .sheet-head > span { display: none; }
  .share-sheet { max-width: 520px; }
  .summary { border-radius: 8px; }
  .sm-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 6px 24px; }
  .sm-line + .sm-line { margin-top: 0; }
  .sm-lab { width: 150px; }
  .sm-team { width: 40px; font-size: 11px; }
  .sm-team .crest { width: 28px; height: 28px; }
  .sh-team select, .sh-made input { border-radius: 4px; border: 1px solid var(--w-stroke); }
  .stepper button { width: 36px; height: 36px; border-radius: 4px; font-size: 20px; }

  .tgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .ttile:hover { background: var(--w-hover); }
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; background: none; border-radius: 0; overflow: visible; }
  .kpi { background: var(--w-card); border: 1px solid var(--w-card-border); border-radius: 8px; }
  .kpi-value { font-weight: 600; }
  .team-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .dist { height: 170px; }
  .dist-axis span:nth-child(even) { visibility: visible; }
  .prose { font-size: 14px; max-width: 760px; }
  .about-lead, .faq, .about-foot { max-width: 760px; }
  .about-lead p { font-size: 14.5px; }
  .faq summary { min-height: 44px; font-size: 14px; padding: 0 18px; }
  .faq summary:hover { background: var(--w-hover); }
  .faq details p { font-size: 13.5px; padding: 0 18px 12px; }
  .faq details + details::before { left: 18px; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
  .tbl .pc2 { display: none; }
}
