
:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --dark: #0b1220;
  --dark-2: #121b2d;
  --accent: #f5b301;
  --accent-2: #2563eb;
  --ok: #166534;
  --bad: #991b1b;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, #fff7d6 0, transparent 32rem), var(--bg); color: var(--text); }
a { color: inherit; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(11,18,32,.96); color: #fff; padding: 12px 22px; display:flex; justify-content:space-between; align-items:center; gap:20px; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header a { color:#fff; text-decoration:none; }
.brand { display:flex; align-items:center; gap:12px; font-weight: 900; letter-spacing: -.02em; }
.brand img { width:54px; height:42px; object-fit:contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.menu-toggle { display:none; }
.nav { display:flex; flex-wrap:wrap; gap:7px; font-size:14px; align-items:center; }
.nav a { opacity:.92; padding:8px 10px; border-radius:999px; }
.nav a:hover { background:rgba(255,255,255,.1); }
.container { max-width: 1320px; margin: 28px auto; padding: 0 18px 48px; }
.card { background: rgba(255,255,255,.92); border: 1px solid rgba(229,231,235,.9); border-radius: 24px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.tight { padding: 16px; }
.hero { display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:stretch; }
.hero-main { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color:#fff; border: 0; overflow:hidden; position:relative; }
.hero-main:after { content:""; position:absolute; right:-80px; top:-80px; width:240px; height:240px; border-radius:50%; background:rgba(245,179,1,.18); }
.hero-title { display:flex; gap:18px; align-items:center; position:relative; z-index:1; }
.hero-title img { width:128px; height:94px; object-fit:contain; }
h1, h2, h3 { margin-top:0; letter-spacing:-.03em; }
h1 { font-size: clamp(28px, 4vw, 46px); line-height:1.02; margin-bottom:10px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.hero-main .muted { color: rgba(255,255,255,.68); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap:20px; }
.grid-2 { display:grid; grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); gap:20px; }
.dashboard-layout { display:grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap:20px; align-items:start; }
.dashboard-main { display:grid; grid-template-columns: 1fr; gap:20px; }
.dashboard-side { display:grid; grid-template-columns: 1fr; gap:20px; }
.admin-rounds { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap:16px; }
.admin-team-lineup { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border:1px solid var(--line); background:var(--surface-2); border-radius:18px; margin-bottom:10px; }
.push-button { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); color:#fff; padding:8px 10px; border-radius:999px; font-size:14px; cursor:pointer; }
.push-button:hover, .push-button.push-enabled { background:rgba(245,179,1,.22); border-color:rgba(245,179,1,.55); }
.push-button:disabled { opacity:.6; cursor:wait; }
.push-status { min-height:18px; color:var(--muted); margin:-12px 0 10px; }

@media (max-width: 980px) { .dashboard-layout, .hero, .profile-top { grid-template-columns: 1fr; } .slot { grid-template-columns: 1fr; } }
.widget { min-height: 190px; }
.widget-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.widget-title { font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.team-line { display:flex; align-items:center; gap:12px; min-width:0; }
.team-line img, .team-logo-sm { width:42px; height:42px; object-fit:contain; border-radius:12px; background:#fff; padding:3px; border:1px solid var(--line); }
.team-logo-md { width:72px; height:72px; object-fit:contain; border-radius:18px; background:#fff; padding:6px; border:1px solid var(--line); }
.team-logo-lg { width:112px; height:112px; object-fit:contain; border-radius:24px; background:#fff; padding:8px; border:1px solid rgba(255,255,255,.18); }
.team-logo-profile { width:190px; height:190px; object-fit:contain; border-radius:34px; background:#fff; padding:12px; border:1px solid rgba(255,255,255,.22); box-shadow:0 18px 40px rgba(0,0,0,.22); }
.waiting-rider { border-color:#fecaca!important; background:#fff1f2!important; box-shadow:0 0 0 1px rgba(239,68,68,.12) inset; }
.waiting-rider-note { color:#991b1b; font-weight:850; font-size:12px; margin-top:4px; }
.match-incomplete-note { display:inline-flex; align-items:center; gap:6px; margin-top:0; padding:6px 10px; border-radius:999px; background:#fff7d6; border:1px solid #f2d77c; color:#5f4300; font-size:12px; font-weight:850; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.team-schedule-table td { vertical-align:middle; }
.team-schedule-table td.score-col { text-align:center; width:170px; white-space:nowrap; }
.team-schedule-table td.status-col { width:58px; text-align:right; }
.team-schedule-table .score-link { margin:0 auto; }
.result-pill { width:34px; height:34px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:950; box-shadow:0 10px 18px rgba(15,23,42,.16); border:1px solid rgba(255,255,255,.6); }
.result-win { background:linear-gradient(135deg,#22c55e,#15803d); }
.result-loss { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.result-draw { background:linear-gradient(135deg,#94a3b8,#475569); }
.match-info-row { display:flex; align-items:center; gap:10px; min-width:0; }
.match-info-with-badge { display:flex; align-items:center; gap:10px; min-width:0; }
.match-info-with-badge .team-line { flex:1; min-width:0; }
.match-card { display:grid; grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr); align-items:center; gap:12px; padding:14px; background:var(--surface-2); border:1px solid var(--line); border-radius:18px; margin-bottom:10px; }
.match-card .team-line { min-width:0; }
.match-card > div:nth-child(3) .team-line { justify-content:flex-end; text-align:right; }
.score { font-weight:900; font-size:22px; white-space:nowrap; padding:0 8px; text-align:center; justify-self:center; min-width:110px; }
.score-link { display:inline-flex; align-items:center; justify-content:center; min-width:96px; padding:8px 12px; border-radius:14px; background:#fff; border:1px solid var(--line); text-decoration:none; box-shadow:0 6px 14px rgba(15,23,42,.06); }
.score-link:hover { border-color:var(--accent); box-shadow:0 8px 20px rgba(245,179,1,.18); }
.aggregate-note { display:block; margin-top:4px; font-size:11px; line-height:1.2; font-weight:800; color:var(--muted); text-align:center; white-space:normal; }
.big-score-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }
.big-score-wrap .aggregate-note { color:rgba(255,255,255,.78); font-size:13px; font-weight:850; }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align:left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
tr:last-child td { border-bottom:0; }
input, select, textarea { width:100%; padding:12px 13px; border:1px solid var(--line); border-radius:14px; background:#fff; font: inherit; }
textarea { min-height: 90px; }
label { display:block; margin: 10px 0 5px; color:#273142; font-weight:700; font-size:14px; }
button, .button { display:inline-block; background:var(--dark); color:#fff; border:0; padding:11px 16px; border-radius:14px; cursor:pointer; text-decoration:none; font-weight:800; box-shadow:0 8px 18px rgba(15,23,42,.12); }
button.secondary, .button.secondary { background:#eef2f7; color:#111827; box-shadow:none; border:1px solid var(--line); }
button.gold, .button.gold { background:var(--accent); color:#111827; }
.lineup-submit { font-size:20px; padding:18px 28px; border-radius:20px; min-width:240px; box-shadow:0 16px 34px rgba(245,179,1,.28); }
.lineup-submit-wrap { margin-top:24px; padding:18px; background:linear-gradient(135deg,#fff7d6,#ffffff); border:1px solid #f2d77c; border-radius:22px; justify-content:center; }
.lineup-submit-wrap .button.secondary { align-self:center; }
.alert { padding: 13px 15px; border-radius: 16px; margin-bottom: 16px; background:#fff7d6; border:1px solid #f2d77c; }
.alert.ok { background:#dcfce7; border-color:#86efac; color:#14532d; font-weight:900; }
.alert.error { background:#fee2e2; border-color:#fecaca; color:#7f1d1d; font-weight:800; }
.error { background:#fee2e2; border-color:#fecaca; color:var(--bad); }
.ok { background:#dcfce7; border-color:#bbf7d0; color:var(--ok); }
.badge { display:inline-flex; align-items:center; gap:4px; padding:4px 9px; border:1px solid var(--line); border-radius:999px; font-size:12px; color:var(--muted); font-weight:800; background:#fff; }
.badge.dark { background:#111827; color:#fff; border-color:#111827; }
.badge.gold-badge { background:var(--accent); color:#111827; border-color:rgba(245,179,1,.72); }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.small { font-size:13px; }

.period-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 20px; }
.period-tabs a { text-decoration:none; }
.period-tabs .active { background:var(--dark); color:#fff; border-color:var(--dark); }
.zz-team-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:16px; margin-bottom:14px; }
.zz-team-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; font-weight:900; }
.medal-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:12px 0; }
.medal-count { background:var(--surface-2); border:1px solid var(--line); border-radius:18px; padding:14px; text-align:center; }
.medal-count .emoji { font-size:32px; display:block; }
.position-timeline { display:grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap:12px; }
.season-place-tile { background:linear-gradient(180deg,#fff,#f8fafc); border:1px solid var(--line); border-radius:20px; padding:14px; text-align:center; position:relative; overflow:hidden; }
.season-place-tile:before { content:""; position:absolute; left:0; top:0; right:0; height:5px; background:var(--accent); }
.season-place-tile .place-no { font-size:30px; font-weight:950; color:var(--dark); line-height:1; }
.season-place-tile .season-year { color:var(--muted); font-weight:800; font-size:12px; margin-top:7px; }
.season-place-tile.gold:before { background:#f5b301; }
.season-place-tile.silver:before { background:#cbd5e1; }
.season-place-tile.bronze:before { background:#d97706; }
.team-corner-badges { position:absolute; right:22px; top:22px; z-index:2; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.team-corner-badges .position-pill { background:#fff; color:#111827; box-shadow:0 12px 28px rgba(0,0,0,.18); }
.prev-medal-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.95); color:#111827; font-weight:900; box-shadow:0 12px 28px rgba(0,0,0,.16); }
.prev-medal-badge .medal-icon { font-size:22px; }
.archive-season-card { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.archive-buttons { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.regulation-text { line-height:1.55; color:#1f2937; }

.position-line-chart { position:relative; height:280px; padding:28px 24px 54px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(180deg,#fff,#f8fafc); overflow:hidden; }
.position-line-chart svg { width:100%; height:185px; display:block; overflow:visible; }
.position-line-chart .axis-labels { position:absolute; left:24px; right:24px; bottom:18px; display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-weight:900; font-size:12px; }
.position-line-chart .chart-point { fill:var(--accent); stroke:#111827; stroke-width:2; }
.position-line-chart .chart-line { fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 4px 8px rgba(245,179,1,.16)); }
.position-line-chart .place-tag { position:absolute; transform:translate(-50%,-50%); background:#111827; color:#fff; border-radius:999px; min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-weight:950; font-size:14px; border:3px solid #fff; box-shadow:0 10px 22px rgba(15,23,42,.24); z-index:2; }
.position-line-chart .chart-note { position:absolute; left:24px; top:18px; color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
select optgroup { font-weight:900; color:#111827; }


.login { max-width: 430px; margin:70px auto; }
.password-box { max-width:560px; margin:70px auto; }
.rider-points { min-width:76px; text-align:right; color:var(--gold); }
.rider-points strong { display:block; font-size:1.25rem; line-height:1; }
.rider-points span { display:block; font-size:.72rem; color:var(--muted); margin-top:3px; }
.rider-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 14px; background:var(--surface-2); border:1px solid var(--line); border-radius:16px; margin-bottom:10px; }
.rider-main { min-width:0; }
.rider-name { font-weight:850; }
.rider-meta { color:var(--muted); font-size:13px; margin-top:2px; }
.roster-columns { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:18px; }
.lineup-grid { display:grid; grid-template-columns: 1fr; gap:16px; max-width: 860px; }
.slot { background:var(--surface-2); border:1px solid var(--line); border-radius:22px; padding:18px; display:grid; grid-template-columns: 110px 1fr; gap:18px; align-items:center; }
.slot:hover { border-color:#cbd5e1; box-shadow:0 10px 24px rgba(15,23,42,.06); }
.slot select { min-height:58px; font-size:17px; font-weight:750; border-radius:18px; padding:15px 16px; }
.selected-preview { margin-top:8px; min-height:24px; color:var(--muted); font-size:13px; font-weight:800; display:flex; align-items:center; gap:6px; }
.slot-num { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:12px; text-transform:uppercase; font-weight:900; letter-spacing:.08em; margin-bottom:0; }
.slot-num strong { color:var(--text); font-size:30px; letter-spacing:-.04em; line-height:1; }
.lineup-note { max-width:860px; background:#fff7d6; border:1px solid #f2d77c; border-radius:18px; padding:13px 15px; margin:0 0 16px; color:#5f4300; }
.kpi { font-size:32px; font-weight:950; letter-spacing:-.05em; }

.profile-hero { position:relative; overflow:hidden; min-height:280px; background: radial-gradient(circle at 80% 12%, rgba(245,179,1,.28), transparent 24rem), radial-gradient(circle at 8% 90%, rgba(37,99,235,.16), transparent 22rem), linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 58%, #1f2937 100%); color:#fff; border:0; }
.profile-hero:after { content:""; position:absolute; right:-90px; bottom:-110px; width:300px; height:300px; border-radius:50%; background:rgba(245,179,1,.13); }
.profile-hero:before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(245,179,1,.09), transparent 42%); pointer-events:none; }
.profile-hero .muted { color:rgba(255,255,255,.74); }
.profile-top { display:grid; grid-template-columns: 1fr 260px; gap:20px; align-items:center; position:relative; z-index:1; }
.profile-avatar { width:230px; height:230px; border-radius:40px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:92px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.profile-name { font-size: clamp(34px, 5vw, 62px); text-transform:uppercase; font-style:italic; font-weight:950; letter-spacing:-.05em; margin:0 0 14px; }
.profile-tags { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.profile-info-link { display:block; color:inherit; text-decoration:none; padding:4px 0; border:0; border-radius:0; background:transparent; min-height:auto; }
.profile-info-link:hover strong { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.profile-info-link strong { color:#fff; transition:color .12s ease; }
.profile-info-link .small:after { content:''; }
.profile-info-link .profile-inline-link { color:#fff; text-decoration:none; }
.profile-info-link .profile-inline-link:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-radius:24px; overflow:hidden; box-shadow:var(--shadow); margin-top:-8px; position:relative; z-index:2; }
.stat-strip > div { padding:20px; border-right:1px solid var(--line); text-align:center; }
.stat-strip > div:last-child { border-right:0; }
.stat-number { color:var(--dark); font-size:32px; font-weight:950; font-style:italic; letter-spacing:-.05em; }
.stat-label { color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.profile-layout { display:grid; grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr); gap:22px; align-items:start; }
.chart-card { background:linear-gradient(135deg, var(--dark), var(--dark-2)); color:#fff; border:0; position:relative; overflow:hidden; }
.chart-card:after { content:""; position:absolute; right:-50px; top:-60px; width:160px; height:160px; border-radius:50%; background:rgba(245,179,1,.16); }
.chart-card > * { position:relative; z-index:1; }
.chart-card .muted { color:rgba(255,255,255,.72); }
.bar-chart { display:flex; align-items:end; gap:9px; height:180px; padding:16px 6px 0; border-bottom:1px solid rgba(255,255,255,.18); }
.bar { flex:1; min-width:9px; background:linear-gradient(180deg, var(--accent), #d99500); border-radius:8px 8px 0 0; position:relative; box-shadow:0 8px 18px rgba(245,179,1,.18); }
.bar.empty { background:rgba(255,255,255,.14); height:8px!important; }
.bar span { position:absolute; top:-20px; left:50%; transform:translateX(-50%); font-size:11px; font-weight:900; color:#fff; }
.round-labels { display:flex; gap:9px; padding-top:8px; color:rgba(255,255,255,.7); font-size:11px; }
.round-labels span { flex:1; text-align:center; }
.info-table td:first-child { color:var(--muted); font-weight:800; }
.rider-link { text-decoration:none; }
.rider-link:hover .rider-name { color:var(--dark); }
@media (max-width: 900px) { .profile-top, .profile-layout, .stat-strip { grid-template-columns:1fr; } .profile-avatar { width:160px; height:160px; font-size:66px; } .stat-strip > div { border-right:0; border-bottom:1px solid var(--line); } }


.sgp-logo { height:18px; width:auto; vertical-align:-3px; margin-left:6px; display:inline-block; }
.sgp-logo-lg { height:28px; width:auto; vertical-align:-6px; margin-left:8px; display:inline-block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.zz-toggle { display:none; margin-top:10px; color:#5f4300; font-weight:900; }
.zz-toggle input { width:auto; margin-right:8px; }
.zz-inline-panel { grid-column:1 / -1; display:none; border:1px dashed rgba(245,179,1,.9); background:#fffaf0; border-radius:18px; padding:14px; margin-top:10px; }
.zz-inline-panel.active { display:block; }
.zz-inline-panel .grid { gap:12px; }
.zz-chip { display:inline-flex; align-items:center; gap:8px; background:#fff7d6; border:1px solid #f2d77c; color:#5f4300; padding:7px 10px; border-radius:999px; font-weight:850; font-size:13px; }
.slot.is-zz { border-color:rgba(245,179,1,.95); background:linear-gradient(180deg,#fffaf0,#fff); }

.deadline-box { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--line); background:var(--surface-2); border-radius:18px; margin:12px 0; flex-wrap:wrap; }
.deadline-box.important { border:2px solid #f5b301; background:linear-gradient(135deg,#fff4bf,#ffffff); box-shadow:0 14px 30px rgba(245,179,1,.16); }
.deadline-box .deadline-main { font-size:20px; font-weight:950; color:#111827; }
.schedule-deadline { margin:10px 0 14px; padding:12px 14px; border:1px solid #f2d77c; background:#fff7d6; border-radius:16px; color:#5f4300; font-weight:800; }
.change-list { display:grid; gap:12px; }
.change-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:14px; }
.status-pending { background:#fff7d6; color:#6b4e00; }
.status-approved { background:#dcfce7; color:#166534; }
.status-rejected { background:#fee2e2; color:#991b1b; }
.zz-box { border:1px dashed rgba(245,179,1,.8); background:#fffaf0; border-radius:18px; padding:16px; margin-top:16px; }
.zz-mini-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.zz-mini { background:var(--surface-2); border:1px solid var(--line); border-radius:18px; padding:14px; }
.history-list { display:grid; gap:10px; }
.history-item { display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--surface-2); border:1px solid var(--line); border-radius:16px; padding:12px 14px; }
.inline-form { display:inline-flex; gap:8px; align-items:center; flex-wrap:wrap; }

.score-link { color:var(--text); text-decoration:none; display:inline-flex; align-items:center; justify-content:center; min-width:88px; padding:8px 12px; border-radius:14px; background:#fff; border:1px solid var(--line); box-shadow:0 8px 18px rgba(15,23,42,.05); transition:.15s ease; }
.score-link:hover { border-color:rgba(245,179,1,.85); box-shadow:0 14px 28px rgba(15,23,42,.12); transform:translateY(-1px); }
.position-pill { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:12px; background:var(--accent); color:#111827; font-weight:950; box-shadow:0 8px 18px rgba(245,179,1,.22); }
.form-row { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.form-dot { width:28px; height:28px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:950; box-shadow:0 8px 16px rgba(15,23,42,.12); }
.form-win { background:#16a34a; }
.form-loss { background:#dc2626; }
.big-submit { font-size:18px; padding:16px 28px; border-radius:18px; box-shadow:0 18px 32px rgba(245,179,1,.28); }
.top-rider-stack { display:grid; grid-template-columns:1fr; gap:12px; }
.top-rider-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:14px; display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:12px; min-height:76px; }
.top-rider-card.leader { background:linear-gradient(135deg,#0b1220,#172033); color:#fff; border-color:#0b1220; padding:22px; min-height:136px; box-shadow:0 18px 42px rgba(15,23,42,.18); }
.top-rider-card.leader .rider-link strong { font-size:26px; line-height:1.05; letter-spacing:-.04em; }
.top-rider-card.leader .stat-number { color:#fff7d6; font-size:40px; text-shadow:0 2px 14px rgba(245,179,1,.25); }
.top-rider-card.leader .stat-label { color:#fde68a; }
.top-rider-card.leader .rider-meta, .top-rider-card.leader .muted { color:rgba(255,255,255,.72); }
.top-rider-card .rank { width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--accent); color:#111827; font-weight:950; }
.position-pill { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:32px; padding:0 10px; border-radius:999px; background:var(--accent); color:#111827; font-weight:950; }
.medal-strip { display:flex; gap:8px; flex-wrap:wrap; }
.medal { width:36px; height:36px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#f8fafc; border:1px solid var(--line); font-weight:950; }
.medal.gold { background:#fef3c7; }
.medal.silver { background:#e5e7eb; }
.medal.bronze { background:#fed7aa; }

.form-draw { background:#64748b; }
.match-hero-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:center; }
.match-team-panel { display:flex; align-items:center; gap:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:22px; padding:16px; min-height:128px; }
.match-team-panel.away { justify-content:flex-end; text-align:right; }
.big-score { font-size:clamp(34px,6vw,68px); font-weight:950; letter-spacing:-.06em; white-space:nowrap; text-align:center; }
.match-hero-grid > div:nth-child(2) { text-align:center; }
.lineup-score-card { display:grid; gap:10px; }
.lineup-row { display:grid; grid-template-columns:42px 1fr auto; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--line); background:var(--surface-2); border-radius:16px; }
.lineup-row .points { font-weight:950; font-size:18px; }
.zz-subline { grid-column:2 / -1; color:var(--muted); font-size:13px; }
.history-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* v6.0 visual refinements */
.form-row.form-row-modern { gap:12px; }
.form-row-modern .form-dot { width:42px; height:42px; border-radius:15px; font-size:16px; letter-spacing:.02em; box-shadow:0 14px 26px rgba(15,23,42,.18); }
.result-pill { width:42px !important; height:42px !important; border-radius:16px !important; font-size:16px !important; letter-spacing:.02em; box-shadow:0 14px 26px rgba(15,23,42,.18) !important; }
.status-col { text-align:right; }
.match-incomplete-note { display:flex !important; justify-content:center; width:fit-content; max-width:min(360px,100%); margin:8px auto 0 !important; text-align:center; }
.team-schedule-table td.score-col { text-align:center !important; min-width:210px; }
.team-schedule-table td.status-col { width:64px; text-align:right !important; }
.stats-rank { width:42px; text-align:center; color:var(--muted); font-weight:950; }
.junior-tag { display:inline-flex; align-items:center; justify-content:center; margin-left:8px; padding:3px 8px; border-radius:999px; background:#dcfce7; color:#166534; border:1px solid #bbf7d0; font-size:11px; font-weight:950; text-transform:uppercase; letter-spacing:.04em; }
.rider-link.is-junior strong { color:#15803d; }
.rider-link.is-junior:hover strong { color:#166534; text-decoration:underline; text-underline-offset:3px; }



/* v7.5 production layout fixes */
.lineup-score-card { gap:8px; }
.lineup-row { padding:10px 12px; grid-template-columns:38px minmax(0,1fr) auto; }
.lineup-row.waiting-rider { border-color:#fecaca!important; background:linear-gradient(90deg,#fff1f2,#fff7f7)!important; }
.waiting-rider-note { display:inline-flex; align-items:center; max-width:100%; margin-top:3px; padding:3px 8px; border-radius:999px; background:#fee2e2; border:1px solid #fecaca; color:#991b1b; font-size:11px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.match-incomplete-note { max-width:min(560px,100%) !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
.match-card .match-incomplete-note, .incomplete-note-wrap .match-incomplete-note { justify-self:center; margin-left:auto!important; margin-right:auto!important; }
.match-hero-grid .match-incomplete-note { margin-top:10px!important; }
.team-schedule-table .incomplete-note-wrap { display:flex; justify-content:center; min-width:0; }
/* v6.1 refinements */
.sgp-logo-pill { display:inline-flex; align-items:center; justify-content:center; padding:2px 6px; margin-left:6px; border-radius:999px; background:#111827; border:1px solid rgba(15,23,42,.12); vertical-align:-5px; box-shadow:0 6px 12px rgba(15,23,42,.10); }
.sgp-logo-pill .sgp-logo { margin:0; height:16px; }
.sgp-logo-light { filter:none; margin-left:6px; height:26px; vertical-align:-6px; }
.badge.gold-badge .sgp-logo-light { height:24px; }
.match-card .match-incomplete-note { grid-column:1 / -1; justify-self:center; margin:8px auto 0 !important; }
.schedule-incomplete-centered { display:flex; justify-content:center; grid-column:1 / -1; }
.team-form-hero { margin-top:18px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; position:relative; z-index:1; }
.team-form-hero .widget-title { color:rgba(255,255,255,.70); margin-right:2px; }
.team-form-hero .form-row-modern .form-dot { width:54px; height:54px; border-radius:20px; font-size:20px; border:1px solid rgba(255,255,255,.42); box-shadow:0 18px 34px rgba(0,0,0,.24); }
.form-row-modern .form-dot { width:48px; height:48px; border-radius:18px; font-size:18px; }
.profile-two-widgets { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr); gap:22px; align-items:start; margin-top:22px; }
.profile-history-wide { margin-top:22px; }
.profile-two-widgets .chart-card { min-height:100%; }
@media (max-width:900px){ .profile-two-widgets { grid-template-columns:1fr; } }

@media (max-width:900px){ .match-hero-grid { grid-template-columns:1fr; } .match-team-panel.away { justify-content:flex-start; text-align:left; } .big-score { text-align:left; } }

@media (max-width: 820px) { .hero { grid-template-columns:1fr; } .header { align-items:flex-start; flex-direction:column; } .score { font-size:18px; } .slot { grid-template-columns:1fr; gap:10px; } .slot-num { flex-direction:row; align-items:center; justify-content:space-between; } }

/* =============================================================
   ZMP MOBILE v11.0 — clean rewrite, desktop identity on mobile
   Desktop colors: dark=#0b1220, accent=#f5b301, bg=#f3f5f8
   ============================================================= */

/* Global mobile baseline — always active */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 0; overflow-x: hidden; }
img, svg { max-width: 100%; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mobile-tabbar { display: none; }

/* ── MOBILE SHELL ─────────────────────────────────────────── */
@media (max-width: 860px) {

  /* CSS variables */
  :root {
    --mobile-pad: 16px;
    --header-h: 72px;
    --tabbar-h: 80px;
  }

  /* Body */
  body {
    background: radial-gradient(circle at top left, #fff7d6 0, transparent 18rem), #f3f5f8 !important;
    color: #111827 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding-bottom: 0 !important;
  }

  /* ── HEADER ──────────────────────────────────────────────── */
  .header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) var(--mobile-pad) 12px !important;
    min-height: var(--header-h) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    background: rgba(11,18,32,.97) !important;
    backdrop-filter: blur(16px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }

  .brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .brand img {
    width: 48px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
  }
  .brand span {
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: -.02em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100vw - 160px) !important;
    color: #fff !important;
  }

  /* Menu toggle button */
  .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 52px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    background: rgba(245,179,1,.18) !important;
    border: 1px solid rgba(245,179,1,.35) !important;
    color: #f5b301 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  /* Desktop nav — hidden by default, shown as dropdown */
  .nav {
    display: none !important;
  }
  .header.nav-open .nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 0 4px !important;
    order: 3 !important;
  }
  .header.nav-open .nav a,
  .header.nav-open .nav button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-align: center !important;
  }
  .header.nav-open .nav a:hover,
  .header.nav-open .nav button:hover {
    background: rgba(245,179,1,.18) !important;
    border-color: rgba(245,179,1,.35) !important;
    color: #f5b301 !important;
  }

  /* Push button in header */
  .push-button {
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  /* ── MAIN CONTAINER ──────────────────────────────────────── */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px var(--mobile-pad) calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ── CARDS & WIDGETS ─────────────────────────────────────── */
  .card, .widget {
    border-radius: 20px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
  }
  .card.tight { padding: 14px !important; }

  /* ── TYPOGRAPHY ──────────────────────────────────────────── */
  h1 { font-size: 26px !important; line-height: 1.08 !important; margin-bottom: 8px !important; }
  h2 { font-size: 20px !important; line-height: 1.12 !important; }
  h3 { font-size: 17px !important; line-height: 1.2 !important; }
  p, .muted, .small, label { font-size: 14px !important; line-height: 1.5 !important; }
  .widget-title { font-size: 11px !important; letter-spacing: .08em !important; }

  /* ── BUTTONS & INPUTS ────────────────────────────────────── */
  button, .button, input[type="submit"] {
    min-height: 48px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    touch-action: manipulation !important;
  }
  .lineup-submit {
    font-size: 17px !important;
    padding: 14px 22px !important;
    min-width: 100% !important;
  }
  input, select, textarea {
    font-size: 16px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }
  .actions, .hero-title .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* ── DASHBOARD ───────────────────────────────────────────── */
  .dashboard-layout { grid-template-columns: 1fr !important; }
  .dashboard-hero-main { display: none !important; }
  .dashboard-team-widget {
    min-height: 140px !important;
    padding: 20px !important;
  }
  .dashboard-team-widget h2 { font-size: 22px !important; }
  .dashboard-team-widget .team-logo-lg {
    width: 80px !important;
    height: 80px !important;
  }

  /* ── HERO ────────────────────────────────────────────────── */
  .hero { grid-template-columns: 1fr !important; }
  .hero-main { padding: 20px !important; }
  .hero-title img { width: 80px !important; height: 60px !important; }
  .hero-title { gap: 14px !important; }

  /* ── TABLES ──────────────────────────────────────────────── */
  table { font-size: 14px !important; }
  th {
    font-size: 11px !important;
    padding: 8px 8px !important;
    white-space: nowrap !important;
  }
  td {
    font-size: 14px !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
  }

  /* Standings table — hide less important columns on small screens */
  .dashboard-standings-table th:nth-child(3),
  .dashboard-standings-table td:nth-child(3) { display: none !important; }

  /* Stats table — keep only essential columns */
  .stats-table th:nth-child(3), .stats-table td:nth-child(3),
  .stats-table th:nth-child(4), .stats-table td:nth-child(4),
  .stats-table th:nth-child(6), .stats-table td:nth-child(6),
  .stats-table th:nth-child(7), .stats-table td:nth-child(7) { display: none !important; }
  .stats-table th:nth-child(1), .stats-table td:nth-child(1) { width: 30px !important; }
  .stats-table th:nth-child(8), .stats-table td:nth-child(8) {
    text-align: right !important;
    font-size: 16px !important;
  }

  /* ── TEAM LINE ───────────────────────────────────────────── */
  .team-line { gap: 8px !important; align-items: center !important; }
  .team-line img, .team-logo-sm {
    width: 36px !important;
    height: 36px !important;
  }
  .team-line span:last-child {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
  }
  .rider-link strong { font-size: 14px !important; }

  /* ── MATCH CARDS ─────────────────────────────────────────── */
  .match-card {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 96px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 12px !important;
    min-height: 140px !important;
    position: relative !important;
    border-radius: 18px !important;
  }
  .match-card .widget-title {
    position: absolute !important;
    left: 14px !important;
    top: 12px !important;
    font-size: 10px !important;
  }
  .match-card .team-line {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 100px !important;
  }
  .match-card .team-line img {
    width: 56px !important;
    height: 56px !important;
  }
  .match-card .team-line span:last-child {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
  }
  .match-card > div:nth-child(3) .team-line { justify-content: center !important; text-align: center !important; }

  /* Score link */
  .score-link,
  .match-card .score-link,
  .team-schedule-table td.score-col .score-link {
    background: #ffffff !important;
    color: #0b1220 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 14px rgba(15,23,42,.10) !important;
    min-width: 86px !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 21px !important;
    font-weight: 950 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }
  .score-link strong { color: #f5b301 !important; font-size: 21px !important; }
  .match-incomplete-note, .aggregate-note {
    font-size: 11px !important;
    max-width: 100% !important;
  }

  /* ── RIDER PROFILE ───────────────────────────────────────── */
  .profile-hero {
    padding: 20px !important;
    background: linear-gradient(135deg, #0b1220 0%, #111827 65%, #1e2a40 100%) !important;
    color: #fff !important;
    border-radius: 20px !important;
  }
  .profile-top {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 110px !important;
    gap: 14px !important;
    align-items: start !important;
  }
  .profile-name { font-size: 24px !important; line-height: 1.05 !important; color: #fff !important; }
  .profile-tags { gap: 6px !important; }
  .profile-info-link {
    padding: 10px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
  }
  .profile-hero .grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .profile-info-link .muted,
  .profile-info-link .small { font-size: 11px !important; color: rgba(255,255,255,.68) !important; }
  .profile-info-link strong,
  .profile-inline-link { font-size: 15px !important; line-height: 1.2 !important; color: #fff !important; }
  .profile-avatar {
    width: 110px !important;
    min-height: 110px !important;
    padding: 10px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .team-logo-profile {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;
  }
  .stat-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    background: #0b1220 !important;
    color: #fff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(245,179,1,.20) !important;
  }
  .stat-strip > div {
    min-height: 84px !important;
    padding: 14px 10px !important;
    border-color: rgba(255,255,255,.10) !important;
  }
  .stat-strip .stat-number {
    color: #f5b301 !important;
    font-size: 34px !important;
    line-height: .95 !important;
  }
  .stat-strip .stat-label {
    color: rgba(255,255,255,.72) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .profile-two-widgets { grid-template-columns: 1fr !important; }
  .chart-card,
  .profile-two-widgets .chart-card {
    background: linear-gradient(135deg,#0b1220,#111827) !important;
    color: #fff !important;
  }
  .chart-card .muted, .chart-card .small { color: rgba(255,255,255,.72) !important; }
  .bar-chart { height: 200px !important; gap: 6px !important; padding-top: 18px !important; }
  .bar-chart .bar { min-width: 14px !important; border-radius: 6px 6px 0 0 !important; }
  .round-labels span { font-size: 11px !important; color: rgba(255,255,255,.72) !important; }
  .mobile-chart-tooltip {
    position: absolute;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: calc(100vw - 32px);
    padding: 8px 12px;
    border-radius: 12px;
    background: #0b1220;
    color: #fff;
    border: 1px solid rgba(245,179,1,.45);
    box-shadow: 0 10px 28px rgba(15,23,42,.32);
    font-size: 13px;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
  }
  .mobile-chart-tooltip.show { opacity: 1; }

  /* ── MATCH HERO (match detail page) ─────────────────────── */
  .match-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .match-team-panel.away {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .big-score { text-align: left !important; }

  /* ── GRIDS ───────────────────────────────────────────────── */
  .grid { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .admin-rounds { grid-template-columns: 1fr !important; }
  .slot { grid-template-columns: 1fr !important; }
  .profile-layout { grid-template-columns: 1fr !important; }

  /* ── BADGES & PILLS ──────────────────────────────────────── */
  .badge { font-size: 11px !important; padding: 3px 8px !important; }
  .position-pill { width: 30px !important; height: 28px !important; font-size: 13px !important; }
  .result-pill { width: 34px !important; height: 34px !important; font-size: 13px !important; }

  /* ── FORM ELEMENTS ───────────────────────────────────────── */
  .form-dot { width: 38px !important; height: 38px !important; border-radius: 13px !important; font-size: 15px !important; }
  .form-row-modern .form-dot { width: 38px !important; height: 38px !important; }
  .team-form-hero .form-row-modern .form-dot { width: 42px !important; height: 42px !important; }

  /* ── ALERT BOXES ─────────────────────────────────────────── */
  .alert { font-size: 14px !important; padding: 12px 14px !important; border-radius: 14px !important; }

  /* ── SCHEDULE TABLE ──────────────────────────────────────── */
  .team-schedule-table td { font-size: 14px !important; padding: 10px 6px !important; }
  .team-schedule-table td.score-col { min-width: 100px !important; width: 110px !important; }

  /* ── LINEUP ROWS ─────────────────────────────────────────── */
  .lineup-row { padding: 10px 12px !important; gap: 10px !important; }
  .lineup-row .points { font-size: 16px !important; }

  /* ── ZZ / CLUB CARDS ─────────────────────────────────────── */
  .zz-team-card { border-radius: 16px !important; padding: 14px !important; }
  .medal-counts { grid-template-columns: repeat(3,1fr) !important; gap: 8px !important; }
  .medal-count { padding: 10px !important; border-radius: 14px !important; }
  .medal-count .emoji { font-size: 24px !important; }
  .position-timeline { grid-template-columns: repeat(auto-fit,minmax(80px,1fr)) !important; gap: 8px !important; }
  .season-place-tile { padding: 10px !important; border-radius: 16px !important; }
  .season-place-tile .place-no { font-size: 22px !important; }
  .season-place-tile .season-year { font-size: 10px !important; }
  .archive-season-card { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .archive-buttons { justify-content: flex-start !important; }

  /* ── TOP RIDER CARDS ─────────────────────────────────────── */
  .top-rider-card { grid-template-columns: 36px 1fr auto !important; padding: 12px !important; min-height: 60px !important; }
  .top-rider-card.leader { padding: 18px !important; min-height: 110px !important; }
  .top-rider-card.leader .rider-link strong { font-size: 20px !important; }
  .top-rider-card.leader .stat-number { font-size: 32px !important; }

  /* ── SGP LOGO ────────────────────────────────────────────── */
  .sgp-logo-pill { background: #fff !important; border: 1px solid #e5e7eb !important; }

  /* ── PERIOD TABS ─────────────────────────────────────────── */
  .period-tabs { gap: 6px !important; margin: 8px 0 14px !important; }
  .period-tabs a { font-size: 13px !important; }

  /* ── BOTTOM TAB BAR ──────────────────────────────────────── */
  .mobile-tabbar {
    display: grid !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 200 !important;
    grid-template-columns: repeat(5,1fr) !important;
    align-items: stretch !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg, rgba(11,18,32,.97) 0%, rgba(7,12,22,.99) 100%) !important;
    border-top: 1px solid rgba(245,179,1,.18) !important;
    box-shadow: 0 -12px 32px rgba(0,0,0,.45) !important;
    min-height: var(--tabbar-h) !important;
  }
  .mobile-tabbar a, .mobile-tabbar button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 60px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: rgba(255,255,255,.72) !important;
    text-decoration: none !important;
    padding: 6px 4px !important;
    cursor: pointer !important;
    transition: background .15s, color .15s !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .mobile-tabbar a:active, .mobile-tabbar button:active,
  .mobile-tabbar a.active, .mobile-tabbar button.active {
    background: rgba(245,179,1,.14) !important;
    color: #f5b301 !important;
  }
  .mobile-tabbar span {
    font-size: 26px !important;
    line-height: 1 !important;
    display: block !important;
  }
  .mobile-tabbar b {
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: -.01em !important;
    line-height: 1 !important;
    text-align: center !important;
    display: block !important;
  }

} /* end @media (max-width: 860px) */

/* ── EXTRA SMALL PHONES (≤ 390px) ────────────────────────── */
@media (max-width: 390px) {
  :root { --mobile-pad: 12px; }

  .brand span { font-size: 13px !important; }
  .brand img { width: 40px !important; height: 30px !important; }
  .menu-toggle { min-width: 44px !important; padding: 0 10px !important; font-size: 13px !important; }

  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 15px !important; }

  .match-card {
    grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr) !important;
    padding: 14px 10px !important;
    min-height: 128px !important;
  }
  .match-card .team-line img { width: 46px !important; height: 46px !important; }
  .match-card .team-line span:last-child { font-size: 12px !important; }
  .score-link, .match-card .score-link {
    min-width: 72px !important;
    min-height: 44px !important;
    font-size: 18px !important;
  }
  .score-link strong { font-size: 18px !important; }

  .profile-top { grid-template-columns: minmax(0,1fr) 90px !important; }
  .profile-name { font-size: 20px !important; }
  .profile-avatar { width: 90px !important; min-height: 90px !important; }
  .team-logo-profile { width: 74px !important; height: 74px !important; }
  .profile-hero .grid { grid-template-columns: 1fr !important; }

  .stat-strip .stat-number { font-size: 28px !important; }

  .mobile-tabbar span { font-size: 22px !important; }
  .mobile-tabbar b { font-size: 9px !important; }

  button, .button, input[type="submit"] {
    font-size: 14px !important;
    min-height: 44px !important;
  }
  input, select, textarea {
    font-size: 15px !important;
    min-height: 44px !important;
  }
}



