@font-face {
  font-family: 'Luckiest Guy';
  src: url('./fonts/LuckiestGuy-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mouse Memoirs';
  src: url('./fonts/MouseMemoirs-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Official Brand Colors */
  --color-human-base: #005e12;
  --color-human-accent: #007e27;

  --color-alien-base: #003684;
  --color-alien-accent: #0065c4;

  --color-vampire-base: #810909;
  --color-vampire-accent: #b91a1a;

  --color-zombie-base: #550c90;
  --color-zombie-accent: #7c149e;

  --color-werewolf-base: #3e2723;
  --color-werewolf-accent: #5d4037;

  --color-item-base: #ff6295;
  --color-item-accent: #ff90b4;

  --color-bg-dark: #07090e;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* 88px clearance for 80px fixed navbar + 8px breathing space */
  color-scheme: dark;
}

section[id],
div[id],
span[id] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Force uppercase on all Luckiest Guy usage */
.font-luckiest {
  font-family: 'Luckiest Guy', cursive, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
}

.font-mouse {
  font-family: 'Mouse Memoirs', sans-serif;
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------
   HEAVY STROKE & FALSE 3D DOWNWARD EXTRUSION TYPOGRAPHY
   ------------------------------------------------------------- */
[class*="text-stroke-"] {
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
}

/* Level 1: H1 / Hero (10px Stroke + 8px Straight Down Extrusion) */
.text-stroke-extrude-lg {
  color: #ffffff;
  -webkit-text-stroke: 10px #000000;
  text-stroke: 10px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000,
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 7px 0 #000000,
    0 8px 0 #000000,
    0 10px 24px rgba(0, 0, 0, 0.95);
}

/* Level 2: H2 / Section Titles (4.5px Stroke + 6px Extrusion) */
.text-stroke-extrude-md {
  color: #ffffff;
  -webkit-text-stroke: 4.5px #000000;
  text-stroke: 4.5px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000,
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 8px 18px rgba(0, 0, 0, 0.9);
}

/* Level 3: H3 / Subtitles / Buttons (3px Stroke + 4px Extrusion) */
.text-stroke-extrude-sm {
  color: #ffffff;
  -webkit-text-stroke: 3px #000000;
  text-stroke: 3px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000;
}

/* Subtitle Stroke Only (Pure outline, no hard downward extrusion) */
.text-stroke-clean {
  -webkit-text-stroke: 6px #000000;
  text-stroke: 6px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: none !important;
}

/* Color Accent Variants with Heavy Extrude */
.text-stroke-green {
  color: #4ade80;
  -webkit-text-stroke: 10px #000000;
  text-stroke: 10px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000,
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 7px 0 #000000,
    0 8px 0 #000000,
    0 10px 24px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(74, 222, 128, 0.8);
}

.text-stroke-purple {
  color: #c084fc;
  -webkit-text-stroke: 4.5px #000000;
  text-stroke: 4.5px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000,
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 0 25px rgba(192, 132, 252, 0.7);
}

.text-stroke-yellow {
  color: #fde047;
  -webkit-text-stroke: 4.5px #000000;
  text-stroke: 4.5px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 0 #000000,
    0 4px 0 #000000,
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 0 25px rgba(250, 204, 21, 0.7);
}

/* Official Family Typography Colors */
.text-human-green {
  color: var(--color-human-accent, #007e27) !important;
}

.text-zombie-purple {
  color: var(--color-zombie-accent, #7c149e) !important;
}

.text-vampire-red {
  color: var(--color-vampire-accent, #b91a1a) !important;
}

/* Narrative Text Stroke with Subtle Diffuse Shadow (No Hard Extrusion) */
.text-stroke-narrative {
  -webkit-text-stroke: 5px #000000;
  text-stroke: 5px #000000;
  paint-order: stroke fill !important;
  -webkit-paint-order: stroke fill !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.75) !important;
}

@media (max-width: 639px) {
  .text-stroke-narrative {
    -webkit-text-stroke: 4px #000000;
    text-stroke: 4px #000000;
  }
}

/* -------------------------------------------------------------
   WEBKIT / SAFARI / IPADOS RETINA CALIBRATION
   WebKit (CoreGraphics) renders text-shadow Gaussian blurs with wider
   dispersion and unclipped gamma falloff, which blows out strokes on Retina screens.
   We calibrate blur radius & opacity so iPad/iPhone looks identical to PC/Android,
   preserving both the background separation and the razor-sharp 10px black stroke.
   ------------------------------------------------------------- */
@supports (-webkit-hyphens: none) {
  .text-stroke-extrude-lg {
    text-shadow: 
      0 1px 0 #000000,
      0 2px 0 #000000,
      0 3px 0 #000000,
      0 4px 0 #000000,
      0 5px 0 #000000,
      0 6px 0 #000000,
      0 7px 0 #000000,
      0 8px 0 #000000,
      0 8px 14px rgba(0, 0, 0, 0.5) !important;
  }

  .text-stroke-extrude-md {
    text-shadow: 
      0 1px 0 #000000,
      0 2px 0 #000000,
      0 3px 0 #000000,
      0 4px 0 #000000,
      0 5px 0 #000000,
      0 6px 0 #000000,
      0 6px 10px rgba(0, 0, 0, 0.45) !important;
  }

  .text-stroke-green {
    text-shadow: 
      0 1px 0 #000000,
      0 2px 0 #000000,
      0 3px 0 #000000,
      0 4px 0 #000000,
      0 5px 0 #000000,
      0 6px 0 #000000,
      0 7px 0 #000000,
      0 8px 0 #000000,
      0 8px 14px rgba(0, 0, 0, 0.5),
      0 0 14px rgba(74, 222, 128, 0.45) !important;
  }

  .text-stroke-purple {
    text-shadow: 
      0 1px 0 #000000,
      0 2px 0 #000000,
      0 3px 0 #000000,
      0 4px 0 #000000,
      0 5px 0 #000000,
      0 6px 0 #000000,
      0 0 12px rgba(192, 132, 252, 0.45) !important;
  }

  .text-stroke-yellow {
    text-shadow: 
      0 1px 0 #000000,
      0 2px 0 #000000,
      0 3px 0 #000000,
      0 4px 0 #000000,
      0 5px 0 #000000,
      0 6px 0 #000000,
      0 0 12px rgba(250, 204, 21, 0.45) !important;
  }

  .text-stroke-narrative {
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.65) !important;
  }
}

/* -------------------------------------------------------------
   VIBRANT CHARACTER PATTERNS (Without Fear)
   ------------------------------------------------------------- */
.bg-farm-pattern-vivid {
  background-image: url('./images/brand/ParanormanimalsPatternGreen.png');
  background-repeat: repeat;
  background-size: 420px;
}

.bg-farm-pattern-dark {
  background-image: linear-gradient(to bottom, rgba(7, 9, 14, 0.45), rgba(7, 9, 14, 0.55)), url('./images/brand/ParanormanimalsPatternGreen.png');
  background-repeat: repeat;
  background-size: 420px;
}

/* -------------------------------------------------------------
   CONFLICT SECTION: LARGE PARALLAX PATTERN & ARTISTIC VIGNETTE
   High-detail sharp character sketches with smooth GPU parallax
   Scale: 960px (Desktop) / 640px (Mobile) - previously 420px
   ------------------------------------------------------------- */
.conflict-parallax-pattern {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  height: 150%;
  background-image: url('./images/brand/ParanormanimalsPatternGreen.png');
  background-repeat: repeat;
  background-size: 960px; /* Scaled up to 960px (228% larger than previous 420px) */
  background-position: center center;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 639px) {
  .conflict-parallax-pattern {
    background-size: 640px; /* Proportionally scaled for mobile screens (152% larger) */
  }
}

.conflict-vignette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* Artistic Vignette: Translucent center for vivid character sketches, smooth bottom melt into next section (#05070b) */
  background: 
    radial-gradient(ellipse at center, rgba(7, 9, 14, 0.1) 0%, rgba(7, 9, 14, 0.35) 60%, rgba(7, 9, 14, 0.8) 100%),
    linear-gradient(to bottom, rgba(7, 9, 14, 0.85) 0%, transparent 12%, transparent 88%, #05070b 100%);
}

/* -------------------------------------------------------------
   CLEAN 3D CARDS (No synthetic borders, pure illustrated art)
   ------------------------------------------------------------- */
.perspective-1000 {
  perspective: 1000px;
}

.card-3d-wrap {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.card-3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 14px;
}

.card-inner-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 14px;
  will-change: transform;
}

.card-inner-flip.flipped {
  transform: rotateY(180deg);
}

/* Clean Front & Back Face - Identical 100% Dimensions */
.card-face-front,
.card-face-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.card-face-front img,
.card-face-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.card-face-back {
  transform: rotateY(180deg);
}

/* Specular Glare / Sheen - Screen blend mode for uniform luminous reflection on both front and back */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.18) 28%,
    rgba(255, 255, 255, 0) 65%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.card-3d:hover .card-glare,
.card-3d.glare-active .card-glare {
  opacity: 1;
}

/* Pure White Flash FX Layer for Snappy Card Switch */
.card-white-flash {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  will-change: opacity;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-1.5deg); }
}

.animate-float-1 { animation: floatSlow 6s ease-in-out infinite; }
.animate-float-2 { animation: floatReverse 7s ease-in-out infinite 1s; }
.animate-float-3 { animation: floatSlow 6.5s ease-in-out infinite 2s; }

/* -------------------------------------------------------------
   HERO CARDS ENSEMBLE: ADAPTIVE MOBILE PORTRAIT & DESKTOP FAN
   Seamlessly calibrated across Mobile Portrait (<640px) and Desktop/Tablet (>=640px)
   ------------------------------------------------------------- */
.hero-cards-ensemble {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Floating animations that respect individual card fan angles via --hero-rot */
@keyframes heroFanFloat1 {
  0%, 100% { transform: translateY(0) rotate(var(--hero-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--hero-rot, 0deg) + 1.5deg)); }
}

@keyframes heroFanFloat2 {
  0%, 100% { transform: translateY(0) rotate(var(--hero-rot, 0deg)); }
  50% { transform: translateY(10px) rotate(calc(var(--hero-rot, 0deg) - 1.5deg)); }
}

@keyframes heroFanFloat3 {
  0%, 100% { transform: translateY(0) rotate(var(--hero-rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--hero-rot, 0deg) + 1deg)); }
}

