/* ================================================================
   WK Poul 2026, Editorial Sports Magazine Style
   Palette: warm cream + deep navy + bold orange-red + gold
   ================================================================ */

:root {
  /* Colors */
  --bg: #f1ead8;
  --bg-soft: #ebe2ca;
  --bg-card: #ffffff;
  --ink: #0c1830;
  --ink-soft: #43506b;
  --ink-light: #8090a8;
  --accent: #e64b1a;
  --accent-dark: #b83a14;
  --gold: #b4924c;
  --line: #d6c9a8;
  --line-soft: #e6dcc0;
  --success: #2e7d4f;
  --warning: #c89426;

  /* Type */
  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Funnel Sans', system-ui, sans-serif;

  /* Misc */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 0 rgba(12, 24, 48, 0.06);
  --shadow: 0 2px 8px rgba(12, 24, 48, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(230, 75, 26, 0.04), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(180, 146, 76, 0.05), transparent 50%);
  background-attachment: fixed;
}

.screen { display: none !important; }
.screen.active { display: block !important; }

/* ================================================================
   LOADING SCREEN
   ================================================================ */

#loading-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#loading-screen.active { display: flex !important; }

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.loading-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.loading-year {
  color: var(--accent);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   LOGIN SCREEN
   ================================================================ */

#login-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

#login-screen.active { display: flex !important; }

.login-container {
  max-width: 480px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(80px, 18vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-title .year {
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.hero-title .year::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  height: 0.08em;
  background: var(--gold);
  z-index: -1;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 500;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.login-desc {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 15px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.auth-tab:hover { color: var(--ink-soft); }

.auth-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#name-input, .form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

#name-input:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn-primary:hover { background: var(--accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.login-hint {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 16px;
  line-height: 1.5;
}

.rules-preview {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
}

.rules-preview h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--gold);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.rule-item .points {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.rule-item span:last-child {
  font-size: 12px;
  color: rgba(241, 234, 216, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================================================================
   APP HEADER
   ================================================================ */

.app-header {
  background: var(--ink);
  color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* ================================================================
   COUNTDOWN in header
   ================================================================ */

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  border-left: 1px solid rgba(241, 234, 216, 0.15);
  border-right: 1px solid rgba(241, 234, 216, 0.15);
}

.countdown-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown-values {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.cd-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  color: var(--bg);
  letter-spacing: -0.02em;
}

.cd-lbl {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 234, 216, 0.55);
  margin-top: 2px;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-year {
  color: var(--accent);
}

.brand-pool {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(241, 234, 216, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

#current-user-name {
  font-weight: 600;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(241, 234, 216, 0.25);
  color: var(--bg);
  padding: 6px 12px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.btn-ghost:hover {
  background: rgba(241, 234, 216, 0.08);
  border-color: var(--bg);
}

.tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid rgba(241, 234, 216, 0.1);
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4px;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: transparent;
  border: none;
  color: rgba(241, 234, 216, 0.6);
  padding: 14px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab:hover { color: var(--bg); }

.tab.active {
  color: var(--bg);
  border-bottom-color: var(--accent);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */

.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.status-banner {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.status-banner.show { display: block; }
.status-banner.success { background: rgba(46, 125, 79, 0.12); color: var(--success); border: 1px solid rgba(46, 125, 79, 0.3); }
.status-banner.warning { background: rgba(200, 148, 38, 0.12); color: var(--warning); border: 1px solid rgba(200, 148, 38, 0.3); }
.status-banner.error { background: rgba(230, 75, 26, 0.12); color: var(--accent-dark); border: 1px solid rgba(230, 75, 26, 0.3); }

.view { display: none; }
.view.active { display: block; }

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}

.view-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.view-sub {
  color: var(--ink-soft);
  font-size: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.filter-group select {
  padding: 10px 14px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.filter-group select:focus { outline: none; border-color: var(--accent); }

/* ================================================================
   MATCHES VIEW
   ================================================================ */

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.group-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.group-header {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-header h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.group-header .group-teams {
  font-size: 12px;
  color: rgba(241, 234, 216, 0.65);
  letter-spacing: 0.04em;
}

.match-list {
  display: flex;
  flex-direction: column;
}

.match-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 16px;
  align-items: center;
  transition: background 0.15s;
}

.match-card:last-child { border-bottom: none; }
.match-card:hover { background: var(--bg-soft); }

.match-card.locked { opacity: 0.7; }
.match-card.finished { background: rgba(46, 125, 79, 0.04); }
.match-card.finished:hover { background: rgba(46, 125, 79, 0.08); }

.match-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.match-date {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.match-time {
  color: var(--accent);
  font-weight: 600;
}

.match-venue {
  font-size: 11px;
  color: var(--ink-light);
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.team-home { justify-content: flex-end; text-align: right; }
.team-away { justify-content: flex-start; }

.team-flag { font-size: 24px; line-height: 1; }

.team-name {
  font-weight: 600;
}

.team-abbr {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  background: var(--bg-soft);
  padding: 3px 7px;
  border-radius: 3px;
  line-height: 1;
}

.score-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-input {
  width: 48px;
  height: 48px;
  text-align: center;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.score-input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.score-input:disabled {
  background: var(--bg-soft);
  cursor: not-allowed;
}

.score-separator {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink-light);
}

.match-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
}

.status-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.status-tag.saved { background: rgba(46, 125, 79, 0.15); color: var(--success); }
.status-tag.unsaved { background: rgba(200, 148, 38, 0.15); color: var(--warning); }
.status-tag.locked { background: rgba(128, 144, 168, 0.15); color: var(--ink-light); }
.status-tag.finished { background: rgba(12, 24, 48, 0.1); color: var(--ink); }

.actual-result {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.points-earned {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.points-earned.zero { color: var(--ink-light); }

/* ================================================================
   LEADERBOARD
   ================================================================ */

.leaderboard-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.leaderboard-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-row.you {
  background: linear-gradient(90deg, rgba(230, 75, 26, 0.05), transparent);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
}

.rank {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink-light);
  line-height: 1;
}

.leaderboard-row:nth-child(1) .rank { color: var(--accent); font-size: 36px; }
.leaderboard-row:nth-child(2) .rank { color: var(--gold); }
.leaderboard-row:nth-child(3) .rank { color: var(--ink-soft); }

.player-name {
  font-weight: 600;
  font-size: 16px;
}

.player-name .you-tag {
  font-family: var(--display);
  font-size: 11px;
  background: var(--accent);
  color: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.player-stats {
  font-size: 12px;
  color: var(--ink-light);
  text-align: right;
}

.player-points {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

/* ================================================================
   STANDINGS
   ================================================================ */

.standings-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.standing-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.standing-group-header {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.standing-table {
  width: 100%;
  border-collapse: collapse;
}

.standing-table th,
.standing-table td {
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.standing-table th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-soft);
}

.standing-table tr:last-child td { border-bottom: none; }

.standing-table td.team-cell {
  text-align: left;
  font-weight: 600;
}

.standing-table td.points-cell {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
}

.standing-table .qualified {
  background: rgba(46, 125, 79, 0.06);
}

/* ================================================================
   ADMIN
   ================================================================ */

.admin-unlock {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.admin-unlock p {
  margin-bottom: 12px;
  font-weight: 500;
}

#admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#admin-password {
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.admin-notice {
  padding: 14px 16px;
  background: rgba(200, 148, 38, 0.1);
  border: 1px solid rgba(200, 148, 38, 0.3);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink);
}

/* Sync panel */
.sync-panel {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sync-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.sync-header h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--gold);
}

.sync-desc {
  font-size: 13px;
  color: rgba(241, 234, 216, 0.7);
  line-height: 1.5;
  max-width: 500px;
}

.sync-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sync-panel .btn-primary {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  padding: 10px 18px;
}

.sync-panel .btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.sync-panel .btn-primary.btn-active {
  background: var(--accent);
  color: var(--bg);
}

.sync-status {
  font-size: 13px;
  color: rgba(241, 234, 216, 0.7);
  padding-top: 12px;
  border-top: 1px solid rgba(241, 234, 216, 0.15);
}

.sync-status.syncing {
  color: var(--gold);
}

.sync-status.syncing::before {
  content: '⟳';
  display: inline-block;
  margin-right: 6px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================================================================
   FOOTER
   ================================================================ */

.app-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-light);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ink-light);
  border-radius: 50%;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--accent); }

/* ================================================================
   KNOCKOUT VIEW
   ================================================================ */

.knockout-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ko-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ko-section.ko-locked {
  opacity: 0.6;
}

.ko-section-header {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ko-section-header h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ko-status {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.ko-status.open {
  background: var(--accent);
  color: var(--bg);
}

.ko-status.closed {
  background: rgba(241, 234, 216, 0.15);
  color: rgba(241, 234, 216, 0.7);
}

.ko-locked-msg {
  padding: 24px;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
  font-size: 14px;
}

.team-placeholder {
  font-style: italic;
  color: var(--ink-light);
  font-size: 13px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 720px) {
  .header-content {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-mark { font-size: 22px; }
  .tabs { padding: 0 12px; }
  .tab { padding: 12px 12px; font-size: 13px; }
  
  /* Countdown: op mobiel onder de brand/user info, breed */
  .countdown {
    order: 3;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(241, 234, 216, 0.15);
    padding: 10px 0 4px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
  
  .countdown-label {
    font-size: 11px;
    align-self: center;
  }
  
  .cd-num { font-size: 20px; }
  
  .app-main { padding: 20px 16px 60px; }
  
  .view-header { flex-direction: column; align-items: flex-start; }
  
  .match-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  
  .match-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  
  .match-status {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .team { font-size: 14px; gap: 6px; }
  .team-flag { font-size: 20px; }
  
  /* Op mobiel: alleen vlag + afkorting tonen (naam is overbodig met afkorting) */
  .team-name { display: none; }
  
  .team-abbr {
    font-size: 14px;
    padding: 4px 8px;
  }
  
  .score-input {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .leaderboard-row {
    grid-template-columns: 50px 1fr auto;
    padding: 14px 16px;
    gap: 12px;
  }
  
  .player-stats { display: none; }
  
  .rules-preview { padding: 16px 18px; }
  .rule-item .points { font-size: 28px; }
  
  .login-card { padding: 24px 20px; }
  
  .standings-container { grid-template-columns: 1fr; }
}

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

.status-banner.show { animation: slideIn 0.25s ease-out; }
