/* ═══════════════════════════════════════════════════
   DEBQUERY — COMPLETE STYLESHEET
   Light theme · Rainbow accents · Bricolage Grotesque
═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg:            #f5f6fa;
  --surface:       #ffffff;
  --surface-2:     #f0f2f9;
  --surface-3:     #e6e9f4;
  --ink:           #09101f;
  --ink-2:         #3a4160;
  --ink-3:         #7b84a3;
  --accent:        #2355f5;
  --border:        rgba(9, 16, 31, 0.08);
  --border-strong: rgba(9, 16, 31, 0.14);
  --shadow-sm:     0 2px 12px rgba(9, 16, 31, 0.06);
  --shadow-md:     0 8px 32px rgba(9, 16, 31, 0.09);
  --shadow-lg:     0 24px 64px rgba(9, 16, 31, 0.13);
  --radius:        20px;
  --rainbow:       linear-gradient(90deg, #ff2d55, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #af52de, #ff2d55);
}

/* ── Prevent horizontal scroll ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  min-width: 0;
}

/* ── Table scroll containment ── */
.results-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

/* ── Grid containment on mobile ── */
@media (max-width: 768px) {
  .reviews-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .admin-links-row,
  .admin-stats-row {
    grid-template-columns: 1fr;
  }

  .summary-stat-grid,
  .results-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .difficulty-search-row {
    flex-direction: column;
  }

  .hero-inner {
    padding: 28px 22px;
  }

  .service-card {
    padding: 24px 20px;
    overflow: hidden;
  }
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════════════
   ORB LAYER (background decoration, all pages)
════════════════════════════════════════════════ */
.orb-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a855f7, #3b82f6);
  top: -180px; left: -140px;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f97316, #ec4899);
  top: 35vh; right: -160px;
  animation-duration: 18s;
  animation-delay: -7s;
}

.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #06b6d4, #6366f1);
  bottom: 8vh; left: 18%;
  animation-duration: 25s;
  animation-delay: -12s;
  opacity: 0.11;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(44px, -32px) scale(1.05); }
  66%  { transform: translate(-22px, 52px) scale(0.96); }
  100% { transform: translate(28px, 18px) scale(1.03); }
}

/* ════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 64px;
  background: rgba(245, 246, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-brand a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 6s linear infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-user {
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-right: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-button {
  padding: 9px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: 4px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(9, 16, 31, 0.22);
}

/* ════════════════════════════════════════════════
   FLASH MESSAGES
════════════════════════════════════════════════ */
.flash-wrap {
  position: relative;
  z-index: 10;
  width: min(1140px, 92%);
  margin: 16px auto 0;
}

.flash {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}

.flash-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.flash-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

/* ════════════════════════════════════════════════
   LAYOUT WRAPPERS
════════════════════════════════════════════════ */

/* Homepage */
.page {
  position: relative;
  z-index: 1;
  width: min(1140px, 92%);
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Inner pages */
.container {
  position: relative;
  z-index: 1;
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 104px 0 80px;
}

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.97rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border-radius: 14px;
  padding: 13px 24px;
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(9, 16, 31, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.full-width { width: 100%; }

/* ════════════════════════════════════════════════
   RAINBOW CARD UTILITY
════════════════════════════════════════════════ */
.rainbow-card {
  position: relative;
  overflow: hidden;
}

.rainbow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: 0;
}

.rainbow-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  z-index: 1;
}

.rainbow-card > * {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════════
   HOMEPAGE — HERO
════════════════════════════════════════════════ */
.hero {
  padding: 64px 0 32px;
}

.hero-inner {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 4s linear infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 5s linear infinite;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Radar visual ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-wrap {
  position: relative;
  width: 240px; height: 240px;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring:nth-child(1) { width: 240px; height: 240px; }
.radar-ring:nth-child(2) { width: 165px; height: 165px; border-color: rgba(9,16,31,0.05); }
.radar-ring:nth-child(3) { width: 90px;  height: 90px;  border-color: rgba(9,16,31,0.04); }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(35, 85, 245, 0.15) 100%);
  animation: radar-spin 3s linear infinite;
}

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

.radar-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(35, 85, 245, 0.15);
}

