/* ==========================================================================
   MakeX Mumbai 2026 — Design System & Stylesheet
   Theme: High-Tech Robotics Arena / Digital Invitation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — Magenta Tech Arena */
  --bg-primary: #fffafd;
  --bg-secondary: #faf1f8;
  --bg-tertiary: #f3e3ef;
  --bg-deep: #f7eaf4;

  --surface-card: rgba(255, 248, 253, 0.92);
  --surface-card-hover: rgba(255, 241, 250, 0.98);
  --surface-glass: rgba(255, 250, 253, 0.82);
  --surface-elevated: #fffafd;

  /* Brand Colors — primary visual language */
  --brand-primary: #72005d;
  --brand-accent: #d400a7;
  --brand-gradient: linear-gradient(105deg, #d400a7 0%, #72005d 100%);
  --brand-glow: rgba(212, 0, 167, 0.22);
  --brand-dim: rgba(212, 0, 167, 0.1);

  /* Technical Colors — magenta-led; blue is secondary */
  --tech-primary: #9a0b78;
  --tech-deep: #5a0649;
  --tech-glow: rgba(154, 11, 120, 0.2);
  --tech-dim: rgba(154, 11, 120, 0.08);

  /* Secondary energy/status accents */
  --energy-orange: #1769ff;
  --energy-orange-glow: rgba(23, 105, 255, 0.16);
  --status-green: #008f5a;

  /* Text Hierarchy */
  --text-primary: #11131a;
  --text-secondary: #4f5665;
  --text-muted: #737b8c;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: rgba(17, 19, 26, 0.1);
  --border-tech: rgba(154, 11, 120, 0.22);
  --border-glow: rgba(212, 0, 167, 0.44);
  --border-brand: rgba(212, 0, 167, 0.28);
  --border-energy: rgba(23, 105, 255, 0.24);

  /* Typography Fonts */
  --font-display:
    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;

  /* Fluid Spacing Scale */
  --space-3xs: clamp(0.25rem, 0.5vw, 0.375rem);
  --space-2xs: clamp(0.375rem, 0.7vw, 0.5rem);
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.25rem);
  --space-xl: clamp(2rem, 4vw, 3.25rem);
  --space-2xl: clamp(3rem, 6vw, 4.5rem);
  --space-3xl: clamp(4rem, 8vw, 6.5rem);

  /* Container Bounds */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(17, 19, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 19, 26, 0.1);
  --shadow-lg: 0 16px 40px rgba(17, 19, 26, 0.12);
  --shadow-tech: 0 0 34px rgba(154, 11, 120, 0.15);
  --shadow-energy: 0 0 30px rgba(212, 0, 167, 0.12);

  /* Transitions & Motion */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-split: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
  --duration-split: 1000ms;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(212, 0, 167, 0.13) 0%,
      transparent 46%
    ),
    radial-gradient(
      circle at 4% 30%,
      rgba(114, 0, 93, 0.08) 0%,
      transparent 34%
    ),
    radial-gradient(
      circle at 96% 72%,
      rgba(212, 0, 167, 0.07) 0%,
      transparent 38%
    ),
    linear-gradient(to bottom, #fffafd 0%, #faf1f8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.invitation-active {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}


:focus-visible {
  outline: 2px solid var(--tech-primary);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   4. Background Tech Grid & Atmosphere
   -------------------------------------------------------------------------- */
.arena-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(154, 11, 120, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 11, 120, 0.065) 1px, transparent 1px);
  z-index: 1;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 40%,
    transparent 90%
  );
}

/* --------------------------------------------------------------------------
   5. Full-Screen Digital Invitation (#invitation)
   -------------------------------------------------------------------------- */
#invitation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: auto;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Split Halves */
.invitation-layer-top,
.invitation-layer-bottom {
  position: relative;
  width: 100%;
  height: 50vh;
  height: 50dvh;
  background-color: #ffffff;
  background-image:
    radial-gradient(
      ellipse at 50% 100%,
      #ffffff 0%,
      rgba(244, 248, 255, 0.98) 42%,
      rgba(226, 235, 249, 0.92) 100%
    ),
    linear-gradient(rgba(0, 102, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.07) 1px, transparent 1px);
  background-size:
    100% 100%,
    48px 48px,
    48px 48px;
  transition: transform var(--duration-split) var(--ease-split);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.invitation-layer-top {
  border-bottom: 1px solid rgba(0, 102, 255, 0.18);
  box-shadow:
    0 10px 40px rgba(17, 19, 26, 0.08),
    0 0 20px rgba(0, 102, 255, 0.08);
  align-items: flex-end;
  padding-bottom: 5.25rem;
}

.invitation-layer-bottom {
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      #ffffff 0%,
      rgba(248, 247, 252, 0.98) 42%,
      rgba(238, 233, 245, 0.92) 100%
    ),
    linear-gradient(rgba(0, 102, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.07) 1px, transparent 1px);
  background-size:
    100% 100%,
    48px 48px,
    48px 48px;
  border-top: 1px solid rgba(0, 102, 255, 0.18);
  box-shadow:
    0 -10px 40px rgba(17, 19, 26, 0.08),
    0 0 20px rgba(0, 102, 255, 0.08);
  align-items: flex-start;
  padding-top: 5.25rem;
  
}

/* Technical Corner Markings on Invitation */
.invitation-tech-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  opacity: 0.72;
  text-transform: uppercase;
}

.tech-top-left {
  top: 1.5rem;
  left: 2rem;
}

.tech-bottom-right {
  bottom: 1.5rem;
  right: 2rem;
}


/* Content on Upper Half */
.invitation-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0 1rem;
  max-width: 50%;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.8s ease;
}

@media (max-width: 1024px) {
  .invitation-top-content {
    max-width: 80%;
  }
}


/* Eyebrow badge */
.invitation-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--brand-primary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.invitation-eyebrow::before,
.invitation-eyebrow::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: var(--brand-primary);
  opacity: 0.7;
}

/* Headline */
.invitation-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
  margin-top: 0.25rem;
}
#invitation-headline-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  font-family: roboto, sans-serif;
}

.invitation-subhead {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Event Title */
.invitation-event-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 800 ;
  letter-spacing: 0.08em;

  margin-top: 0.2rem;
}

#invitation-title-text{
  text-shadow: none;
  font-family: roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   6. Interactive MakeX Invitation Seal (<button id="open-invitation">)
   -------------------------------------------------------------------------- */
.invitation-seal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(100px, 20vw, 136px);
  height: clamp(100px, 20vw, 136px);
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invitation-seal {
  position: relative;
  width: clamp(100px, 20vw, 136px);
  height: clamp(100px, 20vw, 136px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Animated Pulse Rings behind Seal */
.seal-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  border: 1px solid rgba(212, 0, 167, 0.38);
  /* opacity: 0.6; */
  animation: sealRingPulse 3s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.seal-pulse-ring:nth-child(2) {
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  border-color: rgba(114, 0, 93, 0.30);
  animation-delay: 1.5s;
}

@keyframes sealRingPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Seal Core Shield */
.seal-emblem-svg {
  width: 80%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.22));
  transition:
    filter var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-spring);
}

