/* ═══════════════════════════════════════════════════════
   GENDER REVEAL — PREMIUM CINEMATIC INVITATION
   Erick & Maria · Miranda de Ebro · 30 Mayo 2026
══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg-deep:      #050010;
  --bg-dark:      #0a0020;
  --bg-mid:       #0f002a;

  --saiyan-1:     #FF6D00;
  --saiyan-2:     #FFD600;
  --saiyan-3:     #0066FF;
  --saiyan-glow:  rgba(255, 110, 0, 0.35);

  --capsule-1:    #E91E8C;
  --capsule-2:    #FF69B4;
  --capsule-3:    #00BCD4;
  --capsule-glow: rgba(233, 30, 140, 0.35);

  --gold:         #FFD700;
  --gold-dim:     rgba(255, 215, 0, 0.7);

  --glass-bg:     rgba(255, 255, 255, 0.045);
  --glass-bg2:    rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border2:rgba(255, 255, 255, 0.18);

  --text-1:       rgba(255, 255, 255, 0.96);
  --text-2:       rgba(255, 255, 255, 0.75);
  --text-3:       rgba(255, 255, 255, 0.5);

  --ff-display:   'Cinzel', serif;
  --ff-body:      'Raleway', sans-serif;
  --ff-accent:    'Noto Sans JP', sans-serif;

  --radius-lg:    24px;
  --radius-md:    16px;
  --radius-sm:    10px;

  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-cinematic: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar hidden but functional */
body::-webkit-scrollbar { width: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--ff-body); }
input { font-family: var(--ff-body); }

/* ─── UTILITY ─── */
.hidden { display: none !important; }

/* ─── FIXED CANVASES ─── */
#particles-canvas,
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
#confetti-canvas { z-index: 1000; }

.bg-video-global {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -2; /* Se mueve un nivel más atrás */
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Capa oscura para mejorar legibilidad */
  z-index: -1; /* Entre el video y el contenido */
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════════════════ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at 50% 60%, #1a0535 0%, var(--bg-deep) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.loading-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.load-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: loadOrbFloat 4s ease-in-out infinite alternate;
}

.load-orb.orb-saiyan {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,109,0,0.35), transparent 70%);
  top: -80px; left: -60px;
  animation-delay: 0s;
}

.load-orb.orb-capsule {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(233,30,140,0.3), transparent 70%);
  bottom: -60px; right: -40px;
  animation-delay: 2s;
}

@keyframes loadOrbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,20px) scale(1.1); }
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  padding: 0 32px;
}

.loading-stars {
  display: flex;
  gap: 16px;
  font-size: 1rem;
  color: var(--gold);
}

.ls { animation: starPulse 1.5s ease-in-out infinite; }
.ls1 { animation-delay: 0s; }
.ls2 { animation-delay: 0.5s; }
.ls3 { animation-delay: 1s; }

@keyframes starPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

.loading-text {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.loading-bar-wrap {
  width: min(280px, 80vw);
}

.loading-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--saiyan-1), var(--gold), var(--capsule-1));
  border-radius: 99px;
  transition: width 0.15s ease;
  box-shadow: 0 0 8px rgba(255,215,0,0.6);
}

.loading-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-align: center;
  animation: textFadeIn 0.5s ease;
}

/* ═══════════════════════════════════════════════════════
   ENVELOPE SCENE
══════════════════════════════════════════════════════ */
#envelope-scene {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 40% 50%, rgba(31, 6, 69, 0.7) 0%, rgba(5, 0, 16, 0.8) 65%);
  transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}

#envelope-scene.scene-exit {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.env-scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 0 20px;
}

/* ── Envelope container ── */
.envelope-wrap {
  perspective: 900px;
}

.envelope {
  width: min(300px, 88vw);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  user-select: none;
  animation: envFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)) drop-shadow(0 0 15px rgba(255,215,0,0.15));
  transition: filter 0.3s ease, transform 0.3s var(--ease-bounce);
  /* Textura de papel sutil */
  background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-color: #ffffff;
  border-radius: 8px;
}

.envelope:hover,
.envelope:active {
  filter: drop-shadow(0 24px 60px rgba(180,80,255,0.45)) drop-shadow(0 0 25px rgba(255,215,0,0.4));
  transform: scale(1.03) rotateZ(0deg);
}