.hero-card-slot {
  will-change: transform;
}

.hero-card-slot .card-3d,
.hero-card-slot .card-inner-flip,
.hero-card-slot .card-face-front,
.hero-card-slot .card-face-back,
.hero-card-slot .card-glare,
.hero-card-slot img {
  border-radius: var(--card-radius, 14px) !important;
}

/* Mobile Portrait Layout (< 640px) - Perfect Convex Fan Arc & Proportional Radii */
@media (max-width: 639px) {
  .hero-cards-ensemble {
    height: 220px;
    align-items: flex-start;
    padding: 0 6px;
  }

  /* Card 1: Tortuga Zombi (Far Left, Flank Base) */
  .hero-card-slot-1 {
    position: absolute;
    left: 8px;
    top: 70px;
    width: 78px;
    z-index: 10;
    --hero-rot: -12deg;
    --card-radius: 5.5px;
    animation: heroFanFloat1 6s ease-in-out infinite;
  }

  /* Card 2: Vaca Alienígena (Mid Left, Halfway Arch) */
  .hero-card-slot-2 {
    position: absolute;
    left: calc(50% - 108px);
    top: 42px;
    width: 88px;
    z-index: 20;
    --hero-rot: -6deg;
    --card-radius: 6.5px;
    animation: heroFanFloat2 7s ease-in-out infinite 1s;
  }

  /* Card 3: La Hija Humana (Center Apex - Highest Top Point) */
  .hero-card-slot-3 {
    position: relative;
    top: 14px;
    width: 106px;
    z-index: 30;
    --hero-rot: 0deg;
    --card-radius: 7.5px;
    animation: heroFanFloat3 6.5s ease-in-out infinite 2s;
  }

  /* Card 4: Caballo Vampiro (Mid Right, Halfway Arch) */
  .hero-card-slot-4 {
    position: absolute;
    right: calc(50% - 108px);
    top: 42px;
    width: 88px;
    z-index: 20;
    --hero-rot: 6deg;
    --card-radius: 6.5px;
    animation: heroFanFloat1 6.5s ease-in-out infinite 0.5s;
  }

  /* Card 5: Pato Licántropo (Far Right, Flank Base) */
  .hero-card-slot-5 {
    position: absolute;
    right: 8px;
    top: 70px;
    width: 78px;
    z-index: 10;
    --hero-rot: 12deg;
    --card-radius: 5.5px;
    animation: heroFanFloat2 7.5s ease-in-out infinite 1.5s;
  }
}