/* Hover & Focus States for Seal */
.invitation-seal:hover {
  transform: translateY(0) scale(1.08);
}

.invitation-seal:hover .seal-emblem-svg {
  filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.38))
    drop-shadow(0 0 10px rgba(192, 0, 150, 0.25));
}

.invitation-seal:active {
  transform: translateY(0) scale(0.96);
}

.invitation-seal:focus-visible {
  outline: none;
}

.invitation-seal:focus-visible .seal-pulse-ring {
  border-color: var(--brand-accent);
  opacity: 1;
  transform: scale(1.1);
}

/* Action Cue Label below Seal */
.invitation-action-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  pointer-events: none;
}

.cue-text {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand-primary);
  text-transform: uppercase;
  animation: cueTextGlow 2.5s infinite ease-in-out;
}

.cue-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
  animation: cueChevronBounce 2s infinite ease-in-out;
}

@keyframes cueTextGlow {
  0%,
  100% {
    opacity: 0.75;
    text-shadow: 0 0 8px rgba(192, 0, 150, 0.16);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 18px rgba(192, 0, 150, 0.45),
      0 0 25px rgba(0, 102, 255, 0.18);
  }
}

@keyframes cueChevronBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   7. Split/Open Transition Classes
   -------------------------------------------------------------------------- */
/* When active state triggers opening */
.invitation-opening .invitation-top-content,
.invitation-opening .invitation-seal-container {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.invitation-opening .invitation-layer-top {
  transform: translateY(-100%);
}

.invitation-opening .invitation-layer-bottom {
  transform: translateY(100%);
}

/* Once fully opened, remove from render tree / disable pointer events */
.invitation-opened #invitation {
  pointer-events: none;
  visibility: hidden;
  display: none;
}

/* --------------------------------------------------------------------------
   8. Main Content Container (#main-content)
   -------------------------------------------------------------------------- */
#main-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition:
    opacity 0.9s ease 0.3s,
    transform 0.9s var(--ease-smooth) 0.3s;
  pointer-events: none;
  visibility: hidden;
}

body.invitation-opened #main-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   9. Main Page Header & Navigation Shell
   -------------------------------------------------------------------------- */
.site-header {
  position: static;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 0;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-logo-makex {
  height: 32px;
  width: auto;
}

.header-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-subtle);
}

.header-logo-makebot {
  height: 32px;
  width: auto;
  opacity: 0.85;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--tech-dim);
  border: 1px solid var(--border-tech);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tech-primary);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: statusBlink 2s infinite ease-in-out;
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   10. Layout Structure & Section Primitives
   -------------------------------------------------------------------------- */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-pad);
}

.section-header {
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--tech-primary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 0.75rem;
}

/* Card Primitives */
.arena-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  transition:
    transform var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) ease;
    justify-content: center;
    align-items: center;
}

.arena-card:hover {
  border-color: var(--border-tech);
}

/* Precision Corner Decors */
.corner-bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--tech-primary);
  opacity: 0.5;
  pointer-events: none;
}

.bracket-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.bracket-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bracket-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.bracket-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* --------------------------------------------------------------------------
   11. Section Shells (Intro, Events, Date, Info, Registration)
   -------------------------------------------------------------------------- */
#intro {
  padding-top: var(--space-xl);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1100px) {
  .intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.intro-lead {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
}

.intro-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--energy-orange);
  margin-top: 1rem;
  text-transform: uppercase;
}

.intro-stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: left;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tech-primary);
  margin-top: 0.25rem;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}



@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================================================== 
   HERO VIDEO
   ========================================================================== */

.hero-arena {
  width: min(100%, 360px);
  margin: 0 0 0 auto;
}

.hero-arena-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 0, 167, 0.28);
  border-top: 3px solid var(--brand-accent);
  border-radius: 12px;
  background: #080b13;
  box-shadow:
    0 22px 48px rgba(32, 20, 45, 0.17),
    0 0 28px rgba(23, 105, 255, 0.08);
}

.hero-arena-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-arena figcaption {
  margin-top: 0.7rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: right;
}

.hero-video {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(212, 0, 167, 0.28);
  border-top: 3px solid var(--brand-accent);
  border-radius: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 241, 250, 0.96)
    );

  box-shadow:
    0 16px 38px rgba(114, 0, 93, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-video-frame::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgba(212, 0, 167, 0.09);
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 2rem;
}

.hero-video-player{
    display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.hero-video-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  padding-left: 3px;

  border-radius: 50%;
  border: 1px solid rgba(212, 0, 167, 0.4);

  color: white;
  background: var(--brand-accent);

  box-shadow:
    0 8px 24px rgba(212, 0, 167, 0.2);

  font-size: 1.1rem;

  margin-bottom: 1rem;
}

.hero-video-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-video-note {
  margin-top: 0.35rem;

  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .event-detail-panel {
    transform: none;
  }

  .invitation-seal:hover,
  .invitation-seal:active {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1099px) {
  .hero-arena {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero-arena-frame {
    min-height: 0;
  }

  .hero-video {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .hero-video-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  .hero-arena {
    width: min(100%, 340px);
  }

  .hero-video {
    width: 100%;
  }

  .hero-video-frame {
    aspect-ratio: 16 / 9;
  }

  .hero-video-placeholder {
    padding: 1.25rem;
  }

  .hero-video-icon {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .hero-video-kicker {
    font-size: 0.55rem;
  }

  .hero-video-title {
    font-size: 1.05rem;
  }

  .hero-video-note {
    font-size: 0.52rem;
  }
}

.category-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--tech-primary);
  margin-bottom: 0.5rem;
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.category-card-age {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--energy-orange);
  margin-bottom: 0.75rem;
}

.category-card-difficulty{
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}
.category-card-desc {
  display: none;
}


/* Save the Date & Countdown Shell */
.save-the-date-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(247, 248, 252, 0.98) 100%
  );
  border: 1px solid var(--border-tech);
  border-radius: 12px;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  box-shadow:
    0 16px 45px rgba(17, 19, 26, 0.08),
    0 0 40px rgba(0, 102, 255, 0.06);
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0.5rem;
}

