/* =========================================================
   ROSO Tournaments — CSS
   Brand tokens from Farstar09/roso, modernized for tournament hub
   ========================================================= */

/* ── 1. CSS Custom Properties ───────────────────────────── */
:root {
  /* Primary Palette */
  --primary-red: #DC143C;
  --primary-red-dark: #8B0000;
  --primary-black: #0a0a0a;
  --accent-red: #FF0000;
  --accent-red-light: #FF6B6B;

  /* Purple Accent (Built by Star / ROSO brand) */
  --accent-purple: #a855f7;
  --accent-purple-dark: #7c3aed;
  --accent-purple-light: #c084fc;
  --glow-purple: 0 0 18px rgba(168, 85, 247, 0.65);
  --glow-purple-soft: 0 0 10px rgba(168, 85, 247, 0.4);

  /* Surfaces */
  --surface-darkest: #0a0a0a;
  --surface-dark: #111111;
  --surface-medium: #1a1a1a;
  --surface-card: #141414;
  --surface-card-hover: #1e1e1e;
  --surface-border: rgba(220, 20, 60, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #606060;

  /* Effects */
  --shadow-red-soft: 0 0 20px rgba(220, 20, 60, 0.4);
  --shadow-red-intense: 0 0 40px rgba(220, 20, 60, 0.7);
  --glow-red: 0 0 15px rgba(220, 20, 60, 0.5);
  --glow-text: 0 0 10px rgba(220, 20, 60, 0.6);

  /* Radius / Spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Nav height */
  --nav-height: 70px;
}

/* ── 2. Reset & Base ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── 3. Layout Utilities ────────────────────────────────── */
.container {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin-inline: auto;
}

.header-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
  border-radius: 2px;
  margin-inline: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* ── 4. Navigation ──────────────────────────────────────── */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.nav-logo:hover {
  transform: translateY(-3px);
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-top {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--primary-red);
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(220, 20, 60, 0.12);
}

.nav-links a.active {
  color: var(--primary-red);
}

/* Nav logo image */
.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  animation: logoEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg);  }
}

/* Nav action buttons group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Nav Register CTA */
.nav-register {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  background: var(--primary-red);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-register:hover {
  background: var(--accent-red) !important;
  box-shadow: var(--glow-red);
  color: #fff !important;
}

/* Visit Main Site button */
.nav-visit-site {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple-light) !important;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

.nav-visit-site:hover {
  background: rgba(168, 85, 247, 0.28) !important;
  border-color: var(--accent-purple) !important;
  box-shadow: var(--glow-purple-soft);
  color: #fff !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset-block-start: var(--nav-height);
  inset-inline: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer a {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--text-primary);
  background: rgba(220, 20, 60, 0.1);
  border-left-color: var(--primary-red);
}

.nav-drawer .nav-register {
  margin-top: 0.5rem;
  text-align: center;
  border-left: none;
}

.nav-drawer .nav-visit-site {
  text-align: center;
  border-left: none;
}

/* ── 5. Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}
.btn-primary:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-soft);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: transparent;
  color: var(--primary-red);
  border-color: var(--primary-red);
}
.btn-outline-red:hover {
  background: var(--primary-red);
  color: #fff;
  box-shadow: var(--glow-red);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ── 6. Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--surface-darkest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220, 20, 60, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(139, 0, 0, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  z-index: 0;
}

/* Animated grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 20, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 20, 60, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 4rem 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(220, 20, 60, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  background: rgba(220, 20, 60, 0.08);
  animation: fadeInUp 0.6s ease both;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-red);
  animation: pulse-dot 1.8s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title-accent {
  color: var(--primary-red);
  text-shadow: var(--glow-text);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
  margin-bottom: 3.5rem;
}

/* ── 7. Next Event Card ─────────────────────────────────── */
.next-event-card {
  position: relative;
  z-index: 1;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 760px;
  margin-inline: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  animation: fadeInUp 0.7s 0.4s ease both;
}

.next-event-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.nec-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-red);
}

.nec-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nec-status-badge.upcoming {
  background: rgba(220, 20, 60, 0.15);
  color: var(--accent-red-light);
  border: 1px solid rgba(220, 20, 60, 0.3);
}
.nec-status-badge.live {
  background: rgba(0, 200, 100, 0.15);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.3);
}
.nec-status-badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00c864;
  animation: pulse-dot 1.2s ease infinite;
}
.nec-status-badge.past {
  background: rgba(255,255,255,0.06);
  color: var(--text-tertiary);
  border: 1px solid rgba(255,255,255,0.1);
}

.nec-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.nec-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.nec-game-tag svg {
  width: 14px;
  height: 14px;
  color: var(--primary-red);
}

/* Event detail grid */
.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.event-detail-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.event-detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.event-detail-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.event-detail-value.highlight {
  color: var(--primary-red);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 64px;
}

.countdown-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: center;
  padding: 0.4rem 0.5rem;
  min-width: 64px;
  transition: color var(--transition-base);
}

.countdown-num.red {
  color: var(--primary-red);
  border-color: rgba(220, 20, 60, 0.3);
  text-shadow: var(--glow-text);
}

