/* Sofabet PWA — adapted Kinetic Brutalism skin (design-system/sofabet).
   Acid #DFE104 on rich black #09090B, 2px borders, 4px radius, flat color
   (no glow), uppercase display type (Space Grotesk), Fira Code for numbers,
   Fira Sans for body text. Self-hosted fonts; zero external requests. */

@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fira-sans-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fira-sans-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-code-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-code-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fira-code-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fira-code-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-code-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-code-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-code-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-code-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --page: #0b0817;
  --card: #17122a;
  --card-2: #1f1936;
  --line: #2c2450;
  --text: #e5eaf5;
  --muted: #9a9aa5;
  --acid: #dfe104;
  --ink: #09090b;
  --lime: #76ff03; /* bookmaker odds pill (reference: multi betting tips) */
  --tipblue: #1e88e5; /* prediction/tip pill */
  --blue: #3b82f6;
  --amber: #d97706;
  --accent: #22c55e;
  --red: #f87171;
  --slate: #64748b;
  --radius: 4px;
  --font-ui: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Fira Code', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --font-display: 'Space Grotesk', var(--font-ui);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- chrome ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms ease;
}
.brand:hover { color: var(--acid); }
.topnav { display: none; gap: 4px; flex: 1; }
.topnav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 200ms ease;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--ink); background: var(--acid); }
#installBtn { margin-left: auto; }

.container { max-width: 780px; margin: 0 auto; padding: 14px 14px 92px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 200ms ease;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--ink); background: var(--acid); }

@media (min-width: 900px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  .container { padding-bottom: 24px; }
}

/* ---------- cards & basics ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.card.acca-hero { border-color: var(--acid); }
.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--acid);
  margin-top: 4px;
}
h2.screen-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 6px 0 12px;
}

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { color: var(--muted); font-size: 13px; }
.positive { color: var(--accent); }
.negative { color: var(--red); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.error {
  background: rgba(220, 38, 38, 0.12);
  border: 2px solid rgba(220, 38, 38, 0.5);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 6px 13px;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
}
.chip:hover { border-color: var(--acid); color: var(--text); }
.chip.active { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.chip.static { cursor: default; color: var(--text); font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.btn {
  background: var(--card-2);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}
.btn:hover:not(:disabled) { border-color: var(--acid); }
.btn-small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-cta { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }

.chip:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .icon-btn:focus-visible, .match-row:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}
.chip:active, .btn:active, .tabbar a:active, .topnav a:active { transform: scale(0.96); }

/* ---------- value ticker (kinetic marquee) ---------- */

.ticker {
  overflow: hidden;
  background: var(--card);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  margin: -4px -14px 12px;
  padding: 8px 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 30s linear infinite;
}
.ticker:hover .ticker-track, .ticker:active .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tk-team { font-family: var(--font-display); font-weight: 700; }
.tk-ev { color: var(--acid); font-family: var(--font-num); font-weight: 600; }
.tk-sep { color: var(--muted); }

/* ---------- fixtures ---------- */

.date-header {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 2px 8px;
}
.tz-note { color: var(--muted); font-size: 11px; }

.fx-head { display: flex; justify-content: space-between; gap: 10px; }
.fx-teams { display: grid; gap: 8px; min-width: 0; }
.fx-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-name {
  font-family: var(--font-display);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 200ms ease;
}
.fx-name:hover { color: var(--blue); }
.fx-kick { text-align: right; flex-shrink: 0; }
.fx-kick time { font-family: var(--font-num); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #f4f7fd;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.crest.small { width: 26px; height: 26px; font-size: 10px; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.badge-newcomer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.14);
  border: 2px solid rgba(217, 119, 6, 0.5);
  color: var(--amber);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
}

.seg-bar {
  display: flex;
  height: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0 6px;
  background: var(--card-2);
}
.seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 0;
  transition: width 0.25s ease;
}
.seg-home { background: var(--accent); }
.seg-draw { background: var(--slate); color: #e5eaf5; }
.seg-away { background: var(--blue); }
.seg-legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.seg-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }

/* ---------- value / acca ---------- */

