:root {
  --bg: #06101f;
  --bg2: #07182c;
  --panel: rgba(15, 31, 53, .78);
  --panel2: rgba(20, 42, 70, .72);
  --line: rgba(142, 176, 220, .18);
  --line2: rgba(76, 151, 255, .34);
  --text: #f4f8ff;
  --muted: #9dafc8;
  --blue: #368cff;
  --cyan: #37d7ff;
  --green: #35e6a3;
  --gold: #ffd166;
  --orange: #ff9f1c;
  --red: #ff5f73;
  --shadow: 0 24px 90px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(54,140,255,.34), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(53,230,163,.16), transparent 28rem),
    linear-gradient(135deg, #050b16 0%, #07182c 45%, #06101f 100%);
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.bg-orb { position: fixed; width: 420px; height: 420px; border-radius: 999px; filter: blur(80px); opacity: .24; pointer-events: none; }
.orb-one { left: -120px; top: 160px; background: var(--blue); }
.orb-two { right: -140px; top: 70px; background: var(--green); }
.stadium-cut { position: fixed; left: 0; bottom: 0; width: 260px; height: 360px; opacity: .26; pointer-events: none; background: radial-gradient(ellipse at bottom, rgba(53,215,255,.9), transparent 48%), linear-gradient(180deg, transparent, rgba(20,111,255,.2)); clip-path: polygon(0 42%,100% 0,100% 100%,0 100%); }
.card, .panel, .rail-card, .summary-card, .match-row, .filter-card, .completion-strip, .fairness-banner { background: linear-gradient(145deg, rgba(21,39,66,.86), rgba(9,23,43,.72)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(2,14,30,.92), rgba(4,18,35,.78)); display: flex; flex-direction: column; gap: 18px; z-index: 5; }
.brand { display:flex; align-items:center; gap:12px; }
.trophy-mark { display:grid; place-items:center; width:44px; height:44px; border-radius:16px; background: linear-gradient(135deg, #ffcf54, #ff9f1c); box-shadow: 0 14px 34px rgba(255,159,28,.22); color:#07101e; font-size:24px; }
.brand strong { display:block; font-size:25px; letter-spacing:-.04em; }
.brand small { color: var(--cyan); text-transform: uppercase; letter-spacing: .26em; font-size: 11px; font-weight:900; }
.big-brand strong { font-size: 34px; }
.league-pill { display:inline-flex; align-items:center; gap:8px; width:max-content; color:#d9eaff; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 12px; padding:8px 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.side-nav { display:grid; gap:9px; margin-top: 2px; }
.nav-btn { border: 1px solid transparent; background: transparent; color: #b9c7dc; display:flex; align-items:center; gap:13px; padding: 14px 14px; border-radius: 14px; font-weight: 850; text-align:left; }
.nav-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-btn.active { background: linear-gradient(135deg, rgba(25,122,255,.42), rgba(55,215,255,.16)); border-color: rgba(55,215,255,.35); color: #fff; box-shadow: inset 4px 0 0 var(--cyan); }
.nav-icon { width:22px; height:22px; display:grid; place-items:center; color: var(--cyan); }
.nav-icon.home:before { content:'⌂'; font-size:24px; } .nav-icon.calendar:before { content:'▣'; } .nav-icon.trophy:before { content:'♕'; font-size:22px; } .nav-icon.chart:before { content:'▥'; } .nav-icon.book:before { content:'☰'; }
.stadium-panel { margin-top:auto; padding:18px; min-height:170px; border-radius:22px; background: radial-gradient(ellipse at bottom, rgba(53,215,255,.45), transparent 50%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border:1px solid var(--line); overflow:hidden; }
.stadium-title { font-weight:950; margin-bottom:8px; }
.stadium-panel p { color:var(--muted); margin:0; line-height:1.5; font-size:13px; }
.app-main { min-width: 0; padding: 20px 22px 34px; }
.topbar { height:78px; display:flex; justify-content:space-between; align-items:center; gap:18px; padding: 0 0 18px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:18px; }
.topbar h1 { margin:4px 0 0; font-size: 28px; letter-spacing:-.04em; }
.eyebrow { margin:0; color: var(--cyan); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 950; }
.muted { color: var(--muted); }
.top-actions { display:flex; align-items:center; gap:12px; }
.icon-btn { width:44px; height:44px; border-radius:15px; border:1px solid var(--line); background:rgba(255,255,255,.07); color:var(--text); font-size:22px; }
.user-pill { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:18px; background:rgba(255,255,255,.06); border:1px solid var(--line); }
.user-pill small { display:block; color:var(--muted); font-size:12px; }
.avatar-photo { display:grid; place-items:center; width:42px; height:42px; border-radius:16px; background:linear-gradient(135deg,#f2b56b,#7948ff); font-weight:950; color:#fff; }
.small-avatar { width:34px; height:34px; border-radius:13px; font-size:12px; }
.content-area { min-width:0; }
.dashboard-layout, .wide-layout { display:grid; grid-template-columns: minmax(0,1fr) 330px; gap:18px; align-items:start; }
.wide-layout.single { display:block; max-width:1100px; margin:0 auto; }
.center-column { min-width:0; display:grid; gap:16px; }
.right-rail { display:grid; gap:14px; position:sticky; top:18px; }
.summary-grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:12px; }
.summary-card { min-height:124px; border-radius:16px; padding:18px; display:flex; align-items:center; gap:14px; position:relative; overflow:hidden; }
.summary-card:after { content:''; position:absolute; right:-55px; bottom:-70px; width:150px; height:150px; border-radius:999px; background:rgba(54,140,255,.14); }
.summary-card.gold:after { background:rgba(255,209,102,.18); } .summary-card.green:after { background:rgba(53,230,163,.15); } .summary-card.danger:after { background:rgba(255,95,115,.18); }
.summary-icon { width:44px; height:44px; border-radius:16px; display:grid; place-items:center; background:rgba(255,255,255,.08); font-size:24px; flex:0 0 auto; }
.summary-card small { display:block; color:#c7d4e8; text-transform:uppercase; font-size:10px; letter-spacing:.08em; font-weight:900; }
.summary-card strong { display:block; font-size:28px; margin:6px 0; letter-spacing:-.04em; }
.summary-card strong b { font-size:13px; color:#d6e2f4; font-weight:800; }
.summary-card em { font-style:normal; color:var(--muted); font-size:13px; }
.progress-summary { justify-content:center; }
.ring { --p:0; width:58px; height:58px; flex:0 0 auto; border-radius:999px; display:grid; place-items:center; background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position:relative; }
.ring:after { content:''; position:absolute; inset:7px; border-radius:inherit; background:#0b1b31; }
.ring span { position:relative; z-index:1; font-weight:950; font-size:14px; }
.fairness-banner { border-radius:14px; padding:14px 18px; display:flex; align-items:center; gap:12px; border-color: rgba(54,140,255,.46); background:linear-gradient(135deg,rgba(54,140,255,.22),rgba(12,35,70,.72)); }
.fairness-banner p { margin:0; color:#d9eaff; }
.panel { border-radius:18px; padding:18px; }
.panel-head, .rail-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.panel h2, .rail-card h3 { margin:4px 0 0; letter-spacing:-.03em; }
.link-btn { border:0; background:transparent; color:#76caff; font-weight:900; padding:8px; }
.match-list { display:grid; gap:10px; }
.match-row { display:grid; grid-template-columns: 112px 1fr 145px 1fr 190px; gap:14px; align-items:center; border-radius:14px; padding:12px 12px; position:relative; overflow:hidden; }
.match-row:before { content:''; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,rgba(55,215,255,.4),transparent); }
.match-row.live { border-color:rgba(53,230,163,.35); } .match-row.soon { border-color:rgba(255,159,28,.42); } .match-row.finished { opacity:.92; }
.status-pill { display:inline-flex; padding:7px 9px; border-radius:9px; text-transform:uppercase; font-size:11px; font-weight:950; color:#b9efff; background:rgba(54,140,255,.16); border:1px solid rgba(54,140,255,.28); }
.status-pill.soon { color:#ffcf8d; background:rgba(255,159,28,.18); border-color:rgba(255,159,28,.34); } .status-pill.live { color:#c0ffe3; background:rgba(53,230,163,.16); border-color:rgba(53,230,163,.34); } .status-pill.finished { color:#d8e1ec; background:rgba(255,255,255,.08); } .status-pill.locked { color:#d8e1ec; background:rgba(255,255,255,.07); }
.team-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.team-cell.away { justify-content:flex-end; text-align:right; }
.team-cell strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crest { width:46px; height:46px; border-radius:16px; background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.05)); border:1px solid rgba(255,255,255,.14); display:grid; place-items:center; flex:0 0 auto; overflow:hidden; }
.team-logo { width:34px; height:34px; object-fit:contain; display:block; }
.flag-fallback { font-size:26px; line-height:1; }
.score-cell { text-align:center; }
.score-cell small { color:var(--muted); display:block; font-size:11px; font-weight:850; text-transform:uppercase; margin-bottom:4px; }
.score-cell div { display:flex; align-items:center; justify-content:center; gap:8px; font-size:24px; font-weight:950; }
.score-cell span { min-width:46px; padding:8px 10px; border-radius:11px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); }
.action-cell { display:grid; gap:8px; justify-items:stretch; }
.lock-text { text-align:center; color:#76caff; font-weight:900; font-size:13px; }
.warn-text { color:#ffbd59; }
.predict-controls { display:flex; align-items:center; justify-content:center; gap:7px; flex-wrap:wrap; }
.input { width:100%; min-height:40px; border:1px solid rgba(180,203,235,.22); border-radius:12px; background:rgba(0,0,0,.24); color:var(--text); padding:8px 10px; }
.input::placeholder { color:rgba(210,225,245,.55); }
.score-input { width:46px; text-align:center; font-weight:950; padding:8px 4px; }
.btn { border:0; border-radius:12px; padding:11px 15px; color:#fff; font-weight:950; background:linear-gradient(135deg,#166bff,#37d7ff); box-shadow:0 12px 26px rgba(22,107,255,.25); transition:transform .15s ease, filter .15s ease; }
.btn:hover { transform:translateY(-1px); filter:brightness(1.06); }
.btn.secondary { background:rgba(255,255,255,.07); border:1px solid var(--line); color:var(--text); box-shadow:none; }
.btn.compact { padding:8px 12px; font-size:12px; }
.saved-line { color:var(--muted); font-size:12px; text-align:center; }
.points-chip { display:inline-flex; align-items:center; padding:3px 7px; border-radius:999px; font-size:11px; font-weight:900; border:1px solid var(--line); }
.gold-chip { color:#1d1500; background:linear-gradient(135deg,#ffe29a,#ffd166); border-color:transparent; } .green-chip { color:#d8fff0; background:rgba(53,230,163,.18); border-color:rgba(53,230,163,.35); } .blue-chip { color:#d9f5ff; background:rgba(55,215,255,.18); border-color:rgba(55,215,255,.35); } .red-chip { color:#ffe0e4; background:rgba(255,95,115,.2); border-color:rgba(255,95,115,.38); } .muted-chip { color:var(--muted); background:rgba(255,255,255,.07); }
.details-cell { grid-column: 1 / -1; padding-top:10px; border-top:1px solid rgba(255,255,255,.07); display:grid; gap:8px; }
.match-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px; }
.match-meta span { padding:6px 8px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); }
.all-preds, .admin-override { color:#dceaff; }
.all-preds summary, .admin-override summary { cursor:pointer; font-weight:900; }
.prediction-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; font-size:12px; }
.prediction-list > span { display:inline-flex; gap:6px; align-items:center; padding:7px 8px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.completion-strip { border-radius:14px; padding:12px; display:grid; grid-template-columns:auto 1fr auto auto; gap:14px; align-items:center; margin-top:14px; }
.target-icon { width:46px; height:46px; border-radius:16px; display:grid; place-items:center; background:rgba(255,255,255,.08); color:var(--cyan); font-size:26px; }
.progress { height:10px; border-radius:999px; background:rgba(255,255,255,.1); overflow:hidden; margin-top:7px; }
.progress span { display:block; height:100%; background:linear-gradient(90deg,var(--green),var(--cyan)); border-radius:inherit; }
.rail-card { border-radius:14px; padding:15px; }
.leader-list { display:grid; gap:8px; }
.rank-row { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:9px; padding:9px; border-radius:12px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.06); }
.rank-row.champion { background:linear-gradient(135deg,rgba(255,209,102,.18),rgba(255,255,255,.045)); }
.place { width:27px; height:27px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.09); color:#fff; font-weight:950; }
.champion .place { background:linear-gradient(135deg,#ffd166,#ff9f1c); color:#151000; }
.rank-user { display:flex; align-items:center; gap:9px; min-width:0; }
.rank-user strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-user small, .rank-points small { display:block; color:var(--muted); font-size:11px; }
.rank-points { text-align:right; }
.rank-points b { font-size:18px; color:var(--gold); }
.leader-list.large .rank-row { padding:14px; grid-template-columns:42px 1fr auto; }
.leader-list.large .place { width:36px; height:36px; }
.leader-list.large .rank-points b { font-size:26px; }
.score-rules { display:grid; gap:8px; margin-top:12px; }
.score-rules div { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); }
.score-rules strong { color:var(--gold); }
.score-rules span { color:#c8d5e8; text-align:right; }
.mini-stats { position:relative; overflow:hidden; }
.mini-stat-row { display:flex; justify-content:space-between; padding:7px 0; color:#dbe7f8; }
.big-points { margin:10px auto 0; width:96px; height:96px; border-radius:999px; display:grid; place-items:center; background: conic-gradient(var(--cyan), var(--green), rgba(255,255,255,.12)); position:relative; }
.big-points:after { content:''; position:absolute; inset:8px; border-radius:inherit; background:#0b1b31; }
.big-points span, .big-points small { position:relative; z-index:1; grid-column:1; grid-row:1; }
.big-points span { font-size:28px; font-weight:950; }
.big-points small { transform:translateY(21px); color:#c9d6e8; text-transform:uppercase; font-size:10px; }
.help-card { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.help-card p { line-height:1.5; font-size:13px; }
.help-mark { width:58px; height:58px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.08); border:1px solid var(--line); color:#d9eaff; font-size:28px; font-weight:950; flex:0 0 auto; }
.filter-card { border-radius:14px; padding:12px; display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.filter-card span { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.filter-actions { display:flex; align-items:center; gap:8px; }
.compact-select { width:220px; }
.more-row { display:flex; justify-content:center; margin-top:14px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.admin-block { padding:16px; border-radius:14px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.08); }
.admin-block.highlight { background:linear-gradient(135deg,rgba(53,230,163,.12),rgba(55,215,255,.08)); }
.admin-details { margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.admin-details summary { cursor:pointer; font-weight:950; }
.user-row { display:grid; grid-template-columns:1.1fr .5fr 1fr auto; gap:8px; align-items:center; margin:10px 0; }
.field-label { display:block; margin:14px 0 7px; color:var(--muted); font-size:13px; font-weight:850; }
.field { display:flex; gap:10px; }
.stats-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-bottom:14px; }
.info-card { padding:16px; border-radius:14px; margin-top:14px; }
.example-box { margin-top:14px; padding:14px; border-radius:12px; background:rgba(55,215,255,.08); border:1px solid rgba(55,215,255,.17); line-height:1.6; }
.faq-card { margin-top:14px; padding:18px; border-radius:14px; }
.faq-card details { border-top:1px solid rgba(255,255,255,.08); padding:13px 0; }
.faq-card details:first-of-type { margin-top:10px; }
.faq-card summary { cursor:pointer; font-weight:950; }
.faq-card p { color:var(--muted); line-height:1.6; }
.empty-state { border-radius:14px; padding:20px; }
.empty-state p { margin-bottom:0; }
.login-page { width:min(100% - 32px,1180px); margin:0 auto; min-height:100vh; display:grid; grid-template-columns:1.2fr .65fr; gap:18px; align-items:center; }
.login-copy, .login-card { border-radius:26px; padding:30px; }
.login-copy h1 { font-size: clamp(46px, 7vw, 86px); line-height:.92; letter-spacing:-.07em; margin:24px 0 14px; max-width:760px; }
.sub { color:#c8d8ec; line-height:1.65; font-size:18px; max-width:760px; }
.login-ball { width:70px; height:70px; border-radius:24px; display:grid; place-items:center; background:rgba(255,255,255,.08); font-size:34px; margin-bottom:18px; }
.rules-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:24px; }
.rules-grid div { padding:16px; border-radius:16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.rules-grid strong { display:block; color:var(--gold); font-size:28px; }
.rules-grid span { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.toast { position:fixed; right:18px; bottom:18px; max-width:430px; padding:14px 16px; background:#0b1728; border:1px solid rgba(255,255,255,.16); border-radius:16px; box-shadow:0 18px 70px rgba(0,0,0,.5); z-index:50; }
@media (max-width: 1240px) { .app-shell { grid-template-columns: 190px minmax(0,1fr); } .dashboard-layout, .wide-layout { grid-template-columns:1fr; } .right-rail { position:static; grid-template-columns: repeat(2,1fr); } .summary-grid { grid-template-columns: repeat(3,1fr); } .match-row { grid-template-columns:90px 1fr 130px 1fr; } .action-cell { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items:center; } }
@media (max-width: 900px) { .app-shell { display:block; } .sidebar { position:fixed; left:10px; right:10px; bottom:10px; top:auto; height:auto; z-index:30; padding:8px; border:1px solid var(--line); border-radius:24px; background:rgba(5,16,31,.92); backdrop-filter:blur(18px); } .sidebar .brand, .sidebar .league-pill, .stadium-panel { display:none; } .side-nav { display:grid; grid-template-columns:repeat(5,1fr); gap:5px; margin:0; } .nav-btn { justify-content:center; flex-direction:column; padding:8px 4px; font-size:11px; gap:4px; border-radius:16px; } .nav-btn.active { box-shadow:none; } .app-main { padding:16px 12px 92px; } .topbar { height:auto; align-items:flex-start; flex-direction:column; } .top-actions { width:100%; flex-wrap:wrap; } .user-pill { flex:1; } .summary-grid, .right-rail, .stats-grid, .admin-grid, .login-page { grid-template-columns:1fr; } .match-row { grid-template-columns:1fr; text-align:center; } .team-cell, .team-cell.away { justify-content:center; text-align:center; } .details-cell { grid-column:1; } .action-cell { grid-column:1; display:grid; } .filter-card { flex-direction:column; align-items:stretch; } .filter-actions { flex-direction:column; align-items:stretch; } .compact-select { width:100%; } .completion-strip { grid-template-columns:1fr; text-align:center; } .field, .predict-controls { flex-direction:column; } .score-input { width:100%; } .user-row { grid-template-columns:1fr; } .rules-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 520px) { .summary-card { min-height:104px; } .score-cell div { font-size:20px; } .score-cell span { min-width:38px; } .rules-grid { grid-template-columns:1fr; } .login-copy h1 { font-size:42px; } }

/* Mobile match-card redesign: clearer teams, score, and prediction sections */
.kickoff-cell { display:none; }
.score-cell em { display:none; }
.prediction-box { display:grid; gap:8px; justify-items:center; width:100%; }
.prediction-title { display:none; }
.score-field { display:grid; gap:5px; justify-items:center; min-width:0; }
.score-field small { display:none; color:var(--muted); font-size:11px; max-width:92px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.save-prediction-btn { width:auto; }

@media (max-width: 900px) {
  .match-list { gap:16px; }
  .match-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "home"
      "kickoff"
      "away"
      "score"
      "action"
      "details";
    gap:18px;
    padding:22px 18px 18px;
    border-radius:26px;
    text-align:center;
    background:
      radial-gradient(circle at 50% 42%, rgba(54,140,255,.16), transparent 18rem),
      linear-gradient(145deg, rgba(18,38,68,.94), rgba(4,17,34,.88));
  }
  .status-cell { grid-area:status; display:flex; justify-content:center; }
  .team-cell.home { grid-area:home; }
  .team-cell.away { grid-area:away; }
  .kickoff-cell {
    grid-area:kickoff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#aebed6;
    font-size:15px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin:-2px 0;
  }
  .kickoff-cell:before,
  .kickoff-cell:after {
    content:'';
    height:1px;
    width:min(26vw, 115px);
    background:linear-gradient(90deg, transparent, rgba(174,190,214,.32));
  }
  .kickoff-cell:after { background:linear-gradient(90deg, rgba(174,190,214,.32), transparent); }
  .score-cell { grid-area:score; display:grid; gap:10px; justify-items:center; }
  .score-cell small { display:none; }
  .score-cell div { gap:18px; font-size:34px; }
  .score-cell span {
    min-width:86px;
    padding:14px 18px;
    border-radius:18px;
    background:rgba(0,0,0,.24);
    border:1px solid rgba(54,140,255,.62);
    box-shadow:inset 0 0 0 1px rgba(55,215,255,.06), 0 12px 34px rgba(0,0,0,.22);
  }
  .score-cell em {
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--cyan);
    font-style:normal;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.12em;
  }
  .score-cell em:before,
  .score-cell em:after {
    content:'';
    width:92px;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(55,215,255,.35));
  }
  .score-cell em:after { background:linear-gradient(90deg, rgba(55,215,255,.35), transparent); }
  .action-cell {
    grid-area:action;
    display:grid;
    gap:14px;
    grid-template-columns:1fr;
    justify-items:stretch;
  }
  .details-cell { grid-area:details; }
  .team-cell,
  .team-cell.away {
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    justify-content:start;
    align-items:center;
    gap:16px;
    text-align:left;
    width:100%;
    max-width:420px;
    margin:0 auto;
  }
  .team-cell.away strong { order:2; }
  .team-cell.away .crest { order:1; }
  .team-cell strong {
    font-size:clamp(22px, 7vw, 34px);
    line-height:1.1;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
  .crest {
    width:64px;
    height:64px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
  }
  .team-logo { width:48px; height:48px; }
  .flag-fallback { font-size:34px; }
  .prediction-box {
    position:relative;
    padding:34px 14px 14px;
    border:1px solid rgba(54,140,255,.32);
    border-radius:22px;
    background:linear-gradient(145deg, rgba(54,140,255,.11), rgba(255,255,255,.035));
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
  }
  .prediction-title {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    top:-16px;
    left:50%;
    transform:translateX(-50%);
    padding:9px 18px;
    border-radius:14px;
    color:#60bdff;
    background:#0d213d;
    border:1px solid rgba(54,140,255,.4);
    font-size:13px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
    white-space:nowrap;
  }
  .prediction-box .predict-controls {
    display:grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items:start;
    gap:14px;
    width:100%;
  }
  .prediction-box .predict-controls > b {
    padding-top:16px;
    color:#eef6ff;
    font-size:28px;
  }
  .score-field small { display:block; }
  .prediction-box .score-input {
    width:100%;
    min-height:64px;
    border-radius:18px;
    font-size:32px;
    border-color:rgba(54,140,255,.72);
    background:rgba(0,0,0,.25);
  }
  .save-prediction-btn {
    width:100%;
    min-height:56px;
    border-radius:18px;
    font-size:16px;
    margin-top:2px;
  }
  .lock-text {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    border-radius:18px;
    background:rgba(0,0,0,.18);
    border:1px solid rgba(255,255,255,.12);
    font-size:16px;
  }
  .saved-line { font-size:13px; }
  .match-meta { justify-content:center; }
  .match-meta span { padding:9px 12px; }
}

@media (max-width: 420px) {
  .match-row { padding:20px 14px 16px; }
  .team-cell, .team-cell.away { gap:12px; }
  .crest { width:56px; height:56px; border-radius:18px; }
  .team-logo { width:42px; height:42px; }
  .score-cell span { min-width:74px; padding:12px 14px; }
  .prediction-box .score-input { min-height:58px; font-size:28px; }
  .score-field small { max-width:112px; }
  .score-cell em:before,
  .score-cell em:after { width:64px; }
}

/* v1.3 update: badges, uniform SVG menu icons, mobile score layout, stats, notifications, animations */
.version-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-top:7px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(55,215,255,.34);
  background:linear-gradient(135deg, rgba(25,122,255,.22), rgba(55,215,255,.10));
  color:#d9f6ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 10px 24px rgba(25,122,255,.14);
}
.nav-icon { width:24px; height:24px; min-width:24px; min-height:24px; display:grid; place-items:center; }
.nav-icon:before { content:none !important; }
.nav-svg { width:22px; height:22px; display:block; }
.nav-btn { position:relative; }
.nav-label { display:inline-flex; align-items:center; }
.nav-badge {
  position:absolute;
  top:7px;
  right:8px;
  min-width:19px;
  height:19px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg,#ff4d6d,#ff9f1c);
  color:white;
  font-size:11px;
  font-weight:950;
  box-shadow:0 8px 22px rgba(255,77,109,.35);
}
.notify-icon.enabled { color:var(--green); border-color:rgba(53,230,163,.4); box-shadow:0 0 0 3px rgba(53,230,163,.08); }
.reveal-card { animation:cardReveal .42s ease both; }
@keyframes cardReveal { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
.match-row { transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.match-row:hover { transform:translateY(-2px); box-shadow:0 20px 70px rgba(0,0,0,.34); }
.btn { transition:transform .14s ease, filter .14s ease, box-shadow .14s ease; }
.btn:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.05); }
.progress span { transition:width .55s ease; }
.live-minute {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(53,230,163,.12);
  border:1px solid rgba(53,230,163,.28);
  color:#80ffd1;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  white-space:nowrap;
}
.live-minute:before { content:''; width:7px; height:7px; border-radius:999px; background:#35e6a3; box-shadow:0 0 0 0 rgba(53,230,163,.9); animation:livePulse 1.3s infinite; }
@keyframes livePulse { to { box-shadow:0 0 0 9px rgba(53,230,163,0); } }

/* Replace old match-card grid with a more controlled responsive structure */
.match-row { display:block; padding:14px; }
.desktop-match-grid { display:grid; grid-template-columns:112px minmax(0,1fr) 145px minmax(0,1fr); gap:14px; align-items:center; }
.mobile-match-head, .mobile-scoreboard, .mobile-row-labels { display:none; }
.action-cell { margin-top:14px; }
.details-cell { margin-top:12px; }
.desktop-lock { margin-bottom:10px; }
.confidence-select { display:flex; align-items:center; justify-content:center; gap:8px; color:var(--muted); font-size:12px; font-weight:850; }
.confidence-input { width:120px; padding:8px 10px; min-height:auto; }
.textarea { min-height:92px; resize:vertical; line-height:1.5; }
.notification-admin { grid-column:1 / -1; }
.breakdown-grid, .confidence-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:14px; }
.confidence-grid { grid-template-columns:repeat(3,1fr); }
.breakdown-grid div, .confidence-grid div {
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.075);
}
.breakdown-grid strong, .confidence-grid strong { display:block; font-size:24px; color:#fff; }
.breakdown-grid span, .confidence-grid span { display:block; color:var(--muted); margin-top:3px; font-size:12px; line-height:1.35; }
.last5-list, .timeline-list { display:grid; gap:10px; margin-top:14px; }
.last5-item, .timeline-item {
  padding:13px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);
}
.last5-item strong, .timeline-item strong { display:block; }
.last5-item small, .timeline-item small { color:var(--muted); display:block; margin-top:2px; }
.last5-item p, .timeline-item p { margin:8px 0 0; }
.timeline-item { display:grid; grid-template-columns:18px 1fr; gap:10px; align-items:start; }
.timeline-dot { width:12px; height:12px; border-radius:999px; margin-top:5px; background:linear-gradient(135deg,var(--cyan),var(--green)); box-shadow:0 0 0 5px rgba(55,215,255,.12); }

@media (max-width:1240px) {
  .desktop-match-grid { grid-template-columns:90px minmax(0,1fr) 130px minmax(0,1fr); }
  .action-cell { grid-column:auto; }
}

@media (max-width:900px) {
  .side-nav { grid-template-columns:repeat(5,1fr); }
  .nav-btn { min-height:62px; position:relative; }
  .nav-icon { width:24px !important; height:24px !important; }
  .nav-svg { width:22px; height:22px; }
  .nav-badge { top:4px; right:7px; }
  .match-list { gap:16px; }
  .match-row {
    padding:14px;
    text-align:initial;
    border-radius:24px;
    overflow:hidden;
  }
  .desktop-match-grid, .desktop-lock { display:none; }
  .mobile-match-head {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
  }
  .mobile-match-head .live-minute { justify-self:center; }
  .mobile-match-head .lock-text {
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    white-space:nowrap;
    display:inline-flex;
  }
  .mobile-scoreboard {
    display:grid;
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);
    align-items:start;
    gap:8px;
    padding:14px;
    border-radius:22px;
    background:linear-gradient(145deg, rgba(54,140,255,.10), rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.08);
  }
  .mobile-team-col {
    display:grid;
    grid-template-rows:58px minmax(44px,auto) 50px 50px;
    gap:8px;
    justify-items:center;
    min-width:0;
  }
  .mobile-flag .crest, .mobile-flag .team-logo, .mobile-flag .flag-fallback { width:58px; height:58px; }
  .mobile-flag .crest { border-radius:18px; }
  .mobile-flag .team-logo { object-fit:contain; }
  .mobile-flag .flag-fallback { display:grid; place-items:center; font-size:33px; }
  .mobile-team-name {
    align-self:center;
    text-align:center;
    font-size:clamp(16px, 5vw, 22px);
    line-height:1.08;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .mobile-score {
    width:100%;
    min-height:50px;
    display:grid;
    place-items:center;
    border-radius:16px;
    font-size:26px;
    font-weight:950;
    color:#fff;
  }
  .actual-score { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
  .pick-score { background:rgba(55,215,255,.10); border:1px solid rgba(55,215,255,.30); color:#dff8ff; }
  .mobile-vs { display:grid; align-content:center; justify-items:center; min-height:210px; gap:9px; color:var(--muted); }
  .mobile-vs span { width:42px; height:42px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.075); border:1px solid rgba(255,255,255,.10); color:#eef7ff; font-size:12px; font-weight:950; }
  .mobile-vs small { writing-mode:vertical-rl; transform:rotate(180deg); font-size:11px; white-space:nowrap; }
  .mobile-row-labels {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:9px 14px 0;
    color:var(--muted);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
  }
  .mobile-row-labels span:first-child { text-align:center; }
  .mobile-row-labels span:last-child { text-align:center; color:#9eefff; }
  .action-cell {
    margin-top:18px;
    display:grid;
    gap:12px;
    justify-items:stretch;
  }
  .prediction-box {
    padding:34px 14px 14px;
    border:1px solid rgba(54,140,255,.32);
    border-radius:22px;
    background:linear-gradient(145deg, rgba(54,140,255,.11), rgba(255,255,255,.035));
  }
  .prediction-box .predict-controls {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:start;
    gap:12px;
    width:100%;
  }
  .prediction-box .predict-controls > b { padding-top:14px; font-size:24px; color:#eef6ff; }
  .prediction-box .score-input { width:100%; min-height:58px; border-radius:18px; font-size:28px; text-align:center; }
  .confidence-select { flex-direction:row; justify-content:space-between; padding:10px 0 2px; }
  .confidence-input { width:150px; }
  .save-prediction-btn { width:100%; min-height:54px; border-radius:18px; font-size:16px; }
  .saved-line { text-align:center; }
  .details-cell { margin-top:12px; }
  .match-meta { justify-content:center; }
  .filter-actions { gap:9px; }
  .breakdown-grid { grid-template-columns:repeat(2,1fr); }
  .confidence-grid { grid-template-columns:1fr; }
}

@media (max-width:420px) {
  .mobile-scoreboard { grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); padding:12px; }
  .mobile-team-col { grid-template-rows:54px minmax(42px,auto) 46px 46px; gap:7px; }
  .mobile-flag .crest, .mobile-flag .team-logo, .mobile-flag .flag-fallback { width:54px; height:54px; }
  .mobile-score { min-height:46px; font-size:24px; }
  .mobile-vs span { width:38px; height:38px; }
  .breakdown-grid { grid-template-columns:1fr; }
}