.countdown-val {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  letter-spacing: 0.2em;
  color: var(--tech-primary);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Event Info Facts Grid */
.info-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .info-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .info-facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --------------------------------------------------------------------------
   13. Responsive Adaptations (1440px down to 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .invitation-layer-top {
    padding-bottom: 1.25rem;
  }
  .invitation-layer-bottom {
    padding-top: 1.25rem;
  }
  .tech-top-left,
  .tech-bottom-right {
    display: none; /* Hide edge markings on very small devices to prevent cramping */
  }
  .cue-text {
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
  }
}

/* --------------------------------------------------------------------------
   14. Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .invitation-layer-top,
  .invitation-layer-bottom {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }

  .invitation-opening .invitation-layer-top,
  .invitation-opening .invitation-layer-bottom,
  .invitation-opening .invitation-seal-container {
    opacity: 0 !important;
  }

  #main-content {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}

/* Invitation light-theme positioning refinements */
@media (max-width: 700px) {
  .invitation-layer-top {
    padding-bottom: 3.75rem;
  }

  .invitation-layer-bottom {
    padding-top: 3.75rem;
  }
}

/* ==========================================================================
   15. MAGENTA VISUAL REFRESH
   ========================================================================== */

#intro {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

#intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  width: min(900px, 92vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(212, 0, 167, 0.15),
      transparent 35%
    ),
    radial-gradient(circle at 82% 18%, rgba(114, 0, 93, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 246, 252, 0.96), rgba(255, 250, 253, 0));
  filter: blur(2px);
  pointer-events: none;
}

#intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(2.25rem, 5vw, 4.5rem);
  left: 50%;
  width: min(1180px, 94vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 0, 167, 0.38) 20%,
    rgba(114, 0, 93, 0.28) 50%,
    rgba(212, 0, 167, 0.38) 80%,
    transparent
  );
}

#intro .section-header {
  max-width: 920px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

#intro .section-eyebrow {
  color: var(--brand-accent);
  text-shadow: 0 0 18px rgba(212, 0, 167, 0.18);
}

#intro .section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--brand-gradient);
  box-shadow: 0 0 10px rgba(212, 0, 167, 0.3);
}

#intro .section-title {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 4.65rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

#intro .section-title::after {
  content: "";
  display: block;
  width: clamp(80px, 12vw, 150px);
  height: 5px;
  margin-top: 1rem;
  border-radius: 99px;
  background: var(--brand-gradient);
  box-shadow: 0 0 22px rgba(212, 0, 167, 0.24);
}

.intro-grid {
  position: relative;
}

.intro-grid::before {
  content: "01 // ARENA STATUS";
  position: absolute;
  top: -1.6rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(114, 0, 93, 0.58);
}

.intro-lead {
  max-width: 720px;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  line-height: 1.65;
}

.intro-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-accent);
  padding: 0.55rem 0.9rem;
  margin-top: 1.25rem;
  border-left: 3px solid var(--brand-accent);
  background: linear-gradient(90deg, rgba(212, 0, 167, 0.09), transparent);
  text-shadow: 0 0 16px rgba(212, 0, 167, 0.12);
}

.intro-tagline::after {
  content: "///";
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-primary);
  opacity: 0.6;
}

.intro-stats-panel {
  gap: 0.9rem;
}

.stat-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 241, 250, 0.94)
  );
  border: 1px solid rgba(154, 11, 120, 0.18);
  border-top: 3px solid var(--brand-accent);
  border-radius: 10px;
  padding: 1.4rem 1.25rem;
  box-shadow:
    0 14px 30px rgba(114, 0, 93, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-box::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  background: rgba(212, 0, 167, 0.1);
}

.stat-box .stat-label {
  color: var(--brand-primary);
}

.stat-value {
  color: var(--brand-primary);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  position: relative;
}

.stat-box:nth-child(2) {
  border-top-color: var(--brand-primary);
}

#events {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
}

#events .section-eyebrow,
#event-info .section-eyebrow,
#registration .section-eyebrow {
  color: var(--brand-accent);
}

#events .section-title,
#event-info .section-title,
#registration .section-title {
  position: relative;
}

#events .section-title::after,
#event-info .section-title::after,
#registration .section-title::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 0.75rem;
  border-radius: 99px;
  background: var(--brand-gradient);
}

#events .section-desc {
  max-width: 700px;
}

.arena-card {
  background: linear-gradient(
    150deg,
    rgba(255, 250, 253, 0.98),
    rgba(249, 235, 246, 0.94)
  );
  border: 1px solid rgba(114, 0, 93, 0.15);
  border-radius: 10px;
  box-shadow:
    0 12px 30px rgba(114, 0, 93, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.arena-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  opacity: 0.85;
}

.arena-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 0, 167, 0.38);
  box-shadow:
    0 18px 38px rgba(114, 0, 93, 0.11),
    0 0 28px rgba(212, 0, 167, 0.07);
}

.category-card-number {
  color: var(--brand-accent);
}

.category-card-age {
  color: var(--brand-primary);
}

.events-grid .arena-card:nth-child(2) {
  background: linear-gradient(
    150deg,
    rgba(255, 247, 252, 0.98),
    rgba(247, 235, 247, 0.96)
  );
}

.events-grid .arena-card:nth-child(3) {
  background: linear-gradient(
    150deg,
    rgba(255, 250, 253, 0.98),
    rgba(251, 239, 248, 0.96)
  );
}

.events-grid .arena-card:nth-child(4) {
  background: linear-gradient(
    150deg,
    rgba(255, 247, 252, 0.98),
    rgba(246, 232, 244, 0.96)
  );
}

.corner-bracket {
  border-color: var(--brand-accent);
  opacity: 0.78;
}

.save-the-date-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 0, 167, 0.12), transparent 48%),
    linear-gradient(
      135deg,
      rgba(255, 247, 252, 0.98),
      rgba(246, 232, 244, 0.98)
    );
  border: 1px solid rgba(154, 11, 120, 0.28);
  box-shadow:
    0 18px 50px rgba(114, 0, 93, 0.1),
    0 0 45px rgba(212, 0, 167, 0.08);
}

.save-the-date-panel .section-eyebrow {
  color: var(--brand-accent);
}

.countdown-unit {
  background: rgba(255, 250, 253, 0.94);
  border-color: rgba(154, 11, 120, 0.16);
  box-shadow: 0 8px 22px rgba(114, 0, 93, 0.055);
}

.countdown-label {
  color: var(--brand-accent);
}

.header-status-badge {
  color: var(--brand-primary);
  background: rgba(212, 0, 167, 0.07);
  border-color: rgba(212, 0, 167, 0.22);
}

:focus-visible {
  outline-color: var(--brand-accent);
}

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

.invitation-layer-top,
.invitation-layer-bottom {
  background-color: #fffafd;
  background-image:
    radial-gradient(
      ellipse at 50% 100%,
      #fffafd 0%,
      rgba(255, 240, 250, 0.98) 48%,
      rgba(242, 224, 238, 0.94) 100%
    ),
    linear-gradient(rgba(154, 11, 120, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 11, 120, 0.055) 1px, transparent 1px);
}

.invitation-layer-bottom {
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      #fffafd 0%,
      rgba(255, 242, 250, 0.98) 48%,
      rgba(243, 227, 240, 0.94) 100%
    ),
    linear-gradient(rgba(154, 11, 120, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 11, 120, 0.055) 1px, transparent 1px);
}

.seal-pulse-ring {
  border-color: rgba(212, 0, 167, 0.38);
}

.seal-pulse-ring:nth-child(2) {
  border-color: rgba(114, 0, 93, 0.3);
}