.countdown-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.countdown-sep {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--text-tertiary);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.6rem;
}

.nec-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 8. Event Cards (events page) ───────────────────────── */
.events-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: rgba(220, 20, 60, 0.5);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.filter-btn:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
.events-grid .event-card-link {
  flex: 0 1 200px;
  max-width: 220px;
  display: flex;
}

.event-card {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.event-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-red-soft);
  border-color: rgba(220, 20, 60, 0.35);
}

.event-card:hover::before { opacity: 1; }

.ec-card-stretch-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.ec-footer {
  position: relative;
  z-index: 1;
}

.event-card-banner {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red), var(--accent-red));
}

.event-card-banner.past {
  background: linear-gradient(90deg, #333, #555);
}

.event-card-body {
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.event-card-game {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 999px;
  background: rgba(220, 20, 60, 0.08);
}

.event-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.event-card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.event-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

/* old ec-detail styles removed — replaced by new .ec-details/.ec-detail below */

.event-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.event-card-link:hover .event-card {
  transform: translateY(-4px);
  border-color: rgba(220, 20, 60, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 20, 60, 0.08);
}

.event-card-link:hover .ec-view-arrow {
  color: var(--primary-red) !important;
}

.ec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ec-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ec-tag {
  font-size: 0.57rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 99px;
}
.ec-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
}
.ec-title-block {
  margin-top: 0;
}
.ec-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 2px;
  line-height: 1.2;
}
.ec-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.ec-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}
.ec-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ec-detail svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.ec-detail-val {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.ec-prize {
  font-weight: 600;
  color: var(--primary-red);
}
.ec-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.ec-view-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.ec-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.ec-cta--primary {
  background: var(--primary-red);
  color: #fff;
}
.ec-cta--primary:hover { background: var(--primary-red-dark); }

.ec-cta--live {
  background: rgba(220, 20, 60, 0.15);
  color: var(--primary-red);
  border: 1px solid rgba(220, 20, 60, 0.3);
}
.ec-cta--live:hover { background: rgba(220, 20, 60, 0.25); }

.ec-cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ec-cta--secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ec-cta--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.results-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1200;
}
.results-modal.open { display: flex; }
.results-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  outline: none;
}
.results-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.1rem;
}
.results-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.results-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  margin: 0 0 0.2rem;
}
.results-modal__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.results-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.results-standings-wrap {
  margin-top: 0.5rem;
}
.results-standings-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
}
.results-standings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.results-standings li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.results-placing {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 20, 60, 0.15);
  color: var(--primary-red);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.results-team-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.results-team-players {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .results-modal__dialog { padding: 1.25rem; }
  .results-modal__title { font-size: 1.3rem; }
  .results-standings li { flex-direction: column; align-items: flex-start; }
  .results-placing { width: 42px; height: 42px; }
}

.no-events-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.no-events-msg h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-tertiary);
}

/* ── 9. Winners ─────────────────────────────────────────── */
.winners-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.winner-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.winner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--shadow-red-soft);
  border-color: rgba(220, 20, 60, 0.35);
}

.winner-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-tertiary);
  min-width: 2.5rem;
  text-align: center;
  line-height: 1;
}