.radar-blip {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blip-pulse 2.4s ease-in-out infinite;
}

.radar-blip::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(35, 85, 245, 0.2);
  animation: blip-ring 2.4s ease-in-out infinite;
}

@keyframes blip-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%       { opacity: 1;    transform: scale(1.1); }
}

@keyframes blip-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(2.4); opacity: 0; }
}

.blip-1 { top: 20%; left: 67%; animation-delay: 0s; }
.blip-2 { top: 62%; left: 18%; animation-delay: 0.8s;  background: #ec4899; }
.blip-2::after { background: rgba(236,72,153,0.2); }
.blip-3 { top: 74%; left: 64%; animation-delay: 1.6s;  background: #10b981; }
.blip-3::after { background: rgba(16,185,129,0.2); }
.blip-4 { top: 33%; left: 28%; animation-delay: 0.4s;  background: #f59e0b; }
.blip-4::after { background: rgba(245,158,11,0.2); }

.radar-label {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

.radar-label.l1 { top: 16%; left: 72%; }
.radar-label.l2 { top: 65%; left: 0%;  }
.radar-label.l3 { top: 79%; left: 66%; }
.radar-label.l4 { top: 28%; left: 4%;  }

/* ════════════════════════════════════════════════
   HOMEPAGE — TRUSTED STRIP
════════════════════════════════════════════════ */
.trusted-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 36px;
  margin: 28px 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trusted-strip-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.trusted-strip-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.trust-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s, filter 0.2s;
}

.trust-logo:hover {
  opacity: 1;
  filter: grayscale(100%);
}

/* ════════════════════════════════════════════════
   HOMEPAGE — STATS
════════════════════════════════════════════════ */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  opacity: 0;
  transform: translateY(24px);
}

.stat-card.revealed {
  animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Rainbow border on hover only */
.stat-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

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

.stat-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  z-index: 1;
}

.stat-card > * { position: relative; z-index: 2; }

.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.87rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ════════════════════════════════════════════════
   HOMEPAGE — SECTION HEADINGS
════════════════════════════════════════════════ */
.section-intro {
  text-align: center;
  margin: 72px 0 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-intro.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-body {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════
   HOMEPAGE — FEATURE CARDS
════════════════════════════════════════════════ */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.home-feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  opacity: 0;
  transform: translateY(24px);
}

.home-feature-card.revealed {
  animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Animated top stripe on hover */
.home-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 4s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.home-feature-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.home-feature-card p {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--ink-2);
}

/* ════════════════════════════════════════════════
   HOMEPAGE — SERVICE CARDS
════════════════════════════════════════════════ */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 72px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
  align-items: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-28px);
  transition: box-shadow 0.22s, transform 0.22s;
}

.service-card.alt {
  grid-template-columns: 360px 1fr;
  transform: translateX(28px);
}

.service-card.revealed {
  animation: slide-in-left 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-card.alt.revealed {
  animation: slide-in-right 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Rainbow border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.service-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  z-index: 1;
}

.service-card > * { position: relative; z-index: 2; }

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.service-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.service-card strong { color: var(--ink); font-weight: 700; }

/* Service visual panel */
.service-visual {
  background: var(--surface-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.mini-stat:hover { transform: translateX(4px); }

.mini-stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mini-stat-icon.blue   { background: rgba(35, 85, 245, 0.1); }
.mini-stat-icon.green  { background: rgba(16, 185, 129, 0.1); }
.mini-stat-icon.orange { background: rgba(245, 158, 11, 0.1); }
.mini-stat-icon.pink   { background: rgba(236, 72, 153, 0.1); }

.mini-stat-text { flex: 1; min-width: 0; }

.mini-stat-label {
  font-size: 0.79rem;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.mini-stat-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.bar-row { margin-top: 5px; }

.bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.go { width: var(--w); }

/* ════════════════════════════════════════════════
   HOMEPAGE — MISSION STRIP
════════════════════════════════════════════════ */
.mission-strip {
  margin: 0 0 72px;
  padding: 56px 64px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
}

.mission-strip.revealed {
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Rainbow underline */
.mission-strip::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

/* Grid texture */
.mission-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.mission-strip > * { position: relative; z-index: 1; }

.mission-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.mission-title em {
  font-style: normal;
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 5s linear infinite;
}

.mission-body {
  font-size: 0.97rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.65);
}

.mission-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mission-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.2s, transform 0.2s;
}

.mission-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(6px);
}

.pill-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ════════════════════════════════════════════════
   HOMEPAGE — FOOTER CTA
════════════════════════════════════════════════ */
.footer-cta {
  text-align: center;
  padding: 68px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.footer-cta.revealed {
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 28px;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   AUTH PAGES (login / register)
════════════════════════════════════════════════ */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  min-height: calc(100vh - 64px);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Rainbow top stripe */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.auth-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth-card .muted {
  color: var(--ink-3);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.97rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.auth-form input::placeholder { color: var(--ink-3); }

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 245, 0.12);
  background: var(--surface);
}

.switch-link {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-3);
  text-align: center;
}

.switch-link a { color: var(--accent); font-weight: 600; }
.switch-link a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════
   SEARCH PAGE
════════════════════════════════════════════════ */
.search-section {
  padding: 60px 0;
}

.search-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.search-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.search-card .muted {
  color: var(--ink-3);
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.search-form {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-form input {
  flex: 1;
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search-form input::placeholder { color: var(--ink-3); }

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 245, 0.12);
  background: var(--surface);
}

/* ════════════════════════════════════════════════
   RESULTS PAGE
════════════════════════════════════════════════ */
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.results-top h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.result-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.result-card:hover::before { transform: scaleX(1); }

.result-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  margin-top: 0;
}

.result-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  transition: gap 0.18s;
}

.result-link:hover { gap: 8px; }

.empty-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 56px 40px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--ink-3);
}

