:root {
  --mario-red: #e60012;
  --mario-blue: #0047bb;
  --luigi-green: #009641;
  --gold-coin: #ffd700;
}

body {
  background: radial-gradient(
    circle at center top,
    #4facfe 0%,
    #00c6fb 40%,
    #005bea 100%
  );
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Prevenir pull-to-refresh en móviles para mejorar swipe */
  overscroll-behavior-y: none;
}

/* --- TIPOGRAFÍA ULTRA 3D (POP-OUT) --- */
.movie-logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-2deg) skewY(-1deg);
  z-index: 20;
  perspective: 500px;
}

.super-text {
  font-family: "Titan One", cursive;
  font-size: clamp(3rem, 10vw, 4rem);
  line-height: 0.85;
  background: linear-gradient(180deg, #aeeeee 0%, #2980b9 50%, #154360 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 4px white;
  position: relative;
  z-index: 10;
}
.super-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 14px black;
  -webkit-text-fill-color: black;
  text-shadow:
    0px 8px 0px black,
    0px 12px 5px rgba(0, 0, 0, 0.5);
}

.name-text {
  font-family: "Titan One", cursive;
  font-size: clamp(5.5rem, 19vw, 9.5rem);
  line-height: 0.9;
  background: linear-gradient(to bottom, #ff5e5e 0%, #e60012 45%, #9e0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 6px white;
  position: relative;
  z-index: 10;
  transform: translateZ(20px);
}
.name-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 18px black;
  text-shadow:
    0px 1px 0px #000,
    0px 2px 0px #000,
    0px 3px 0px #000,
    0px 4px 0px #000,
    0px 5px 0px #000,
    0px 6px 0px #000,
    0px 7px 0px #000,
    0px 8px 0px #000,
    0px 9px 0px #000,
    0px 10px 0px #000,
    0px 11px 0px #000,
    0px 12px 0px #000,
    0px 13px 0px #000,
    0px 14px 0px #000,
    0px 15px 0px #000,
    0px 25px 15px rgba(0, 0, 0, 0.6);
}

/* --- BOTONES --- */
.btn-mario {
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
  border: 3px solid #000;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 6px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}
.btn-mario:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 0 0 2px #fff,
    0 2px 0 rgba(0, 0, 0, 0.5);
}

.btn-text-outline {
  -webkit-text-stroke: 1.5px black;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* --- PARTICULAS --- */
#floating-container {
  overflow: hidden;
}
.particle {
  position: absolute;
  opacity: 0;
  animation: floatUp linear infinite;
  z-index: 1;
  pointer-events: none;
}

.mushroom-shape {
  width: 44px;
  height: 44px;
  position: relative;
}
.m-cap {
  width: 44px;
  height: 28px;
  border-radius: 22px 22px 12px 12px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.2),
    0 4px 5px rgba(0, 0, 0, 0.2);
}
.spot {
  position: absolute;
  background: white;
  border-radius: 50%;
}
.s1 {
  width: 16px;
  height: 16px;
  top: 2px;
  left: 14px;
}
.s2 {
  width: 12px;
  height: 12px;
  top: 14px;
  left: -4px;
}
.s3 {
  width: 12px;
  height: 12px;
  top: 14px;
  right: -4px;
}
.m-stem {
  width: 28px;
  height: 22px;
  background: #ffe0bd;
  position: absolute;
  bottom: 0;
  left: 8px;
  border-radius: 4px 4px 10px 10px;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
}
.eye-oval {
  position: absolute;
  background: #000;
  width: 4px;
  height: 9px;
  border-radius: 50%;
  top: 5px;
  z-index: 5;
}
.e-left {
  left: 7px;
}
.e-right {
  right: 7px;
}
.m-red .m-cap {
  background: #e60012;
}
.m-green .m-cap {
  background: #44d62c;
}

/* --- BLOQUE ? --- */
.block-3d-style {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 50%, #ff9800 100%);
  position: relative;
  box-shadow:
    inset 4px 4px 0px rgba(255, 255, 255, 0.5),
    inset -4px -4px 0px rgba(210, 150, 20, 0.6),
    0 0 0 3px #daa520;
}
.bolt-sm {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #daa520;
  border-radius: 50%;
  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.question-block-intro {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  box-shadow:
    inset 6px 6px 0px rgba(255, 255, 255, 0.4),
    inset -6px -6px 0px rgba(210, 150, 20, 0.6),
    0 0 0 4px #daa520,
    0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-block {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 0 #b8860b,
    0 15px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

/* --- ANIMACIONES GENERALES --- */
@keyframes floatUp {
  0% {
    transform: translateY(110vh) rotate(-15deg) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(15deg) scale(1);
    opacity: 0;
  }
}
.envelope-container {
  margin-top: -50px;
  overflow: visible;
  width: 220px;
  height: 220px;
}
.q-mark {
  font-size: 140px;
  color: #ffffff;
  font-family: "Titan One", sans-serif;
  text-shadow: 4px 4px 0px #cb9514;
  line-height: 1;
  margin-top: -15px;
}
.start-text {
  margin-top: 60px;
  color: white;
  font-family: "Titan One", sans-serif;
  font-size: 24px;
  text-shadow: 0 4px 0 #0047bb;
  animation: pulseText 1.5s infinite;
}
@keyframes pulseText {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.coin {
  width: 80px;
  height: 80px;
  background: #ffd700;
  border-radius: 50%;
  border: 4px solid #fbc02d;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Titan One", sans-serif;
  color: #f9a825;
  font-size: 40px;
}
.coin-anim {
  animation: coinPop 1.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes coinPop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    z-index: 1;
  }
  40% {
    z-index: 20;
  }
  50% {
    transform: translate(-50%, -250px) scale(1.2) rotateY(180deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -280px) scale(1) rotateY(360deg);
    opacity: 0;
  }
}
.block-bump {
  animation: bump 0.3s;
}
@keyframes bump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}
.main-content-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease-in;
}
.reveal-content {
  opacity: 1;
  pointer-events: auto;
}
.details-card {
  background-color: #fff8e7;
  border: 8px solid #c24a28;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.details-card::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 2px dashed #c24a28;
  border-radius: 12px;
  pointer-events: none;
}

/* Rotación corregida con 100vh para evitar bordes negros */
.rotate-mobile {
  transform: rotate(90deg);
  width: 100vh !important;
  height: 100vw !important;
  max-width: none !important;
  object-fit: contain;
}

/* --- GHOST DOT ANIMATIONS (Multi-Axis) --- */
@keyframes ghostSwipeMulti {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translate(-50px, 0);
  } /* Horizontal */
  40% {
    transform: translate(0, 0);
  }
  55% {
    transform: translate(0, -50px);
  } /* Vertical */
  80% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.animate-ghost {
  animation: ghostSwipeMulti 2.5s ease-in-out infinite;
}

/* Visual Mute Styles */
.muted-slash::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ff0000;
  top: 50%;
  left: 0;
  transform: rotate(45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