.winner-rank.top-1 { color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,0.4); }
.winner-rank.top-2 { color: #c0c0c0; }
.winner-rank.top-3 { color: #cd7f32; }

.winner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.winner-meta { min-width: 0; }

.winner-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-tag {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.winner-wins-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-red);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.winner-latest {
  text-align: right;
  min-width: 120px;
}

.winner-latest-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.2rem;
}

.winner-latest-event {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.winner-latest-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ── 10. Profile Page ───────────────────────────────────── */
.profile-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(220,20,60,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--surface-border);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  border: 3px solid rgba(220, 20, 60, 0.5);
  box-shadow: var(--shadow-red-soft);
  flex-shrink: 0;
}

.profile-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.profile-tag {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.profile-member-since {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.profile-stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-bio {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
}

/* Profile tournament history */
.profile-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-win-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.profile-win-item:hover {
  border-color: rgba(220, 20, 60, 0.3);
}

.profile-win-placement {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd700;
  min-width: 1.8rem;
  text-align: center;
}

.profile-win-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.profile-win-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-win-prize {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
}

/* ── 11. Rules & About Pages ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(180deg, rgba(220,20,60,0.07) 0%, transparent 100%);
  border-bottom: 1px solid var(--surface-border);
  text-align: center;
}

.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Rules content */
.rules-content {
  max-width: 800px;
  margin-inline: auto;
}

.rule-section {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.rule-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rule-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.1em;
  background: var(--primary-red);
  border-radius: 2px;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rule-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.rule-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: 700;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 20, 60, 0.3);
}

.about-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.about-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* ── 12. Footer ─────────────────────────────────────────── */
.footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--surface-border);
  padding-block: 3rem 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand {}

.footer-brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.footer-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-copy span {
  color: var(--primary-red);
}

.footer-roso-link {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-roso-link:hover {
  color: var(--primary-red);
}

/* Built by Star section */
.built-by-star {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.built-by-star-label {
  color: var(--text-secondary);
}

.built-by-star-link {
  color: var(--accent-purple);
  font-weight: 700;
  text-shadow: var(--glow-purple-soft);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  letter-spacing: 0.1em;
}

.built-by-star-link:hover {
  color: var(--accent-purple-light);
  text-shadow: var(--glow-purple);
}

.built-by-star-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  margin: 0 0.5rem;
  opacity: 0.7;
}

/* ── 13. Misc / Utilities ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(220, 20, 60, 0.15);
  color: var(--accent-red-light);
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.badge-green {
  background: rgba(0, 200, 100, 0.12);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.25);
}

.badge-gray {
  background: rgba(255,255,255,0.06);
  color: var(--text-tertiary);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Loading state */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.loading-spinner::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error / empty */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
  transition: opacity var(--transition-base), transform var(--transition-base);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  font-size: 1.1rem;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(220, 20, 60, 0.6);
}

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

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

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── 15. Splash Screen — removed ───────────────────────────── */

/* ── 16. Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .next-event-card {
    padding: 1.5rem;
  }

  .event-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown-num {
    min-width: 52px;
    font-size: 1.8rem;
  }

  .winner-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .winner-latest {
    grid-column: 2;
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .profile-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-win-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .profile-win-prize {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .events-grid {
    justify-content: center;
  }

  .events-grid .event-card-link {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .event-card-details {
    grid-template-columns: 1fr;
  }

  .event-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nec-actions {
    flex-direction: column;
  }

  .nec-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .countdown {
    gap: 0.3rem;
  }

  .countdown-sep {
    display: none;
  }

  .staff-profile-grid {
    grid-template-columns: 1fr;
  }

  .staff-stats-bar {
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .staff-stat-num {
    font-size: 1.6rem;
  }
}

/* ── Discord ─────────────────────────────────────────────── */
:root {
  --discord-color: #5865F2;
  --discord-dark: #4752C4;
  --glow-discord: 0 0 18px rgba(88, 101, 242, 0.55);
}

.nav-discord {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord-color) !important;
  border: 1px solid rgba(88, 101, 242, 0.5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-discord:hover {
  background: rgba(88, 101, 242, 0.28) !important;
  border-color: var(--discord-color) !important;
  box-shadow: var(--glow-discord);
  color: #fff !important;
}

.nav-drawer .nav-discord {
  text-align: center;
  border-left: none;
  justify-content: center;
}

.btn-discord {
  background: var(--discord-color);
  color: #fff;
  border-color: var(--discord-color);
}
.btn-discord:hover {
  background: var(--discord-dark);
  border-color: var(--discord-dark);
  box-shadow: var(--glow-discord);
  transform: translateY(-1px);
}
.btn-discord:focus-visible {
  outline: 2px solid var(--discord-color);
  outline-offset: 3px;
}

/* Discord embed section */
.discord-section-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin-inline: auto;
  align-items: center;
}

.discord-embed-card {
  background: #2b2d31;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 0 4px 32px rgba(88, 101, 242, 0.15);
}

.discord-embed-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.discord-server-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(88, 101, 242, 0.45);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.discord-server-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.25rem;
}

.discord-server-tag {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.discord-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 1.25rem;
}

.discord-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
}

.discord-invite-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  font-family: monospace;
  letter-spacing: 0.03em;
}

.discord-join-btn {
  padding: 0.4rem 1rem;
  background: var(--discord-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.discord-join-btn:hover {
  background: var(--discord-dark);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
  color: #fff;
}

.discord-cta-side {
  text-align: center;
}

.discord-cta-side h3 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.discord-cta-side h3 span {
  color: var(--discord-color);
}

.discord-cta-side p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 380px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .discord-section-wrap {
    grid-template-columns: 1fr;
  }
  .discord-cta-side {
    order: -1;
  }
}
.btn-closed {
  background: rgba(255,255,255,0.08);
  color: var(--text-tertiary);
  border-color: rgba(255,255,255,0.12);
  cursor: default;
  pointer-events: none;
}

/* ── Winners Section Title ───────────────────────────────── */
.winners-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 1rem;
}

/* ── Winners Two-Panel Layout ────────────────────────────── */
.winners-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.winners-panel {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.winners-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(220, 20, 60, 0.05);
}

.winners-panel-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.winners-panel .winners-list {
  padding: 1rem;
  gap: 0.75rem;
}

.winners-panel .winner-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .winners-panels {
    grid-template-columns: 1fr;
  }
}

/* ── Scroll Indicator ────────────────────────────────────── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes scrollFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: scrollFadeIn 0.6s ease 1.2s both;
  pointer-events: none;
  z-index: 999;
  transition: opacity var(--transition-base);
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-indicator-text {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.scroll-indicator-arrow {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.45);
  animation: scrollBounce 1.4s ease-in-out infinite;
}

.scroll-indicator-arrow svg {
  width: 100%;
  height: 100%;
}

/* Ensure hero/page-hero has position:relative for indicator positioning */
.hero,
.page-hero {
  position: relative;
}

