/* =============================================================
   Miesperhe Pro Tour 2025 — Dark Theme Stylesheet
   ============================================================= */

/* --- Variables --- */
:root {
  --bg:            #0a0a16;
  --bg-card:       #101024;
  --bg-card-hover: #16163a;
  --bg-alt:        rgba(0, 0, 0, 0.25);

  --accent:        #00ff88;
  --accent-glow:   rgba(0, 255, 136, 0.25);
  --accent-dim:    rgba(0, 255, 136, 0.10);
  --accent-border: rgba(0, 255, 136, 0.28);
  --accent-blue:   #4d8cff;

  --text:          #e2e2f0;
  --text-muted:    #7070a0;
  --text-faint:    #404060;

  --border:        rgba(255, 255, 255, 0.07);

  --gold:   #ffd000;
  --silver: #c0c0c0;
  --bronze: #cd7f32;

  --cyan:   #00e5ff;
  --pink:   #ff2d9b;
  --purple: #7b00ff;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  --ease: 0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }

/* --- Container --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =============================================================
   Navigation
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: rgba(10, 10, 22, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.nav-disc {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--ease);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 50svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* scanlines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* animated glow blobs */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { width: 700px; height: 700px; background: rgba(123,0,255,0.25); top: -200px; left: -200px; animation: drift1 12s ease-in-out infinite alternate; }
.bg-glow-2 { width: 600px; height: 600px; background: rgba(255,45,155,0.2);  bottom: -150px; right: -100px; animation: drift2 14s ease-in-out infinite alternate; }
.bg-glow-3 { width: 500px; height: 500px; background: rgba(0,229,255,0.15); top: 50%; left: 50%; transform: translate(-50%,-50%); animation: drift3 10s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(80px, 60px); } }
@keyframes drift2 { to { transform: translate(-60px, -80px); } }
@keyframes drift3 { to { transform: translate(-50%, calc(-50% + 40px)) scale(1.1); } }

.hero-title {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 20px 70px;
  animation: fadeDown 1s ease both;
}

.hero-title h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.85;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 40%, var(--pink) 70%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255,45,155,0.4));
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.35);
  border-radius: 40px;
  padding: 0.25rem 0.9rem;
}

.hero-label-link {
  color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}
.hero-label-link:hover {
  color: var(--cyan);
  border-color: rgba(0,229,255,0.35);
}

.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin: 10px 0 0;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  text-transform: uppercase;
}

.neon-line {
  display: inline-block;
  width: clamp(60px, 10vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.6;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Collage strip */
.collage-strip {
  display: none;
  z-index: 10;
  width: 100%;
  padding: 40px 0 60px;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1.2s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-item {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-item:nth-child(1) { transform: rotate(-6deg) translateY(20px); z-index: 1; }
.logo-item:nth-child(2) { transform: rotate(-4deg) translateY(10px); z-index: 2; }
.logo-item:nth-child(3) { transform: rotate(-2deg) translateY(4px);  z-index: 3; }
.logo-item:nth-child(4) { transform: rotate(0deg)  translateY(0px);  z-index: 7; }
.logo-item:nth-child(5) { transform: rotate(2deg)  translateY(4px);  z-index: 3; }
.logo-item:nth-child(6) { transform: rotate(4deg)  translateY(10px); z-index: 2; }
.logo-item:nth-child(7) { transform: rotate(6deg)  translateY(20px); z-index: 1; }
.logo-item:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.15) !important;
  z-index: 20 !important;
}

.logo-item img {
  width: clamp(80px, 10vw, 160px);
  height: clamp(80px, 10vw, 160px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 0 0 4px rgba(0,229,255,0.3), 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(255,45,155,0.2);
  transition: box-shadow 0.4s ease;
  margin: 0 -12px;
}
.logo-item:hover img {
  box-shadow: 0 0 0 3px var(--cyan), 0 0 0 4px var(--cyan), 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(0,229,255,0.4);
}

.logo-item .year-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,208,0,0.4);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.logo-item:hover .year-badge { opacity: 1; }

/* Ticker */
.ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0,229,255,0.08);
  border-top: 1px solid rgba(0,229,255,0.2);
  overflow: hidden;
  padding: 10px 0;
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
}
.ticker span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cyan);
  opacity: 0.6;
  padding: 0 40px;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.7rem;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #050510;
}

.btn-primary:hover {
  background: #22ffaa;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
  color: #050510;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* =============================================================
   Sections
   ============================================================= */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--text) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* =============================================================
   Standings Table
   ============================================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}

