/* ============================================================
   ChessEvents.sk — Chess Slovak Open 2026
   ============================================================ */

:root {
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-dark: #a07830;
  --dark: #0d0d0d;
  --dark-2: #141414;
  --dark-3: #1e1e1e;
  --dark-4: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #999;
  --white: #ffffff;
  --accent: #c9a84c;
  --board-light: #f0d9b5;
  --board-dark: #b58863;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Georgia', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: all 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo .logo-chess { color: var(--gold); font-size: 1.5rem; }

.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold-light); color: var(--dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(13,13,13,0.7) 0%, rgba(13,13,13,0.85) 60%, var(--dark) 100%),
    url('img/hero-bg.jpg') center/cover no-repeat;
  padding-top: 100px;
  overflow: hidden;
}

.hero-board-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-conic-gradient(rgba(201,168,76,0.04) 0% 25%, transparent 0% 50%);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-title .gold { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-date {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* Hero bottom split layout */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  text-align: left;
}

.hero-countdown-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.count-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 16px 24px;
  min-width: 90px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.count-num {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
}

.count-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Hero novinky panel */
.hero-novinky-col {
  background: rgba(13,13,13,0.6);
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-novinky-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-news-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  transition: color 0.2s;
}
.hero-news-item:last-child { border-bottom: none; }
.hero-news-item:hover .hero-news-headline { color: var(--gold-light); }

.hero-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-news-tag {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 0.05em;
}

.hero-news-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-news-headline {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.4;
  transition: color 0.2s;
}

.hero-novinky-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 0.03em;
}
.hero-novinky-more:hover { color: var(--gold-light); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Stats bar ── */
#stats {
  background: var(--dark-3);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Tournaments section ── */
#turnaje { background: var(--dark); }

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tournament-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(201,168,76,0.3);
}

.card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card-name {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.card-body {
  padding: 20px 24px 24px;
}

.card-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  gap: 12px;
}

.card-detail:last-child { border-bottom: none; }
.card-detail-label { color: var(--text-muted); flex-shrink: 0; }
.card-detail-value { color: var(--text); text-align: right; }
.card-detail-value strong { color: var(--gold); }

/* ── Prize fund ── */
#ceny {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  position: relative;
  overflow: hidden;
}

#ceny::before {
  content: '♛';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 400px;
  color: rgba(201,168,76,0.03);
  pointer-events: none;
  line-height: 1;
}

.prize-hero {
  text-align: center;
  margin-bottom: 60px;
}

.prize-amount {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 60px rgba(201,168,76,0.3);
  font-weight: bold;
}

.prize-note { color: var(--text-muted); font-style: italic; margin-top: 8px; }

.prize-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.prize-table {
  background: var(--dark-4);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.prize-table-title {
  background: rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 14px 20px;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
  transition: background 0.2s;
}

.prize-row:hover { background: rgba(255,255,255,0.02); }
.prize-row:last-child { border-bottom: none; }

.prize-pos { color: var(--text-muted); }
.prize-pos.gold-pos { color: var(--gold); font-weight: bold; }
.prize-val { color: var(--white); font-weight: bold; }
.prize-val.top { color: var(--gold); font-size: 1.1rem; }

/* ── Players / Masters ── */
#hraci { background: var(--dark); }

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.player-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.player-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-2px);
}

.player-flag {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.player-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.35);
  display: block;
}

.player-name {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: bold;
  line-height: 1.3;
}