.empty-card p { font-size: 1rem; line-height: 1.7; }

/* ════════════════════════════════════════════════
   DIFFICULTY / TOURNAMENT PAGES
════════════════════════════════════════════════ */
.difficulty-card {
  max-width: 800px;
  margin: 0 auto 40px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.difficulty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.difficulty-header h1,
.results-hero-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 10px 0 12px;
}

.difficulty-subtext {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 600px;
}

.difficulty-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.difficulty-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.difficulty-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.difficulty-field input,
.difficulty-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.97rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.difficulty-field input::placeholder { color: var(--ink-3); }

.difficulty-field input:focus,
.difficulty-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 245, 0.12);
  background: var(--surface);
}

.difficulty-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.difficulty-search-row input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.97rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.difficulty-search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 245, 0.12);
  background: var(--surface);
}

.difficulty-btn {
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Custom select wrapper */
.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.custom-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 13px;
  pointer-events: none;
}

.full-row { width: 100%; }

/* ── Results hero + table cards ── */
.difficulty-results-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-hero-card,
.results-table-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.results-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.better-subtitle {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 0.97rem;
  line-height: 1.7;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.result-stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.result-stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.result-stat-label {
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* ── Debater results layout ── */
.results-summary-modern {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}

.results-summary-right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
}

.break-rate-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.break-rate-ring {
  --percent: 0;
  width: 190px; height: 190px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0deg,
    #818cf8 calc(var(--percent) * 3.6deg),
    var(--border) calc(var(--percent) * 3.6deg),
    var(--border) 360deg
  );
  box-shadow: var(--shadow-md);
}

.break-rate-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
  z-index: 1;
}

