:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --gold: #f2cb05;
  --text: #2c3e50;
  --text-muted: #5a6c7d;
  --border: #dee2e6;
  --bg: #ffffff;
  --surface: #f8f9fa;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --winner-bg: #fffbeb;
  --winner-bg-hover: #fff5d6;
  --winner-text: #92680c;
  --winner-text-muted: #7d6030;
  --podium-bg: #f0f8ff;
  --podium-bg-hover: #e6f3ff;
  --podium-border: #87ceeb;
  --success-bg: #edf7ed;
  --success-text: #2e7d32;
  --success-border: #4caf50;
  --success-border-light: #c3e6c3;
  --warn-bg: #fff8e6;
  --warn-text: #b5800d;
  --warn-border: #e6a817;
  --thead-bg: #1e3a6e;
  --cta-secondary-bg: #2c3e50;
  --rank-gold-bg: #ffd700;
  --rank-gold-text: #7a5c00;
  --rank-silver-bg: #c8c8c8;
  --rank-silver-text:#505050;
  --rank-bronze-bg: #cd7f32;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --brand: #3b82f6;
    --brand-dark: #2563eb;
    --brand-light: #172554;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --bg: #0f172a;
    --surface: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --winner-bg: #2d2010;
    --winner-bg-hover: #3d2e14;
    --winner-text: #f5c842;
    --winner-text-muted: #d4a843;
    --podium-bg: #0f1f35;
    --podium-bg-hover: #152840;
    --podium-border: #3b82f6;
    --success-bg: #0f2210;
    --success-text: #6fcf7f;
    --success-border: #4caf50;
    --success-border-light: #2d5a2e;
    --warn-bg: #2d2010;
    --warn-text: #f5c842;
    --warn-border: #c8890a;
    --rank-gold-bg: #7a5c00;
    --rank-gold-text: #ffd700;
    --rank-silver-bg: #3a3a3a;
    --rank-silver-text:#d0d0d0;
    --rank-bronze-bg: #5c3a1a;
    --cta-secondary-bg: #475569;
  }
}
[data-theme=dark] {
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --brand-light: #172554;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --bg: #0f172a;
  --surface: #1e293b;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --winner-bg: #2d2010;
  --winner-bg-hover: #3d2e14;
  --winner-text: #f5c842;
  --winner-text-muted: #d4a843;
  --podium-bg: #0f1f35;
  --podium-bg-hover: #152840;
  --podium-border: #3b82f6;
  --success-bg: #0f2210;
  --success-text: #6fcf7f;
  --success-border: #4caf50;
  --success-border-light: #2d5a2e;
  --warn-bg: #2d2010;
  --warn-text: #f5c842;
  --warn-border: #c8890a;
  --rank-gold-bg: #7a5c00;
  --rank-gold-text: #ffd700;
  --rank-silver-bg: #3a3a3a;
  --rank-silver-text:#d0d0d0;
  --rank-bronze-bg: #5c3a1a;
  --cta-secondary-bg: #475569;
}

.hero-section {
  background: linear-gradient(rgba(15, 30, 70, 0.72), rgba(15, 30, 70, 0.72)), url("/assets/img/board-closeup.png") center/cover no-repeat;
  padding: 64px 40px;
  margin: 24px 0;
  border-radius: var(--radius);
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  margin-top: 0;
}
.hero-section .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 600px;
  line-height: 1.5;
}
.hero-section .hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-section .hero-stats .stat-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 100px;
}
.hero-section .hero-stats .stat-item .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}
.hero-section .hero-stats .stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.section-divider .divider-icon {
  display: none;
}

.info-callout,
.warning-callout,
.action-callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  border-left: 4px solid;
}
.info-callout .callout-title,
.warning-callout .callout-title,
.action-callout .callout-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.info-callout .callout-content,
.warning-callout .callout-content,
.action-callout .callout-content {
  color: var(--text-muted);
  margin: 0;
}
.info-callout .callout-content a,
.warning-callout .callout-content a,
.action-callout .callout-content a {
  color: var(--brand);
}

.info-callout {
  background: var(--brand-light);
  border-left-color: var(--brand);
}
.info-callout .callout-title {
  color: var(--brand-dark);
}

.warning-callout {
  background: var(--warn-bg);
  border-left-color: var(--warn-border);
}
.warning-callout .callout-title {
  color: var(--warn-text);
}

.action-callout {
  background: var(--success-bg);
  border-left-color: var(--success-border);
}
.action-callout .callout-title {
  color: var(--success-text);
}