.env-back, .env-svg-base {
  width: 100%;
  height: auto;
  display: block;
}

.env-back {
  position: relative;
  z-index: 0;
}

@keyframes envFloat {
  0%, 100% { transform: translateY(0px) rotateZ(-0.5deg); }
  50%       { transform: translateY(-12px) rotateZ(0.5deg); }
}

/* ── Letter inside ── */
.env-letter {
  position: absolute;
  width: 82%;
  left: 9%;
  bottom: 10px;
  aspect-ratio: 1.4/1;
  background: linear-gradient(140deg, #fff8ff 0%, #ffeeff 50%, #ede0ff 100%);
  border-radius: 5px;
  z-index: 1;
  transform: translateY(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.3); /* Borde dorado sutil */
  box-shadow: 0 -4px 20px rgba(160,80,255,0.25),
              inset 0 0 15px rgba(255, 215, 0, 0.15); /* Resplandor interior dorado */
}

.env-svg-base {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.envelope.open .env-letter {
  transform: translateY(-90px);
}

.letter-inner {
  text-align: center;
  line-height: 1.4;
}

.letter-monogram {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #3d1065;
  letter-spacing: 0.05em;
}

.letter-amp {
  color: #9B59B6;
}

.letter-year {
  font-size: 0.7rem;
  font-family: var(--ff-accent);
  color: #7B59B6;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

/* ── Top flap ── */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform-origin: top center;
  transform-style: preserve-3d;
  z-index: 4;
}

.envelope.open .env-flap {
  transform: perspective(600px) rotateX(-180deg);
}

.env-flap-svg {
  width: 100%;
  height: auto;
}

/* ── Wax Seal ── */
.env-seal {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  z-index: 5;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-bounce);
}

.envelope.open .env-seal {
  opacity: 0;
  transform: translateX(-50%) translateY(50%) scale(1.4);
}

/* Diseño de la Bola de Dragón */
.seal-outer {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffcc33, #ff8800 50%, #cc4400 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(0,0,0,0.4),
    inset 0 -2px 5px rgba(0,0,0,0.3),
    inset 0 2px 5px rgba(255,255,255,0.5);
  animation: sealPulse 5s ease-in-out infinite;
  border: 1px solid rgba(0,0,0,0.1);
}

.seal-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
}

.db-star {
  color: #cc0000;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  filter: drop-shadow(0 0 2px rgba(200,0,0,0.4));
  animation: starBlink 1.8s ease-in-out infinite;
}
.seal-inner .db-star:nth-child(2) { animation-delay: 0.3s; }
.seal-inner .db-star:nth-child(3) { animation-delay: 0.6s; }
.seal-inner .db-star:nth-child(4) { animation-delay: 0.9s; }

/* Reflejo de cristal para la esfera */
.seal-outer::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  transform: rotate(-30deg);
  pointer-events: none;
}

.seal-star {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

@keyframes starBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes sealPulse {
  0%, 100% { 
    box-shadow: 0 0 0 3px rgba(255,215,0,0.3), 0 4px 16px rgba(255,140,0,0.5), 0 0 30px rgba(255,140,0,0.2);
    transform: rotate(-10deg);
  }
  50% { 
    box-shadow: 0 0 0 6px rgba(255,215,0,0.15), 0 4px 20px rgba(255,140,0,0.6), 0 0 50px rgba(255,140,0,0.25);
    transform: rotate(10deg);
  }
}

/* ── Envelope text ── */
.env-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.env-text {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 4.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.03em;
  text-shadow: 0 0 20px rgba(200,150,255,0.4);
  animation: fadeInUp 0.6s var(--ease-smooth) both;
  transition: opacity 0.4s ease;
}

.tap-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
}

.tap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: tapPulse 1.4s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.6); opacity: 1; box-shadow: 0 0 10px var(--gold); }
}

/* ═══════════════════════════════════════════════════════
   MAIN APP
══════════════════════════════════════════════════════ */
#app {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
}