.player-title {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.player-elo {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.player-tbd {
  opacity: 0.4;
  font-style: italic;
  border-style: dashed;
}

.players-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Ambassadors ── */
#ambasadori {
  background: var(--dark-2);
}

.ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.ambassador-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ambassador-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ambassador-piece {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.ambassador-photo {
  width: calc(100% + 64px);
  margin: -32px -32px 24px -32px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ambassador-title {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ambassador-name {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.ambassador-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Schedule ── */
#program { background: var(--dark-3); }

.schedule-grid {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--dark-4);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.2s;
}

.schedule-row:hover { border-color: rgba(201,168,76,0.2); }

.schedule-date {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
  white-space: nowrap;
}

.schedule-events { font-size: 0.9rem; color: var(--text); }
.schedule-events span {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
}

.schedule-round {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

/* ── Entry fees ── */
#vklady { background: var(--dark); }

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.fee-table {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.fee-table-title {
  padding: 16px 20px;
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.fee-row:last-child { border-bottom: none; }
.fee-label { color: var(--text-muted); }
.fee-val { color: var(--white); font-weight: bold; }
.fee-val.free { color: #4caf50; }
.fee-val.highlight { color: var(--gold); }

.fees-note {
  margin-top: 24px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.fees-note strong { color: var(--gold); }

/* ── Venue ── */
#miesto { background: var(--dark-2); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.venue-info h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}

.venue-address {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.venue-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.venue-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.venue-feature-icon { font-size: 1.2rem; }
.venue-feature-text { color: var(--text-muted); }

.venue-map {
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) invert(90%);
}

/* ── Travel ── */
#doprava { background: var(--dark-3); }

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.travel-card {
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.travel-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.travel-airport { color: var(--gold); font-size: 1.1rem; font-weight: bold; margin-bottom: 4px; }
.travel-name { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.travel-time {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ── Past winners ── */
#vitazi { background: var(--dark); }

/* víťazi table */
.vitazi-table {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}
.vitazi-header, .vitazi-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  align-items: center;
}
.vitazi-header {
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 10px 0;
}
.vitazi-col-year {
  text-align: center;
}
.vitazi-col-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}
.vitazi-cat-masters { color: var(--gold); }
.vitazi-cat-open    { color: #9ad4ff; }

.vitazi-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.vitazi-row:last-child { border-bottom: none; }
.vitazi-row:hover { background: rgba(255,255,255,0.02); }
.vitazi-row--latest { background: rgba(201,168,76,0.04); }
.vitazi-row--future { opacity: 0.45; }

.vitazi-year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  display: block;
  letter-spacing: -0.02em;
}
.vitazi-year--latest { color: var(--gold); }

.vitazi-col-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
}
.vitazi-col-masters { border-left: 1px solid rgba(201,168,76,0.1); }
.vitazi-col-open    { border-left: 1px solid rgba(154,212,255,0.1); }

.vitazi-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.35);
}
.vitazi-info { min-width: 0; }
.vitazi-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.vitazi-fed {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.vitazi-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  justify-content: center;
  opacity: 0.5;
}
.vitazi-future-cell {
  font-size: 0.8rem;
  justify-content: center;
}

@media (max-width: 560px) {
  .vitazi-header, .vitazi-row { grid-template-columns: 52px 1fr 1fr; }
  .vitazi-photo { width: 36px; height: 36px; }
  .vitazi-name { font-size: 0.78rem; }
  .vitazi-col-winner { padding: 4px 8px; gap: 7px; }
}

/* legacy (unused but kept for safety) */
.winner-photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  display: block; margin: 8px auto;
  border: 2px solid rgba(201,168,76,0.4);
}

/* ── Skalica ── */
#skalica { background: var(--dark-2); }

.skalica-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.skalica-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

@media (max-width: 600px) { .skalica-stats { grid-template-columns: repeat(2, 1fr); } }

.skalica-stat {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 20px 12px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.skalica-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.skalica-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.skalica-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-2px);
}

.skalica-card-new {
  border-color: rgba(201,168,76,0.4);
  background: linear-gradient(135deg, var(--dark-3), rgba(201,168,76,0.05));
}

.skalica-new-badge {
  display: inline-block;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skalica-icon { font-size: 2rem; margin-bottom: 12px; }

.skalica-card h3 {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.skalica-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.skalica-gastro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) { .skalica-gastro { grid-template-columns: 1fr; } }

.gastro-card {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.gastro-card:hover {
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-2px);
}

.gastro-icon { font-size: 2.5rem; margin-bottom: 12px; }

.gastro-name {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.gastro-badge {
  font-size: 0.82rem;
  color: var(--gold);
  line-height: 1.6;
}

/* ── Registration CTA ── */
#registracia {
  background: linear-gradient(135deg, #1a1400 0%, #0d0d0d 50%, #0d1a00 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#registracia::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.reg-content { position: relative; z-index: 1; }

.reg-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.reg-deadline {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.reg-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

.reg-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bank-info {
  display: inline-block;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: left;
}

.bank-info h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bank-row {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.bank-key { color: var(--text-muted); min-width: 60px; }
.bank-val { color: var(--text); font-family: 'Courier New', monospace; }

/* ── Novinky ── */
#novinky { background: var(--dark); }

.novinky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.novinky-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.novinky-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-3px);
}

.novinky-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.novinky-tag {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: bold;
}

.novinky-title {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.4;
}

.novinky-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.novinky-link {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 0.03em;
  margin-top: 4px;
  align-self: flex-start;
}

.novinky-link:hover { color: var(--gold-light); }

/* ── Skalica section ── */
#skalica { background: var(--dark-2); }

.skalica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.skalica-img {
  background: var(--dark-4);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.skalica-content h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.skalica-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Utilities ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-countdown-col { align-items: center; }
  .countdown { justify-content: center; }
  .hero-actions { justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .venue-grid,
  .skalica-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 56px 0; }
  .count-item { min-width: 70px; padding: 12px 16px; }
  .count-num { font-size: 1.8rem; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-date { animation-delay: 0.35s; }
.countdown { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.55s; }

/* scroll-reveal placeholder */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Registračný formulár ── */
.reg-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.form-group label small {
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 0.3rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin: 1rem 0 1.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Select roletka ── */
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(201,168,76,0.05);
}
.form-group select option {
  background: #1a1a2e;
  color: var(--text);
}

/* ── Bankové údaje s QR kódom ── */
.bank-info-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.bank-rows { flex: 1; }
.bank-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.bank-qr img {
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.3);
}
.bank-qr p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .bank-info-inner { flex-direction: column; }
  .bank-qr img { width: 140px; height: 140px; }
}

/* ── Language Switcher (floating) ── */
.lang-switcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
}
.lang-toggle {
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover,
.lang-toggle.open {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.lang-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 6px;
  min-width: 195px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
}
.lang-dropdown.open { display: flex; flex-direction: column; gap: 2px; }
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.lang-btn:hover { background: rgba(201,168,76,0.12); color: var(--gold); }
.lang-btn.active { background: rgba(201,168,76,0.18); color: var(--gold); font-weight: 600; }

/* ── History Timeline ───────────────────────────────────── */
#historia { background: var(--bg-dark); padding: 80px 0; }

.historia-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.historia-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.3) 5%, rgba(201,168,76,0.3) 95%, transparent);
}

.historia-card {
  display: flex;
  gap: 0;
  padding: 1.6rem 0 1.6rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.historia-card:last-child { border-bottom: none; }
.historia-card::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201,168,76,0.4);
  border: 2px solid rgba(201,168,76,0.6);
  z-index: 1;
}
.historia-card--highlight::before { background: var(--gold); border-color: var(--gold); }
.historia-card--latest::before {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
  width: 14px;
  height: 14px;
  left: 66px;
}

.historia-left {
  width: 130px;
  flex-shrink: 0;
  padding-right: 2rem;
  text-align: right;
}
.historia-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.02em;
}
.historia-year--latest { color: var(--gold); }
.historia-edition-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  opacity: 0.7;
}
.historia-num { color: var(--gold); font-weight: 700; }
.historia-stats-mini {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.historia-stats-mini span {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.historia-body {
  flex: 1;
  padding-left: 2.2rem;
}
.historia-winner-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.historia-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.historia-fed {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.historia-score {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.historia-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.6rem;
}
.historia-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  white-space: nowrap;
}
.historia-badge--gold {
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
}
.historia-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .historia-timeline::before { left: 52px; }
  .historia-card::before { left: 48px; }
  .historia-card--latest::before { left: 46px; }
  .historia-left { width: 100px; padding-right: 1.4rem; }
  .historia-year { font-size: 1.2rem; }
  .historia-body { padding-left: 1.6rem; }
  .historia-score { margin-left: 0; }
}

/* ── Registered Players ─────────────────────────────────── */
#prihlaseni { background: var(--bg-dark); padding: 80px 0; }
.players-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.players-tables { display: flex; flex-direction: column; gap: 2.5rem; }
.players-section {
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}
.players-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.players-count {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.players-table-wrap { overflow-x: auto; }
.players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.players-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  text-align: left;
  white-space: nowrap;
}
.players-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.players-table tbody tr:hover { background: rgba(201,168,76,0.05); }
.players-table td { padding: 8px 10px; color: var(--text-primary); }
.players-no { color: var(--text-muted); font-size: 0.8rem; width: 36px; }
.players-title-cell { width: 56px; }
.player-title {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.player-title-gm  { background: rgba(255,180,0,0.18); color: #ffd44d; }
.player-title-im  { background: rgba(255,255,255,0.10); color: #ccc; }
.player-title-fm  { background: rgba(180,220,255,0.12); color: #9ad4ff; }
.player-title-wgm { background: rgba(255,140,200,0.15); color: #ffaad4; }
.player-title-wim { background: rgba(255,180,220,0.10); color: #ffcce0; }
.player-title-wfm { background: rgba(200,170,255,0.12); color: #c8a8ff; }
.players-name { font-weight: 500; }
.players-name-col { min-width: 160px; }
.players-fed { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.players-elo { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.players-elo-col { text-align: right; }
.players-elo { text-align: right; }
.players-none { color: var(--text-muted); font-size: 0.9rem; padding: 0.5rem 0; }
.players-loading { text-align: center; color: var(--text-muted); padding: 2rem; }
.players-cr-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.players-cr-link:hover { color: var(--gold); }

/* ── Partners ── */
#partneri {
  background: var(--dark-2);
  padding: 5rem 0;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.partner-item:hover {
  opacity: 1;
  transform: scale(1.07);
}
.partner-item img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.partner-item:hover img {
  filter: none;
}
@media (max-width: 600px) {
  .partners-grid { gap: 1.8rem 2rem; }
  .partner-item img { height: 40px; max-width: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   NAV — LIVE LINK
═══════════════════════════════════════════════════════════ */
.nav-live {
  color: #e05555 !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  animation: livePulse 2.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ═══════════════════════════════════════════════════════════
   MASTERS CROSS-TABLE
═══════════════════════════════════════════════════════════ */
#crosstable {
  background: var(--dark-2);
  border-top: 1px solid rgba(201,168,76,0.1);
}

.ct-wrap {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  overflow: hidden;
}

.ct-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 700px;
}

.ct-table thead tr {
  background: rgba(201,168,76,0.08);
  border-bottom: 2px solid rgba(201,168,76,0.2);
}

.ct-table thead th {
  padding: 12px 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-body);
}
.ct-th-name { text-align: left; min-width: 200px; }
.ct-th-elo { min-width: 52px; }
.ct-th-opp { width: 38px; min-width: 38px; }
.ct-th-pts { min-width: 52px; font-weight: 700; color: var(--gold) !important; }

.ct-row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.ct-row:hover { background: rgba(201,168,76,0.04); }
.ct-row:last-child { border-bottom: none; }
.ct-row.ct-tbd { opacity: 0.45; }

.ct-table td {
  padding: 11px 10px;
  text-align: center;
  vertical-align: middle;
}
.ct-num { color: var(--text-muted); font-size: 0.75rem; width: 28px; }
.ct-name { text-align: left; color: var(--white); font-weight: 500; }
.ct-tbd-name { color: var(--text-muted); font-style: italic; }
.ct-fed { font-size: 1.1rem; width: 30px; }
.ct-elo-val { color: var(--gold); font-weight: 600; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ct-self { color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); font-size: 0.9rem; }
.ct-cell { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ct-cell.ct-pending { color: rgba(255,255,255,0.18); }
.ct-cell.ct-win { color: #5cb85c; font-weight: 700; background: rgba(92,184,92,0.08); }
.ct-cell.ct-draw { color: var(--gold); background: rgba(201,168,76,0.07); }
.ct-cell.ct-loss { color: #e05555; background: rgba(224,85,85,0.06); }
.ct-pts-val { color: var(--gold-light); font-weight: 700; font-size: 0.95rem; }
.ct-tie-val { color: var(--text-muted); font-size: 0.8rem; }

.ct-note {
  padding: 14px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   LIVESTREAM SECTION
═══════════════════════════════════════════════════════════ */
.live-section {
  background: linear-gradient(135deg, #090909 0%, #0f0c00 50%, #090909 100%);
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  position: relative;
  overflow: hidden;
}
.live-section::before {
  content: '▶';
  position: absolute;
  right: -30px; top: 50%;
  transform: translateY(-50%);
  font-size: 300px;
  color: rgba(201,168,76,0.025);
  pointer-events: none;
  line-height: 1;
}

.live-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.live-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224,85,85,0.15);
  border: 1px solid rgba(224,85,85,0.4);
  color: #e05555;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  animation: livePulse 2.5s infinite;
  white-space: nowrap;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
}

.live-main { }

.live-player-box {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.live-player-inner {
  text-align: center;
  padding: 32px;
}

.live-chess-icon {
  font-size: 4rem;
  color: rgba(201,168,76,0.3);
  margin-bottom: 16px;
  display: block;
}

.live-start-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.live-start-text strong { color: var(--gold-light); }

.live-platforms {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.live-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.live-yt {
  background: #ff0000;
  color: #fff;
}
.live-yt:hover {
  background: #cc0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.3);
}
.live-lichess {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.live-lichess:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transform: translateY(-2px);
}
.live-platform-icon { font-size: 1rem; }

.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
}
.live-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.live-commentator {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.live-commentator:last-child { border-bottom: none; padding-bottom: 0; }
.live-comm-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(201,168,76,0.3);
  flex-shrink: 0;
}
.live-comm-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.live-comm-info strong {
  font-size: 0.9rem;
  color: var(--white);
}
.live-comm-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-sched-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.live-sched-row:last-child { border-bottom: none; padding-bottom: 0; }
.live-sched-event { color: var(--text); }
.live-sched-time { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-sched-row--highlight .live-sched-event { color: var(--gold); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   SCHEDULE — COLOR CODING
═══════════════════════════════════════════════════════════ */
.schedule-row--ceremony {
  border-left: 3px solid rgba(201,168,76,0.6) !important;
  background: rgba(201,168,76,0.04);
}
.schedule-row--ceremony .schedule-date { color: var(--gold-light) !important; }

.schedule-row--side {
  border-left: 3px solid rgba(92,184,255,0.5) !important;
  background: rgba(92,184,255,0.03);
}
.schedule-row--side .schedule-date { color: #8ec8f0 !important; }

.schedule-row--final {
  border-color: rgba(201,168,76,0.8) !important;
  background: rgba(201,168,76,0.07) !important;
}
.schedule-row--final .schedule-date { color: var(--gold) !important; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
═══════════════════════════════════════════════════════════ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.98);
  z-index: 9500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav-links a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-align: center;
  width: 100%;
  max-width: 340px;
  letter-spacing: 0.02em;
}
.mobile-nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.07); }
.mobile-nav-cta {
  margin-top: 8px;
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}
.mobile-nav-footer {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER SOCIAL
═══════════════════════════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.footer-social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY REFINEMENTS (Playfair + Inter)
═══════════════════════════════════════════════════════════ */
.hero-title {
  font-family: var(--font-heading) !important;
  font-weight: 900;
}
.section-title {
  font-family: var(--font-heading) !important;
  font-weight: 700;
}
.nav-logo, .nav-links a, .count-label, .stat-label,
.card-tag, .prize-table-title,
.players-table, .ct-table {
  font-family: var(--font-body);
}
.player-name, .ambassador-name, .historia-name {
  font-family: var(--font-heading);
}
.hero-subtitle, .hero-date {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* Mobile refinements */
@media (max-width: 768px) {
  .ct-th-name { min-width: 140px; }
  .live-player-box { aspect-ratio: 4/3; }
  .live-player-inner { padding: 20px; }
  .live-chess-icon { font-size: 2.5rem; }
  .back-to-top { bottom: 80px; right: 16px; }
}
@media (max-width: 480px) {
  .live-start-text { font-size: 0.88rem; }
  .live-platforms { flex-direction: column; align-items: center; }
}