.standings-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.standings-table thead th.pts-col,
.standings-table thead th.total-col,
.standings-table thead th.rank-col {
  text-align: center;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.standings-table tbody tr:last-child { border-bottom: none; }

.standings-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.standings-table td {
  padding: 0.78rem 1rem;
  vertical-align: middle;
}

.rank-cell {
  width: 64px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.pts-cell {
  text-align: center;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rating-cell {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.total-cell {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Podium row highlights */
.rank-gold   { background: rgba(255, 215, 0,   0.05); }
.rank-silver { background: rgba(192, 192, 192, 0.04); }
.rank-bronze { background: rgba(205, 127, 50,  0.04); }

/* Trend inline in rank cell */
.rank-trend { display: inline; margin-left: 0.3rem; vertical-align: middle; }
.trend-up   { color: #00ff88; font-weight: 700; font-size: 0.7rem; }
.trend-down { color: #ff6b6b; font-weight: 700; font-size: 0.7rem; }
.trend-same { color: var(--text-faint); font-size: 0.85rem; line-height: 1; }
.trend-new  { color: var(--accent-blue); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; }

/* Hide individual event pts columns on mobile */
@media (max-width: 600px) {
  .standings-table th.pts-col,
  .standings-table td.pts-cell { display: none; }
  .standings-table { min-width: unset; }
  .standings-table td,
  .standings-table thead th { padding: 0.65rem 0.5rem; }
  .rank-cell { width: 48px; }
}

/* Season progress badge */
.season-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 40px;
  padding: 0.2rem 0.85rem;
  margin-bottom: 0.9rem;
}

/* Section header flex layout for badge */
.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.5rem;
}
.section-header .section-sub {
  flex-basis: 100%;
}

/* =============================================================
   Next Event Card
   ============================================================= */
.next-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.06);
  max-width: 680px;
}

.next-card-header {
  padding: 1.5rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.next-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.next-registered-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next-count {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 40px;
  padding: 0.1rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

.next-player-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.next-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.next-player-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.next-player-mullit {
  margin-left: auto;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
}

.next-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .next-actions { flex-direction: column; }
  .next-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* =============================================================
   Competition Cards
   ============================================================= */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.comp-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.07);
}

/* Card header */
.comp-card-header {
  padding: 1.5rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.comp-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.8rem;
}

.comp-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}

.comp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.comp-info {
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Winner banner */
.comp-winner {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 255, 136, 0.04);
  border-bottom: 1px solid var(--border);
}

.winner-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 52px;
}

.winner-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent);
  flex: 1;
}

.winner-score {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Actions */
.comp-actions {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.btn-results {
  flex: 1;
  padding: 0.62rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-results:hover, .btn-results:focus-visible {
  background: var(--accent);
  color: #050510;
  outline: none;
}

.btn-metrix {
  padding: 0.62rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--ease);
  display: inline-block;
}

.btn-metrix:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* =============================================================
   Results Panel (accordion)
   ============================================================= */
.comp-results-panel[hidden] { display: none; }

.comp-results-panel {
  border-top: 1px solid var(--border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 420px;
}

.results-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.results-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.results-table tbody tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

/* Score colouring */
.hc-cell    { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.diff-over  { color: #ff6b6b; font-weight: 700; }
.diff-even  { color: var(--accent); font-weight: 700; }
.diff-under { color: #6bffb8; font-weight: 700; }
.diff-dnf   { color: var(--text-faint); font-style: italic; }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.footer-link { color: var(--text-muted); }
.footer-link:hover { color: var(--accent); }

/* =============================================================
   Player Button (standings)
   ============================================================= */
.player-btn {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color var(--ease);
}
.player-btn:hover,
.player-btn:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
}

/* =============================================================
   Player Modal
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.18s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.10), 0 24px 64px rgba(0,0,0,0.6);
  animation: slideUp 0.22s ease;
  outline: none;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  transition: color var(--ease), background var(--ease);
  z-index: 1;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.modal-header {
  padding: 1.75rem 3.5rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.modal-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.modal-player-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.modal-rating-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 40px;
  padding: 0.2rem 0.75rem;
}
.modal-rating-delta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
}
.modal-delta-label { color: var(--text-muted); font-size: 0.78rem; }
.modal-delta-val   { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.delta-up          { color: #00ff88; }
.delta-down        { color: #ff6b6b; }
.delta-same        { color: var(--text-faint); }

.modal-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.stat-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-chip-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-chip-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.modal-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.rating-events-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rating-event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  min-width: 72px;
}
.rating-event-name { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.rating-event-val  { font-size: 1.05rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.modal-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 300px;
}
.modal-events-table th {
  padding: 0.55rem 0.85rem;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}
.modal-events-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.modal-events-table tbody tr:last-child td { border-bottom: none; }
.modal-td-c { text-align: center; }
.hs-eagle   { color: var(--gold); font-weight: 700; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 720px) {
  /* Show hamburger */
  .nav-toggle { display: flex; }

  /* Dropdown nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 22, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.85rem 1.5rem;
  }

  /* Hero adjustments */

  .section { padding: 3.5rem 0; }

  /* Cards stack */
  .competitions-grid { grid-template-columns: 1fr; }

  .hero-actions { gap: 0.7rem; }
  .btn { padding: 0.65rem 1.2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.5rem); }
  .comp-actions { flex-direction: column; }
  .btn-results, .btn-metrix { width: 100%; text-align: center; }
  .comp-card-header { padding: 1.1rem 1.1rem 0.9rem; }
  .comp-winner { padding: 0.75rem 1.1rem; }
  .comp-actions { padding: 0.85rem 1.1rem; }
  .standings-table thead th,
  .standings-table td { padding: 0.65rem 0.7rem; }
  /* Larger tap targets for nav links */
  .nav-links li a { padding: 1rem 1.5rem; }
  /* Modal */
  .stat-chips   { grid-template-columns: repeat(2, 1fr); }
  .modal-header { padding: 1.25rem 3rem 1rem 1.25rem; }
  .modal-body   { padding: 1.25rem; gap: 1.25rem; }
}