.game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.game-type-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}
.game-type-card:hover {
  border-left-color: var(--brand-dark);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.game-type-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.game-type-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 0;
}
.game-type-card .card-subtitle {
  font-size: 0.9rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.game-type-card .card-details {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.game-type-card .card-details li {
  padding: 6px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.game-type-card .card-details li:last-child {
  border-bottom: none;
}
.game-type-card .card-details li strong {
  color: var(--text);
}

.stats-highlight {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
}

.icon-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
}
.icon-text .icon {
  font-size: 1.1rem;
  min-width: 22px;
}
.icon-text .text {
  flex: 1;
}

.games-list {
  margin: 24px 0;
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 12px 0;
  box-shadow: var(--shadow);
  transition: border-left-color 0.2s ease;
}
.game-card:hover {
  border-left-color: var(--brand-dark);
}
.game-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.game-card p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.game-card em {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--success-border-light);
}

.next-game-highlight {
  position: relative;
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.next-game-highlight:hover {
  box-shadow: 0 3px 10px rgba(56, 144, 146, 0.2);
}
.next-game-highlight h2, .next-game-highlight h3, .next-game-highlight h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}
.next-game-highlight h2 {
  font-size: 1.2rem;
  color: var(--brand-dark);
}
.next-game-highlight h3 {
  font-size: 1.4rem;
}
.next-game-highlight p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.next-game-highlight p strong {
  color: var(--text);
}

.next-game-stretched-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  text-decoration: none;
}
.next-game-stretched-link:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.social-media-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 24px 0;
  text-align: center;
}
.social-media-section .social-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.social-media-section .social-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.social-media-section .social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.15s ease;
  min-width: 180px;
  justify-content: center;
}
.social-button:hover {
  opacity: 0.88;
  text-decoration: none;
}
.social-button .social-icon {
  font-size: 1.2rem;
}

.social-button.discord {
  background: #5865f2;
  color: #ffffff;
}
.social-button.discord:hover {
  color: #ffffff;
}

.social-button.facebook {
  background: #1877f2;
  color: #ffffff;
}
.social-button.facebook:hover {
  color: #ffffff;
}

.social-links-compact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.social-links-compact .social-link-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  transition: opacity 0.15s ease;
}
.social-links-compact .social-link-compact:hover {
  opacity: 0.8;
  text-decoration: none;
}
.social-links-compact .discord-compact {
  background: rgba(88, 101, 242, 0.08);
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.3);
}
.social-links-compact .facebook-compact {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
}

.signup-section {
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 20px 0;
}

.signup-section-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.organizer-profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.organizer-profile-card .profile-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.organizer-profile-card .profile-text p strong {
  color: var(--text);
}
.organizer-profile-card .contact-info-callout {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
  border-left: 4px solid var(--brand);
}
.organizer-profile-card .contact-info-callout h4 {
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.organizer-profile-card .contact-info-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.organizer-profile-card .contact-info-callout ul li {
  padding: 6px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.organizer-profile-card .contact-info-callout ul li:last-child {
  border-bottom: none;
}
.organizer-profile-card .contact-info-callout ul li strong {
  color: var(--text);
  margin-right: 6px;
}
.organizer-profile-card .contact-info-callout ul li a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.organizer-profile-card .contact-info-callout ul li a:hover {
  text-decoration: underline;
}

.community-story-section {
  margin: 32px 0;
}
.community-story-section > p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.community-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.value-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.value-card h4 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.gaming-experience-section {
  margin: 32px 0;
}

.experience-timeline {
  position: relative;
  padding-left: 28px;
}
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--brand);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-item .timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.timeline-item .timeline-content h4 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.timeline-item .timeline-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-section {
  margin: 32px 0;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.faq-item h4 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
}
.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.faq-item p a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.faq-item p a:hover {
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.15s ease;
  min-width: 160px;
  justify-content: center;
}
.cta-button:hover {
  opacity: 0.88;
  text-decoration: none;
}
.cta-button.primary {
  background: var(--brand);
  color: #ffffff;
}
.cta-button.primary:hover {
  color: #ffffff;
}
.cta-button.secondary {
  background: var(--cta-secondary-bg);
  color: #ffffff;
}
.cta-button.secondary:hover {
  color: #ffffff;
}

.year-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 100;
}

.year-btn {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.year-btn:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand);
}
.year-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
}