/* ── Staff Member List ───────────────────────────────────── */
.staff-member {
  padding: 1rem 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.staff-member-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-handle {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-primary);
}

.staff-role-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-red);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.03em;
}

/* ── Event Staff Profile Cards ───────────────────────────── */

/* Stats bar */
.staff-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.staff-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.staff-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
}

.staff-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Section groupings (e.g. Administration / Observers & Recorders) */
.staff-section {
  margin-bottom: 2.5rem;
}

.staff-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.staff-section-icon {
  font-size: 1.25rem;
}

.staff-section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-section-count {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  margin-left: auto;
}

/* Profile card grid */
.staff-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* Individual profile card */
.staff-profile-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.staff-profile-card:hover {
  border-color: rgba(220, 20, 60, 0.4);
  transform: translateY(-2px);
}

/* Avatar with real image */
.staff-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(220, 20, 60, 0.4);
  box-shadow: var(--shadow-red-soft);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.staff-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar placeholder (initials fallback) */
.staff-profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  border: 2px solid rgba(220, 20, 60, 0.4);
  box-shadow: var(--shadow-red-soft);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.staff-profile-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.staff-profile-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.staff-profile-bio {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.staff-profile-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--discord-color);
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}

.staff-profile-discord strong {
  color: var(--discord-color);
}

/* =========================================================
   Splash Screen
   ========================================================= */

/* ── Keyframes ── */
@keyframes splashLogoSpin {
  0%   { transform: scale(0.2) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(4deg);   opacity: 1; }
  80%  { transform: scale(0.97) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

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

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

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

@keyframes splashBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.5), 0 0 30px rgba(220, 20, 60, 0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(220, 20, 60, 0),  0 0 50px rgba(220, 20, 60, 0.5); }
}

@keyframes splashBtnAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

@keyframes splashHintFade {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

@keyframes splashParticleDrift {
  0%   { transform: translateY(0)    translateX(0)    scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--dx, 20px)) scale(0.3); opacity: 0; }
}

@keyframes splashFadeOut {
  0%   { opacity: 1; transform: scale(1);    }
  80%  { opacity: 0; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.04); visibility: hidden; }
}

@keyframes splashGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1);    }
  50%       { opacity: 0.9; transform: scale(1.12); }
}

/* ── Overlay ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at 50% 60%, #1a0006 0%, #0d0002 40%, #080000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash.splash--exit {
  animation: splashFadeOut 0.7s ease forwards;
  pointer-events: none;
}

/* ── Particles ── */
.splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-particle {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-red);
  animation: splashParticleDrift linear infinite;
  opacity: 0;
}

