/* =========================================================
   FC26 CHAMPIONSHIP — Stylesheet
   Theme: deep navy + neon green, mobile-first
   ========================================================= */

:root {
  /* Brand */
  --bg-deep: #050b1e;
  --bg-base: #0a1530;
  --bg-card: #111e3f;
  --bg-card-hover: #15264c;
  --bg-elevated: #1a2855;

  --border: rgba(0, 255, 136, 0.12);
  --border-strong: rgba(0, 255, 136, 0.28);
  --border-soft: rgba(255, 255, 255, 0.06);

  --neon: #00ff88;
  --neon-glow: rgba(0, 255, 136, 0.4);
  --neon-soft: rgba(0, 255, 136, 0.08);
  --neon-dim: #00cc6e;

  --accent-blue: #4d8eff;
  --accent-amber: #ffb84d;
  --accent-red: #ff5577;

  --text-primary: #ffffff;
  --text-secondary: #a8b3d1;
  --text-tertiary: #6b7799;
  --text-dim: #4a5478;

  --shadow-glow: 0 0 24px rgba(0, 255, 136, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body { position: relative; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
input:focus { outline: none; }

/* ======== Background effects ======== */
.bg-effects {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.bg-glow-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.25), transparent 70%);
  top: -100px; right: -100px;
}
.bg-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77, 142, 255, 0.2), transparent 70%);
  bottom: -150px; left: -150px;
  animation-delay: -9s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* ======== Screens ======== */
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.screen[hidden] { display: none; }

/* ======== Auth screen ======== */
.auth-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}
.logo-shield {
  width: 72px; height: 86px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 24px var(--neon-glow));
  animation: shieldPulse 3s ease-in-out infinite;
}
@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 24px var(--neon-glow)); }
  50% { filter: drop-shadow(0 0 36px var(--neon-glow)); }
}
.logo-shield svg { width: 100%; height: 100%; }

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1;
}
.brand-accent { color: var(--neon); }
.brand-subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 600;
}

.auth-form {
  animation: fadeInUp 0.6s 0.1s ease-out backwards;
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.auth-header p { color: var(--text-tertiary); font-size: 14px; }

/* Player grid for login */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.player-card:active { transform: scale(0.96); }
.player-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.player-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.player-card:hover::before { opacity: 1; }
.player-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px; letter-spacing: 0;
  color: var(--neon);
  position: relative;
  overflow: hidden;
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-name {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* PIN entry */
.pin-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
}
.pin-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}
.pin-label span { color: var(--neon); font-weight: 600; }
.pin-dots {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 20px;
}
.pin-dots .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  transition: all 0.2s;
}
.pin-dots .dot.filled {
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon-glow);
  border-color: var(--neon);
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.key {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.15s;
  font-family: var(--font-mono);
}
.key:active {
  background: var(--neon-soft);
  border-color: var(--neon);
  transform: scale(0.95);
  color: var(--neon);
}
.key-ghost {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-tertiary);
}

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-soft);
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--neon);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px var(--neon-glow);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover { box-shadow: 0 6px 24px var(--neon-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--neon); }
.btn-ghost:active { transform: scale(0.98); }
.btn-small { padding: 8px 16px; font-size: 13px; width: auto; margin-top: 12px; }

.btn-link {
  background: none; color: var(--text-tertiary);
  font-size: 13px; padding: 12px;
  width: 100%; margin-top: 12px;
}
.btn-link:hover { color: var(--neon); }

.btn-danger {
  width: 100%;
  background: rgba(255, 85, 119, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 85, 119, 0.3);
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-md);
}

/* Inputs */
.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.input-group input,
.input-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  transition: all 0.2s;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-soft);
}
.input-group input[type="password"] {
  letter-spacing: 8px;
  text-align: center;
  font-size: 20px;
}