@media (max-width: 700px) {
  #invitation {
    min-height: 100dvh;
  }

  .invitation-layer-top,
  .invitation-layer-bottom {
    height: auto;
    min-height: 0;
    flex: 1 1 50%;
  }
}

/* ==========================================================================
   16. CTA + ANCHORED EVENT DETAIL OVERLAY
   ========================================================================== */

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.intro-actions .arena-action {
  min-height: 42px;
  height: 42px;
  justify-content: center;
}

.arena-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 158px;
  padding: 0.78rem 1rem 0.78rem 1.1rem;
  border: 1px solid rgba(114, 0, 93, 0.25);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    transform 220ms var(--ease-smooth),
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.arena-action:hover {
  transform: translateY(-2px);
}

.arena-action-primary {
  text-align: center;
  color: #fff;
  background: var(--brand-gradient);
  border-color: var(--brand-accent);
  box-shadow: 0 8px 22px rgba(114, 0, 93, 0.18);
}

.arena-action-primary:hover {
  box-shadow:
    0 12px 28px rgba(114, 0, 93, 0.22),
    0 0 24px rgba(212, 0, 167, 0.14);
}

.arena-action-secondary {
  color: var(--brand-primary);
  background: rgba(255, 248, 253, 0.72);
  border-color: rgba(212, 0, 167, 0.28);
}

.arena-action-secondary:hover {
  background: rgba(255, 239, 249, 0.98);
  border-color: rgba(212, 0, 167, 0.48);
}

.action-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

/* Know More button inside every event card. */
.card-know-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  color: var(--brand-primary);
  border-bottom: 1px solid rgba(212, 0, 167, 0.38);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.card-know-more:hover {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateX(3px);
}

.card-know-more:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 5px;
}

.event-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background: transparent;
}

.event-detail-overlay.is-open {
  pointer-events: auto;
}

.event-detail-panel {
  position: fixed;
  top: 50%;
  left: 50%;

  width: min(72vw, 1050px);
  height: 72vh;
  max-height: 80vh;

  transform: translate(-50%, -50%);

  padding: clamp(1.5rem, 3vw, 2.5rem);

  background:
    radial-gradient(circle at 92% 8%, rgba(212, 0, 167, 0.12), transparent 30%),
    linear-gradient(
      145deg,
      rgba(255, 250, 253, 0.985),
      rgba(247, 232, 245, 0.98)
    );

  border: 1px solid rgba(114, 0, 93, 0.22);
  border-top: 4px solid var(--brand-accent);
  border-radius: 10px;

  box-shadow:
    0 26px 70px rgba(72, 0, 58, 0.2),
    0 0 45px rgba(212, 0, 167, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  overflow: auto;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-smooth),
    visibility 180ms ease;
}

.event-detail-overlay.is-open .event-detail-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.event-detail-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 0, 93, 0.18);
  border-radius: 50%;
  color: var(--brand-primary);
  background: rgba(255, 250, 253, 0.72);
  font-family: var(--font-body);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.event-detail-close:hover {
  color: #fff;
  background: var(--brand-primary);
  transform: rotate(90deg);
}