.splash-particle:nth-child(1)  { left:  5%; width: 6px; height: 6px; animation-duration: 8s;  animation-delay: 0.5s;  --dx:  30px; background: #ff2d55; }
.splash-particle:nth-child(2)  { left: 12%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 1.2s;  --dx: -20px; background: #dc143c; }
.splash-particle:nth-child(3)  { left: 22%; width: 5px; height: 5px; animation-duration: 9s;  animation-delay: 2.0s;  --dx:  50px; background: #ff6b6b; }
.splash-particle:nth-child(4)  { left: 35%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 0.0s;  --dx: -40px; background: #dc143c; }
.splash-particle:nth-child(5)  { left: 50%; width: 7px; height: 7px; animation-duration: 7s;  animation-delay: 3.0s;  --dx:  15px; background: #ff2d55; }
.splash-particle:nth-child(6)  { left: 62%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 1.8s;  --dx: -55px; background: #ff6b6b; }
.splash-particle:nth-child(7)  { left: 72%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0.8s;  --dx:  35px; background: #dc143c; }
.splash-particle:nth-child(8)  { left: 82%; width: 4px; height: 4px; animation-duration: 8s;  animation-delay: 2.5s;  --dx: -25px; background: #ff2d55; }
.splash-particle:nth-child(9)  { left: 90%; width: 6px; height: 6px; animation-duration: 9s;  animation-delay: 1.0s;  --dx:  60px; background: #ff6b6b; }
.splash-particle:nth-child(10) { left: 18%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 4.0s;  --dx: -15px; background: #dc143c; }
.splash-particle:nth-child(11) { left: 45%; width: 5px; height: 5px; animation-duration: 6s;  animation-delay: 0.3s;  --dx:  45px; background: #ff2d55; }
.splash-particle:nth-child(12) { left: 70%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 2.1s;  --dx: -30px; background: #ff6b6b; }

/* ── Content wrapper ── */
.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ── Logo wrapper ── */
.splash-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transform-origin: center;
  animation: splashLogoSpin 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  flex-shrink: 0;
}

/* Glow backdrop behind logo */
.splash-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.35) 0%, transparent 70%);
  animation: splashGlowPulse 2.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ── Decorative rings ── */
.splash-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(220, 20, 60, 0.12);
}

.splash-logo-ring--outer {
  inset: -22px;
  border-top-color:  rgba(220, 20, 60, 0.8);
  border-right-color: rgba(220, 20, 60, 0.3);
  border-bottom-color: rgba(220, 20, 60, 0.1);
  animation: splashRingRotate 3s linear infinite;
  animation-delay: 1.4s;
  opacity: 0;
  transition: opacity 0.4s ease 1.4s;
}

.splash-logo-ring--inner {
  inset: -10px;
  border-top-color:    rgba(255, 45, 85, 0.6);
  border-left-color:   rgba(255, 45, 85, 0.3);
  border-bottom-color: rgba(255, 45, 85, 0.1);
  animation: splashRingRotateReverse 2s linear infinite;
  animation-delay: 1.4s;
  opacity: 0;
  transition: opacity 0.4s ease 1.4s;
}

/* Make rings visible after logo finishes spinning */
.splash-logo-wrap.splash-logo--settled .splash-logo-ring--outer,
.splash-logo-wrap.splash-logo--settled .splash-logo-ring--inner {
  opacity: 1;
}

/* ── Logo image ── */
.splash-logo-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(220,20,60,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(220,20,60,0.4), inset 0 0 20px rgba(0,0,0,0.5);
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ── Text block ── */
.splash-text {
  width: 100%;
  text-align: center;
  animation: splashTextSlideUp 0.7s ease 1.2s both;
}

.splash-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.splash-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 40px rgba(220,20,60,0.4);
  margin-bottom: 0.6rem;
}

.splash-title-accent {
  color: var(--primary-red);
  text-shadow: 0 0 30px rgba(220,20,60,0.7);
}

.splash-subtitle {
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Enter button ── */
.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 2.2rem;
  background: var(--primary-red);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  animation: splashBtnAppear 0.6s ease 1.7s both, splashBtnPulse 2.2s ease-in-out 2.5s infinite;
  transition: background var(--transition-fast), transform var(--transition-fast);
  outline-offset: 3px;
}

.splash-enter-btn:hover,
.splash-enter-btn:focus-visible {
  background: #b8102e;
  transform: scale(1.05);
}

.splash-enter-btn-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.splash-enter-btn:hover .splash-enter-btn-icon {
  transform: translateX(4px);
}

/* ── Claim Notice Banner ── */
.claim-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.claim-notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.claim-notice strong {
  color: var(--text-primary);
}

.claim-notice-discord {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.claim-notice-discord:hover,
.claim-notice-discord:focus-visible {
  color: var(--accent-purple);
}

/* ── Hint text ── */
.splash-hint {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  animation: splashHintFade 0.5s ease 2.3s both;
}

.splash-hint kbd {
  font-family: inherit;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .splash-logo-wrap {
    width: 140px;
    height: 140px;
  }
  .splash-logo-img-wrap {
    width: 108px;
    height: 108px;
  }
}

/* =========================================================
   AUTH — Login button, user dropdown, modals
   ========================================================= */

/* ── Nav auth widget container ── */
.nav-auth-widget {
  position: relative;
  display: flex;
  align-items: center;
}

/* ── Login with Discord button (nav) ── */
.nav-login-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--discord-color, #5865f2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-login-discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

/* ── Logged-in user button ── */
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* User avatar (image) */
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* User avatar fallback (initials) */
.nav-user-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-caret {
  opacity: 0.6;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-user-btn[aria-expanded="true"] .nav-user-caret {
  transform: rotate(180deg);
}

/* ── User dropdown menu ── */
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 170px;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-user-dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-user-dropdown-item--logout {
  color: var(--accent-red-light);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 0.25rem;
}

.nav-user-dropdown-item--logout:hover {
  color: #fff;
  background: rgba(220, 20, 60, 0.15);
}

/* ── Auth error toast ── */
.rac-auth-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--primary-red-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.rac-auth-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Email login modal ── */
.rac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.rac-modal {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.rac-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.rac-modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.rac-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Discord button inside modal */
.rac-btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--discord-color, #5865f2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 1rem;
}

.rac-btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.5);
}

/* Divider */
.rac-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.rac-modal-divider::before,
.rac-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Form */
.rac-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.rac-form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.rac-form-group input {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rac-form-group input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.rac-form-group input::placeholder {
  color: var(--text-tertiary);
}

.rac-form-error {
  color: var(--accent-red-light);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.rac-btn-submit {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.rac-btn-submit:hover:not(:disabled) {
  background: var(--accent-red);
  box-shadow: var(--glow-red);
}

.rac-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Profile Settings Card ──────────────────────────────── */
.profile-avatar-img {
  object-fit: cover;
}

.profile-settings-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
}

.profile-settings-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.profile-field-hint {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.8rem;
}

.profile-settings-actions {
  margin-top: 1.25rem;
}

.profile-notif-card {
  display: block;
  padding: 0.9rem 1rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.profile-notif-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.profile-notif-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin-top: 0.9rem;
}

.profile-notif-topic {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.profile-save-success {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── Profile Settings Card -- extended fields ── */

/* Two-column form row for paired inputs (username+region, riot name+tag) */
.rac-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* Select / dropdown styled to match inputs */
.rac-form-select {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.rac-form-select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.rac-form-select option {
  background: #ffffff;
  color: #000000;
}

/* Textarea styled to match inputs */
.rac-form-group textarea {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.rac-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.rac-form-group textarea::placeholder {
  color: var(--text-tertiary);
}

/* ── Rank Badge ── */
.profile-rank-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.4;
}

.profile-rank-badge--owner {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #1a1208;
}

.profile-rank-badge--admin {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
}

.profile-rank-badge--player {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

.profile-rank-badge--staff {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  color: #fff;
}

.profile-rank-badge--banned {
  background: rgba(107, 114, 128, 0.25);
  border: 1px solid rgba(107, 114, 128, 0.35);
  color: #9ca3af;
  text-decoration: line-through;
}

/* ── Profile name row (name + rank badge side-by-side) ── */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

/* ── Riot tag highlight ── */
.profile-riot-tag {
  color: var(--primary-red);
  font-weight: 600;
}

/* ── Region pill ── */
.profile-region-pill {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-red);
  text-transform: uppercase;
}

/* ── Social links row ── */
.profile-social-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.profile-social-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.profile-social-link--twitter {
  background: rgba(29, 161, 242, 0.12);
  border: 1px solid rgba(29, 161, 242, 0.35);
  color: #60c8f5;
}

.profile-social-link--twitch {
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.35);
  color: #b57cff;
}

/* ── Admin Panel ── */
.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 480px;
}

.admin-search-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.rac-btn-search {
  padding: 0.6rem 1.2rem;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.rac-btn-search:hover {
  background: var(--accent-red);
}

.admin-search-results {
  max-width: 480px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-search-loading,
.admin-search-empty,
.admin-search-error {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.admin-search-error {
  color: var(--accent-red-light);
}

.admin-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.admin-result-item:hover {
  border-color: rgba(220, 20, 60, 0.4);
  background: rgba(220, 20, 60, 0.05);
}

.admin-result-name {
  font-weight: 600;
}

.admin-edit-panel {
  margin-top: 1.5rem;
}

.admin-edit-header {
  margin-bottom: 1rem;
}

.admin-edit-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.admin-edit-id {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  word-break: break-all;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  .nav-user-name {
    display: none;
  }
  .nav-user-btn {
    padding: 0.35rem;
    border-radius: 50%;
  }
  .nav-user-caret {
    display: none;
  }
  .nav-user-dropdown {
    right: 0;
  }

  .rac-form-row {
    grid-template-columns: 1fr;
  }

  .admin-search-row {
    max-width: 100%;
  }

  .profile-settings-card {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   PLAYERS PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Players search bar ── */
.players-search-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.players-search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 560px;
}

.players-search-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.players-search-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

/* ── Search results ── */
.players-search-results {
  max-width: 720px;
}

.players-search-count {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.players-search-loading,
.players-search-empty,
.players-search-error {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.players-search-error {
  color: var(--accent-red-light);
}

.players-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.players-staff-role-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  margin-top: 0;
}

.players-staff-role-label + .players-staff-role-label,
.players-results-list + .players-staff-role-label {
  margin-top: 1.25rem;
}

/* ── Player result card ── */
.players-result-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.players-result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), var(--shadow-red-soft);
  border-color: rgba(220, 20, 60, 0.35);
}

.players-result-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.players-result-info {
  flex: 1;
  min-width: 0;
}

.players-result-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.players-result-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.players-result-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.players-result-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Leaderboard ── */
.players-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.players-lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.players-lb-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), var(--shadow-red-soft);
  border-color: rgba(220, 20, 60, 0.35);
}

.players-lb-info {
  flex: 1;
  min-width: 0;
}

.players-lb-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.players-lb-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.players-lb-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.players-lb-earned {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ── Admin panel subsections ── */
.admin-subsection {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-border);
}

.admin-subsection:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-subsection-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ── Role management card ── */
.admin-role-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 480px;
}

.admin-role-panel {
  margin-top: 1rem;
  max-width: 480px;
}

.admin-role-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-role-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--surface-border);
}

.admin-role-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-role-card-body {
  padding: 1rem 1.25rem;
}

.admin-role-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.admin-role-select-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-role-select {
  flex: 1;
  max-width: 220px;
}

.admin-role-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.admin-role-status--success {
  color: #4ade80;
}

.admin-role-status--error {
  color: var(--accent-red-light);
}

/* ── Screen reader only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .players-search-row {
    max-width: 100%;
  }

  .players-lb-earned {
    display: none;
  }

  .admin-role-row {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   TOURNAMENT PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Tournament Hero ─────────────────────────────────────── */
.tourn-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: var(--surface-darkest);
  border-bottom: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

.tourn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220, 20, 60, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.tourn-hero::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-red), var(--accent-red), transparent);
  pointer-events: none;
}

/* Breadcrumb */
.tourn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.tourn-breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.tourn-breadcrumb a:hover { color: var(--primary-red); }

/* Hero inner layout */
.tourn-hero-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.tourn-hero-content {
  flex: 1;
  min-width: 0;
}

.tourn-hero-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tourn-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.tourn-hero-title span { color: var(--primary-red); }

.tourn-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 2rem;
}

.tourn-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tourn-meta-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.tourn-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tourn-meta-value.prize {
  color: var(--primary-red);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
}

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

/* Stats panel (right of hero) */
.tourn-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  align-self: center;
  flex-shrink: 0;
  width: 230px;
}

.tourn-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.tourn-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.tourn-stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Section Tabs Bar ────────────────────────────────────── */
.tourn-tabs-bar {
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.tourn-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.tourn-tab {
  padding: 0.9rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.tourn-tab:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(220, 20, 60, 0.45);
}

.tourn-tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--primary-red);
}

/* Tab-controlled section visibility */
.tourn-section--tab-hidden {
  display: none !important;
}

/* Info section grid (when shown as full-width tab) */
.info-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Main Layout (main + sidebar) ───────────────────────── */
.tourn-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2rem;
  align-items: start;
}

.tourn-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Section Wrappers ────────────────────────────────────── */
.tourn-section {
  scroll-margin-top: calc(var(--nav-height) + 58px);
}

.tourn-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  gap: 1rem;
}

.tourn-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tourn-section-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 999px;
  color: var(--accent-red-light);
  white-space: nowrap;
}