.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stat3 .cell {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  text-align: center;
}
.stat3 .value { font-family: var(--font-num); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat3 .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

.ev-pill {
  background: var(--acid);
  border: 2px solid var(--acid);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- hero cards (ACCA + rollover: designed to dominate the home feed) ---------- */

.card.acca-hero {
  border: 2px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  padding: 18px;
  margin: 14px 0 18px;
}
.acca-hero .section-title { color: var(--ink); font-size: 14px; }
.acca-hero .section-title::after { background: var(--ink); }
.acca-hero .chip.static { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.acca-hero .name,
.acca-hero .mr-team .name { color: var(--ink); }
.acca-hero .num { color: var(--ink) !important; } /* amber odds -> ink on acid */
.acca-hero .muted,
.acca-hero .small.muted,
.acca-hero .note { color: rgba(9, 9, 11, 0.72); }
.acca-hero .mr-kick,
.acca-hero .mr-kick time { color: rgba(9, 9, 11, 0.72); }
/* the strip inverts inside the acid card */
.acca-hero .acca-strip { background: var(--ink); color: var(--acid); }
.acca-hero .acca-strip .strip-label { color: var(--acid); opacity: 0.7; }
.acca-hero .acca-strip .strip-odds { color: var(--acid); }
.acca-hero .acca-strip .strip-chance { color: var(--text); }
.acca-hero .acca-strip .ev-pill { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.acca-hero .acca-strip .icon-btn { border-color: var(--acid); color: var(--acid); background: transparent; }
.acca-hero .acca-strip .icon-btn:hover { background: var(--acid); color: var(--ink); }

.card.rollover-hero {
  border: 2px solid var(--acid);
  border-top-width: 8px; /* thick acid rail */
  margin: 0 0 22px;
}
.rollover-hero .section-title { color: var(--acid); }
.rollover-hero .section-title::after { background: var(--acid); }

.acca-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--acid);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 12px;
}
.acca-strip .strip-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acca-strip .strip-odds { font-family: var(--font-num); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acca-strip .strip-chance { font-family: var(--font-num); font-size: 13px; font-variant-numeric: tabular-nums; }
.acca-strip .ev-pill { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.acca-strip .icon-btn { border-color: var(--ink); color: var(--ink); background: transparent; }
.acca-strip .icon-btn:hover { background: var(--ink); color: var(--acid); }

/* ---------- tables & forms ---------- */

table.market { width: 100%; border-collapse: collapse; font-size: 13px; }
table.market th, table.market td { padding: 6px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
table.market th:first-child, table.market td:first-child { text-align: left; font-family: var(--font-ui); font-variant-numeric: normal; }
table.market th { color: var(--muted); font-weight: 500; }
table.market tr:last-child td { border-bottom: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
input, select {
  background: var(--card-2);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 200ms ease;
}
input[type="number"] { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
select { cursor: pointer; }
input:focus, select:focus { outline: 2px solid var(--acid); outline-offset: 1px; border-color: var(--acid); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.stat .value { font-family: var(--font-num); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 12px; }

.bet-actions { display: flex; gap: 6px; }
.bet-actions .btn-small { min-height: 38px; padding: 8px 14px; }

.svg-chart { width: 100%; height: auto; display: block; }

/* ---------- probability cells (BetMines-style, semantic ramp) ---------- */

.pcell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f4f7fd;
  white-space: nowrap;
}
.pcell svg { width: 11px; height: 11px; flex-shrink: 0; }
.pcell.dark-text { color: #1c1917; }
.pcell.tip-star { background: var(--acid) !important; color: var(--ink); }

/* ---------- dense match list ---------- */

.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 6px;
  min-height: 64px;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, border-color 200ms ease;
}
.match-row:hover { border-color: var(--acid); }
.match-row:active { background: var(--acid); color: var(--ink); }
.match-row:active .name,
.match-row:active .small,
.match-row:active .muted,
.match-row:active .time,
.match-row:active .day { color: var(--ink); }

.mr-kick { width: 54px; flex-shrink: 0; text-align: center; }
.mr-kick .time { display: block; font-family: var(--font-num); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.mr-kick .day { display: block; font-size: 11px; color: var(--muted); }

.mr-teams { flex: 1; min-width: 0; display: grid; gap: 5px; }
.mr-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mr-team .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-cells { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex-shrink: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 200ms ease;
}
.icon-btn:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 16px; height: 16px; }

@media (max-width: 620px) {
  .match-row { flex-wrap: wrap; }
  .mr-teams { flex-basis: calc(100% - 66px); }
  .mr-cells { flex-basis: 100%; justify-content: flex-start; margin-top: 4px; padding-left: 66px; }
}

/* ---------- form dots ---------- */

.form-dots { display: inline-flex; gap: 4px; align-items: center; }
.fdot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}
.fdot.W { background: var(--accent); }
.fdot.D { background: var(--slate); color: #e5eaf5; }
.fdot.L { background: var(--red); }

/* ---------- cell grids (match detail) ---------- */

.cell-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.cg-item { display: flex; flex-direction: column; gap: 3px; }
.cg-label { font-size: 11px; color: var(--muted); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .ticker-track { animation: none !important; }
  .ticker { overflow-x: auto; }
}

/* ---------- reference-inspired: lime odds pill + blue tip pill + graded anatomy ---------- */

.odd-pill {
  display: inline-flex;
  align-items: center;
  background: var(--lime);
  color: #0b0817;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
}
.odd-pill sup { font-size: 9px; margin-left: 1px; }

.tip-pill {
  display: inline-flex;
  align-items: center;
  background: var(--tipblue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* inside the acid ACCA hero: pills flip to ink so they stay readable on yellow */
.acca-hero .odd-pill { background: var(--ink); color: var(--lime); }
.acca-hero .tip-pill { background: var(--ink); }

/* graded track-record rows: "3 ✓ 1" score anatomy from the reference apps */
.grade-score { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.grade-goals {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.grade-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.grade-circle svg { width: 12px; height: 12px; }
.grade-circle.hit { background: #2e7d32; }
.grade-circle.miss { background: #c62828; }