.section {
  position: relative;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.section-mid  { min-height: 60vh; }
.section-tight { min-height: auto; padding: 30px 20px; }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════ */
#hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(26, 5, 53, 0.6) 0%, rgba(5, 0, 16, 0.8) 60%);
  padding-top: 30px;
  padding-bottom: 25px;
  gap: 24px;
}

.hero-glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(255,109,0,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(233,30,140,0.12) 0%, transparent 55%);
}

/* ── Invitation Header ── */
.invitation-header {
  text-align: center;
  z-index: 2;
}

.from-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.parents-name {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(
    90deg, 
    #0066FF 0%, 
    #FFD700 25%, 
    #FF6D00 50%, 
    #FFD700 75%, 
    #E91E8C 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  line-height: 1.2;
  animation: shineText 6s linear infinite;
}

.amp-gold {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.invite-line {
  font-size: 0.85rem;
  color: var(--text-2);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ── Characters Row ── */
.characters-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.centering-fix {
  margin-left: auto;
  margin-right: auto;
}

.char-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.aura {
  position: absolute;
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: auraPulse 3s ease-in-out infinite;
}

.aura-saiyan {
  background: radial-gradient(circle, rgba(255,109,0,0.25) 0%, rgba(0,100,255,0.15) 50%, transparent 70%);
}

.aura-capsule {
  background: radial-gradient(circle, rgba(233,30,140,0.25) 0%, rgba(0,188,212,0.15) 50%, transparent 70%);
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

.char-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 155px;
}

.char-svg {
  width: 100%;
  height: auto;
  animation: charFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.left  .char-svg { animation-delay: 0s; }
.right .char-svg { animation-delay: 2s; }

@keyframes charFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── Energy orbs animation ── */
.eorb {
  animation: orbFloat 3s ease-in-out infinite;
}
.eo1 { animation-delay: 0.0s; animation-duration: 2.8s; }
.eo2 { animation-delay: 0.7s; animation-duration: 3.3s; }
.eo3 { animation-delay: 1.4s; animation-duration: 2.5s; }
.eo4 { animation-delay: 2.1s; animation-duration: 3.6s; }
.eo5 { animation-delay: 0.4s; animation-duration: 3.0s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.9; }
  33%       { transform: translate(-4px,-8px) scale(1.2); opacity: 1; }
  66%       { transform: translate(4px,-4px) scale(0.9); opacity: 0.7; }
}

.char-aura-glow { animation: auraGlowPulse 3.5s ease-in-out infinite; }

@keyframes auraGlowPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.lightning  { animation: lightningFlash 2.5s ease-in-out infinite; }
.lightning-r { animation: lightningFlash 2.5s ease-in-out infinite 1.25s; }

@keyframes lightningFlash {
  0%, 80%, 100% { opacity: 0; }
  85%, 90%      { opacity: 0.8; }
}

.sparkle-l, .sparkle-r, .sparkle-l2 { animation: sparkleAnim 2s ease-in-out infinite; }
.sparkle-r  { animation-delay: 1s; }
.sparkle-l2 { animation-delay: 0.5s; }

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 0.9; transform: scale(1.2); }
}

/* ── Floating particles (CSS spans) ── */
.char-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.cp {
  position: absolute;
  font-size: 0.65rem;
  animation: cpFloat 4s ease-in-out infinite;
  opacity: 0.7;
}

.saiyan-p .cp { color: var(--saiyan-1); }
.capsule-p .cp { color: var(--capsule-2); }

.cp1 { top: 10%; left: 5%;  animation-delay: 0.0s; animation-duration: 3.8s; }
.cp2 { top: 20%; right: 8%; animation-delay: 0.8s; animation-duration: 4.2s; }
.cp3 { top: 50%; left: 2%;  animation-delay: 1.6s; animation-duration: 3.5s; }
.cp4 { top: 65%; right: 5%; animation-delay: 2.4s; animation-duration: 4.5s; }
.cp5 { top: 85%; left: 15%; animation-delay: 3.2s; animation-duration: 3.9s; }

@keyframes cpFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-55px) scale(0.6); opacity: 0; }
}

/* ── VS divider ── */
.vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 4px;
  flex-shrink: 0;
  z-index: 2;
}

.vs-line {
  width: 1.5px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.35), transparent);
  min-height: 40px;
}