/* Tablet, Desktop & Mobile Landscape Layout (>= 640px) */
@media (min-width: 640px) {
  .hero-cards-ensemble {
    height: 24rem; /* h-96 = 384px */
    align-items: flex-start;
  }

  /* Card 1: Tortuga Zombi (Far Left) */
  .hero-card-slot-1 {
    position: absolute;
    left: 1rem;
    top: 7.5rem;
    width: 11rem; /* w-44 = 176px */
    z-index: 10;
    --hero-rot: 0deg;
    --card-radius: 12px;
    animation: heroFanFloat1 6s ease-in-out infinite;
  }

  /* Card 2: Vaca Alienígena (Mid Left, Halfway Arch) */
  .hero-card-slot-2 {
    position: absolute;
    left: 9rem;
    top: 4.5rem;
    width: 13rem; /* w-52 = 208px */
    z-index: 20;
    --hero-rot: 0deg;
    --card-radius: 14px;
    animation: heroFanFloat2 7s ease-in-out infinite 1s;
  }

  /* Card 3: La Hija Humana (Center Apex) */
  .hero-card-slot-3 {
    position: relative;
    top: 1.5rem;
    width: 15rem; /* w-60 = 240px */
    z-index: 30;
    --hero-rot: 0deg;
    --card-radius: 16px;
    animation: heroFanFloat3 6.5s ease-in-out infinite 2s;
  }

  /* Card 4: Caballo Vampiro (Mid Right, Halfway Arch) */
  .hero-card-slot-4 {
    position: absolute;
    right: 9rem;
    top: 4.5rem;
    width: 13rem; /* w-52 = 208px */
    z-index: 20;
    --hero-rot: 0deg;
    --card-radius: 14px;
    animation: heroFanFloat1 6.5s ease-in-out infinite;
  }

  /* Card 5: Pato Licántropo (Far Right) */
  .hero-card-slot-5 {
    position: absolute;
    right: 1rem;
    top: 7.5rem;
    width: 11rem; /* w-44 = 176px */
    z-index: 10;
    --hero-rot: 0deg;
    --card-radius: 12px;
    animation: heroFanFloat2 7s ease-in-out infinite 1s;
  }
}