.break-rate-inner {
  position: relative;
  z-index: 2;
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.break-rate-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.break-rate-label {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating-main-card {
  background: linear-gradient(135deg, rgba(35, 85, 245, 0.08), rgba(131, 92, 246, 0.06));
  border: 1px solid rgba(35, 85, 245, 0.18);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-main-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.rating-main-label {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.rating-main-subtext {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.summary-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.summary-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
}

.summary-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1;
}

.summary-stat-text {
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.35;
}

.difficulty-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(35, 85, 245, 0.1);
  border: 1px solid rgba(35, 85, 245, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.row-rating-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
  font-weight: 800;
  font-size: 0.88rem;
}

.top-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.top-result-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.top-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.top-result-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 10px 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.top-result-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 36px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #92400e;
  font-weight: 800;
  font-size: 1rem;
}

.top-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* ════════════════════════════════════════════════
   TABLES
════════════════════════════════════════════════ */
.results-table-header {
  margin-bottom: 20px;
}

.results-table-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.results-table-wrapper {
  overflow-x: auto;
}

.nice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.nice-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  background: var(--surface-2);
}

.nice-table thead th:first-child { border-radius: 10px 0 0 0; }
.nice-table thead th:last-child  { border-radius: 0 10px 0 0; }

.nice-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: middle;
  font-size: 0.95rem;
}

.nice-table tbody tr:hover { background: var(--surface-2); }
.nice-table tbody tr:last-child td { border-bottom: none; }

.rank-cell {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
}

.score-cell {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.tournament-name-cell {
  font-weight: 600;
  color: var(--ink);
}

.table-link {
  color: var(--accent);
  font-weight: 700;
  transition: text-decoration 0.15s;
}

.table-link:hover { text-decoration: underline; }

.tourney-link {
  color: var(--accent);
  font-weight: 500;
  transition: text-decoration 0.15s;
}

.tourney-link:hover { text-decoration: underline; }

/* Table status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-break {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-prelim {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-unknown {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

/* Table entry cells */
.entry-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.entry-main {
  font-weight: 700;
  color: var(--ink);
}

.entry-sub {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.table-links-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ════════════════════════════════════════════════
   MODERN RESULTS PAGE (debater profile)
════════════════════════════════════════════════ */
.results-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modern-results-hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.results-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.results-hero-main h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.modern-results-table {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.modern-table { min-width: 1000px; }

/* ════════════════════════════════════════════════
   LOADING OVERLAY
════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 246, 250, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 9999;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-box {
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.loading-spinner {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.loading-box h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.loading-main-text {
  color: var(--ink-3);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.loading-fun-facts {
  position: relative;
  height: 52px;
  overflow: hidden;
}

.fun-fact {
  position: absolute;
  width: 100%;
  left: 0; top: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fun-fact.active {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════
   EYEBROW (legacy — used in about/other pages)
════════════════════════════════════════════════ */
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════
   FEATURE CARDS (used in about.html)
════════════════════════════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.feature-card strong { color: var(--ink); font-weight: 700; }

/* ════════════════════════════════════════════════
   HERO BOX (used in about.html + legacy pages)
════════════════════════════════════════════════ */
.hero-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.hero-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: 0;
}

.hero-box::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  z-index: 1;
}

.hero-box > * { position: relative; z-index: 2; }

.hero-box h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 10px 0 16px;
  line-height: 1.08;
}

.hero-box .hero-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 580px;
}

/* ════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════ */
@keyframes rainbow-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