.event-detail-kicker {
  margin-bottom: 0.45rem;
  color: var(--brand-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.event-detail-panel h2 {
  padding-right: 3rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.event-detail-age {
  margin-top: 0.7rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.event-detail-rule {
  width: 76px;
  height: 4px;
  margin: 1.25rem 0 1.15rem;
  border-radius: 99px;
  background: var(--brand-gradient);
}

#event-detail-description {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}


@media (max-width: 700px) {
  .intro-actions {
    width: 100%;
    gap: 0.6rem;
  }

  .intro-actions .arena-action {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    height: 42px;
    min-height: 42px;
    padding-block: 0.55rem;
    gap: 0.6rem;
    white-space: nowrap;
  }

  .arena-action {
    flex: 1 1 150px;
  }

  .event-detail-panel {
    width: 90vw;
    max-height: 78vh;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arena-action,
  .card-know-more,
  .event-detail-panel,
  .event-detail-close {
    transition: none;
  }
}

/* ==========================================================================
   REGISTRATION
   ========================================================================== */

#registration {
  position: relative;
  isolation: isolate;
}

#registration::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 5%;
  width: min(1100px, 92vw);
  height: 90%;
  transform: translateX(-50%);

  background:
    radial-gradient(
      circle at 12% 28%,
      rgba(212, 0, 167, 0.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 70%,
      rgba(23, 105, 255, 0.09),
      transparent 32%
    );

  pointer-events: none;
}

.registration-header {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.registration-header .section-eyebrow {
  color: var(--brand-accent);
}

.registration-header .section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 99px;

  background:
    linear-gradient(
      90deg,
      var(--brand-accent),
      var(--brand-primary),
      #1769ff
    );
}


/* ==========================================================================
   REGISTRATION SHELL
   ========================================================================== */

.registration-shell {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);

  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(212, 0, 167, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(23, 105, 255, 0.07),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      rgba(255, 250, 253, 0.97),
      rgba(247, 238, 247, 0.97)
    );

  border: 1px solid rgba(114, 0, 93, 0.18);
  border-radius: 12px;

  box-shadow:
    0 20px 55px rgba(114, 0, 93, 0.08),
    0 0 35px rgba(23, 105, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.registration-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;

  border-radius: 12px 12px 0 0;

  background:
    linear-gradient(
      90deg,
      var(--brand-accent),
      var(--brand-primary) 52%,
      #1769ff
    );
}


/* ==========================================================================
   PROGRESS
   ========================================================================== */

.registration-progress {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.registration-progress-step {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  gap: 0.55rem;

  color: rgba(80, 90, 112, 0.62);

  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;

  transition: color 180ms ease;
}

.registration-progress-step span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(114, 0, 93, 0.16);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.7);

  color: rgba(80, 90, 112, 0.65);

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.registration-progress-step.is-active {
  color: var(--brand-primary);
}

.registration-progress-step.is-active span {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--brand-accent),
      var(--brand-primary)
    );

  border-color: var(--brand-accent);

  box-shadow:
    0 0 18px rgba(212, 0, 167, 0.16);
}

.registration-progress-step.is-complete {
  color: var(--brand-accent);
}

.registration-progress-step.is-complete span {
  color: var(--brand-accent);

  border-color: rgba(212, 0, 167, 0.35);

  background:
    rgba(212, 0, 167, 0.07);
}

.registration-progress-line {
  flex: 1 1 auto;

  height: 1px;

  margin: 0 0.75rem;

  background:
    linear-gradient(
      90deg,
      rgba(212, 0, 167, 0.22),
      rgba(23, 105, 255, 0.18)
    );
}


/* ==========================================================================
   FORM / STEPS
   ========================================================================== */

.registration-form {
  width: 100%;
}

.registration-step {
  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  border: 0;
}

.registration-step[hidden] {
  display: none !important;
}

.registration-step.is-active {
  display: block;
}

.registration-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 1.5rem;

  margin-bottom: 2rem;
}

.registration-kicker {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--brand-accent);

  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.registration-step-heading h3 {
  margin: 0;

  color: var(--text-primary);

  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;

  letter-spacing: -0.035em;
}

.registration-step-tag {
  flex: 0 0 auto;

  padding: 0.4rem 0.65rem;

  border: 1px solid rgba(212, 0, 167, 0.24);
  border-radius: 3px;

  background: rgba(212, 0, 167, 0.055);

  color: var(--brand-primary);

  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.registration-step-tag-blue {
  color: #1769ff;

  border-color: rgba(23, 105, 255, 0.25);

  background:
    rgba(23, 105, 255, 0.055);
}


/* ==========================================================================
   FIELDS
   ========================================================================== */

.registration-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1rem;
}

.registration-field {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;

  min-width: 0;
}

.registration-field-full {
  grid-column: 1 / -1;
}

.registration-field > span {
  color: var(--brand-primary);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;

  letter-spacing: 0.10em;

  text-transform: uppercase;
}

.registration-field > span b {
  color: var(--brand-accent);
}

.registration-field input,
.registration-field select,
.registration-field textarea {
  width: 100%;
  min-height: 48px;

  padding: 0.75rem 0.9rem;

  color: var(--text-primary);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(248, 244, 249, 0.96)
    );

  border: 1px solid rgba(114, 0, 93, 0.16);
  border-radius: 5px;

  font-family: var(--font-body);
  font-size: 0.9rem;

  outline: none;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.registration-field input::placeholder,
.registration-field textarea::placeholder {
  color: rgba(80, 90, 112, 0.48);
}

.registration-field input:hover,
.registration-field select:hover,
.registration-field textarea:hover {
  border-color: rgba(212, 0, 167, 0.28);
}

.registration-field input:focus,
.registration-field select:focus,
.registration-field textarea:focus {
  border-color: var(--brand-accent);

  background: #fffafd;

  box-shadow:
    0 0 0 3px rgba(212, 0, 167, 0.08),
    0 5px 18px rgba(114, 0, 93, 0.05);
}

.registration-field:nth-child(even) input:focus,
.registration-field:nth-child(even) select:focus,
.registration-field:nth-child(even) textarea:focus {
  border-color: #1769ff;

  box-shadow:
    0 0 0 3px rgba(23, 105, 255, 0.08),
    0 5px 18px rgba(23, 105, 255, 0.05);
}

.price-estimate {
  overflow: hidden;
  margin-top: 0.2rem;
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.price-estimate[hidden] {
  display: none;
}

.price-estimate > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(114, 0, 93, 0.08);
  color: #5b6478;
  font-size: 0.78rem;
}

.price-estimate > div:last-child {
  border-bottom: 0;
}

.price-estimate strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.price-estimate .price-estimate-total {
  padding-block: 0.9rem;
  background: linear-gradient(90deg, rgba(212, 0, 167, 0.07), rgba(23, 105, 255, 0.06));
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-estimate .price-estimate-total strong {
  color: var(--brand-accent);
  font-size: 1rem;
}



/* ==========================================================================
   STEP NOTE
   ========================================================================== */

.registration-step-note {
  display: flex;
  align-items: center;

  gap: 0.6rem;

  margin-top: 1.2rem;
  padding: 0.75rem 0.9rem;

  border-left: 2px solid #1769ff;

  background:
    linear-gradient(
      90deg,
      rgba(23, 105, 255, 0.055),
      transparent
    );

  color: #5b6478;

  font-size: 0.78rem;
  line-height: 1.5;
}

.registration-note-dot {
  width: 6px;
  height: 6px;

  flex: 0 0 6px;

  border-radius: 50%;

  background: #1769ff;

  box-shadow:
    0 0 8px rgba(23, 105, 255, 0.45);
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.registration-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 0.75rem;

  margin-top: 2rem;
}

.registration-actions-split {
  justify-content: space-between;
}

.registration-next,
.registration-back {
  cursor: pointer;
}

.registration-next:disabled,
.registration-back:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}


/* ==========================================================================
   REVIEW
   ========================================================================== */

.registration-review {
  display: grid;
  gap: 0.8rem;
}

.registration-review-item {
  display: grid;

  grid-template-columns:
    minmax(130px, 0.5fr) 1fr;

  align-items: center;

  gap: 1rem;

  padding: 0.9rem 1rem;

  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 253, 0.92),
      rgba(248, 247, 252, 0.92)
    );

  border: 1px solid rgba(114, 0, 93, 0.11);
  border-left: 3px solid rgba(212, 0, 167, 0.45);

  border-radius: 5px;
}

.registration-review-item:nth-child(even) {
  border-left-color: rgba(23, 105, 255, 0.55);

  background:
    linear-gradient(
      90deg,
      rgba(248, 251, 255, 0.94),
      rgba(245, 247, 252, 0.92)
    );
}

.registration-review-label {
  color: #687184;

  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;

  letter-spacing: 0.10em;

  text-transform: uppercase;
}

.registration-review-value {
  color: var(--text-primary);

  font-size: 0.88rem;

  word-break: break-word;
}


/* ==========================================================================
   CONSENT
   ========================================================================== */

.registration-consent {
  display: flex;
  align-items: flex-start;

  gap: 0.7rem;

  margin-top: 1.25rem;
  padding: 0.95rem 1rem;

  border: 1px solid rgba(114, 0, 93, 0.12);
  border-radius: 5px;

  background:
    rgba(255, 250, 253, 0.72);

  color: #555f73;

  font-size: 0.78rem;
  line-height: 1.55;

  cursor: pointer;
}

.registration-consent input {
  width: 17px;
  height: 17px;

  flex: 0 0 17px;

  margin-top: 1px;

  accent-color: var(--brand-accent);

  cursor: pointer;
}



/* ==========================================================================
   SUBMIT MESSAGE
   ========================================================================== */

.registration-submit-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;

  border-left: 3px solid #1769ff;

  background:
    linear-gradient(
      90deg,
      rgba(23, 105, 255, 0.07),
      rgba(212, 0, 167, 0.04)
    );

  color: #414b60;

  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
}

.registration-submit-message[hidden] {
  display: none;
}


/* ========================================================================== 
   PAYMENT
   ========================================================================== */

.payment-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgba(114, 0, 93, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(212, 0, 167, 0.08), transparent 42%),
    #fff;
}

.payment-qr-frame {
  width: min(100%, 300px);
  aspect-ratio: 0.69;
  margin-inline: auto;
  padding: 0.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 105, 255, 0.2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(48, 35, 65, 0.1);
}

.payment-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.payment-qr-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border: 2px dashed rgba(114, 0, 93, 0.2);
  background:
    linear-gradient(90deg, rgba(23, 105, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 105, 255, 0.035) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--brand-primary);
  text-align: center;
}

.payment-qr-placeholder[hidden] {
  display: none;
}