.error-msg {
  background: rgba(255, 85, 119, 0.1);
  border: 1px solid rgba(255, 85, 119, 0.3);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* ======== Main app ======== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10, 21, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left {
  display: flex; align-items: center; gap: 12px;
}
.mini-shield {
  width: 32px; height: 38px;
  filter: drop-shadow(0 0 8px var(--neon-glow));
}
.mini-shield svg { width: 100%; height: 100%; }
.topbar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.topbar-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -2px;
  font-weight: 500;
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--neon); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.9); }

/* Champion banner */
.champion-banner {
  margin: 16px 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(255, 184, 77, 0.1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: championGlow 2s ease-in-out infinite;
}
@keyframes championGlow {
  0%, 100% { box-shadow: 0 0 20px var(--neon-glow); }
  50% { box-shadow: 0 0 40px var(--neon-glow); }
}
.champion-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(255, 184, 77, 0.2), transparent 60%);
  pointer-events: none;
}
.champion-trophy {
  font-size: 48px;
  margin-bottom: 8px;
  animation: trophyBounce 1.5s ease-in-out infinite;
}
@keyframes trophyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.champion-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-amber);
  margin-bottom: 4px;
}
.champion-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--neon);
  text-transform: uppercase;
}

/* Content & tabs */
.content {
  flex: 1;
  padding: 16px 20px 100px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 16px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-glow);
}

/* Standings */
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.standings-row {
  display: grid;
  grid-template-columns: 30px 1fr 28px 28px 28px 36px 40px;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  transition: background 0.2s;
  position: relative;
}
.standings-row:last-child { border-bottom: none; }
.standings-row.header {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 10px 14px;
}
.standings-row.is-me { background: rgba(0, 255, 136, 0.04); }
.standings-row.is-me::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
}
.standings-row.is-leader .pos { color: var(--accent-amber); }
.standings-row.is-leader .player-cell { color: var(--neon); font-weight: 700; }

.pos {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.player-cell {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  overflow: hidden;
}
.player-cell .mini-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--neon);
  overflow: hidden;
}
.player-cell .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-cell .name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-cell { text-align: center; font-family: var(--font-mono); }
.pts-cell {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--neon);
}
.gd-positive { color: var(--neon); }
.gd-negative { color: var(--accent-red); }

.legend {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.legend strong { color: var(--neon); font-weight: 600; }

/* Fixtures */
.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.fixture-card.played { opacity: 0.85; }
.fixture-card:not(.played):hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.fixture-round {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.fixture-teams {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.fixture-home, .fixture-away {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.fixture-home { justify-content: flex-end; text-align: right; }
.fixture-away { justify-content: flex-start; }
.fixture-home .name-text, .fixture-away .name-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.fixture-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  flex-shrink: 0;
  padding: 0 2px;
}
.fixture-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  color: var(--neon);
  flex-shrink: 0;
}
.fixture-pending {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 6px;
  flex-shrink: 0;
}
.fixture-winner { color: var(--neon); }
.fixture-loser { color: var(--text-tertiary); }
.fixture-draw { color: var(--accent-amber); }

/* History tab */
.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  animation: fadeInUp 0.3s ease backwards;
}
.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.history-card-round {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}
.history-card-date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
}
.history-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.history-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.history-team.home { justify-content: flex-end; }
.history-team.away { justify-content: flex-start; }
.history-team .name-text {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-team .mini-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--neon);
  overflow: hidden;
}
.history-team .mini-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.history-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
  padding: 4px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--neon);
  white-space: nowrap;
}
.history-team.winner .name-text { color: var(--neon); }
.history-team.loser .name-text { color: var(--text-tertiary); opacity: 0.8; }
.history-result-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-tertiary);
}
.history-result-bar .verdict {
  font-weight: 600;
}
.history-result-bar .verdict.win { color: var(--neon); }
.history-result-bar .verdict.draw { color: var(--accent-amber); }
.history-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.history-filter::-webkit-scrollbar { display: none; }
.history-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.15s;
}
.history-filter-btn:active { transform: scale(0.96); }
.history-filter-btn.active {
  background: var(--neon-soft);
  border-color: var(--border-strong);
  color: var(--neon);
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.history-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}
.history-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--neon);
  line-height: 1;
  margin-bottom: 4px;
}
.history-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}
.history-section-divider {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 18px 4px 10px;
  font-weight: 600;
}