.game-card-with-photos {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 0;
  margin: 10px 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.game-card-with-photos:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.game-card-with-photos.is-open {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}
.game-card-with-photos .game-header {
  margin-bottom: 20px;
  padding-top: 4px;
}
.game-card-with-photos .game-header h3 {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  margin-top: 0;
}
.game-card-with-photos .game-header .game-date strong {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  padding: 4px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
}

.game-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
}
.game-summary-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.game-summary-row .game-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.game-summary-row .game-summary-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.game-date-badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.game-summary-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-summary-winner {
  font-size: 0.85rem;
  color: var(--winner-text);
  background: var(--winner-bg);
  border: 1px solid var(--gold);
  padding: 2px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.game-summary-players {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.game-expand-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-block;
  transition: transform 0.2s ease;
  line-height: 1;
}

.game-card-with-photos.is-open .game-expand-btn {
  transform: rotate(180deg);
}

.game-detail {
  display: none;
  padding: 0 28px 28px;
  border-top: 1px solid var(--border);
}

.photo-gallery-section {
  margin: 20px 0;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.photo-gallery-grid .gallery-photo-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-gallery-grid .gallery-photo-link a {
  display: block;
  height: 100%;
}
.photo-gallery-grid .gallery-photo-link.featured-photo {
  grid-column: span 2;
}
.photo-gallery-grid .gallery-photo-link.featured-photo .gallery-photo {
  height: 300px;
  border: 2px solid var(--brand);
}
.photo-gallery-grid .gallery-photo-link.winner-photo .gallery-photo {
  border: 2px solid var(--gold);
}
.photo-gallery-grid .gallery-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.photo-gallery-grid .gallery-photo:hover {
  opacity: 0.9;
}

#photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#photo-lightbox.active {
  display: flex;
}
#photo-lightbox .lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}
#photo-lightbox .lb-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}
#photo-lightbox .lb-img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
#photo-lightbox .lb-close, #photo-lightbox .lb-prev, #photo-lightbox .lb-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
#photo-lightbox .lb-close:hover, #photo-lightbox .lb-prev:hover, #photo-lightbox .lb-next:hover {
  background: rgba(0, 0, 0, 0.85);
}
#photo-lightbox .lb-close {
  top: -3rem;
  right: 0;
}
#photo-lightbox .lb-prev {
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}
#photo-lightbox .lb-next {
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}
@media (max-width: 600px) {
  #photo-lightbox .lb-prev {
    left: 0.4rem;
  }
  #photo-lightbox .lb-next {
    right: 0.4rem;
  }
  #photo-lightbox .lb-close {
    top: 0.4rem;
    right: 0.4rem;
  }
}

.photo-gallery-caption {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  border-left: 4px solid var(--brand);
}
.photo-gallery-caption p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.photo-gallery-caption p strong {
  color: var(--text);
}