.vs-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg2);
  border: 1.5px solid rgba(255,215,0,0.35);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-circle span {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}

/* ── Team Badge ── */
.team-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid;
  backdrop-filter: blur(10px);
}

.saiyan-badge {
  background: rgba(255,109,0,0.12);
  border-color: rgba(255,109,0,0.4);
}

.capsule-badge {
  background: rgba(233,30,140,0.12);
  border-color: rgba(233,30,140,0.4);
}

.tb-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tb-name {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.saiyan-badge .tb-name { color: var(--saiyan-1); }
.capsule-badge .tb-name { color: var(--capsule-2); }

/* ── Scroll hint ── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint p {
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.1rem;
  color: var(--gold-dim);
}
.scroll-arrow svg { width: 1.4rem; height: 1.4rem; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHISM CARD
══════════════════════════════════════════════════════ */
.glass-card {
  background: rgba(10, 0, 32, 0.4);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    0 0 15px rgba(120, 50, 255, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
}

/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENT SECTION
══════════════════════════════════════════════════════ */
#announcement {
  background: radial-gradient(ellipse at 50% 50%, #120335 0%, var(--bg-deep) 65%);
}

.section-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.3;
}

.g-orange { width: 300px; height: 300px; background: radial-gradient(circle, var(--saiyan-1), transparent); top: -10%; left: -20%; }
.g-pink   { width: 280px; height: 280px; background: radial-gradient(circle, var(--capsule-1), transparent); bottom: -10%; right: -15%; }
.g-purple { width: 320px; height: 320px; background: radial-gradient(circle, #7B2FBE, transparent); top: 0; left: 50%; transform: translateX(-50%); }

.announce-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.announce-crown {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-6px) rotate(5deg); }
}

.announce-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.announce-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--saiyan-1) 0%, var(--gold) 40%, var(--capsule-2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
  margin-bottom: 16px;
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
  color: var(--gold-dim);
  font-size: 0.7rem;
}

.od-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.4), transparent);
}

.announce-body {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.8;
}

.announce-body em {
  color: var(--gold-dim);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   EVENT DETAILS
══════════════════════════════════════════════════════ */
#event-details {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0c001f 100%);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

.event-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.map-link:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.event-card {
  display: flex;
  flex-direction: column; /* Centrado vertical */
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-bounce), border-color 0.3s ease;
  animation-delay: var(--d, 0s);
  width: 100%;
}

.event-card:hover,
.event-card:active {
  transform: translateY(-3px);
  border-color: rgba(255,215,0,0.3);
}

/* Styling for Lucide icons */
.ec-icon svg, .rs-icon svg, .rb-icon svg, .announce-crown svg, .go-icon svg, .tc-symbol svg, .scroll-arrow svg {
  display: inline-block;
  vertical-align: middle;
}

.ec-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,200,50,0.3));
}
.ec-icon svg { width: 1.8rem; height: 1.8rem; color: var(--gold); }

.ec-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Estilos para la Dinámica de Regalos */
.gift-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.gift-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gift-option.gift-boy {
  background: rgba(0, 102, 255, 0.15); /* Azul Saiyan más marcado */
  border: 1px solid rgba(0, 102, 255, 0.4);
}

.gift-option.gift-boy:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0, 102, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4), inset 0 1px 3px rgba(0,0,0,0.2);
}

.gift-option.gift-girl {
  background: rgba(233,30,140,0.1); /* Rosa Capsule */
  border: 1px solid rgba(233,30,140,0.3);
}

.gift-option.gift-girl:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(233, 30, 140, 0.8);
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.4), inset 0 1px 3px rgba(0,0,0,0.2);
}

.go-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.go-icon svg { width: 1.2rem; height: 1.2rem; }

.go-text {
  flex-grow: 1;
}

/* Estilo para el texto de la fecha límite en RSVP */
.rsvp-deadline-text {
  font-size: 0.85rem;
  color: var(--gold-dim);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  font-style: italic;
}

.teams-hint {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 20px;
  font-style: italic;
}