.payment-qr-placeholder strong,
.payment-secure-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.payment-qr-placeholder span {
  max-width: 190px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.payment-copy h4 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.payment-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand-accent);
  background: linear-gradient(90deg, rgba(212, 0, 167, 0.08), rgba(23, 105, 255, 0.04));
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-amount-row strong {
  color: var(--brand-accent);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.payment-bank-details {
  margin: 0 0 1rem;
  border-top: 1px solid rgba(114, 0, 93, 0.12);
}

.payment-bank-details > div {
  display: grid;
  grid-template-columns: minmax(135px, 0.7fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(114, 0, 93, 0.09);
}

.payment-bank-details dt {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.payment-bank-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.payment-copy small,
.payment-upload-field small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.payment-secure-label {
  color: #1769ff;
}

.payment-upload-field {
  margin-top: 1.25rem;
}

.payment-upload-field input[type="file"] {
  padding: 0.55rem;
}

.payment-upload-field input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 4px;
  background: rgba(23, 105, 255, 0.09);
  color: #1769ff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}


/* ==========================================================================
   FOOTER STRIP
   ========================================================================== */

.registration-footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 1rem;

  margin-top: 1.5rem;
  padding-top: 1rem;

  border-top: 1px solid rgba(114, 0, 93, 0.10);

  color: rgba(80, 90, 112, 0.58);

  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.13em;
}

.registration-footer-strip span {
  display: inline-flex;
  align-items: center;

  gap: 0.45rem;
}

.registration-footer-strip i {
  width: 5px;
  height: 5px;

  display: inline-block;

  border-radius: 50%;

  background: #1769ff;

  box-shadow:
    0 0 7px rgba(23, 105, 255, 0.5);
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

  .registration-shell {
    padding: 1.1rem;
  }

  .registration-progress {
    align-items: flex-start;
  }

  .registration-progress-step {
    flex-direction: column;

    gap: 0.35rem;

    text-align: center;

    font-size: 0.5rem;
  }

  .registration-progress-step span {
    width: 30px;
    height: 30px;
  }

  .registration-progress-line {
    margin: 0.9rem 0.35rem 0;
  }

  .registration-step-heading {
    flex-direction: column;

    gap: 0.8rem;
  }

  .registration-fields {
    grid-template-columns: 1fr;
  }

  .registration-field-full {
    grid-column: auto;
  }

  .registration-actions,
  .registration-actions-split {
    flex-direction: column-reverse;
    align-items: center;
  }

  .registration-actions .arena-action {
    max-width: 60%;
    max-height: 45.36px;
  }

  .registration-review-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .payment-panel {
    grid-template-columns: 1fr;
  }

  .payment-bank-details > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .registration-footer-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   TEAM TYPE + SEARCHABLE TEAM PICKER
   ========================================================================== */

.team-type-field {
  gap: 0.7rem;
}

.team-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.team-type-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.team-type-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.team-type-option-ui {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(114, 0, 93, 0.15);
  border-radius: 7px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(249, 238, 247, 0.94)
    );
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.team-type-option:hover .team-type-option-ui {
  border-color: rgba(212, 0, 167, 0.34);
  transform: translateY(-1px);
}

.team-type-option > input:focus-visible + .team-type-option-ui {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.team-type-option > input:checked + .team-type-option-ui {
  border-color: var(--brand-accent);
  background:
    linear-gradient(
      145deg,
      rgba(255, 247, 252, 0.98),
      rgba(248, 231, 245, 0.98)
    );
  box-shadow:
    0 0 0 3px rgba(212, 0, 167, 0.07),
    0 8px 22px rgba(114, 0, 93, 0.06);
}

.team-type-radio-dot {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  border: 1.5px solid rgba(114, 0, 93, 0.35);
  border-radius: 50%;
  background: #fffafd;
  position: relative;
}

.team-type-option > input:checked + .team-type-option-ui .team-type-radio-dot {
  border-color: var(--brand-accent);
}

.team-type-option > input:checked + .team-type-option-ui .team-type-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 9px rgba(212, 0, 167, 0.3);
}

.team-type-option-ui strong {
  display: block;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.2;
}

.team-type-option-ui small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.team-picker {
  position: relative;
  width: 100%;
}

.team-picker-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(248, 244, 249, 0.96)
    );
  border: 1px solid rgba(114, 0, 93, 0.16);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.team-picker-trigger:hover,
.team-picker-trigger[aria-expanded="true"] {
  border-color: var(--brand-accent);
  background: #fffafd;
  box-shadow:
    0 0 0 3px rgba(212, 0, 167, 0.07),
    0 5px 18px rgba(114, 0, 93, 0.05);
}

.team-picker-chevron {
  flex: 0 0 auto;
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.team-picker-trigger[aria-expanded="true"] .team-picker-chevron {
  transform: rotate(180deg);
}

.team-picker-menu {
  position: absolute;
  z-index: 200;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 0, 93, 0.18);
  border-radius: 7px;
  background: rgba(255, 250, 253, 0.99);
  box-shadow:
    0 18px 42px rgba(72, 0, 58, 0.16),
    0 0 28px rgba(212, 0, 167, 0.06);
}

.team-picker-menu[hidden] {
  display: none;
}

.team-picker-search-wrap {
  position: relative;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(114, 0, 93, 0.10);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 253, 1),
      rgba(249, 238, 247, 0.98)
    );
}

.team-picker-search {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem 0.65rem 2.2rem;
  border: 1px solid rgba(114, 0, 93, 0.14);
  border-radius: 5px;
  outline: none;
  background: #fffafd;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.team-picker-search:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(212, 0, 167, 0.07);
}

.team-picker-search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-accent);
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}

.team-picker-options {
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 0, 167, 0.42) transparent;
}

.team-picker-options::-webkit-scrollbar {
  width: 7px;
}

.team-picker-options::-webkit-scrollbar-track {
  background: transparent;
}

.team-picker-options::-webkit-scrollbar-thumb {
  background: rgba(212, 0, 167, 0.35);
  border-radius: 99px;
}