.tourn-section-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Teams Grid ──────────────────────────────────────────── */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 20, 60, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.team-card-banner {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red), var(--accent-red));
}

.team-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.team-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card-players {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.team-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.team-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 20, 60, 0.18);
  border: 1px solid rgba(220, 20, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  overflow: hidden;
}

.team-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-player-info { min-width: 0; }

.team-player-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-player-rank {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-red-light);
  opacity: 0.85;
}

.team-player-sep {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0 0.25rem;
  user-select: none;
}

/* ── Bracket ─────────────────────────────────────────────── */
.bracket-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  min-height: 180px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) var(--surface-medium);
}

.bracket-wrapper::-webkit-scrollbar { height: 4px; }
.bracket-wrapper::-webkit-scrollbar-track { background: var(--surface-medium); border-radius: 2px; }
.bracket-wrapper::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 2px; }

.bracket-round {
  display: flex;
  flex-direction: column;
  min-width: 195px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.bracket-round-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-red);
  text-align: center;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.5rem;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.18);
  border-radius: var(--radius-sm);
}

.bracket-matches-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  justify-content: space-around;
}

/* ── Bracket connector lines ────────────────────────────── */

/* Groups of 2 matches that merge into the next round */
.bracket-match-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  gap: 0.75rem;
}

/* Slot wrapping each match card */
.bracket-match-slot {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.bracket-match-slot > .bracket-match {
  width: 100%;
}

/* Horizontal line extending right from each connected match */
.bracket-match-slot--connected::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 1.5rem;
  height: 2px;
  background: rgba(220, 20, 60, 0.35);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Vertical line joining a pair of connected matches on the right */
.bracket-match-group--pair::before {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: rgba(220, 20, 60, 0.35);
  pointer-events: none;
  z-index: 1;
}

.bracket-match {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: visible;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow 0.15s;
}

.bracket-match--clickable:hover {
  border-color: rgba(220, 20, 60, 0.5);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.15);
}