/* -------------------------------------------------------------
   3D ROTATING CYLINDER CAROUSEL (20 Cards, Dynamic Physics)
   JS-driven dynamic speed, scroll-based tilt, opaque double-sided cards
   ------------------------------------------------------------- */
.carousel-3d-scene {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

@media (min-width: 640px) {
  .carousel-3d-scene {
    height: 580px;
    perspective: 1600px;
  }
}

@media (min-width: 1024px) {
  .carousel-3d-scene {
    height: 640px;
    perspective: 1800px;
  }
}

.carousel-3d-pedestal-glow {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.22) 0%, rgba(147, 51, 234, 0.16) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .carousel-3d-pedestal-glow {
    width: 850px;
    height: 160px;
  }
}

.carousel-3d-cylinder {
  position: relative;
  width: 110px;
  height: 150px;
  transform-style: preserve-3d;
  will-change: transform;
  --card-radius: 360px;
}

@media (min-width: 640px) {
  .carousel-3d-cylinder {
    width: 145px;
    height: 197px;
    --card-radius: 480px;
  }
}

@media (min-width: 1024px) {
  .carousel-3d-cylinder {
    width: 170px;
    height: 231px;
    --card-radius: 560px;
  }
}

.cylinder-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* 20 cards distributed over 360deg: 18deg per card */
  transform: rotateY(calc(var(--i) * 18deg)) translateZ(var(--card-radius));
}