@keyframes slide-in-left {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  to { opacity: 1; transform: translateX(0); }
}

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

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .results-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 44px 36px;
    gap: 32px;
  }
  .hero-visual { display: none; }
  .home-features { grid-template-columns: 1fr; }
  .service-card,
  .service-card.alt { grid-template-columns: 1fr; gap: 28px; }
  .mission-strip { grid-template-columns: 1fr; padding: 40px 32px; gap: 28px; }
  .results-summary-modern { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navbar { padding: 0 4%; }
  .nav-links { gap: 2px; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .trusted-strip { flex-direction: column; align-items: flex-start; padding: 22px; gap: 14px; }
  .service-card { padding: 28px 22px; }
  .footer-cta { padding: 48px 28px; }
  .hero-box { padding: 34px 28px; }
  .auth-card { padding: 34px 28px; }
  .difficulty-card { padding: 28px 24px; }
  .results-hero-card, .results-table-card { padding: 24px; }
  .summary-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .results-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { flex-direction: column; }
  .search-form input { min-width: unset; }
  .difficulty-search-row { flex-direction: column; align-items: stretch; }
  .difficulty-btn { height: 48px; }
  .arena {
    flex-direction: column;
    min-height: auto;
    gap: 16px;
  }

  .competitor-slot {
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .comp-card {
    width: 100%;
    padding: 1.25rem;
  }

  .reason-tag {
    max-width: 160px;
    flex-shrink: 0;
  }

  .vs-divider {
    transform: rotate(90deg);
  }

  .winner-slot {
    max-width: 100%;
    width: 100%;
  }

  .winner-card {
    width: 100%;
    padding: 1.5rem 1.25rem;
  }
  .vs-divider {
    display: none;
  }
  .trusted-strip {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-section { grid-template-columns: 1fr; }
  .results-summary-grid { grid-template-columns: 1fr; }
  .summary-stat-grid { grid-template-columns: 1fr; }
  .home-features { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}
/* ════════════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════════════ */
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 44px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.admin-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.admin-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 8px 0 6px;
}

.admin-subtitle {
  font-size: 0.95rem;
  color: var(--ink-3);
}

.admin-subtitle strong { color: var(--ink-2); }

.admin-logout-link {
  color: var(--accent);
  font-weight: 600;
}

.admin-logout-link:hover { text-decoration: underline; }

.admin-badge {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
  font-weight: 800;
  font-size: 0.92rem;
}

/* ── Admin stats row ── */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.admin-stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.admin-stat-label {
  font-size: 0.87rem;
  color: var(--ink-3);
}

/* ── Main section card ── */
.admin-section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.admin-section-header {
  margin-bottom: 24px;
}

.admin-section-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.admin-section-header p {
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* ── User table ── */
.admin-table { min-width: 600px; }

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-username {
  font-weight: 600;
  color: var(--ink);
}

.admin-id-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
}

.admin-delete-btn {
  padding: 7px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s, transform 0.18s;
}

.admin-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
}

/* ── Quick links ── */
.admin-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.admin-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.admin-link-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.admin-link-title {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.admin-link-sub {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .admin-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; }
  .admin-stats-row { grid-template-columns: 1fr; }
  .admin-links-row { grid-template-columns: 1fr; }
  .admin-section-card { padding: 24px 20px; }
}

/* ════════════════════════════════════════════════
   REVIEWS PAGE
════════════════════════════════════════════════ */
.reviews-hero {
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.reviews-hero-inner {
  padding: 52px 56px;
}

.reviews-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 10px 0 14px;
  line-height: 1.08;
}

.reviews-subtitle {
  font-size: 1.02rem;
  line-height: 1.74;
  color: var(--ink-2);
  max-width: 580px;
  margin-bottom: 28px;
}

.reviews-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.reviews-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reviews-hero-stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.reviews-hero-stat-label {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 500;
}

.reviews-hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

/* ── Layout ── */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* ── Review feed ── */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover::before { transform: scaleX(1); }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.review-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.review-date {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 2px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  color: var(--border-strong);
}

.star-filled {
  color: #f59e0b;
}

.review-tournament-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.review-tournament-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.review-event-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(35, 85, 245, 0.08);
  border: 1px solid rgba(35, 85, 245, 0.16);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-year-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-body {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ── Submission form sidebar ── */
.reviews-sidebar {
  position: sticky;
  top: 84px;
}

.review-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.review-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.review-form-header {
  margin-bottom: 22px;
}

.review-form-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 5px;
}

.review-form-header p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.review-form-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.review-form-field input,
.review-form-field select,
.review-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}

.review-form-field input::placeholder,
.review-form-field textarea::placeholder { color: var(--ink-3); }

.review-form-field input:focus,
.review-form-field select:focus,
.review-form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 245, 0.11);
  background: var(--surface);
}

/* Star picker */
.star-picker {
  display: flex;
  gap: 4px;
}

.star-pick-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--border-strong);
  cursor: pointer;
  padding: 2px;
  transition: color 0.14s, transform 0.14s;
  line-height: 1;
}

.star-pick-btn:hover,
.star-pick-btn.star-pick-hover,
.star-pick-btn.star-pick-active {
  color: #f59e0b;
  transform: scale(1.15);
}