.team-picker-option {
  width: 100%;
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.team-picker-option:hover,
.team-picker-option:focus-visible {
  color: var(--brand-primary);
  background: rgba(212, 0, 167, 0.075);
  outline: none;
}

.team-picker-option.is-selected {
  color: var(--brand-primary);
  background: rgba(212, 0, 167, 0.10);
  font-weight: 700;
}

.team-picker-empty,
.team-picker-loading {
  padding: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.team-picker-status {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

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

  .team-picker-options {
    max-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-type-option-ui,
  .team-picker-trigger,
  .team-picker-chevron,
  .team-picker-option {
    transition: none;
  }
}

/* =========================================================
   SUBMITTED REGISTRATION BUTTON
   ========================================================= */

.is-submitted {
  background: #ffffff;
  color: #c400a7;
  border: 1px solid #c400a7;
  box-shadow: none;
}

.is-submitted:hover {
  background: #ffffff;
  color: #c400a7;
  border-color: #c400a7;
}

.is-submitted:disabled {
  background: #ffffff;
  color: #c400a7;
  border: 1px solid #c400a7;
  opacity: 1;
}
/* ==========================================================================
   FINAL VISUAL POLISH
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. EVENT MODAL — FIX THE HUGE EMPTY PANEL
   -------------------------------------------------------------------------- */

.event-detail-overlay.is-open {
  background: rgba(52, 0, 42, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 180ms ease;
}

.event-detail-panel {
  width: min(760px, 88vw);

  /* IMPORTANT: don't force a huge 72vh panel */
  height: auto;
  min-height: 0;
  max-height: min(76vh, 620px);

  overflow-y: auto;

  padding:
    clamp(1.5rem, 3vw, 2.5rem)
    clamp(1.5rem, 4vw, 3rem);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(212, 0, 167, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(114, 0, 93, 0.055),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 251, 254, 0.99),
      rgba(249, 235, 247, 0.985)
    );

  border: 1px solid rgba(212, 0, 167, 0.28);
  border-top: 4px solid var(--brand-accent);

  box-shadow:
    0 30px 80px rgba(72, 0, 58, 0.25),
    0 0 45px rgba(212, 0, 167, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* Subtle technical grid inside modal */

.event-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      to right,
      rgba(154, 11, 120, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(154, 11, 120, 0.035) 1px,
      transparent 1px
    );

  background-size: 32px 32px;

  pointer-events: none;
  border-radius: inherit;
}


/* Keep actual content above the grid */

.event-detail-panel > * {
  position: relative;
  z-index: 1;
}


/* Modal title */

.event-detail-panel h2 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
}


/* Better description width */

#event-detail-description {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.75;
}




/* Modal close button */

.event-detail-close {
  width: 36px;
  height: 36px;

  top: 1rem;
  right: 1rem;

  border-color: rgba(212, 0, 167, 0.25);

  background: rgba(255, 250, 253, 0.9);

  box-shadow:
    0 4px 14px rgba(114, 0, 93, 0.06);
}


/* --------------------------------------------------------------------------
   2. EVENT CARDS — MORE PREMIUM / LESS FLAT
   -------------------------------------------------------------------------- */

.events-grid {
  gap: 1rem;
}

.events-grid .arena-card {
  min-height: 285px;

  display: flex;
  flex-direction: column;

  padding: 1.45rem;

  overflow: hidden;
}


/* subtle glow in each card */

.events-grid .arena-card::after {
  content: "";

  position: absolute;

  width: 140px;
  height: 140px;

  right: -70px;
  bottom: -70px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(212, 0, 167, 0.12),
      transparent 68%
    );

  pointer-events: none;
}


/* Let description occupy the natural middle */

.events-grid .category-card-desc {
  max-width: 240px;
  line-height: 1.6;
}


/* Push know-more toward bottom */

.events-grid .card-know-more {
  margin-top: auto;
  /* align-self: cen; */
  padding-top: 0.8rem;
}


/* Slightly stronger event differentiation */

.events-grid .arena-card:nth-child(1) {
  border-top-color: #d400a7;
}

.events-grid .arena-card:nth-child(2) {
  border-top-color: #b80091;
}

.events-grid .arena-card:nth-child(3) {
  border-top-color: #8d0870;
}

.events-grid .arena-card:nth-child(4) {
  border-top-color: #72005d;
}


/* --------------------------------------------------------------------------
   3. SECTION HEADERS — MORE CONTROLLED
   -------------------------------------------------------------------------- */

#events .section-header,
#event-info .section-header {
  max-width: 820px;
}

#events .section-title,
#event-info .section-title,
#registration .section-title {
  letter-spacing: -0.045em;
}


/* --------------------------------------------------------------------------
   4. INTRO — MAKE THE RIGHT SIDE FEEL LIKE PART OF THE DESIGN
   -------------------------------------------------------------------------- */

.intro-stats-panel {
  align-self: stretch;
}

.intro-stats-panel .stat-box {
  min-height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 1.35rem;

  transition:
    transform 220ms var(--ease-smooth),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.intro-stats-panel .stat-box:hover {
  transform: translateY(-4px);

  border-color: rgba(212, 0, 167, 0.35);

  box-shadow:
    0 18px 34px rgba(114, 0, 93, 0.10),
    0 0 24px rgba(212, 0, 167, 0.07);
}


/* --------------------------------------------------------------------------
   5. EQUIPMENT SECTION — MAKE THE TWO CARDS BALANCED
   -------------------------------------------------------------------------- */

#mission-equipment .intro-grid {
  align-items: stretch;
}

#mission-equipment .intro-stats-panel {
  align-self: center;
}

#mission-equipment .stat-box {
  height: 20vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

#mission-equipment .stat-value {
  line-height: 1.45;
}


/* Don't let the contact text become ridiculously tall */

#mission-equipment .stat-box:nth-child(2) .stat-value {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}


/* --------------------------------------------------------------------------
   6. SAVE THE DATE — MORE VISUAL WEIGHT
   -------------------------------------------------------------------------- */

.save-the-date-panel {
  overflow: hidden;
}

.save-the-date-panel::before {
  content: "MISSION // 02";

  position: absolute;

  top: 1.25rem;
  left: 1.5rem;

  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.18em;

  color: rgba(114, 0, 93, 0.42);
}

.save-the-date-panel .section-title {
  letter-spacing: -0.045em;
}


/* --------------------------------------------------------------------------
   7. INFO CARDS
   -------------------------------------------------------------------------- */

.info-facts-grid .arena-card {
  min-height: 145px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 1.35rem 1.45rem;
}