.bracket-match:hover { border-color: rgba(220, 20, 60, 0.3); }

.bracket-match--tbd { opacity: 0.45; }

.bracket-match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  transition: background var(--transition-fast);
}

.bracket-match-team.winner { background: rgba(220, 20, 60, 0.1); }
.bracket-match-team.tbd    { opacity: 0.6; }

.bm-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.bracket-match-team.tbd .bm-name    { color: var(--text-tertiary); font-style: italic; }
.bracket-match-team.winner .bm-name { color: var(--primary-red); }

.bm-seed {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-tertiary);
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.bm-match-num {
  position: absolute;
  top: -1px;
  right: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-tertiary);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

.bm-score {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.bracket-match-sep {
  height: 1px;
  background: var(--surface-border);
}

/* ── Double-Elimination Bracket Sections ─────────────────── */
.bracket-de-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.bracket-de-section {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 0.5rem;
  overflow: hidden;
}

.bracket-de-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--surface-border);
}

.bracket-de-section-note {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: 0 0 0.9rem;
  line-height: 1.4;
}

/* ── Bracket view tabs (Winners / Losers / Grand Finals) ── */
.bracket-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--surface-border);
}

.bracket-view-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.bracket-view-tab:hover {
  color: var(--text-primary);
  background: rgba(220, 20, 60, 0.18);
}

.bracket-view-tab--active {
  background: linear-gradient(90deg, rgba(220, 20, 60, 0.9), rgba(220, 20, 60, 0.6));
  color: #fff;
  box-shadow: var(--shadow-red-soft);
}

.bracket-de-section--hidden {
  display: none;
}

.bracket-wrapper--finals {
  min-height: 100px;
  justify-content: center;
  align-items: center;
}

/* ── Champion box (3rd column in Grand Finals row) ─────── */
.bracket-champion {
  display: flex;
  flex-direction: column;
  min-width: 195px;
  flex-shrink: 0;
}