.review-char-count {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: right;
  margin-top: 2px;
}

.review-form-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
  margin-top: -4px;
}

.review-login-prompt {
  padding: 10px 0;
}

.review-login-prompt p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   ADMIN PANEL — REVIEWS ADDITIONS
════════════════════════════════════════════════ */
.admin-stat-card-alert .admin-stat-number {
  color: #b45309;
}

.admin-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.admin-reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-review-card {
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
}

.admin-review-card.pending {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.22);
}

.admin-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-review-date {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 2px;
}

.admin-review-stars {
  display: flex;
  gap: 2px;
}

.admin-review-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-review-tournament {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.admin-review-body {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.admin-review-actions {
  display: flex;
  gap: 10px;
}

.admin-approve-btn {
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s, transform 0.18s;
}

.admin-approve-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  transform: translateY(-1px);
}

.admin-rating-display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #92400e;
  font-size: 0.97rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .reviews-sidebar {
    position: static;
    order: -1;
  }
  .reviews-hero-inner { padding: 36px 30px; }
}

@media (max-width: 600px) {
  .reviews-hero-inner { padding: 28px 22px; }
  .review-card { padding: 22px 20px; }
  .review-form-card { padding: 24px 20px; }
  .admin-reviews-stack .admin-review-card { padding: 18px 16px; }
}

.review-anon-label input[type="checkbox"] {
  width: auto;
  min-width: unset;
  padding: 0;
  flex-shrink: 0;
}

.team-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.team-grid {
  grid-template-columns: repeat(2, 1fr);
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.comp-section {
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.comp-section::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.comp-section:hover::before { opacity: 1; }

.comp-section::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  z-index: 1;
}

.comp-section > * { position: relative; z-index: 2; }

.comp-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.comp-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.comp-sub {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0 0 1rem;
}

.arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 280px;
  flex-wrap: nowrap;
}

.competitor-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 240px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s;
}

.competitor-slot.visible {
  opacity: 1;
  transform: translateY(0);
}

.competitor-slot.eliminated {
  opacity: 0.2;
}

.comp-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 1.75rem;
  width: 200px;
  text-align: center;
  transition: all 0.4s;
}

.comp-card .comp-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}

.comp-card .comp-desc {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

.x-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.07);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.x-overlay.show { opacity: 1; }

.x-icon {
  font-size: 56px;
  color: #991b1b;
  font-weight: 700;
  line-height: 1;
}

.reason-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  padding: 5px 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s;
  text-align: center;
  max-width: 200px;
}

.reason-tag.show {
  opacity: 1;
  transform: translateY(0);
}

.vs-divider {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0 12px;
  flex-shrink: 0;
}

.winner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 260px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s, transform 0.6s;
}

.winner-slot.visible {
  opacity: 1;
  transform: scale(1);
}

.winner-card {
  background: var(--surface);
  border: 2px solid #1D9E75;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 1.75rem;
  width: 220px;
  text-align: center;
  position: relative;
}

.winner-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #1D9E75;
  color: #E1F5EE;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.winner-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}

.winner-desc {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

.advantages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}

.advantages.visible {
  opacity: 1;
  transform: translateY(0);
}

.adv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.adv-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.adv-icon {
  font-size: 1.1rem;
  color: #0F6E56;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.adv-text {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.adv-text strong {
  color: var(--ink);
  font-weight: 700;
}
.competitor-slot {
  transition: opacity 0.33s, transform 0.33s;
}

.x-overlay {
  transition: opacity 0.27s;
}

.reason-tag {
  transition: all 0.27s;
}

.winner-slot {
  transition: opacity 0.4s, transform 0.4s;
}

.advantages {
  transition: opacity 0.4s, transform 0.4s;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  margin-bottom: 4px;
}

.google-btn:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.nav-link-portal {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  transition: color 0.18s, transform 0.18s;
}

.nav-link-portal::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 12px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  z-index: -1;
}

.nav-link-portal::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  background: var(--surface);
  z-index: -1;
  transition: background 0.18s;
}

.nav-link-portal:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-link-portal:hover::after {
  background: var(--surface-2);
}