html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f4f6f9;
}

/* ── Navbar ── */
.wc-navbar {
  background: linear-gradient(90deg, #0a3d0a 0%, #1a6b1a 50%, #0a3d0a 100%) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Hero banner ── */
.wc-hero {
  background: linear-gradient(135deg, #0a3d0a 0%, #1a6b1a 60%, #0a3d0a 100%);
  color: #FFD700;
  border: 2px solid rgba(255,215,0,0.3);
}

.wc-hero .lead { color: #e8e8e8; }

/* ── Tier cards (home page) ── */
.tier-card { border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; }

.tier-a { background: linear-gradient(90deg, #7B6000, #c9a800); color: #fff; }
.tier-b { background: linear-gradient(90deg, #5a5a5a, #888); color: #fff; }
.tier-c { background: linear-gradient(90deg, #6B3A1F, #a0612e); color: #fff; }

.tier-a-card { border-top: 4px solid #FFD700 !important; }
.tier-b-card { border-top: 4px solid #C0C0C0 !important; }
.tier-c-card { border-top: 4px solid #CD7F32 !important; }

.tier-a-text { color: #7B6000; }
.tier-b-text { color: #5a5a5a; }
.tier-c-text { color: #6B3A1F; }

/* ── Players page ── */
.wc-card-header { background: #f8f9fa; border-bottom: 2px solid #dee2e6; }

.player-number {
  background: linear-gradient(135deg, #0a3d0a, #1a6b1a);
  color: #FFD700;
  font-weight: 700;
  min-width: 36px;
}

/* ── Results page ── */
.result-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.result-player-header {
  background: linear-gradient(90deg, #0a3d0a, #1a6b1a);
  color: #FFD700;
  font-size: 1.05rem;
}

.result-team {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
}

.result-team.tier-a { background: rgba(255,215,0,0.15); border-left: 3px solid #FFD700; color: #000; }
.result-team.tier-b { background: rgba(192,192,192,0.15); border-left: 3px solid #C0C0C0; color: #000; }
.result-team.tier-c { background: rgba(205,127,50,0.15); border-left: 3px solid #CD7F32; color: #000; }

.tier-badge { font-size: 0.65rem; font-weight: 700; min-width: 60px; }
.team-flag { font-size: 1.3rem; }
.team-name { font-size: 0.85rem; color: #000; }

/* ── Draw page ── */
.draw-start-btn {
  background: linear-gradient(135deg, #7B6000, #FFD700, #7B6000);
  color: #1a1a00;
  border: none;
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
  transition: all 0.2s;
}

.draw-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,215,0,0.6);
  color: #1a1a00;
}

/* ── Footer ── */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  line-height: 60px;
  background: #f4f6f9;
}

/* ── Matches page ── */
.matches-table td { vertical-align: middle; }
.btn-xs { font-size: 0.75rem; padding: 2px 6px; }
.stage-header-group   { background: linear-gradient(90deg, #0a3d0a, #1a6b1a); color: #FFD700; }
.stage-header-knockout { background: linear-gradient(90deg, #7B6000, #c9a800); color: #fff; }

/* ── Banter board ── */
.banter-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.banter-good    { background: #d4edda; border-left: 3px solid #28a745; }
.banter-bad     { background: #f8d7da; border-left: 3px solid #dc3545; }
.banter-neutral { background: #fff3cd; border-left: 3px solid #ffc107; }
.banter-icon    { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.banter-text    { color: #222; }
.leaderboard-table td { font-size: 0.85rem; }

.lb-card { border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.lb-card.border-warning  { border-top: 4px solid #FFD700 !important; }
.lb-card.border-secondary { border-top: 4px solid #C0C0C0 !important; }
.lb-card.border-bronze   { border-top: 4px solid #CD7F32 !important; }

.lb-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
}
.lb-tier-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}
.lb-team-pill.tier-a-pill { border-left: 3px solid #FFD700; }
.lb-team-pill.tier-b-pill { border-left: 3px solid #C0C0C0; }
.lb-team-pill.tier-c-pill { border-left: 3px solid #CD7F32; }

.lb-breakdown-card { background: #fff; border-radius: 8px; border: 1px solid #dee2e6; overflow: hidden; }
.lb-breakdown-header { background: #f1f3f5; padding: 6px 10px; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid #dee2e6; }