.bracket-champion-card {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.18), rgba(220, 20, 60, 0.06));
  border: 2px solid rgba(220, 20, 60, 0.55);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.champion-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* ── Match List ──────────────────────────────────────────── */
.match-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: border-color var(--transition-fast);
}

.match-item:last-child { margin-bottom: 0; }
.match-item:hover      { border-color: rgba(220, 20, 60, 0.25); }

.match-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 105px;
  flex-shrink: 0;
}

.match-round-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-red);
  padding: 0.15rem 0.5rem;
  background: rgba(220, 20, 60, 0.1);
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}

.match-num {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.match-item-teams {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  justify-content: center;
}

.match-team-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team-name:first-child { text-align: right; }
.match-team-name.winner       { color: var(--primary-red); }

.match-score-display {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.match-item-right { flex-shrink: 0; }

.match-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.match-status-pill.pending   { background: rgba(255,255,255,0.06); color: var(--text-tertiary); border: 1px solid rgba(255,255,255,0.1); }
.match-status-pill.live      { background: rgba(0,200,100,0.15); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.match-status-pill.completed { background: rgba(100,100,255,0.12); color: #a0a0ff; border: 1px solid rgba(100,100,255,0.22); }

/* ── Tournament Sidebar ──────────────────────────────────── */
.tourn-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-height) + 60px);
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.sidebar-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.sidebar-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sir-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.sir-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.sidebar-prize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.sidebar-prize-place {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-prize-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-red);
}

.sidebar-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-rules-list li {
  font-size: 0.76rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.sidebar-rules-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: 700;
}

.sidebar-discord-text {
  font-size: 0.77rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.sidebar-card--discord {
  background: linear-gradient(135deg, var(--surface-card), rgba(88, 101, 242, 0.07));
  border-color: rgba(88, 101, 242, 0.22);
}

/* ── Tournament page responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .tourn-layout {
    grid-template-columns: 1fr;
  }

  .tourn-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .tourn-hero-inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .tourn-hero-stats {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }

  .match-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .match-item-teams {
    width: 100%;
    order: -1;
  }

  .match-item-left  { min-width: 0; }
  .match-item-right { margin-left: auto; }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .tourn-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STAFF PANEL — tournament Start / End controls
   ═══════════════════════════════════════════════════════════════ */

.rac-staff-panel {
  background: linear-gradient(135deg, rgba(220,20,60,0.08), rgba(220,20,60,0.03));
  border-top: 1px solid rgba(220,20,60,0.25);
  border-bottom: 1px solid rgba(220,20,60,0.25);
  padding: 0.75rem 0;
}

.staff-panel-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-panel-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.staff-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.staff-end-btn-style {
  background: var(--primary-red);
  color: #fff;
  border: 1px solid var(--primary-red);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.staff-end-btn-style:hover { opacity: 0.85; }
.staff-end-btn-style:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   SCORE REPORTING — modal overlay and inner card
   ═══════════════════════════════════════════════════════════════ */

.score-report-btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.rac-score-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}

.rac-score-modal {
  background: var(--surface-medium);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

.rac-score-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.rac-score-modal-header h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.rac-score-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.rac-score-modal-close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

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

.rac-score-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.rac-score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.rac-score-team-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.03em;
  min-height: 2.5em;
  display: flex;
  align-items: center;
}

.rac-score-input {
  width: 5rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-dark);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s;
}
.rac-score-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.rac-score-sep {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.5em;
}

.rac-score-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.rac-score-error {
  color: var(--primary-red);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.rac-score-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   PODIUM — Final Results display
   ═══════════════════════════════════════════════════════════════ */

.rac-podium-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--surface-border);
}

.rac-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  transition: transform 0.2s;
  min-width: 140px;
}

.podium-place--1 {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(160deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
  transform: translateY(-1rem);
}

.podium-place--2 {
  border-color: rgba(192, 192, 192, 0.4);
  background: linear-gradient(160deg, rgba(192,192,192,0.06), transparent);
}

.podium-place--3 {
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(160deg, rgba(205,127,50,0.06), transparent);
}

.podium-medal {
  font-size: 2rem;
  line-height: 1;
}

.podium-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
}

.podium-wins {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.podium-position {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, var(--text-secondary));
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM CLAIMING
   ═══════════════════════════════════════════════════════════════ */

.team-card-footer {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: center;
}

.team-claimed-badge {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-register-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.team-register-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}
.team-register-form button { margin-top: 0.25rem; }
.team-register-form .team-register-select {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}
.team-register-form .team-register-select option {
  background: #1a1a2e;
  color: #000;
}
.player2-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid var(--surface-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.p2r-item {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.p2r-item:hover {
  background: rgba(220, 20, 60, 0.2);
}
.p2r-empty {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.team-register-form input:focus {
  outline: none;
  border-color: rgba(220, 20, 60, 0.5);
}
.team-register-error { margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE — social links row
   ═══════════════════════════════════════════════════════════════ */

.profile-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.profile-social-link {
  font-size: 0.82rem;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}
.profile-social-link:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════════
   BTN small variant
   ═══════════════════════════════════════════════════════════════ */

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}