.info-facts-grid .event-info-value {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.info-facts-grid small {
  margin-top: 0.35rem;

  color: var(--text-muted);

  font-family: var(--font-mono);
  font-size: 0.58rem;

  letter-spacing: 0.06em;
}

.arena-facts-grid {
  width: min(100%, 760px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .info-facts-grid.arena-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* --------------------------------------------------------------------------
   8. CTA BUTTONS — SHARPER
   -------------------------------------------------------------------------- */

.arena-action {
  min-height: 42px;

  transition:
    transform 180ms var(--ease-smooth),
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.arena-action-primary {
  background:
    linear-gradient(
      105deg,
      #d400a7 0%,
      #a0007e 58%,
      #72005d 100%
    );
}

.arena-action-primary:hover {
  transform: translateY(-2px) scale(1.01);

  box-shadow:
    0 12px 30px rgba(114, 0, 93, 0.22),
    0 0 25px rgba(212, 0, 167, 0.15);
}


/* --------------------------------------------------------------------------
   9. MOBILE MODAL
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {

  .event-detail-panel {
    width: 90vw;

    max-height: 78vh;

    padding: 1.5rem 1.25rem;
  }

  .event-detail-panel h2 {
    font-size: 2.15rem;
  }

  .events-grid .arena-card {
    min-height: 0;
  }

  .intro-stats-panel {
    grid-template-columns: 1fr 1fr;
  }

  #mission-equipment .intro-stats-panel {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {

  .intro-stats-panel {
    grid-template-columns: 1fr;
  }

  #mission-equipment .intro-stats-panel {
    grid-template-columns: 1fr;
  }

  .event-detail-panel {
    width: calc(100vw - 2rem);
    max-height: 82vh;
  }
}

/* ==========================================================================
   17. RESPONSIVE / INVITATION / THREE-CATEGORY FINAL OVERRIDES
   ========================================================================== */

/* --------------------------------------------------------------------------
   INVITATION — emblem, split line and cue are independent
   -------------------------------------------------------------------------- */



/* --------------------------------------------------------------------------
   HEADER — transparent backdrop + centered brand group
   -------------------------------------------------------------------------- */

.site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(114, 0, 93, 0.08);
  box-shadow: none;
}

.header-container {
  position: relative;
  min-height: 58px;
  justify-content: center;
}

.header-brand {
  width: fit-content;
  max-width: 100%;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  justify-content: center;
}

.header-logo-makex {
  width: clamp(120px, 10vw, 150px);
  height: auto;
  flex: 0 0 auto;
}

.header-logo-makebot {
  /* width: clamp(92px, 8vw, 150px); */
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.header-divider {
  height: clamp(20px, 2.5vw, 26px);
  flex: 0 0 1px;
  background: rgba(114, 0, 93, 0.16);
}

.header-status-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-color: transparent;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   INTRO — responsive square stat cards
   -------------------------------------------------------------------------- */

#intro .intro-grid {
  align-items: start;
}

#intro .intro-copy {
  padding-top: 0.25rem;
}

#intro .intro-copy .section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

#intro .intro-stats-panel {
  width: min(100%, 440px);
  max-width: 440px;
  margin-left: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

#intro .intro-stats-panel .stat-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.4rem);
}

#intro .intro-stats-panel .stat-value {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
}

/* --------------------------------------------------------------------------
   EVENTS — exactly 3, centered at every breakpoint
   -------------------------------------------------------------------------- */

#events .section-header {
  max-width: 760px;
  margin-inline: auto;
}

#events .section-desc {
  max-width: 650px;
}

#events .events-grid {
  width: min(100%, 1060px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

#events .events-grid .arena-card {
  width: 100%;
  min-width: 0;
  min-height: 285px;
}

#events .events-grid .category-card-desc {
  max-width: none;
}

/* If an old configuration accidentally leaves a fourth card in the DOM,
   don't display it until event.js is updated. */
#events .events-grid .arena-card:nth-child(n + 4) {
  display: none;
}

/* --------------------------------------------------------------------------
   EVENT MODAL — one-side fade, no Event Focus block
   -------------------------------------------------------------------------- */

.event-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}

.event-detail-overlay.is-open {
  pointer-events: auto;
  background: rgba(52, 0, 42, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.event-detail-panel {
  position: relative;
  top: auto !important;
  left: auto !important;
  width: min(760px, calc(100vw - 2rem));
  min-height: 0;
  max-height: min(78vh, 640px);
  overflow: auto;
  transform: translateY(14px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
}

.event-detail-overlay.is-open .event-detail-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.event-detail-fade {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background:
    radial-gradient(
      circle at 100% 50%,
      rgba(212, 0, 167, 0.17),
      transparent 65%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(212, 0, 167, 0.035) 48%,
      rgba(212, 0, 167, 0.12) 100%
    );
  pointer-events: none;
}

.event-detail-panel > *:not(.event-detail-fade) {
  position: relative;
  z-index: 2;
}

.event-detail-panel h2 {
  max-width: 75%;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.event-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

#event-detail-rulebook {
  min-width: 190px;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   COUNTDOWN — never overflow or drift on narrow screens
   -------------------------------------------------------------------------- */

#save-the-date {
  overflow: hidden;
}

.save-the-date-panel {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

#countdown {
  width: min(100%, 720px);
  margin-inline: auto;
}

.countdown-display {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.5vw, 1rem);
}

.countdown-unit {
  min-width: 0;
  overflow: hidden;
}

.countdown-val {
  font-size: clamp(1.45rem, 4vw, 3rem);
}

.countdown-label {
  white-space: nowrap;
  letter-spacing: clamp(0.08em, 0.2vw, 0.2em);
}

/* --------------------------------------------------------------------------
   GLOBAL RESPONSIVE CENTERING
   -------------------------------------------------------------------------- */

.section-container {
  width: 100%;
  overflow-x: clip;
}

@media (max-width: 1023px) {
  #events .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  #events .events-grid .arena-card:nth-child(3) {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - clamp(0.9rem, 1.8vw, 1.25rem)) / 2));
    justify-self: center;
  }

  #intro .intro-stats-panel {
    max-width: 360px;
  }
}

@media (max-width: 700px) {
  .header-container {
    min-height: 54px;
  }

  .header-status-badge {
    display: none;
  }

  .header-logo-makex {
    width: clamp(108px, 29vw, 132px);
  }

  .header-logo-makebot {
    /* width: clamp(84px, 22vw, 150px); */
    width: 150px;
  }

  #intro {
    padding-inline: clamp(1.25rem, 5vw, 2rem);
  }

  #intro .intro-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
  }

    #intro .intro-grid > div:first-child {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  #intro .section-header,
  #intro .intro-grid > div:first-child {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  #intro .section-header {
    text-align: left;
  }

  #intro .intro-grid {
    justify-items: center;
  }
  
  #intro .intro-stats-panel {
    width: min(100%, 330px);
    max-width: 330px;
    margin-inline: auto;
  }

  #intro .intro-stats-panel .stat-value {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  #events .events-grid {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    max-width: 430px;
  }

  #events .events-grid .arena-card:nth-child(3) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  #events .events-grid .arena-card {
    min-height: 0;
  }

  .event-detail-panel {
    width: min(92vw, 620px);
    max-height: 82vh;
    padding: 1.35rem;
  }

  .event-detail-fade {
    width: 62%;
  }

  .event-detail-panel h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .event-detail-actions {
    justify-content: stretch;
  }

  #event-detail-rulebook {
    width: 100%;
  }

  #countdown {
    width: 100%;
  }

  .countdown-display {
    width: 100%;
    gap: 0.4rem;
  }

  .countdown-unit {
    padding-inline: 0.3rem;
  }

  .countdown-val {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .countdown-label {
    font-size: clamp(0.5rem, 2.2vw, 0.68rem);
  }
}

@media (max-width: 390px) {
  #intro .intro-stats-panel {
    width: min(88vw, 285px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-display {
    gap: 0.25rem;
  }

  .countdown-unit {
    padding: 0.65rem 0.2rem;
  }

  .countdown-val {
    font-size: clamp(1.1rem, 7vw, 1.6rem);
  }

  .countdown-label {
    font-size: 0.47rem;
    letter-spacing: 0.06em;
  }
}