.winner-spotlight {
  background: var(--winner-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  border: 1px solid var(--gold);
}
.winner-spotlight .winner-crown {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}
.winner-spotlight h4 {
  color: var(--winner-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.winner-spotlight p {
  color: var(--winner-text-muted);
  font-weight: 600;
  margin: 0;
}
.winner-spotlight p strong {
  color: var(--winner-text);
}

.game-results-section {
  margin: 20px 0;
}
.game-results-section h4 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.results-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}
.results-table thead th {
  background: var(--thead-bg);
  color: #ffffff;
  font-weight: 700;
  padding: 12px;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
}
.results-table tbody tr {
  transition: background 0.15s ease;
}
.results-table tbody tr:nth-child(even) {
  background: var(--surface);
}
.results-table tbody tr:hover {
  background: var(--brand-light);
}
.results-table tbody tr.year-header-row {
  background: var(--surface);
}
.results-table tbody tr.year-header-row td {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.results-table tbody tr.winner-row {
  background: var(--winner-bg);
  border-left: 3px solid var(--gold);
}
.results-table tbody tr.winner-row:hover {
  background: var(--winner-bg-hover);
}
.results-table tbody tr.podium-row {
  background: var(--podium-bg);
  border-left: 3px solid var(--podium-border);
}
.results-table tbody tr.podium-row:hover {
  background: var(--podium-bg-hover);
}
.results-table tbody tr td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.results-table tbody tr td:last-child {
  border-bottom: none;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.rank-badge.gold {
  background: var(--rank-gold-bg);
  color: var(--rank-gold-text);
}
.rank-badge.silver {
  background: var(--rank-silver-bg);
  color: var(--rank-silver-text);
}
.rank-badge.bronze {
  background: var(--rank-bronze-bg);
  color: #ffffff;
}

.player-cell strong {
  color: var(--text);
}

.nation-base, .nation-name, .nation-parthia, .nation-egypt, .nation-indus, .nation-hellas, .nation-nubia, .nation-iberia, .nation-persia, .nation-rome, .nation-kushan, .nation-hatti, .nation-dravidia, .nation-carthage, .nation-babylon, .nation-celt, .nation-maurya, .nation-assyria, .nation-saba, .nation-minoa {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.nation-minoa {
  background: #7CB342;
  color: #ffffff;
}

.nation-saba {
  background: #E57373;
  color: #ffffff;
}

.nation-assyria {
  background: #42A5F5;
  color: #ffffff;
}

.nation-maurya {
  background: #F44336;
  color: #ffffff;
}

.nation-celt {
  background: #388E3C;
  color: #ffffff;
}

.nation-babylon {
  background: #757575;
  color: #ffffff;
}

.nation-carthage {
  background: #FF9800;
  color: #ffffff;
}

.nation-dravidia {
  background: #1A237E;
  color: #ffffff;
}

.nation-hatti {
  background: #E91E63;
  color: #ffffff;
}

.nation-kushan {
  background: #8D6E63;
  color: #ffffff;
}

.nation-rome {
  background: #C62828;
  color: #ffffff;
}

.nation-persia {
  background: #673AB7;
  color: #ffffff;
}

.nation-iberia {
  background: #546E7A;
  color: #ffffff;
}

.nation-nubia {
  background: #26A69A;
  color: #ffffff;
}

.nation-hellas {
  background: #FFEB3B;
  color: #2c3e50;
}

.nation-indus {
  background: #2E7D32;
  color: #ffffff;
}

.nation-egypt {
  background: #D7CCC8;
  color: #2c3e50;
}

.nation-parthia {
  background: #689F38;
  color: #ffffff;
}

.nation-name {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border-light);
}

.nation-badge-small {
  padding: 2px 8px;
  font-size: 0.78rem;
}

.nation-badge-large {
  padding: 8px 18px;
  font-size: 1rem;
}

.game-stats-section {
  margin: 20px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stat-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.stat-item .stat-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: block;
}
.stat-item .stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievements-section {
  margin: 32px 0;
}

.achievement-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.achievement-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.achievement-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.achievement-card .achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.achievement-card .achievement-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.achievement-card .achievement-label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}
.achievement-card .achievement-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.stat-number,
.ast-position,
.final-score {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section .hero-stats {
    gap: 12px;
  }
  .hero-section .hero-stats .stat-item {
    padding: 12px 16px;
  }
  .hero-section .hero-stats .stat-item .stat-number {
    font-size: 1.6rem;
  }
  .game-types-grid,
  .community-values-grid,
  .achievement-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .community-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .social-media-section .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .social-links-compact {
    flex-direction: column;
    align-items: center;
  }
  .game-card-with-photos {
    padding: 0;
    margin: 8px 0;
    position: relative;
  }
  .game-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 40px 10px 14px;
  }
  .game-summary-left {
    flex: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .game-summary-right {
    flex: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .game-summary-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.95rem;
  }
  .game-expand-btn {
    position: absolute;
    right: 14px;
    top: 12px;
  }
  .game-card-with-photos.is-open .game-expand-btn {
    transform: rotate(180deg);
  }
  .game-detail {
    padding: 0 14px 20px;
  }
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
  .photo-gallery-grid .gallery-photo-link.featured-photo {
    grid-column: span 1;
  }
  .results-table {
    font-size: 0.85rem;
  }
  .results-table thead th {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .results-table tbody td {
    padding: 8px 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-timeline {
    padding-left: 20px;
  }
  .experience-timeline::before {
    left: 8px;
  }
  .timeline-item {
    padding-left: 24px;
  }
  .timeline-item::before {
    left: -5px;
    width: 12px;
    height: 12px;
  }
}
body {
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: var(--brand);
}

a:visited {
  color: var(--brand);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
}

.site-header {
  background: var(--bg);
  border-top-color: var(--brand-dark);
  border-bottom-color: var(--border);
}

.site-title,
.site-title:visited {
  color: var(--text);
}

.site-nav .page-link {
  color: var(--text);
}
@media (max-width: 600px) {
  .site-nav {
    background: var(--surface);
    border-color: var(--border);
  }
  .site-nav .menu-icon > svg {
    fill: var(--text-muted);
  }
}

.site-footer {
  background: var(--surface);
  border-top-color: var(--border);
  color: var(--text-muted);
}

.footer-heading {
  color: var(--text);
}

.contact-list,
.social-media-list {
  color: var(--text-muted);
}

blockquote {
  color: var(--text-muted);
  border-left-color: var(--border);
}

pre, code {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

table {
  color: var(--text);
}

table tr:nth-child(even) {
  background-color: var(--surface);
}

table th {
  background-color: var(--surface);
  border-color: var(--border);
}

table td {
  border-color: var(--border);
}

.nation-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 16px 10px;
}

.chart-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.chart-game-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  height: 200px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 10px;
  margin-left: 12px;
  color: var(--text);
  vertical-align: middle;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--brand);
  background: var(--surface);
}

/*# sourceMappingURL=style.css.map */