.cylinder-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 0, 0, 0.5);
  /* Clean appearance without hover flattening filters */
}

.cylinder-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0b0e17;
  transform-style: preserve-3d;
}

.cylinder-card-front {
  transform: rotateY(0deg);
}

.cylinder-card-back {
  transform: rotateY(180deg);
}

.cylinder-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Modal cinematic theater with translucent backdrop showing landing underneath */
.modal-theater {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.96);
  background-color: rgba(7, 9, 14, 0.72) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-theater.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Modal trailer container with official Vampire Red border and eerie glow */
.modal-trailer-box {
  border: 2.5px solid var(--color-vampire-base, #810909) !important;
  box-shadow: 0 0 50px rgba(129, 9, 9, 0.85), 0 0 90px rgba(185, 26, 26, 0.45) !important;
}

/* Button Tactile Pop with Text Extrude & Clean Hard Shadows */
.btn-game {
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease;
  box-shadow: 0 5px 0 #000000;
  text-decoration: none;
}

.btn-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #000000;
}

.btn-game:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #000000;
}

/* Emoji formatting inside buttons - pure emoji rendering without stroke, extrude or text shadows */
.btn-emoji {
  display: inline-block;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  -webkit-text-stroke: 0px transparent !important;
  text-stroke: 0px transparent !important;
  text-shadow: none !important;
  filter: none !important;
  line-height: 1;
  vertical-align: -0.05em;
  margin-right: 0.35rem;
}

/* -------------------------------------------------------------
   OFFICIAL FAMILY SOLID BUTTONS
   ------------------------------------------------------------- */