.team-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card.selected {
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.vote-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card.selected .vote-indicator {
  opacity: 1;
}

.rs-vote-summary {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ── VOTE RESULTS BAR ── */
.vote-results-container {
  margin: 20px 0 25px;
  width: 100%;
}
.vote-bar-wrapper {
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.vote-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  transition: width 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.vote-fill.guerrero {
  background: linear-gradient(90deg, var(--saiyan-1), var(--saiyan-2));
  box-shadow: 4px 0 15px var(--saiyan-glow);
}
.vote-fill.guerrera {
  background: linear-gradient(90deg, var(--capsule-1), var(--capsule-2)); /* Tonos más rosados */
  box-shadow: -4px 0 15px var(--capsule-glow); /* Sombra rosa */
}

/* Aplicar winning pulse a los segmentos del círculo también */
.chart-fill.winning {
  animation: winning-pulse 2s ease-in-out infinite;
  filter: brightness(1.1); /* Ligeramente más brillante para el círculo */
}

/* ── WINNING PULSE ANIMATION ── */
.vote-fill.winning {
  animation: winning-pulse 2s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

@keyframes winning-pulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 15px var(--gold-dim);
  }
  50% {
    filter: brightness(1.3);
    box-shadow: 0 0 25px var(--gold), 0 0 45px var(--gold-dim);
  }
}

.vote-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
}

/* Efectos de Selección de Equipo */
.spark-guerrero {
  animation: electric-sparks 0.4s ease-in-out infinite;
  border-color: var(--gold) !important;
}

@keyframes electric-sparks {
  0%, 100% { box-shadow: 0 0 10px var(--gold); filter: brightness(1); }
  25% { box-shadow: 0 0 25px var(--saiyan-1); filter: brightness(1.6); }
  50% { box-shadow: 0 0 35px var(--saiyan-2); filter: brightness(1.2); }
  75% { box-shadow: 0 0 20px var(--saiyan-3); filter: brightness(1.8); }
}

.glow-guerrera {
  animation: magic-glow 2.5s ease-in-out infinite;
  border-color: var(--capsule-3) !important;
}

@keyframes magic-glow {
  0%, 100% { box-shadow: 0 0 15px var(--capsule-1); transform: scale(1.05); }
  50% { box-shadow: 0 0 40px var(--capsule-2), 0 0 60px var(--capsule-3); transform: scale(1.07); }
}

.ec-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ec-value {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
}

.ec-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
}

.highlight-blue {
  color: var(--saiyan-3);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 102, 255, 0.3);
  font-style: normal;
}

.highlight-pink {
  color: var(--capsule-1);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(233, 30, 140, 0.3);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════
   COUNTDOWN TIMER
══════════════════════════════════════════════════════ */
#countdown {
  background: radial-gradient(ellipse at 50% 50%, #0e0230 0%, var(--bg-deep) 60%);
}

.countdown-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(100,30,200,0.15) 0%, transparent 60%);
}

.cd-label {
  font-family: var(--ff-display);
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg2);
  border: 1px solid var(--glass-border2);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  min-width: 64px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(255,215,0,0.06);
  position: relative;
  overflow: hidden;
}

.time-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,215,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.time-num {
  font-family: var(--ff-accent);
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  transition: transform 0.2s var(--ease-bounce);
}

.time-num.tick {
  transform: scale(1.12);
  color: var(--gold);
}

.time-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.time-sep {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: rgba(255,215,0,0.4);
  padding-bottom: 12px;
  font-weight: 400;
}

.cd-sublabel {
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 20px;
}

.cd-sublabel.event-today {
  color: var(--gold);
  font-size: 1rem;
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   TEAMS SECTION
══════════════════════════════════════════════════════ */
#teams {
  background: radial-gradient(ellipse at 50% 50%, #100030 0%, var(--bg-deep) 65%);
}

.teams-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.team-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px 22px;
}

.tc-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.08;
}

.saiyan-tc-glow {
  background: radial-gradient(ellipse at 50% 50%, var(--saiyan-1), transparent 70%);
}

.capsule-tc-glow {
  background: radial-gradient(ellipse at 50% 50%, var(--capsule-1), transparent 70%);
}