/* Stagger for history cards */
.history-card:nth-child(1) { animation-delay: 0.02s; }
.history-card:nth-child(2) { animation-delay: 0.04s; }
.history-card:nth-child(3) { animation-delay: 0.06s; }
.history-card:nth-child(4) { animation-delay: 0.08s; }
.history-card:nth-child(5) { animation-delay: 0.10s; }
.history-card:nth-child(n+6) { animation-delay: 0.12s; }

/* Enter result */
.enter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.match-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
}
.match-team {
  text-align: center;
}
.match-avatar {
  width: 80px; height: 80px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--neon);
  overflow: hidden;
}
.match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.score-input {
  width: 100%;
  background: var(--bg-deep);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1px;
  text-align: center;
  color: var(--neon);
  transition: all 0.2s;
}
.score-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-soft);
}
.match-separator {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--text-tertiary);
  padding-bottom: 50px;
}
.score-stepper {
  display: flex; gap: 8px; justify-content: center; margin-top: 8px;
}
.stepper-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.stepper-btn:active {
  background: var(--neon-soft);
  color: var(--neon);
  border-color: var(--neon);
  transform: scale(0.9);
}

/* Settings */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.settings-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.settings-row:last-child { border-bottom: none; }
.settings-label {
  font-size: 14px; color: var(--text-secondary);
}
.settings-value {
  font-family: var(--font-mono);
  color: var(--neon);
  font-weight: 600;
}
.you-badge {
  font-size: 10px;
  background: var(--neon);
  color: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(5, 11, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: 600px;
  margin: 0 auto;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  border-radius: var(--radius-md);
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--neon); }
.nav-btn.active svg { filter: drop-shadow(0 0 4px var(--neon-glow)); }
.nav-btn:active { transform: scale(0.9); }
.nav-btn-primary {
  position: relative;
}
.nav-btn-primary svg {
  background: var(--neon);
  color: var(--bg-deep);
  border-radius: 50%;
  padding: 6px;
  width: 36px; height: 36px;
  box-shadow: 0 4px 16px var(--neon-glow);
  margin-bottom: 2px;
}
.nav-btn-primary.active svg { filter: none; }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  max-width: 90%;
}
.toast.success { border-color: var(--neon); color: var(--neon); }
.toast.error { border-color: var(--accent-red); color: var(--accent-red); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 11, 30, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.modal-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex; gap: 12px;
}
.modal-actions > * { flex: 1; }

/* Loading overlay */
.loading-overlay {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  z-index: 1000;
  transition: opacity 0.4s ease;
}
.loading-overlay.hidden {
  opacity: 0; pointer-events: none;
}
.loading-overlay p {
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 24px var(--neon-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-state-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.empty-state-text {
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for list items */
.fixture-card { animation: fadeInUp 0.3s ease backwards; }
.fixture-card:nth-child(1) { animation-delay: 0.02s; }
.fixture-card:nth-child(2) { animation-delay: 0.04s; }
.fixture-card:nth-child(3) { animation-delay: 0.06s; }
.fixture-card:nth-child(4) { animation-delay: 0.08s; }
.fixture-card:nth-child(5) { animation-delay: 0.1s; }
.fixture-card:nth-child(n+6) { animation-delay: 0.12s; }

.standings-row:not(.header) { animation: fadeInUp 0.3s ease backwards; }
.standings-row:nth-child(2) { animation-delay: 0.04s; }
.standings-row:nth-child(3) { animation-delay: 0.08s; }
.standings-row:nth-child(4) { animation-delay: 0.12s; }
.standings-row:nth-child(5) { animation-delay: 0.16s; }
.standings-row:nth-child(n+6) { animation-delay: 0.2s; }
