:root {
  color-scheme: dark;
  --bg:#111613;
  --header:#151b17;
  --card:#1c241e;
  --surface:#182019;
  --surface-light:#242f26;
  --line:#2c372e;
  --text:#f2f5ee;
  --muted:#a2aea3;
  --soft:#79887b;
  --lime:#d2fc51;
  --lime-dark:#233006;
  --danger:#ff9299;
  --radius:16px;
  font-family:system-ui,Arial,sans-serif;
  font-weight:600;
  background:var(--bg);
  color:var(--text);
}
* { box-sizing:border-box; }
body { margin:0; min-width:300px; }
button, input, select { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; border:0; background:none; }
button:disabled { cursor:default; opacity:.55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline:2px solid var(--lime); outline-offset:3px; }
a { color:inherit; text-decoration:none; }
svg { width:20px; height:20px; flex:none; stroke:currentColor; fill:none; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { letter-spacing:-.035em; }
.muted, .sub { color:var(--muted); }
.sub { font-size:14px; line-height:1.6; }
.topbar { position:sticky; top:0; z-index:4; background:var(--header); border-bottom:1px solid #232c25; }
.top-inner { max-width:1536px; min-height:72px; margin:auto; padding:0 34px; display:grid; grid-template-columns:214px 1fr auto; align-items:center; gap:24px; }
.brand { display:inline-flex; width:max-content; align-items:center; gap:10px; font-size:18px; font-weight:800; letter-spacing:-.045em; white-space:nowrap; }
.brand b { color:var(--lime); }
.brand-icon { width:38px; height:38px; border:1px solid #40533a; border-radius:11px; flex:none; }
.data-credit { margin:0 auto 24px; max-width:1440px; padding:0 16px; color:var(--muted); text-align:center; font-size:12px; }
.data-credit a:hover { color:var(--lime); }
.top-nav, .top-actions { display:flex; align-items:center; gap:10px; }
.top-nav button { position:relative; display:flex; align-items:center; gap:8px; padding:0 14px; min-height:72px; color:var(--muted); white-space:nowrap; font-size:14px; }
.top-nav button.active { color:var(--lime); }
.top-nav button.active::after { content:""; position:absolute; bottom:-1px; left:13px; right:13px; height:2px; background:var(--lime); border-radius:4px 4px 0 0; }
.top-nav button:hover, .side-item:hover, .icon-btn:hover { color:var(--lime); }
.wallet { display:flex; align-items:center; gap:8px; background:#2c3821; color:var(--lime); border:1px solid #3a4a2b; border-radius:11px; padding:9px 12px; min-height:40px; font-size:14px; font-weight:800; white-space:nowrap; }
.wallet svg { width:17px; height:17px; }
.icon-btn { display:grid; place-items:center; background:var(--surface-light); color:var(--muted); border-radius:10px; width:40px; height:40px; flex:none; }
.layout { max-width:1536px; margin:0 auto; display:grid; grid-template-columns:198px minmax(0,1fr) 306px; gap:24px; padding:27px 34px 36px; align-items:start; }
.left, .right { position:sticky; top:99px; }
.left { display:grid; gap:22px; }
.sidebar-card { background:var(--surface); border:1px solid #27332a; border-radius:15px; padding:13px 10px 10px; min-width:0; }
.side-title { font-size:12px; color:var(--soft); display:block; padding:4px 9px 11px; text-transform:uppercase; font-weight:800; letter-spacing:.09em; }
.side-item { width:100%; display:flex; align-items:center; gap:9px; min-height:42px; padding:8px 9px; border-radius:9px; text-align:left; font-size:13px; color:#c0c9bf; min-width:0; }
.side-item svg { width:17px; height:17px; }
.side-item span:first-child:not(.side-label) { display:grid; place-items:center; width:18px; flex:none; }
.side-item .side-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.side-item.active { background:#293421; color:var(--lime); font-weight:800; }
.side-num { font-size:12px;color:#a8b5a4; }
.side-note { display:grid; gap:6px; border:1px dashed #3b493b; border-radius:13px; padding:13px; }
.side-note svg { color:var(--lime); }
.side-note strong { font-size:14px; }
.side-note p { color:var(--soft); font-size:12px; line-height:1.6; }
.middle { min-width:0; }
.hero { position:relative; overflow:hidden; isolation:isolate; min-height:243px; display:flex; align-items:center; background:#263e22; border:1px solid #435737; border-radius:20px; }
.hero::before { position:absolute; inset:0; content:""; background-image:linear-gradient(90deg,#182a1b 3%,#1d341dd9 38%,#20391955 68%,#203a206a),linear-gradient(0deg,#18271caa,transparent 68%),url('/stadium.jpg'); background-size:cover; background-position:50% 56%; z-index:-2; }
.hero::after { content:""; position:absolute; width:240px; height:240px; right:-38px; bottom:-119px; border:1px solid #d2fc5166; border-radius:50%; box-shadow:0 0 0 22px #d2fc5111,0 0 0 45px #d2fc5113,0 0 0 72px #d2fc510a; z-index:-1; }
.hero-copy { position:relative; padding:24px 28px 26px; }
.hero-tag { display:inline-flex; gap:8px; align-items:center; color:#d2fc79; font-weight:800; font-size:11px; letter-spacing:.105em; text-transform:uppercase; margin-bottom:11px; }
.hero-tag svg { width:15px;height:15px; }
.hero h1 { font-size:clamp(35px,4.05vw,63px); line-height:.99; font-weight:800; letter-spacing:-.07em; }
.hero h1 em { color:var(--lime); font-style:normal; }
.hero p { margin-top:12px; color:#d6dfcb; line-height:1.5; font-size:14px; }
.hero-action { margin-top:15px; padding:8px 12px; min-height:36px; font-size:13px; }
.primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--lime); color:#1b250e; border-radius:10px; font-weight:800; padding:11px 15px; min-height:42px; }
.primary:hover { background:#e3ff92; }
.secondary { display:inline-flex; align-items:center; justify-content:center; min-height:41px; padding:9px 13px; gap:7px; border:1px solid #3b4b3e; background:#263128; color:var(--text); border-radius:10px; font-size:14px; }
.secondary:hover { border-color:var(--lime); }
.main-hd { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:25px 0 13px; }
.main-hd h2 { font-size:25px; font-weight:800; }
.main-hd .secondary { padding:6px 10px; min-height:33px; font-size:12px; }
.main-hd .secondary svg { width:15px; height:15px; }
.tabs { display:flex; gap:7px; overflow:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tab { display:inline-flex; align-items:center; min-height:38px; padding:7px 13px; border-radius:9px; background:var(--surface); border:1px solid var(--line); color:var(--muted); white-space:nowrap; font-size:13px; font-weight:800; }
.tab:hover { color:var(--text); }
.tab.active { color:var(--lime); background:#2b361d; border-color:#465632; }
.tab .dot { background:#fd8c85; width:6px; height:6px; border-radius:100%; margin-right:7px; }
.fixtures { margin-top:16px; display:grid; gap:13px; }
.fixture-group { border:1px solid var(--line); overflow:hidden; border-radius:var(--radius); background:var(--card); }
.fixture-head { display:flex; justify-content:space-between; min-height:43px; align-items:center; gap:10px; background:#253027; padding:8px 14px; }
.fixture-league { display:flex; gap:8px; align-items:center; font-size:13px; font-weight:800; min-width:0; }
.fixture-league b { color:var(--muted); font-weight:600; }
.fixture-league span:first-child { line-height:1; }
.odd-head, .odd-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; width:min(41%,238px); flex:none; }
.odd-head { text-align:center; font-size:11px; color:var(--muted); font-weight:800; }
.fixture { min-height:88px; display:flex; align-items:center; gap:13px; padding:10px 14px; }
.fixture + .fixture { border-top:1px solid #29342b; }
.fixture-info { display:grid; gap:6px; flex:1; min-width:0; padding:0; text-align:left; }
.fixture-info:hover .team-name { color:var(--lime); }
.team { display:flex; align-items:center; gap:7px; min-width:0; }
.league-logo,.team-logo { display:block; object-fit:contain; flex:none; border-radius:6px; }
.league-logo { width:24px; height:24px; }
.team-logo { width:21px; height:21px; }
.league-logo[data-badge-fallback],.team-logo[data-badge-fallback] { padding:2px; background:#cbd6cc; }
.league-identity { display:inline-flex; align-items:center; gap:7px; }
.side-item .league-logo { width:19px; height:19px; }
.team-name { font-size:13px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fixture-meta { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }
.fixture-meta.live { color:#ff9e98; }
.fixture-score { grid-column:1/-1; justify-self:center; color:var(--text); font-size:17px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.fixture-score.live { color:var(--lime); }
.score-head { grid-column:1/-1; text-align:center; }
.odd-btn { min-height:42px; background:#2b362c; border:1px solid #354236; border-radius:8px; color:#e8f0e7; padding:5px 3px; font-size:13px; font-weight:800; text-align:center; font-variant-numeric:tabular-nums; }
.odd-btn:hover { border-color:#7a8a53; }
.odd-btn.selected { background:var(--lime); color:var(--lime-dark); border-color:var(--lime); }
.odd-btn.blank { min-height:auto; border:0; color:var(--muted); background:none; opacity:1; }
.expand { width:auto; height:31px; padding:0 6px; display:flex; align-items:center; gap:3px; border-radius:7px; color:var(--muted); font-size:11px; font-weight:800; flex:none; }
.expand:hover { color:var(--lime); background:#2c392d; }
.expand svg { width:14px; height:14px; }
.empty { display:grid; justify-items:center; gap:10px; padding:33px 15px; text-align:center; color:var(--muted); }
.empty strong { color:var(--text); font-size:15px; }
.empty p { max-width:34ch; font-size:13px; line-height:1.6; }
.empty-icon { display:grid; place-items:center; color:#a9b5a3; width:49px; height:49px; border-radius:15px; background:#29342b; }
.empty-icon svg { width:24px; height:24px; }
.slip-shell { background:var(--card); border:1px solid #303c31; border-radius:var(--radius); overflow:hidden; }
.slip-head { display:flex; align-items:center; gap:9px; padding:15px; background:#253127; border-bottom:1px solid #344035; }
.slip-head svg { color:var(--lime); }
.slip-head h2 { font-size:17px; margin-right:auto; }
.badge { border-radius:7px; padding:3px 7px; font-size:12px; font-weight:800; background:#39482d; color:var(--lime); }
.slip-body { padding:13px; }
.slip-foot { margin-top:13px; background:#263023; border:1px solid #354233; padding:10px 12px; border-radius:10px; }
.slip-foot .note-line { display:flex; gap:7px; align-items:center; color:#c4d1ba; font-size:12px; }
.note-line svg { width:15px; height:15px; color:var(--lime); }
.wallet-row { display:flex; justify-content:space-between; align-items:center; gap:8px; border-top:1px solid #38443a; padding-top:8px; margin-top:8px; color:#a9b7a7; font-size:12px; }
.wallet-row strong { color:var(--lime); }
.slip-empty { padding:26px 6px 24px; }
.slip-empty .empty-icon { color:var(--lime); border:1px solid #45543a; background:#303d28; }
.slip-empty .empty-icon svg { width:25px; height:25px; }
.slip-picks { display:grid; gap:7px; margin:10px 0; max-height:31vh; overflow:auto; }
.pick { display:grid; grid-template-columns:1fr 25px; gap:4px 6px; padding:9px 9px 7px; border-radius:9px; background:var(--surface); border:1px solid var(--line); }
.pick b { font-size:12px; }
.pick span { font-size:12px; color:var(--muted); }
.pick strong { font-size:13px; color:var(--lime); text-align:right; }
.pick button { display:grid; place-items:center; color:var(--muted); }
.pick button svg { width:15px; height:15px; }
.field { display:grid; gap:6px; text-align:left; font-size:13px; font-weight:800; color:#ccd5c9; }
input,select { width:100%; min-width:0; border:1px solid #3c4b3e; background:#151d17; color:var(--text); border-radius:9px; padding:10px 11px; font-size:16px; }
select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#acbbab 50%),linear-gradient(135deg,#acbbab 50%,transparent 50%); background-size:5px 5px; background-position:calc(100% - 16px) center,calc(100% - 11px) center; background-repeat:no-repeat; padding-right:27px; }
.stake-quick { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:7px; }
.stake-quick button { min-height:32px; border:1px solid #37463a; border-radius:7px; background:#2a372b; color:#c0cdbd; font-size:12px; }
.stake-quick button:hover { color:var(--lime); }
.projected { margin:10px 0; gap:5px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:12px; }
.projected b { font-size:14px; color:var(--lime); }
.full { width:100%; }
.slip-error { color:var(--danger); font-size:12px; margin:7px 0; }
.slip-close { display:none; }
.section-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.section-title { margin-bottom:14px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:9px; }
.section-title h1 { font-size:30px; }
.panel-stack { display:grid; gap:13px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.league-tile { display:flex; align-items:center; gap:12px; text-align:left; width:100%; margin-top:8px; padding:10px 12px; border-radius:11px; background:var(--surface); border:1px solid var(--line); }
.league-tile.active { border-color:#647746; }
.league-tile > div { flex:1; min-width:0; display:grid; gap:4px; }
.league-tile small { color:var(--muted); font-size:12px; }
.league-tile svg { color:var(--lime); }
.league-title { font-size:20px; margin-bottom:6px; }
.invite-box { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:12px; padding:10px 13px; border:1px dashed #536747; border-radius:10px; }
.invite-box code { color:var(--lime); letter-spacing:.1em; }
table { border-collapse:collapse; width:100%; font-size:13px; margin-top:8px; }
th,td { padding:10px 5px; border-bottom:1px solid #303c32; text-align:left; }
th { color:var(--muted); font-size:12px; }
td:last-child,th:last-child { text-align:right; }
tr.mine td { color:var(--lime); }
.wager-card { display:grid; gap:9px; }
.wager-header { display:flex; gap:8px; justify-content:space-between; align-items:center; font-size:14px; }
.wager-header time, .wager-leg span { color:var(--muted); font-size:12px; }
.wager-leg { display:grid; gap:3px; border-top:1px solid var(--line); padding-top:8px; font-size:13px; }
.wager-money { display:flex; gap:10px; justify-content:space-between; font-size:13px; color:var(--muted); }
.wager-money b { color:var(--text); }
.won { color:var(--lime); }
.lost { color:var(--danger); }
details { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:10px; }
details p { margin-top:7px; }
dialog { width:min(570px,calc(100% - 26px)); max-height:calc(100dvh - 38px); border:1px solid #445446; border-radius:17px; padding:0; color:var(--text); background:var(--card); overscroll-behavior:contain; }
dialog::backdrop { background:#081009bb; backdrop-filter:blur(3px); }
.dialog-head { position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 16px; background:#263227; border-bottom:1px solid #3b4b3d; }
.dialog-head h2 { font-size:19px; }
.dialog-body { padding:15px; }
.dialog-body form { display:grid; gap:13px; }
.dialog-body > .tabs { margin:9px 0 14px; }
.dialog-body .empty { padding:20px 9px; }
.dialog-match .team { margin:5px 0; }
.market { margin-bottom:12px; }
.market h3 { font-size:14px; margin:0 0 7px; }
.market-grid { display:grid; gap:5px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.market-grid .odd-btn { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:7px; text-align:left; }
.market-grid .odd-btn span { color:#b4c1b2; font-size:11px; }
.market-grid .odd-btn.selected span { color:#354317; }
.bottom-nav { display:none; }
.toast { position:fixed; right:18px; bottom:18px; z-index:12; max-width:min(90vw,430px); padding:12px 15px; border:1px solid #596e48; border-radius:11px; color:#eff8df; background:#283a27; font-size:14px; box-shadow:0 8px 24px #0006; display:none; }
.toast.show { display:block; }
@media (max-width:1150px) {
  .top-inner { grid-template-columns:175px 1fr auto; gap:13px; padding:0 20px; }
  .layout { grid-template-columns:165px minmax(0,1fr) 265px; gap:14px; padding:20px; }
  .left,.right { top:92px; }
  .fixture { gap:7px; padding-inline:10px; }
}
@media (max-width:920px) {
  .top-inner { grid-template-columns:180px 1fr auto; }
  .layout { grid-template-columns:minmax(0,1fr) 250px; }
  .left { display:none; }
}
@media (max-width:690px) {
  .top-inner { display:flex; justify-content:space-between; min-height:61px; padding:0 15px; }
  .top-nav { display:none; }
  .brand { font-size:16px; gap:7px; }
  .brand-icon { width:34px; height:34px; border-radius:9px; }
  .top-actions { gap:6px; }
  .wallet { min-height:34px; padding:6px 8px; font-size:13px; }
  .profile-btn { width:34px;height:34px; }
  .layout { display:block; padding:12px 12px calc(78px + env(safe-area-inset-bottom)); }
  .right { display:none; }
  .right.mobile-open { display:block; position:fixed; top:auto; bottom:calc(62px + env(safe-area-inset-bottom)); left:7px; right:7px; z-index:7; box-shadow:0 -12px 55px #000a; }
  .slip-close { display:grid; margin-left:2px; width:34px; height:34px; }
  .slip-head { padding:10px 13px; }
  .slip-body { max-height:calc(100dvh - 165px); overflow:auto; }
  .hero { min-height:184px; border-radius:15px; }
  .hero-copy { padding:17px; }
  .hero h1 { font-size:clamp(32px,9vw,50px); }
  .hero p { font-size:12px; margin-top:8px; max-width:29ch; }
  .hero-tag { font-size:10px; margin-bottom:8px; }
  .hero-action { margin-top:11px; min-height:32px; padding:6px 9px; font-size:12px; }
  .main-hd { margin-top:17px; }
  .main-hd h2 { font-size:22px; }
  .fixture { min-height:85px; gap:5px; padding-inline:8px; }
  .fixture-head { padding-inline:9px; }
  .fixture-league { font-size:12px; gap:5px; }
  .team-name { font-size:12px; }
  .team-logo { width:18px; height:18px; }
  .data-credit { margin-bottom:90px; }
  .odd-grid,.odd-head { width:42%; gap:4px; }
  .odd-btn { min-height:40px; font-size:12px; }
  .expand { padding-inline:1px; gap:1px; }
  .expand span { display:none; }
  .bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:8; display:grid; grid-template-columns:repeat(4,1fr); padding:5px 7px calc(4px + env(safe-area-inset-bottom)); background:#1c251e; border-top:1px solid #334135; min-height:62px; }
  .bottom-nav button { position:relative; min-height:50px; display:grid; align-content:center; justify-items:center; gap:4px; border-radius:9px; font-size:11px; color:#a9b6a8; font-weight:800; }
  .bottom-nav button svg { width:19px; height:19px; }
  .bottom-nav button.active { color:var(--lime); background:#2c3725; }
  .bottom-nav button i { position:absolute; top:1px; left:calc(50% + 8px); color:#1e280d; background:var(--lime); border-radius:9px; padding:0 4px; font-size:10px; font-style:normal; }
  .toast { bottom:calc(71px + env(safe-area-inset-bottom)); right:10px; }
}
@media (max-width:365px) {
  .fixture-league b { display:none; }
  .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .section-card { padding:12px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; } }

.fixture-head { justify-content:initial; }
.fixture-league { flex:1; }
.header-spacer { visibility:hidden; }
:focus-visible { scroll-margin-top:80px; }

.top-space { margin-top:13px; }
.feed-note { margin:0 1px; font-size:13px; }
.legal-text { display:grid; gap:12px; color:var(--muted); font-size:15px; line-height:1.6; }
.legal-text a { justify-self:start; }
.section-card form[data-form="delete"] { display:grid; gap:12px; }
.admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:13px 0; }
.admin-grid div { min-width:0; padding:10px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.admin-grid dt { color:var(--muted); font-size:13px; }
.admin-grid dd { color:var(--lime); font-size:20px; margin:4px 0 0; font-weight:800; }
.admin-item { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:9px 0; margin-top:7px; }
.admin-item b { overflow-wrap:anywhere; }
@media (max-width:390px) { .admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Match center and competition pages */
.top-inner { grid-template-columns:190px minmax(0,1fr) auto; gap:18px; }
.top-nav { gap:0; }
.top-nav button { padding:0 12px; }
.hero { min-height:238px; border-color:#45623e; }
.hero::before { background-image:linear-gradient(90deg,#121f17 4%,#203522d9 43%,#223c2160 75%,#223c2180),linear-gradient(0deg,#1c2d1d88,transparent 69%),url('/stadium.jpg'); }
.hero-copy { width:100%; padding:26px 27px; }
.hero-copy .secondary { margin-left:7px; }
.featured .main-hd { margin:18px 0 9px; }
.featured .main-hd h2 { font-size:19px; }
.featured-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.featured-match { display:grid; gap:11px; text-align:left; border:1px solid #36483b; border-radius:13px; padding:12px; background:linear-gradient(125deg,#253b2a,#1c271f 87%); }
.featured-match:nth-child(2) { background:linear-gradient(125deg,#29343d,#1d2726 87%); border-color:#38494b; }
.featured-match:hover { border-color:var(--lime); }
.featured-meta { display:flex; gap:4px 8px; justify-content:space-between; flex-wrap:wrap; color:#b6c6b6; font-size:11px; font-weight:800; }
.featured-teams { display:grid; gap:4px; }
.featured-link { display:flex; align-items:center; gap:5px; color:var(--lime); font-size:12px; }
.featured-link svg { width:14px; height:14px; }
.odd-btn b small { font-size:.75em; margin-right:2px; color:#a7b99e; }
.odd-btn.selected b small { color:#445a25; }
.discovery-head { background:linear-gradient(117deg,#273c2a,#1c2820 80%); border-color:#364b39; }
.discovery-head .section-title { margin-bottom:10px; }
.discovery-head .section-title > svg { color:var(--lime); width:28px;height:28px; }
.insight-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.insight-strip > div { min-width:0; display:grid; gap:4px; background:#253329; border:1px solid #344633; padding:9px; border-radius:10px; }
.insight-strip span,.insight-strip small { color:var(--muted); font-size:11px; }
.insight-strip b { color:var(--lime); overflow-wrap:anywhere; font-size:14px; }
.table-scroll { overflow-x:auto; }
.league-table { min-width:300px; }
.league-table th,.league-table td { padding:8px 6px; white-space:nowrap; text-align:center; }
.league-table th:nth-child(2),.league-table td:nth-child(2) { text-align:left; }
.league-table td:nth-child(2) { width:100%; }
.league-table td:last-child { color:var(--lime); }
.league-table tr:nth-child(odd) td { background:#22302699; }
.standing-team { display:flex; align-items:center; gap:7px; }
.standing-team img { object-fit:contain; flex:none; }
.club-roster { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:10px; margin:12px 0 0; padding:0; list-style:none; }
.tournament-menu { border:1px solid #405243; border-radius:12px; padding:8px 10px; background:#202d23; }
.tournament-menu summary { list-style:none; display:flex; align-items:center; min-height:42px; gap:9px; cursor:pointer; }
.tournament-menu summary::-webkit-details-marker { display:none; }
.tournament-menu summary span:nth-child(2) { flex:1; }
.tournament-menu small { display:block; color:var(--muted); font-size:12px; }
.tournament-menu .league-logo { width:30px; height:30px; }
.tournament-change { color:var(--lime); font-size:12px; font-weight:700; }
.tournament-menu[open] summary svg { transform:rotate(180deg); }
.tournament-menu .field { margin-top:9px; }
.tournament-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:6px; max-height:380px; overflow:auto; padding:5px 0; }
.tournament-option { display:flex; align-items:center; gap:8px; padding:6px; min-height:47px; border:1px solid #405243; border-radius:8px; text-align:left; }
.tournament-option[aria-pressed="true"],.tournament-option:hover { border-color:var(--lime); }
.guide-steps { display:grid; gap:9px; padding-left:22px; }
.guide-steps li { padding:8px 0; border-bottom:1px solid var(--line); }
.guide-steps li .secondary { margin-top:6px; }
.auth-status { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.oauth-callbacks { margin:8px 0 0; padding-left:18px; font-size:13px; }
.oauth-callbacks code { display:block; color:var(--muted); overflow-wrap:anywhere; }
.match-hero { border:1px solid #425740; border-radius:13px; background:linear-gradient(124deg,#304733,#1e3228 83%); padding:11px 12px 14px; text-align:center; }
.match-hero > span { color:#b6cbb4; font-size:12px; }
.match-hero-teams { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:11px; margin-top:12px; }
.match-hero-teams .team { display:grid; justify-items:center; }
.match-hero-teams .team-logo,.match-hero-teams .team svg { width:36px; height:36px; }
.match-hero-teams .team-name { width:100%; white-space:normal; overflow-wrap:anywhere; }
.match-hero-teams > b { color:var(--lime); font-size:13px; font-variant-numeric:tabular-nums; }
.match-tabs { padding-bottom:9px; border-bottom:1px solid var(--line); }
.match-tabs .tab { gap:5px; }
.match-tabs .tab svg { width:15px;height:15px; }
.market-tabs { margin:9px 0 12px; }
.combo-filters { display:flex; flex-wrap:wrap; gap:6px; }
.combo-filters .tab { min-height:40px; padding:7px 10px; font-size:.875rem; }
.combo-note { margin:10px 0; font-size:.875rem; }
.combo-note b { color:var(--text); }
.combo-list { display:grid; gap:6px; margin:10px 0 14px; }
.combo-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,35%); gap:8px; align-items:center; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.combo-row h3 { font-size:.875rem; font-weight:700; letter-spacing:normal; line-height:1.35; overflow-wrap:anywhere; }
.combo-picks { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.combo-picks .odd-btn,.combo-unavailable { display:flex; justify-content:space-between; align-items:center; gap:5px; padding:7px; min-height:42px; font-size:.875rem; font-variant-numeric:tabular-nums; }
.combo-unavailable { color:var(--muted); }
.match-hero > .match-status { display:inline-block; margin-top:8px; font-size:.875rem; }
.match-hero > .match-status.live { color:#ffb1ab; }
.match-hero-teams > .match-score { font-size:1.25rem; white-space:nowrap; }
@media (max-width:540px) {
  .combo-row { grid-template-columns:1fr; }
}
.analysis-card { margin-top:9px; background:#181f19; border:1px solid #303d31; border-radius:10px; padding:11px; min-width:0; }
.analysis-card h3 { font-size:15px; }
.analysis-card p { margin-top:7px; }
.analysis-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.analysis-top span { color:var(--muted); font-size:12px; }
.prob-grid { margin:12px 0 7px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.prob-grid div { display:flex; justify-content:space-between; align-items:center; gap:5px; font-size:13px; }
.prob-grid b { font-size:16px; }
.prob-grid div:first-child b { color:#d2fc51; }
.prob-grid div:last-child b { color:#a7d4f0; }
.prob-bar { height:7px; display:flex; gap:3px; }
.prob-bar i { background:#a7d4f0; border-radius:7px; }
.prob-bar i:first-child { background:#d2fc51; }
.prob-bar i:nth-child(2) { background:#758979; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.form-row,.stat-row { display:flex; gap:7px; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--line); font-size:12px; }
.form-row span,.stat-row span { color:var(--muted); min-width:0; overflow-wrap:anywhere; }
.form-row b,.stat-row b { white-space:nowrap; }
.form-streak { display:flex; gap:4px; margin-top:7px; }
.form-pill { min-width:22px; padding:2px 3px; border-radius:5px; background:#3e4a41; text-align:center; font-size:12px; }
.form-pill.positive { background:#526729;color:#edffc0; }
.form-pill.negative { background:#613b42;color:#ffd9dc; }
.player-frame { margin-top:10px; border-radius:10px; overflow:hidden; background:#0b100b; aspect-ratio:16/9; }
.player-frame iframe { border:0; height:100%; width:100%; }
.broadcasters { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.chat-shell { padding:0; overflow:hidden; }
.chat-list { min-height:240px; max-height:56vh; display:flex; flex-direction:column; gap:8px; overflow-y:auto; padding:13px; background:#151e18; }
.chat-empty { margin:auto; }
.chat-message { max-width:min(90%,560px); padding:8px 10px; border:1px solid #35443a; border-radius:10px; background:#28362b; }
.chat-message.mine { align-self:flex-end; background:#354627; border-color:#4e6136; }
.chat-message header { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.chat-message header time { font-size:11px; color:var(--muted); }
.chat-message header b,.chat-message p { font-size:14px; overflow-wrap:anywhere; }
.chat-message p { margin-top:4px; white-space:pre-wrap; }
.chat-message .icon-btn { width:27px;height:27px; }
.chat-message .icon-btn svg { width:15px;height:15px; }
.chat-compose { display:grid; grid-template-columns:1fr auto; align-items:end; gap:8px; padding:12px; }
.chat-compose [role="alert"] { grid-column:1/-1; }
textarea { width:100%; border:1px solid #3c4b3e; background:#151d17; color:var(--text); border-radius:9px; padding:8px; font:inherit; font-size:16px; resize:vertical; }
.chat-compose .primary { min-width:90px; }
.admin-chat { padding:9px 0; border-bottom:1px solid var(--line); }
.admin-chat .admin-item { border:0; padding:0; }
.admin-chat p { overflow-wrap:anywhere; }
.admin-video-form { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.admin-video-form .wide { grid-column:1/-1; }
@media (max-width:1170px) {
  .top-inner { grid-template-columns:160px minmax(0,1fr) auto; gap:7px; }
  .top-nav button { padding:0 7px; font-size:12px; }
  .top-nav button svg { width:16px; height:16px; }
}
@media (max-width:790px) {
  .top-nav button { padding-inline:5px; }
}
@media (max-width:690px) {
  .hero { min-height:177px; }
  .hero-copy { padding:15px; }
  .featured-match { gap:8px; padding:9px; }
  .featured-meta { font-size:11px; }
  .bottom-nav { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .bottom-nav button { font-size:10.5px; }
  .league-table th,.league-table td { padding-inline:4px; }
  .standing-team { gap:4px; }
}
@media (max-width:365px) {
  .insight-strip > div { padding:6px; }
  .form-grid { grid-template-columns:1fr; }
}
.chat-agreement { grid-column:1/-1; display:flex; gap:7px; align-items:center; flex-wrap:wrap; font-size:13px; color:var(--muted); }
.chat-agreement[hidden] { display:none; }

/* Pitch and match graphics share the app's green and chalk palette. */
:root {
  --bg:#0c1813;
  --header:#0e1d16;
  --card:#14251c;
  --surface:#112118;
  --surface-light:#20362a;
  --line:#2c4737;
  --muted:#aabdae;
  --lime:#d7fa6b;
}
body {
  background:
    radial-gradient(ellipse at 50% 0,#20432b52,transparent 530px),
    repeating-linear-gradient(90deg,#6caf7a04 0 88px,transparent 88px 176px),var(--bg);
}
.topbar { border-color:#2d4939; background:#0b1913f5; backdrop-filter:blur(12px); }
.top-inner { gap:12px; }
.top-nav button { padding-inline:9px; }
.brand { font-weight:800; letter-spacing:-.055em; }
.profile-btn.saved { color:var(--lime); }
.logout-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px;
  padding:0 9px; border:1px solid #3b5243; border-radius:10px; color:var(--text); font-size:12px; font-weight:800;
}
.logout-btn[hidden] { display:none; }
.logout-btn:hover,.account-exit:hover { color:var(--lime); border-color:var(--lime); }
.logout-btn svg { width:17px; height:17px; }
.hero { min-height:285px; background:#08160e; border-color:#476947; box-shadow:0 14px 38px #0208036a; }
.hero::before {
  background-image:linear-gradient(90deg,#08190f 0%,#08180dd4 30%,#07130c14 75%),url('/pitch-night.webp');
  background-position:50% 57%;
}
.hero::after {
  width:55%; height:calc(100% - 22px); right:10px; bottom:10px; border:1px solid #e2f9ca38;
  border-left:0; border-radius:0 12px 12px 0; box-shadow:none; mask-image:linear-gradient(90deg,transparent,#000);
  pointer-events:none;
}
.hero-copy { padding:26px 30px; }
.hero h1 { max-width:8ch; font-size:clamp(57px,7.1vw,98px); font-weight:800; line-height:.86; letter-spacing:-.088em; }
.hero h1 em { display:block; padding-bottom:.085em; }
.hero p { max-width:30ch; margin-top:11px; color:#e1ebdd; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:15px; }
.hero-actions .hero-action { margin:0; min-height:40px; }
.hero-actions .secondary { background:#13261cdb; border-color:#52725a; }
.main-hd h2,.section-title h1 { font-weight:800; }
.featured-match,.featured-match:nth-child(2),.discovery-head,.account-card {
  background-color:#172e21;
  background-image:repeating-linear-gradient(110deg,#92d9a006 0 36px,transparent 36px 72px),linear-gradient(125deg,#22432d,#13241b);
  border-color:#395742;
}
.featured-match { position:relative; overflow:hidden; }
.featured-match::after {
  content:""; position:absolute; right:-27px; bottom:-56px; width:128px; height:128px;
  border:1px solid #a0ddad38; border-radius:50%; pointer-events:none;
}
.featured-teams .team-logo,.fixture-info .team-logo { background:#dbe5da; }
.fixture-head,.slip-head { background:linear-gradient(105deg,#264632,#172c21); border-color:#375440; }
.fixture + .fixture { border-color:#294236; }
.odd-btn { background:#21392b; border-color:#345442; }
.odd-btn.blank { background:#17281e; }
.match-hero {
  background:linear-gradient(90deg,#0a1b12d9,#0a1b127c,#0a1b12d9),url('/pitch-night.webp') center 68%/cover;
  border-color:#597a58; padding:13px 12px 16px;
}
.match-hero-teams .team-logo { width:47px; height:47px; border-radius:10px; }
.match-hero-teams > b { background:#0a1d14e6; border:1px solid #58755e; border-radius:8px; padding:6px 9px; }
.account-card form { display:grid; justify-items:start; gap:9px; max-width:380px; margin-top:12px; }
.account-card .field { width:100%; }
.account-card .section-title svg { color:var(--lime); }
@media (max-width:1210px) {
  .logout-btn span { display:none; }
}
@media (max-width:690px) {
  .top-inner { padding-inline:12px; }
  .top-actions { gap:5px; }
  .logout-btn { min-height:34px; width:34px; padding:0; }
  .hero { min-height:236px; }
  .hero::before { background-position:62% 56%; }
  .hero-copy { padding:19px 17px; }
  .hero h1 { font-size:clamp(48px,12.8vw,71px); }
  .hero p { max-width:22ch; }
  .hero-actions { margin-top:13px; }
  .hero-actions .hero-action { min-height:36px; padding-inline:8px; }
  .bottom-nav { background:#0b1b14; border-color:#33533d; }
  .bottom-nav button.active { background:#2a442e; color:var(--lime); }
}
@media (max-width:365px) {
  .brand { gap:5px; font-size:14px; }
  .brand-icon { width:30px; height:30px; }
  .top-inner { padding-inline:8px; }
}
.chat-agreement label { display:flex; gap:6px; align-items:center; }
.chat-agreement input { width:auto; accent-color:var(--lime); }
.chat-agreement button { min-height:34px; }
.league-search { display:flex; align-items:stretch; gap:8px; margin:0 0 9px; }
.league-field { display:flex; align-items:center; flex:1; min-width:0; position:relative; }
.league-field svg { width:17px; height:17px; color:var(--lime); position:absolute; left:11px; pointer-events:none; }
.league-field input { padding-left:37px; min-height:43px; }
.directory-panel { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:9px; margin-bottom:10px; }
.result-list { max-height:300px; overflow:auto; margin-top:8px; }
.result-row { display:flex; gap:6px; align-items:center; border-bottom:1px solid var(--line); }
.result-row:last-child { border-bottom:0; }
.result-select { text-align:left; min-width:0; flex:1; display:flex; gap:9px; align-items:center; min-height:48px; padding:6px 7px; }
.result-select:hover { color:var(--lime); }
.result-select > span:nth-child(2) { flex:1; min-width:0; }
.result-select small { color:var(--muted); font-size:12px; display:block; }
.result-select.saved-match { justify-content:space-between; }
.result-select.saved-match .team { margin:3px 0; }
.favorite-btn { width:34px; height:34px; background:transparent; }
.favorite-btn svg { width:17px; height:17px; }
.favorite-btn.saved,.favorites-nav.saved { color:var(--lime); }
.favorite-btn.saved svg { fill:var(--lime); }
.active-competition { display:flex; align-items:center; gap:7px; margin:0 0 10px; background:#263929; border:1px solid #435745; padding:5px 7px 5px 12px; border-radius:10px; }
.active-competition span { min-width:0; flex:1; }
.active-competition small { display:block; font-size:12px; color:var(--muted); }
.match-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:25px; }
.match-heading >span { flex:1; font-size:12px; color:var(--muted); }
.admin-player-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.admin-player-search [role="alert"] { grid-column:1/-1; }
@media(max-width:690px){
  .favorites-nav { width:34px; height:34px; }
  .league-search .secondary { font-size:12px; padding-inline:8px; }
  .result-list { max-height:44vh; }
}

.fixture-actions { display:grid; flex:0 0 auto; gap:4px; min-width:99px; }
.fixture-center,.fixture-markets { min-height:34px; padding:5px 9px; border:1px solid #456750; border-radius:7px; font-size:.75rem; font-weight:800; white-space:nowrap; }
.fixture-center { background:#1b3527; color:#e3f4db; }
.fixture-markets { color:var(--muted); }
.fixture-center:hover,.fixture-markets:hover { color:var(--lime); border-color:var(--lime); }
.odds-note { grid-column:1/-1; align-self:center; text-align:center; color:var(--muted); font-size:.8rem; line-height:1.35; }
.results-date { font-size:1rem; letter-spacing:0; }
.results-message { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.injuries-card h3 { font-size:1rem; }
.injury-list { display:grid; margin:6px 0 0; padding:0; list-style:none; }
.injury-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; }
.injury-list li + li { border-top:1px solid var(--line); }
.injury-list strong { display:block; font-size:.875rem; overflow-wrap:anywhere; }
.injury-list small { color:var(--muted); font-size:.8rem; }
.injury-status { padding:4px 7px; border-radius:6px; background:#4a2b2b; color:#ffd1cf; font-size:.75rem; white-space:nowrap; }
.injury-status.doubtful { background:#493a20; color:#ffe1a3; }
@media (max-width:690px) {
  .bottom-nav { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .bottom-nav button { padding-inline:0; font-size:.625rem; }
  .fixture { display:grid; grid-template-columns:minmax(0,1fr) auto; row-gap:8px; padding:10px; }
  .fixture-info { grid-column:1/-1; }
  .fixture .odd-grid { width:auto; }
  .fixture-actions { display:flex; min-width:0; }
  .fixture-actions button { min-height:40px; padding-inline:6px; }
  .fixture-head .odd-head,.fixture-head .header-spacer { display:none; }
}