.saiyan-card {
  border-color: rgba(255,109,0,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,109,0,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.saiyan-card:hover {
  border-color: rgba(255,109,0,0.5);
  box-shadow: 0 8px 40px rgba(255,109,0,0.15), 0 0 60px rgba(255,109,0,0.06);
}

.capsule-card {
  border-color: rgba(233,30,140,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(233,30,140,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.capsule-card:hover {
  border-color: rgba(233,30,140,0.5);
  box-shadow: 0 8px 40px rgba(233,30,140,0.15), 0 0 60px rgba(233,30,140,0.06);
}

.tc-symbol {
  margin-bottom: 10px;
  display: block;
  animation: tcSymbol 3s ease-in-out infinite;
}
.tc-symbol svg { width: 2.2rem; height: 2.2rem; }
.saiyan-card .tc-symbol svg { color: var(--saiyan-1); }
.capsule-card .tc-symbol svg { color: var(--capsule-2); }

@keyframes tcSymbol {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%       { transform: scale(1.15) rotate(3deg); }
}

.tc-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.saiyan-card .tc-name { color: var(--saiyan-1); }
.capsule-card .tc-name { color: var(--capsule-2); }

.tc-desc {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tc-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trait {
  font-size: 0.73rem;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-2);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   RSVP SECTION
══════════════════════════════════════════════════════ */
#rsvp {
  background: radial-gradient(ellipse at 50% 30%, #180040 0%, var(--bg-deep) 60%);
}

.rsvp-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  font-style: italic;
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.rsvp-card {
  position: relative;
  z-index: 2;
}

.form-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--gold-dim);
  font-size: 0.7rem;
}

.form-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.04em;
}

/* ── Inputs ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.input-group input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.95rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: 100%;
  -webkit-appearance: none;
}

.input-group input::placeholder {
  color: var(--text-3);
  font-style: italic;
}

.input-group input:focus {
  border-color: rgba(255,215,0,0.45);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.08), inset 0 0 0 1px rgba(255,215,0,0.1);
}

.form-error {
  font-size: 0.8rem;
  color: #FF6B6B;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* ── RSVP Buttons ── */
.rsvp-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.rsvp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease-bounce),
    box-shadow 0.2s ease,
    filter 0.2s ease;
  min-height: 52px;
  border: 1.5px solid transparent;
}

.rsvp-btn:active {
  transform: scale(0.97);
}

.rb-icon {
  flex-shrink: 0;
}
.rb-icon svg { width: 1.2rem; height: 1.2rem; }

.rb-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rsvp-btn:hover .rb-glow,
.rsvp-btn:focus .rb-glow {
  opacity: 1;
}

/* Yes button */
.btn-yes {
  background: linear-gradient(135deg, rgba(255,109,0,0.3), rgba(255,214,0,0.2));
  border-color: rgba(255,150,0,0.55);
  color: #FFD06A;
  box-shadow: 0 4px 20px rgba(255,109,0,0.15);
}

.btn-yes:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 30px rgba(255,109,0,0.3);
  border-color: rgba(255,180,0,0.7);
}

.btn-yes .rb-glow {
  background: radial-gradient(ellipse at center, rgba(255,214,0,0.12), transparent 70%);
}

/* Maybe button */
.btn-maybe {
  background: linear-gradient(135deg, rgba(100,50,200,0.3), rgba(150,80,220,0.15));
  border-color: rgba(130,60,220,0.5);
  color: #C39FFF;
  box-shadow: 0 4px 20px rgba(100,50,200,0.12);
}

.btn-maybe:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 30px rgba(100,50,200,0.25);
  border-color: rgba(160,100,240,0.65);
}

.btn-maybe .rb-glow {
  background: radial-gradient(ellipse at center, rgba(160,100,255,0.12), transparent 70%);
}

/* No button */
.btn-no {
  background: linear-gradient(135deg, rgba(233,30,140,0.2), rgba(0,188,212,0.1));
  border-color: rgba(200,30,120,0.35);
  color: #FF9ED2;
  box-shadow: 0 4px 20px rgba(233,30,140,0.08);
}

.btn-no:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 30px rgba(233,30,140,0.2);
  border-color: rgba(233,30,140,0.55);
}

.btn-no .rb-glow {
  background: radial-gradient(ellipse at center, rgba(233,30,140,0.1), transparent 70%);
}