/* 1. Verkami (Human Family: Accent #007e27, Base #005e12) */
.btn-verkami {
  background-color: var(--color-human-accent, #007e27) !important;
  border: 2px solid var(--color-human-base, #005e12) !important;
  box-shadow: 0 5px 0 var(--color-human-base, #005e12) !important;
}

.btn-verkami:hover {
  background-color: #00962f !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--color-human-base, #005e12) !important;
}

.btn-verkami:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--color-human-base, #005e12) !important;
}

/* 2. Probar Demo (Zombie Family: Accent #7c149e, Base #550c90) */
.btn-demo {
  background-color: var(--color-zombie-accent, #7c149e) !important;
  border: 2px solid var(--color-zombie-base, #550c90) !important;
  box-shadow: 0 5px 0 var(--color-zombie-base, #550c90) !important;
}

.btn-demo:hover {
  background-color: #921cb9 !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--color-zombie-base, #550c90) !important;
}

.btn-demo:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--color-zombie-base, #550c90) !important;
}

/* 3. Ver Tráiler (Vampire Family: Accent #b91a1a, Base #810909) */
.btn-trailer {
  background-color: var(--color-vampire-accent, #b91a1a) !important;
  border: 2px solid var(--color-vampire-base, #810909) !important;
  box-shadow: 0 5px 0 var(--color-vampire-base, #810909) !important;
}

.btn-trailer:hover {
  background-color: #d12222 !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--color-vampire-base, #810909) !important;
}

.btn-trailer:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--color-vampire-base, #810909) !important;
}

/* Accordion transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 400px;
  transition: max-height 0.45s cubic-bezier(0.1, 1, 0.1, 1);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Sándwich Creativo Visual Layer Stacking */
.sandwich-layer {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.sandwich-layer:hover {
  transform: translateY(-6px) scale(1.02);
}

/* -------------------------------------------------------------
   FAMILIES SECTION: 3-5-5 MINI CARDS & 360º SNAPPY CARD SPIN
   ------------------------------------------------------------- */
@keyframes cardSpin360FromFront {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes cardSpin360FromBack {
  0% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* White flash opacity strictly synchronized with card rotation angle:
   - 0 deg (0% t): 0% opacity
   - 180 deg (11.6% t): 100% opacity (exact halfway peak)
   - 360 deg (100% t): 0% opacity
   Follows ease-in / ease-out (cosine curve) relative to rotation angle */
@keyframes whiteFlashAnim {
  0% {
    opacity: 0;
  }
  3.4% {
    opacity: 0.25;
  }
  5.2% {
    opacity: 0.5;
  }
  7.1% {
    opacity: 0.75;
  }
  11.6% {
    opacity: 1;
  }
  17.6% {
    opacity: 0.75;
  }
  21.9% {
    opacity: 0.5;
  }
  28.2% {
    opacity: 0.25;
  }
  39.3% {
    opacity: 0.07;
  }
  50% {
    opacity: 0.015;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.card-inner-flip.spin-from-front {
  animation: cardSpin360FromFront 0.65s cubic-bezier(0.18, 0.9, 0.25, 1) forwards !important;
  transition: none !important;
  will-change: transform;
}

.card-inner-flip.spin-from-back {
  animation: cardSpin360FromBack 0.65s cubic-bezier(0.18, 0.9, 0.25, 1) forwards !important;
  transition: none !important;
  will-change: transform;
}

.card-inner-flip.spin-from-front .card-white-flash,
.card-inner-flip.spin-from-back .card-white-flash {
  animation: whiteFlashAnim 0.65s linear forwards !important;
  will-change: opacity;
}

.mini-card-thumb {
  position: relative;
  aspect-ratio: 408 / 555;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #11141d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  padding: 0;
  display: block;
}

.mini-card-thumb:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.mini-card-thumb.active-thumb {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--thumb-accent, #00e676) !important;
  box-shadow: 0 0 16px var(--thumb-accent-glow, rgba(0, 230, 118, 0.6)) !important;
  z-index: 20;
}

.mini-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}

@media (min-width: 640px) {
  .mini-card-thumb {
    border-radius: 10px;
    border-width: 2px;
  }
}

/* -------------------------------------------------------------
   CHARACTER INFO SHEET HUD: ANTI-JITTER & ARCADE ENTRANCE FX
   ------------------------------------------------------------- */

.badge-val-pill {
  contain: layout;
}

/* Anti-jitter fixed width tabular numbers with optical vertical baseline correction & dynamic scale */
#f-char-val {
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 2.1rem; /* Exactly 33.6px: perfectly accommodates 1-13 at any scale without layout shifts */
  height: 1.75rem; /* 28px fixed height prevents vertical expansion */
  line-height: 1;
  transform-origin: center center;
  transform: translateY(-2px) scale(var(--val-scale, 1.38));
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  will-change: transform;
}

.badge-val-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 1px; /* Optical harmonization with Mouse Memoirs baseline */
}

/* Arcade pulse when base value counter increments/decrements (preserving dynamic scale and optical alignment) */
@keyframes valuePulse {
  0% {
    transform: translateY(-2px) scale(var(--val-scale, 1));
  }
  50% {
    transform: translateY(-2px) scale(calc(var(--val-scale, 1) * 1.18));
    color: #ffd54f;
  }
  100% {
    transform: translateY(-2px) scale(var(--val-scale, 1));
    color: #ffffff;
  }
}

.anim-value-pulse {
  animation: valuePulse 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Character name quick slide-up & fade entrance */
@keyframes nameSlideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-name-entry {
  animation: nameSlideFadeIn 0.28s cubic-bezier(0.18, 0.9, 0.25, 1) forwards;
}

/* Fast Typewriter terminal cursor */
.typewriter-cursor::after {
  content: '▋';
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
  opacity: 0.85;
  animation: cursorBlink 0.5s step-end infinite;
  color: var(--thumb-accent, #00e676);
  vertical-align: -0.05em;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0; }
}

/* Desktop HUD SVG connector line */
#f-hud-connector-path {
  transition: stroke 0.4s ease;
}