/* ── RSVP States ── */
.rsvp-state {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: stateReveal 0.6s var(--ease-bounce) both;
}

@keyframes stateReveal {
  0%   { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.rs-icon {
  margin-bottom: 12px;
  animation: iconBounce 1s var(--ease-bounce) 0.3s both;
}
.rs-icon svg { width: 3rem; height: 3rem; color: var(--gold); }

@keyframes iconBounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.rs-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.rs-msg {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.rs-divider {
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin: 16px 0;
}

.rs-wa-label {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #1DB954, #25D366);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.wa-btn:hover,
.wa-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(37,211,102,0.45);
}

.wa-btn svg {
  width: 22px;
  height: 22px;
}

.wa-btn.pulsing {
  animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5), 0 0 25px rgba(37,211,102,0.3);
  }
}

.change-btn {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
  transition: color 0.2s;
  margin-top: 4px;
  display: inline-block;
}

.change-btn:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
#footer {
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, #1a0535 0%, var(--bg-deep) 60%);
}

.footer-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(120,40,200,0.15), transparent 60%);
  pointer-events: none;
}

.footer-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fo {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.2;
  animation: foOrb 5s ease-in-out infinite alternate;
}

.fo-saiyan {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--saiyan-1), transparent);
  top: 10%; left: -5%;
}

.fo-capsule {
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--capsule-1), transparent);
  bottom: 10%; right: -5%;
  animation-delay: 2.5s;
}

@keyframes foOrb {
  0%   { transform: translate(0,0); }
  100% { transform: translate(20px,-15px); }
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fs {
  color: var(--gold-dim);
  font-size: 0.75rem;
  animation: starPulse 2s ease-in-out infinite;
}

.fs:nth-child(2) { animation-delay: 0.7s; }
.fs:nth-child(3) { animation-delay: 1.4s; }

.footer-names {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #0066FF, #FFD700, #FF6D00, #FFD700, #E91E8C);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
  animation: shineText 6s linear infinite;
}

.footer-line {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-date {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  color: var(--gold-dim);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-emoji {
  font-size: 0.85rem;
  color: var(--text-2);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   MUSIC TOGGLE BUTTON
══════════════════════════════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg2);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s var(--ease-bounce), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.music-btn:hover {
  transform: scale(1.12);
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 16px rgba(255,215,0,0.1);
}

.music-btn.playing {
  border-color: rgba(255,215,0,0.5);
  animation: musicGlow 2.5s ease-in-out infinite;
}

.music-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: none;
}

.music-btn.playing .music-ripple {
  animation: musicRipple 2.5s ease-in-out infinite;
}

@keyframes musicGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 10px rgba(255,215,0,0.1); }
  50%       { box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 22px rgba(255,215,0,0.2); }
}

@keyframes musicRipple {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.75s var(--ease-cinematic),
    transform 0.75s var(--ease-cinematic);
  transition-delay: var(--d, 0s);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.announce-crown svg {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   GLOBAL KEYFRAMES
══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes textFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255,215,0,0.3); }
  50%       { text-shadow: 0 0 25px rgba(255,215,0,0.7); }
}

/* ═══════════════════════════════════════════════════════
   KI EXPLOSION EFFECT
══════════════════════════════════════════════════════ */
#ki-explosion-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(255, 109, 0, 0.6) 30%,
    rgba(255, 0, 0, 0.4) 60%,
    rgba(255, 0, 0, 0) 100%
  );
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

#ki-explosion-effect.active {
  animation: ki-explosion 0.8s ease-out forwards;
}

@keyframes ki-explosion {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — WIDER SCREENS (tablet/desktop)
══════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  .characters-row { max-width: 480px; }
  .char-figure { max-width: 180px; }

  .teams-grid {
    flex-direction: row;
    gap: 12px;
  }

  .team-card { flex: 1; }
}

@media (min-width: 640px) {
  .section { padding: 72px 32px; }

  .glass-card {
    padding: 36px 32px;
  }

  .characters-row {
    max-width: 540px;
    gap: 8px;
  }
}

/* Prevent horizontal overflow everywhere */
.section > * {
  max-width: 100%;
}
