/* Magyar Szinhaz Experience - Theatrical Scene Style */
/* Dark theatre with realistic curtain transitions */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

/* Base Reset */
.mse-overlay *,
.mse-overlay *::before,
.mse-overlay *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --mse-bg-dark: #1a1612;
  --mse-bg-warm: #2d261f;
  --mse-bg-card: rgba(255, 255, 255, 0.04);
  
  --mse-gold: #d4a855;
  --mse-gold-light: #e8c97a;
  --mse-gold-dim: #a68540;
  
  /* Curtain velvet colors */
  --mse-velvet: #8b2020;
  --mse-velvet-dark: #5a1515;
  --mse-velvet-light: #b83030;
  
  --mse-text-primary: #f5f0e8;
  --mse-text-secondary: #b8a89a;
  --mse-text-muted: #7a6e62;
  
  --mse-font-display: 'Brandon Grotesque', sans-serif;
  --mse-font-body: 'Brandon Grotesque', sans-serif;
  
  --mse-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --mse-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --mse-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Overlay - Theatre Stage with Atmospheric Backgrounds
   ============================================ */
.mse-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--mse-ease), visibility 0.5s;
  background: var(--mse-bg-dark);
  overflow: hidden;
}

/* Ensure ALL children are non-interactive when overlay is hidden */
.mse-overlay:not(.mse-active) * {
  pointer-events: none !important;
}

.mse-overlay.mse-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Closing animation - fade out revealing site (synced with curtain sweep) */
.mse-overlay.mse-closing {
  opacity: 0;
  transition: opacity 2s ease-out;
}

.mse-overlay.mse-closing .mse-content {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mse-overlay.mse-closing .mse-close {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================
   Atmospheric Backgrounds
   ============================================ */

/* Default - Theatre warm */
.mse-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 168, 85, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(139, 58, 58, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse 60% 40% at 90% 70%, rgba(212, 168, 85, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.5s ease;
}

/* Morning Sky - Soft sunrise */
.mse-overlay.mse-sky-morning {
  background: linear-gradient(
    180deg,
    #1a1520 0%,
    #2d1f2d 15%,
    #4a2c4a 30%,
    #8b4565 50%,
    #d4846a 70%,
    #f5c28a 85%,
    #ffecd2 100%
  );
}

.mse-overlay.mse-sky-morning::before {
  background: 
    radial-gradient(ellipse 100% 100% at 50% 110%, rgba(255, 200, 120, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(255, 150, 100, 0.2) 0%, transparent 40%);
}

/* Day Sky - Clear blue */
.mse-overlay.mse-sky-day {
  background: linear-gradient(
    180deg,
    #1a2a3a 0%,
    #2a4a6a 20%,
    #4a7a9a 45%,
    #7ab0d0 70%,
    #a0d4f0 100%
  );
}

.mse-overlay.mse-sky-day::before {
  background: 
    radial-gradient(ellipse 150% 80% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 70% 20%, rgba(255, 255, 200, 0.15) 0%, transparent 50%);
}

/* Evening Sky - Starry dusk with warm horizon */
.mse-overlay.mse-sky-evening {
  background: linear-gradient(
    180deg,
    #0a0d18 0%,
    #0f1525 10%,
    #151d35 25%,
    #1a2545 40%,
    #2a2850 55%,
    #453555 70%,
    #6a4055 80%,
    #8a5050 90%,
    #b06545 100%
  );
}

.mse-overlay.mse-sky-evening::before {
  background: 
    radial-gradient(ellipse 120% 50% at 50% 100%, rgba(255, 140, 80, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 30% 90%, rgba(200, 80, 60, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse 60% 30% at 70% 95%, rgba(255, 160, 100, 0.25) 0%, transparent 40%);
}

/* Stars for evening sky */
.mse-overlay.mse-sky-evening::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    /* Bright stars - visible in upper portion */
    radial-gradient(2px 2px at 25px 25px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 80px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 120px 35px, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 180px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 220px 40px, rgba(255,255,255,0.75), transparent),
    radial-gradient(2px 2px at 280px 30px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 340px 55px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 400px 25px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 450px 45px, rgba(255,255,255,0.65), transparent),
    radial-gradient(3px 3px at 500px 35px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 550px 20px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 600px 50px, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 650px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 150px 100px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 250px 90px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 350px 110px, rgba(255,255,255,0.45), transparent),
    radial-gradient(2px 2px at 480px 85px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 580px 95px, rgba(255,255,255,0.4), transparent),
    /* Dimmer stars scattered */
    radial-gradient(1px 1px at 100px 70px, rgba(200,220,255,0.5), transparent),
    radial-gradient(1px 1px at 200px 75px, rgba(255,240,220,0.45), transparent),
    radial-gradient(1px 1px at 300px 65px, rgba(220,200,255,0.4), transparent),
    radial-gradient(1px 1px at 420px 70px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 520px 60px, rgba(200,230,255,0.45), transparent);
  background-size: 700px 350px;
  animation: mse-twinkle 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  /* Fade stars toward the bottom (warm horizon) */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
}

/* Night Sky - Starry */
.mse-overlay.mse-sky-night {
  background: linear-gradient(
    180deg,
    #05080f 0%,
    #0a1020 30%,
    #101830 50%,
    #152040 70%,
    #1a2850 100%
  );
}

.mse-overlay.mse-sky-night::before {
  background: 
    radial-gradient(ellipse 150% 100% at 50% 0%, rgba(100, 120, 180, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(150, 180, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 20% at 80% 20%, rgba(180, 150, 255, 0.04) 0%, transparent 50%);
}

/* Stars overlay for night - Primary layer */
.mse-overlay.mse-sky-night::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    /* Bright stars */
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.95), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 250px 160px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 350px 200px, rgba(255,255,255,0.6), transparent),
    radial-gradient(3px 3px at 400px 130px, rgba(255,255,255,0.95), transparent),
    radial-gradient(1px 1px at 450px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 500px 180px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 80px 200px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 180px 250px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 280px 220px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 380px 280px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 480px 240px, rgba(255,255,255,0.9), transparent),
    radial-gradient(3px 3px at 550px 100px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 600px 300px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 650px 150px, rgba(255,255,255,0.7), transparent),
    /* Additional dense stars */
    radial-gradient(1px 1px at 35px 150px, rgba(200,220,255,0.6), transparent),
    radial-gradient(1px 1px at 75px 90px, rgba(255,240,220,0.7), transparent),
    radial-gradient(1px 1px at 120px 180px, rgba(220,200,255,0.5), transparent),
    radial-gradient(1px 1px at 220px 120px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 320px 45px, rgba(200,230,255,0.7), transparent),
    radial-gradient(1px 1px at 420px 200px, rgba(255,220,200,0.5), transparent),
    radial-gradient(1px 1px at 520px 80px, rgba(220,220,255,0.6), transparent),
    radial-gradient(1px 1px at 580px 220px, rgba(255,255,230,0.7), transparent),
    radial-gradient(1px 1px at 100px 280px, rgba(200,200,255,0.5), transparent),
    radial-gradient(1px 1px at 240px 300px, rgba(255,230,200,0.6), transparent),
    radial-gradient(1px 1px at 440px 260px, rgba(230,255,255,0.5), transparent),
    radial-gradient(1px 1px at 620px 40px, rgba(255,200,220,0.6), transparent);
  background-size: 700px 350px;
  animation: mse-twinkle 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Secondary stars layer - faster flicker */
.mse-overlay.mse-sky-night .mse-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 55px 45px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 145px 95px, rgba(200,220,255,0.8), transparent),
    radial-gradient(2px 2px at 235px 35px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 325px 145px, rgba(255,240,200,0.7), transparent),
    radial-gradient(1px 1px at 415px 75px, rgba(220,200,255,0.8), transparent),
    radial-gradient(2px 2px at 505px 125px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 595px 195px, rgba(200,255,255,0.7), transparent),
    radial-gradient(1px 1px at 65px 265px, rgba(255,220,255,0.6), transparent),
    radial-gradient(1px 1px at 185px 185px, rgba(255,255,200,0.8), transparent),
    radial-gradient(2px 2px at 275px 255px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 365px 215px, rgba(200,200,255,0.7), transparent),
    radial-gradient(1px 1px at 455px 285px, rgba(255,200,200,0.6), transparent),
    radial-gradient(1px 1px at 545px 245px, rgba(220,255,220,0.7), transparent),
    radial-gradient(1px 1px at 635px 275px, rgba(255,255,255,0.8), transparent);
  background-size: 700px 320px;
  animation: mse-twinkle-fast 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* Nebula/cosmic dust layer */
.mse-overlay.mse-sky-night .mse-content::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 25%, rgba(100, 120, 200, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(180, 100, 180, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 50%, rgba(80, 150, 200, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 30% at 30% 80%, rgba(150, 100, 180, 0.04), transparent 70%),
    radial-gradient(ellipse 45% 45% at 70% 20%, rgba(100, 180, 150, 0.05), transparent 60%);
  animation: mse-nebula-drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes mse-twinkle {
  0% { opacity: 0.5; }
  15% { opacity: 0.9; }
  25% { opacity: 0.4; }
  40% { opacity: 1; }
  55% { opacity: 0.6; }
  70% { opacity: 0.95; }
  85% { opacity: 0.5; }
  100% { opacity: 0.85; }
}

/* Secondary star layer with different timing */
@keyframes mse-twinkle-fast {
  0%, 100% { opacity: 0.3; }
  20% { opacity: 0.8; }
  40% { opacity: 0.4; }
  60% { opacity: 1; }
  80% { opacity: 0.5; }
}

/* Slow nebula drift */
@keyframes mse-nebula-drift {
  0% { transform: translateX(0) translateY(0) scale(1); }
  50% { transform: translateX(15px) translateY(-10px) scale(1.05); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}


/* Midnight - Deep dark with moon glow */
.mse-overlay.mse-sky-midnight {
  background: linear-gradient(
    180deg,
    #020408 0%,
    #050a15 40%,
    #0a1525 70%,
    #0f1a30 100%
  );
}

.mse-overlay.mse-sky-midnight::before {
  background: 
    radial-gradient(ellipse 30% 30% at 75% 15%, rgba(200, 220, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 75% 15%, rgba(150, 180, 220, 0.08) 0%, transparent 60%);
}

/* Theatre Classic - Velvet red ambiance */
.mse-overlay.mse-sky-theatre {
  background: linear-gradient(
    180deg,
    #0a0608 0%,
    #1a0f12 30%,
    #2d1820 60%,
    #3a2028 100%
  );
}

.mse-overlay.mse-sky-theatre::before {
  background: 
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(139, 32, 32, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(212, 168, 85, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(139, 32, 32, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(139, 32, 32, 0.08) 0%, transparent 40%);
}

/* Theatre stars - warm golden sparkles */
.mse-overlay.mse-sky-theatre::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 50px 40px, rgba(212,168,85,0.7), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,230,180,0.6), transparent),
    radial-gradient(2px 2px at 200px 60px, rgba(212,168,85,0.5), transparent),
    radial-gradient(1px 1px at 280px 120px, rgba(255,220,170,0.7), transparent),
    radial-gradient(2px 2px at 350px 40px, rgba(212,168,85,0.6), transparent),
    radial-gradient(1px 1px at 420px 100px, rgba(255,240,200,0.5), transparent),
    radial-gradient(2px 2px at 500px 70px, rgba(212,168,85,0.7), transparent),
    radial-gradient(1px 1px at 580px 130px, rgba(255,220,180,0.6), transparent),
    radial-gradient(1px 1px at 80px 180px, rgba(255,230,190,0.5), transparent),
    radial-gradient(2px 2px at 160px 220px, rgba(212,168,85,0.6), transparent),
    radial-gradient(1px 1px at 240px 170px, rgba(255,215,160,0.7), transparent),
    radial-gradient(1px 1px at 320px 240px, rgba(212,168,85,0.5), transparent),
    radial-gradient(2px 2px at 400px 190px, rgba(255,225,175,0.6), transparent),
    radial-gradient(1px 1px at 480px 250px, rgba(212,168,85,0.7), transparent),
    radial-gradient(1px 1px at 550px 200px, rgba(255,235,185,0.5), transparent),
    radial-gradient(2px 2px at 620px 160px, rgba(212,168,85,0.6), transparent),
    radial-gradient(1px 1px at 100px 280px, rgba(255,220,170,0.5), transparent),
    radial-gradient(1px 1px at 220px 300px, rgba(212,168,85,0.6), transparent),
    radial-gradient(2px 2px at 380px 270px, rgba(255,230,180,0.7), transparent),
    radial-gradient(1px 1px at 520px 290px, rgba(212,168,85,0.5), transparent);
  background-size: 700px 350px;
  animation: mse-twinkle 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Theatre ambient glow layer */
.mse-overlay.mse-sky-theatre .mse-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(212, 168, 85, 0.04), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 30%, rgba(180, 120, 80, 0.03), transparent 55%),
    radial-gradient(ellipse 60% 30% at 50% 85%, rgba(212, 168, 85, 0.05), transparent 50%),
    radial-gradient(ellipse 35% 45% at 10% 70%, rgba(139, 32, 32, 0.04), transparent 50%),
    radial-gradient(ellipse 35% 45% at 90% 70%, rgba(139, 32, 32, 0.04), transparent 50%);
  animation: mse-nebula-drift 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Theatre secondary sparkle layer */
.mse-overlay.mse-sky-theatre .mse-content::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 70px 55px, rgba(255,220,170,0.8), transparent),
    radial-gradient(1px 1px at 170px 110px, rgba(212,168,85,0.7), transparent),
    radial-gradient(2px 2px at 260px 45px, rgba(255,235,190,0.75), transparent),
    radial-gradient(1px 1px at 370px 160px, rgba(212,168,85,0.65), transparent),
    radial-gradient(1px 1px at 450px 85px, rgba(255,225,175,0.8), transparent),
    radial-gradient(1px 1px at 530px 145px, rgba(212,168,85,0.7), transparent),
    radial-gradient(2px 2px at 610px 210px, rgba(255,230,180,0.75), transparent),
    radial-gradient(1px 1px at 90px 275px, rgba(212,168,85,0.6), transparent),
    radial-gradient(1px 1px at 200px 195px, rgba(255,220,165,0.75), transparent),
    radial-gradient(1px 1px at 310px 265px, rgba(212,168,85,0.7), transparent),
    radial-gradient(2px 2px at 430px 225px, rgba(255,235,185,0.8), transparent),
    radial-gradient(1px 1px at 570px 255px, rgba(212,168,85,0.65), transparent);
  background-size: 680px 320px;
  animation: mse-twinkle-fast 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Aurora - Magical northern lights */
.mse-overlay.mse-sky-aurora {
  background: linear-gradient(
    180deg,
    #050510 0%,
    #0a0a20 30%,
    #101535 60%,
    #152045 100%
  );
}

.mse-overlay.mse-sky-aurora::before {
  background: 
    radial-gradient(ellipse 100% 40% at 30% 20%, rgba(100, 255, 180, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 30% at 60% 30%, rgba(80, 200, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 25% at 45% 25%, rgba(150, 100, 255, 0.08) 0%, transparent 50%);
  animation: mse-aurora 8s ease-in-out infinite alternate;
}

@keyframes mse-aurora {
  0% {
    transform: translateX(-5%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateX(5%) scale(1.1);
    opacity: 1;
  }
}

/* ============================================
   Floating Background Images
   ============================================ */
.mse-floating-images {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Flip card container */
.mse-flip-card {
  position: absolute;
  perspective: 1000px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* Only enable flip card interactions when overlay is active */
.mse-overlay.mse-active .mse-flip-card {
  pointer-events: auto;
}

.mse-flip-card.mse-visible {
  opacity: 1;
}

.mse-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.mse-flip-card.mse-flipped .mse-flip-card-inner {
  transform: rotateY(180deg);
}

.mse-flip-card-front,
.mse-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.mse-flip-card-back {
  transform: rotateY(180deg);
}

.mse-flip-card-front img,
.mse-flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Legacy single image support */
.mse-floating-img {
  position: absolute;
  border-radius: 8px;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.mse-floating-img.mse-visible {
  opacity: 1;
}

/* Different depth layers for flip cards - increased visibility */
.mse-flip-card.mse-layer-1 { z-index: 1; }
.mse-flip-card.mse-layer-1 .mse-flip-card-front img,
.mse-flip-card.mse-layer-1 .mse-flip-card-back img { filter: blur(3px); }
.mse-flip-card.mse-layer-1.mse-visible { opacity: 0.18; }

.mse-flip-card.mse-layer-2 { z-index: 2; }
.mse-flip-card.mse-layer-2 .mse-flip-card-front img,
.mse-flip-card.mse-layer-2 .mse-flip-card-back img { filter: blur(2px); }
.mse-flip-card.mse-layer-2.mse-visible { opacity: 0.24; }

.mse-flip-card.mse-layer-3 { z-index: 3; }
.mse-flip-card.mse-layer-3 .mse-flip-card-front img,
.mse-flip-card.mse-layer-3 .mse-flip-card-back img { filter: blur(1.5px); }
.mse-flip-card.mse-layer-3.mse-visible { opacity: 0.30; }

.mse-flip-card.mse-layer-4 { z-index: 4; }
.mse-flip-card.mse-layer-4 .mse-flip-card-front img,
.mse-flip-card.mse-layer-4 .mse-flip-card-back img { filter: blur(1px); }
.mse-flip-card.mse-layer-4.mse-visible { opacity: 0.35; }

.mse-flip-card.mse-layer-5 { z-index: 5; }
.mse-flip-card.mse-layer-5 .mse-flip-card-front img,
.mse-flip-card.mse-layer-5 .mse-flip-card-back img { filter: blur(0.5px); }
.mse-flip-card.mse-layer-5.mse-visible { opacity: 0.40; }

/* Hover effect - reduce blur on hover */
.mse-flip-card:hover .mse-flip-card-front img,
.mse-flip-card:hover .mse-flip-card-back img {
  filter: blur(0px) !important;
}

.mse-flip-card:hover {
  opacity: 0.5 !important;
  z-index: 10 !important;
}

/* Smooth transitions for dynamic image changes */
.mse-flip-card {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mse-flip-card-front img,
.mse-flip-card-back img {
  transition: opacity 0.3s ease;
}

/* Highlight effect when showing play-specific images */
.mse-flip-card.mse-play-highlight {
  z-index: 15 !important;
  opacity: 0.85 !important;
  transform: scale(1.05);
}

.mse-flip-card.mse-play-highlight .mse-flip-card-front img,
.mse-flip-card.mse-play-highlight .mse-flip-card-back img {
  filter: blur(0px) !important;
}

.mse-flip-card.mse-play-highlight .mse-flip-card-front,
.mse-flip-card.mse-play-highlight .mse-flip-card-back {
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* Force visibility during play image transition */
.mse-flip-card.mse-play-transitioning {
  opacity: 0 !important;
  transition: opacity 0.4s ease-out !important;
}

.mse-flip-card.mse-play-showing {
  opacity: 0.75 !important;
  transition: opacity 0.5s ease-in !important;
}

.mse-flip-card.mse-play-showing .mse-flip-card-front img,
.mse-flip-card.mse-play-showing .mse-flip-card-back img {
  filter: blur(0.5px) !important;
}

/* Legacy single image layers */
.mse-floating-img.mse-layer-1 {
  filter: blur(4px);
  opacity: 0.08;
  z-index: 1;
}

.mse-floating-img.mse-layer-1.mse-visible {
  opacity: 0.08;
}

.mse-floating-img.mse-layer-2 {
  filter: blur(3px);
  opacity: 0.12;
  z-index: 2;
}

.mse-floating-img.mse-layer-2.mse-visible {
  opacity: 0.12;
}

.mse-floating-img.mse-layer-3 {
  filter: blur(2px);
  opacity: 0.15;
  z-index: 3;
}

.mse-floating-img.mse-layer-3.mse-visible {
  opacity: 0.15;
}

.mse-floating-img.mse-layer-4 {
  filter: blur(1px);
  opacity: 0.18;
  z-index: 4;
}

.mse-floating-img.mse-layer-4.mse-visible {
  opacity: 0.18;
}

.mse-floating-img.mse-layer-5 {
  filter: blur(0.5px);
  opacity: 0.2;
  z-index: 5;
}

.mse-floating-img.mse-layer-5.mse-visible {
  opacity: 0.2;
}

/* ============================================
   Theatrical Curtain
   ============================================ */
.mse-curtain-body {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.mse-curtain-container {
  position: absolute;
  display: flex;
  top: -10%;
  width: 55vw;
  height: 120%;
  transform-style: preserve-3d;
  overflow: visible;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left curtain - closed: covers left half + overlap to center */
#mse-curtain-left {
  left: 0;
  justify-content: flex-end;
  transform: translateX(0);
}

/* Right curtain - closed: covers right half + overlap to center */
#mse-curtain-right {
  right: 0;
  justify-content: flex-start;
  transform: translateX(0);
}

/* Curtain open state - slide off leaving exactly 100px visible */
.mse-curtain-body.mse-curtain-open #mse-curtain-left {
  transform: translateX(calc(-55vw + 100px));
}

.mse-curtain-body.mse-curtain-open #mse-curtain-right {
  transform: translateX(calc(55vw - 100px));
}

/* Curtain EXIT state - fully off screen (for closing animation) */
.mse-curtain-body.mse-curtain-exit #mse-curtain-left {
  transform: translateX(-110vw);
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mse-curtain-body.mse-curtain-exit #mse-curtain-right {
  transform: translateX(110vw);
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mse-curtain-body.mse-curtain-exit .mse-curtain-overlay {
  opacity: 0;
  transition: opacity 2.5s ease-out;
}

/* Individual curtain folds */
.mse-curtain-fold {
  display: inline-block;
  width: 15vw;
  height: 120vh;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    to left,
    var(--mse-velvet) 4vw,
    var(--mse-velvet-dark) 12vw,
    var(--mse-velvet-light) 15vw
  );
  background-size: 100% 100%;
  transform-origin: 0 0%;
  transform: rotate(3deg);
  animation: mse-curtain-swing 5s ease-in-out infinite;
}

/* Fold overlap - creates depth */
.mse-curtain-fold:nth-child(n+2) {
  margin-left: -10vw;
}

/* Staggered animation for natural movement */
.mse-curtain-fold:nth-child(1) { animation-delay: 0s; }
.mse-curtain-fold:nth-child(2) { animation-delay: -0.1s; }
.mse-curtain-fold:nth-child(3) { animation-delay: -0.2s; }
.mse-curtain-fold:nth-child(4) { animation-delay: -0.3s; }
.mse-curtain-fold:nth-child(5) { animation-delay: -0.4s; }
.mse-curtain-fold:nth-child(6) { animation-delay: -0.5s; }
.mse-curtain-fold:nth-child(7) { animation-delay: -0.6s; }
.mse-curtain-fold:nth-child(8) { animation-delay: -0.7s; }
.mse-curtain-fold:nth-child(9) { animation-delay: -0.8s; }
.mse-curtain-fold:nth-child(10) { animation-delay: -0.9s; }
.mse-curtain-fold:nth-child(11) { animation-delay: -1s; }
.mse-curtain-fold:nth-child(12) { 
  width: 10vw;
  background: repeating-linear-gradient(
    to left,
    var(--mse-velvet) 4vw,
    var(--mse-velvet-dark) 8vw,
    var(--mse-velvet-light) 10vw
  );
  animation-delay: -1.1s; 
}

@keyframes mse-curtain-swing {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
}

/* Top shadow overlay */
.mse-curtain-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 30%);
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.mse-curtain-body.mse-curtain-open .mse-curtain-overlay {
  opacity: 0.3;
}

/* ============================================
   Close Button
   ============================================ */
.mse-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  color: var(--mse-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  opacity: 0;
}

.mse-curtain-body.mse-curtain-open ~ .mse-close {
  opacity: 1;
}

.mse-close:hover {
  background: rgba(0, 0, 0, 0.7);
  color: var(--mse-text-primary);
  transform: rotate(90deg);
}

/* Icon-only home button next to the close button */
.mse-home {
  position: fixed;
  top: 1.5rem;
  right: 5rem;
  z-index: 150;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  color: var(--mse-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  opacity: 0;
  pointer-events: none;
}

.mse-curtain-body.mse-curtain-open ~ .mse-home {
  opacity: 1;
  pointer-events: auto;
}

/* No point showing "home" while already on the greeting scene */
.mse-overlay:has(.mse-scene-greeting.mse-scene-active) .mse-home {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mse-home:hover {
  background: rgba(0, 0, 0, 0.7);
  color: var(--mse-text-primary);
  transform: scale(1.08);
}

.mse-overlay.mse-closing .mse-home {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================
   Content Area - Behind Curtain
   ============================================ */
.mse-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

/* Show content when curtains are open */
.mse-curtain-body.mse-curtain-open ~ .mse-content {
  opacity: 1;
}

/* ============================================
   Scenes
   ============================================ */
   .mse-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    padding: 2rem;
    transition: opacity 0.5s var(--mse-ease);
    background: radial-gradient(ellipse at center, rgb(0 0 0 / 54%) 0%, rgb(0 0 0 / 51%) 100%);
}

.mse-scene-active {
  opacity: 1;
  pointer-events: auto;
}

.mse-scene-inner {
  width: 100%;
  max-width: 80vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Group scene - compact layout, button close to content.
   Scrollable: when content is taller than the viewport (e.g. the age
   selector is open), flex-centering would clip it at both ends, so the
   scene scrolls and the inner is centered with auto margins instead. */
.mse-scene-group {
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--mse-gold-dim) transparent;
}

.mse-scene-group::-webkit-scrollbar {
  width: 6px;
}

.mse-scene-group::-webkit-scrollbar-track {
  background: transparent;
}

.mse-scene-group::-webkit-scrollbar-thumb {
  background: var(--mse-gold-dim);
  border-radius: 3px;
}

.mse-scene-group .mse-scene-inner {
  max-height: none;
  overflow: visible;
  padding-bottom: 1rem;
  /* Auto margins win over align-items: centered when it fits,
     fully reachable via scroll when it doesn't */
  margin-top: auto;
  margin-bottom: auto;
}

.mse-scene-group .mse-question {
  margin-bottom: 1.5rem;
}

/* Button immediately after total - override default margins */
.mse-scene-group .mse-btn-primary.mse-btn-group-next {
  margin-top: 1.5rem !important;
}

/* Compact the group scene on short viewports so it fits without scrolling */
@media (max-height: 820px) {
  .mse-scene-group .mse-question {
    margin-bottom: 1rem;
  }
  
  .mse-group-type-selector {
    margin-bottom: 1rem;
  }
  
  .mse-group-type-btn {
    padding: 1rem 1.5rem;
  }
  
  .mse-group-counters {
    margin-bottom: 0.5rem;
  }
  
  .mse-counter-ring {
    width: 70px;
    height: 70px;
  }
  
  .mse-counter-value {
    font-size: 1.75rem;
  }
  
  .mse-group-total {
    margin-bottom: 0.5rem;
  }
  
  .mse-age-constellation {
    margin-top: 0.75rem;
    gap: 0.75rem;
  }
  
  .mse-scene-group .mse-btn-primary.mse-btn-group-next {
    margin-top: 1rem !important;
  }
}

/* ============================================
   Welcome Scene
   ============================================ */
.mse-title {
  font-family: var(--mse-font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--mse-text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.mse-title span {
  display: block;
  color: var(--mse-gold);
}

.mse-subtitle {
  font-family: var(--mse-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mse-text-secondary);
  max-width: 480px;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* ============================================
   Scene Header
   ============================================ */
.mse-scene-header {
  margin-bottom: 2.5rem;
}

.mse-scene-title {
  font-family: var(--mse-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--mse-text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mse-scene-subtitle {
  font-family: var(--mse-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(184, 184, 184, 1);
  text-transform: uppercase;
  letter-spacing: 5.3px;
  margin-bottom: 30px;
}

/* ============================================
   Question Text
   ============================================ */
.mse-question {
  font-family: var(--mse-font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--mse-text-primary);
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Group Type Selector
   ============================================ */
.mse-group-type-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mse-group-type-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mse-text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Shimmer for group buttons */
.mse-group-type-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  animation: mse-btn-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.mse-group-type-btn .material-symbols-outlined {
  font-size: 2.5rem;
  transition: transform 0.3s var(--mse-ease);
}

.mse-group-type-label {
  font-family: var(--mse-font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mse-group-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--mse-text-primary);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mse-group-type-btn:hover .material-symbols-outlined {
  transform: scale(1.1);
  color: var(--mse-gold);
}

.mse-group-type-btn.mse-active {
  background: rgba(212, 168, 85, 0.12);
  border-color: var(--mse-gold);
  color: var(--mse-gold-light);
  box-shadow: 
    0 0 20px rgba(212, 168, 85, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mse-group-type-btn.mse-active .material-symbols-outlined {
  color: var(--mse-gold);
  text-shadow: 0 0 12px rgba(212, 168, 85, 0.3);
}

/* Counters Section - initially visible */
.mse-counters-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--mse-ease), transform 0.4s var(--mse-ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Button inside counters section */
.mse-btn-group-next {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ============================================
   Group Counters
   ============================================ */
.mse-group-counters {
  display: flex;
  gap: 8rem;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.mse-counter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.mse-counter-label-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mse-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mse-counter-label-top .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--mse-gold);
}

.mse-group-total {
  font-family: var(--mse-font-body);
  font-size: 1rem;
  color: var(--mse-text-muted);
  margin-bottom: 1rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mse-group-total span {
  font-weight: 600;
  color: var(--mse-gold);
}

/* ============================================
   Floating Counter
   ============================================ */
.mse-counter-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.mse-counter-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(212, 168, 85, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 0 20px rgba(212, 168, 85, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
}

.mse-counter-value {
  font-family: var(--mse-font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--mse-gold);
  line-height: 1;
  text-shadow: 0 0 15px rgba(212, 168, 85, 0.4);
}

.mse-counter-label {
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.mse-counter-btn {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mse-gold);
  border: 1px solid rgba(212, 168, 85, 0.25);
  cursor: pointer;
  transition: all 0.2s var(--mse-ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mse-counter-btn.mse-minus { 
  left: -4.5rem; 
}
.mse-counter-btn.mse-plus { 
  right: -4.5rem; 
}

.mse-counter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 168, 85, 0.4);
  color: var(--mse-gold-light);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mse-counter-btn:active {
  background: rgba(212, 168, 85, 0.15);
  border-color: var(--mse-gold);
  box-shadow: 
    0 0 15px rgba(212, 168, 85, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Toggle Options
   ============================================ */
.mse-toggle-orbit {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mse-toggle-option {
  padding: 0.875rem 1.75rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mse-text-secondary);
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s var(--mse-ease);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
}

.mse-toggle-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--mse-text-primary);
}

.mse-toggle-option.mse-active {
  background: rgba(212, 168, 85, 0.15);
  border-color: var(--mse-gold-dim);
  color: var(--mse-gold-light);
}

/* ============================================
   Age Constellation (Children ages 2-6)
   ============================================ */
.mse-age-constellation {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--mse-ease), transform 0.4s var(--mse-ease);
  pointer-events: none;
}

.mse-age-constellation.mse-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mse-age-constellation.mse-age-required .mse-age-nodes {
  box-shadow: 0 0 0 2px rgba(212, 168, 85, 0.4);
  border-radius: 3rem;
  padding: 0.75rem 1rem;
}

.mse-age-error {
  margin-top: 0.5rem;
  font-family: var(--mse-font-body);
  font-size: 0.8125rem;
  color: var(--mse-gold-light);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s var(--mse-ease);
}

.mse-age-error.mse-visible {
  opacity: 1;
  transform: translateY(0);
}

.mse-age-label {
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-text-muted);
  margin: 0;
}

.mse-age-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  max-width: 520px;
  margin: 0 auto;
}

.mse-age-node {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9375rem;
  color: var(--mse-text-secondary);
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--mse-ease);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
}

.mse-age-node:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--mse-text-primary);
  transform: scale(1.02);
}

.mse-age-node.mse-active {
  background: var(--mse-gold);
  border-color: var(--mse-gold);
  color: var(--mse-bg-dark);
  transform: scale(1.05);
}

/* ============================================
   Preferences Cloud
   ============================================ */
.mse-preferences-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.mse-preference-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.mse-cluster-label {
  font-family: var(--mse-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mse-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mse-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  margin: 0 auto;
}

.mse-chip {
  position: relative;
  padding: 0.5rem 1.25rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mse-text-primary);
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.25s var(--mse-ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
  inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: mse-chip-float 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--chip-index, 0) * 0.3s);
}

/* Staggered floating animation for organic feel */
.mse-chip:nth-child(odd) {
  animation-name: mse-chip-float-alt;
}

@keyframes mse-chip-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-2px) translateX(1px); }
}

@keyframes mse-chip-float-alt {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-1.5px) translateX(-1px); }
}

.mse-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--mse-text-primary);
  box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mse-chip.mse-active {
  background: rgba(212, 168, 85, 0.12);
  border-color: var(--mse-gold);
  color: var(--mse-gold-light);
  box-shadow: 
    0 0 15px rgba(212, 168, 85, 0.15),
    0 3px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* "Mindegy" chip - visually distinct from the specific options */
.mse-chip-any {
  border-style: dashed;
  font-style: italic;
}

.mse-chip-any.mse-active {
  border-style: solid;
  font-style: normal;
}

/* ============================================
   Genre Cards (Fan Animation)
   ============================================ */
.mse-scene-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}

.mse-scene-cards .mse-question {
  margin-bottom: 0.5rem;
}

.mse-genre-cards-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 480px;
  perspective: 1200px;
  margin: 1rem 0;
}

.mse-genre-card {
  position: absolute;
  width: 220px;
  height: auto;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease,
              filter 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
              0 5px 15px rgba(0, 0, 0, 0.3);
  /* Initial state - hidden for animation */
  opacity: 0;
  transform: translateY(150px) rotateX(60deg) scale(0.7);
  /* Subtle floating animation */
  animation: mse-card-float 6s ease-in-out infinite;
  animation-play-state: paused;
}

/* Floating animation for cards - each card has different timing */
@keyframes mse-card-float {
  0%, 100% { 
    transform: translateX(var(--card-x)) translateY(var(--card-y)) rotate(var(--card-rot)); 
  }
  25% { 
    transform: translateX(var(--card-x)) translateY(calc(var(--card-y) - 8px)) rotate(calc(var(--card-rot) + 1deg)); 
  }
  50% { 
    transform: translateX(calc(var(--card-x) + 3px)) translateY(calc(var(--card-y) - 4px)) rotate(var(--card-rot)); 
  }
  75% { 
    transform: translateX(calc(var(--card-x) - 2px)) translateY(calc(var(--card-y) - 10px)) rotate(calc(var(--card-rot) - 1deg)); 
  }
}

/* Enable floating animation after cards are visible */
.mse-genre-card.mse-card-visible {
  animation-play-state: running;
}

/* Stagger animation timing for organic feel */
.mse-genre-card:nth-child(1) { animation-delay: 0s; animation-duration: 7s; }
.mse-genre-card:nth-child(2) { animation-delay: -1.5s; animation-duration: 6s; }
.mse-genre-card:nth-child(3) { animation-delay: -3s; animation-duration: 8s; }
.mse-genre-card:nth-child(4) { animation-delay: -0.8s; animation-duration: 6.5s; }
.mse-genre-card:nth-child(5) { animation-delay: -2.2s; animation-duration: 7.5s; }

.mse-genre-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Card label overlay (admin-editable text) - vertically centered with a
   gold gradient fill; the element hugs the text so the gradient spans
   exactly the visible lines */
.mse-genre-card-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.875rem;
  font-family: var(--mse-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.02em;
  color: #f7c948; /* fallback when background-clip: text is unsupported */
  background: linear-gradient(180deg, #ffeebc 0%, #f7c948 48%, #e8930c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* drop-shadow follows the gradient glyphs (text-shadow would bleed through
     the transparent fill) */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

/* Card fan positions (set by JS, these are fallback) */
.mse-genre-card:nth-child(1) { --card-x: -380px; --card-y: 35px; --card-rot: -12deg; }
.mse-genre-card:nth-child(2) { --card-x: -190px; --card-y: 8px; --card-rot: -6deg; }
.mse-genre-card:nth-child(3) { --card-x: 0px; --card-y: 0px; --card-rot: 0deg; }
.mse-genre-card:nth-child(4) { --card-x: 190px; --card-y: 8px; --card-rot: 6deg; }
.mse-genre-card:nth-child(5) { --card-x: 380px; --card-y: 35px; --card-rot: 12deg; }

/* Visible state after animation */
.mse-genre-card.mse-card-visible {
  opacity: 1;
  transform: translateX(var(--card-x)) translateY(var(--card-y)) rotate(var(--card-rot));
}

/* Hover effect - pause floating, strong glow */
.mse-genre-card:hover {
  animation-play-state: paused;
  transform: translateX(var(--card-x)) translateY(calc(var(--card-y) - 25px)) rotate(var(--card-rot)) scale(1.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
              0 15px 35px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(212, 168, 85, 0.4),
              0 0 100px rgba(212, 168, 85, 0.25),
              0 0 150px rgba(212, 168, 85, 0.15);
  z-index: 10;
}

/* Selected state */
.mse-genre-card.mse-selected {
  animation-play-state: paused;
  transform: translateX(var(--card-x)) translateY(calc(var(--card-y) - 15px)) rotate(var(--card-rot)) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
              0 0 0 3px var(--mse-gold),
              0 0 40px rgba(212, 168, 85, 0.5),
              0 0 80px rgba(212, 168, 85, 0.3);
  z-index: 5;
}

.mse-genre-card.mse-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(212, 168, 85, 0.15) 0%, 
    transparent 50%,
    rgba(212, 168, 85, 0.1) 100%);
  pointer-events: none;
}

/* Non-selected cards when something is selected */
.mse-genre-cards-container.has-selection .mse-genre-card:not(.mse-selected) {
  filter: brightness(0.7);
}

.mse-genre-cards-container.has-selection .mse-genre-card:not(.mse-selected):hover {
  filter: brightness(1);
}

/* Mobile responsive cards */
@media (max-width: 1200px) {
  .mse-genre-cards-container {
    height: 420px;
  }
  
  .mse-genre-card {
    width: 180px;
  }
  
  .mse-genre-card:nth-child(1) { --card-x: -280px; --card-y: 25px; --card-rot: -10deg; }
  .mse-genre-card:nth-child(2) { --card-x: -140px; --card-y: 5px; --card-rot: -5deg; }
  .mse-genre-card:nth-child(3) { --card-x: 0px; --card-y: 0px; --card-rot: 0deg; }
  .mse-genre-card:nth-child(4) { --card-x: 140px; --card-y: 5px; --card-rot: 5deg; }
  .mse-genre-card:nth-child(5) { --card-x: 280px; --card-y: 25px; --card-rot: 10deg; }
}

@media (max-width: 1024px) {
  .mse-genre-cards-container {
    height: 380px;
  }
  
  .mse-genre-card {
    width: 150px;
  }
  
  .mse-genre-card:nth-child(1) { --card-x: -240px; --card-y: 25px; --card-rot: -10deg; }
  .mse-genre-card:nth-child(2) { --card-x: -120px; --card-y: 5px; --card-rot: -5deg; }
  .mse-genre-card:nth-child(3) { --card-x: 0px; --card-y: 0px; --card-rot: 0deg; }
  .mse-genre-card:nth-child(4) { --card-x: 120px; --card-y: 5px; --card-rot: 5deg; }
  .mse-genre-card:nth-child(5) { --card-x: 240px; --card-y: 25px; --card-rot: 10deg; }
}

@media (max-width: 768px) {
  .mse-genre-cards-container {
    height: 320px;
    flex-wrap: wrap;
    gap: 0.5rem;
    perspective: none;
  }
  
  .mse-genre-card {
    position: relative;
    width: calc(33.33% - 0.5rem);
    max-width: 120px;
    transform: none !important;
    opacity: 1;
  }
  
  .mse-genre-card.mse-card-visible {
    transform: none;
  }
  
  .mse-genre-card:hover {
    transform: scale(1.05) !important;
  }
  
  .mse-genre-card.mse-selected {
    transform: scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
                0 0 0 2px var(--mse-gold),
                0 0 20px rgba(212, 168, 85, 0.3);
  }
}

@media (max-width: 480px) {
  .mse-genre-cards-container {
    height: auto;
    padding: 1rem 0;
  }
  
  .mse-genre-card {
    width: calc(50% - 0.5rem);
    max-width: 140px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.mse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--mse-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  text-decoration: none;
}

.mse-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mse-btn .material-symbols-outlined {
  font-size: 1.125rem;
  transition: transform 0.3s var(--mse-ease);
}
.mse-btn-primary {
  position: relative;
  padding: 0.60rem 2rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mse-gold);
  margin-top: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212, 168, 85, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
  inset 0 1px 0 rgba(255, 255, 255, 0.1),
  inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-shadow: 0 0 12px rgba(212, 168, 85, 0.4);
}

/* Shimmer animation overlay */
.mse-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    transparent 100%
  );
  animation: mse-btn-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.mse-btn-primary::after {
  display: none;
}

.mse-btn-primary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(212, 168, 85, 0.5);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(212, 168, 85, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.mse-btn-primary:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* Shimmer keyframes */
@keyframes mse-btn-shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}
.mse-btn-secondary {
  position: relative;
  padding: 0.6rem 2rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mse-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25),
  inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mse-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  animation: mse-btn-shimmer 5s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

.mse-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mse-btn-outline {
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mse-gold);
  border: 1px solid var(--mse-gold-dim);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  text-transform: uppercase;
}

.mse-btn-outline:hover {
  background: rgba(212, 168, 85, 0.1);
  border-color: var(--mse-gold);
}

.mse-btn-back {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mse-bg-card);
  color: var(--mse-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
}

.mse-btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mse-text-primary);
}

/* ============================================
   Scene Footer
   ============================================ */
.mse-scene-footer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 50;
}

/* Reset margin for buttons in footer */
.mse-scene-footer .mse-btn-primary,
.mse-scene-footer .mse-btn-secondary {
  margin-top: 0;
  min-width: 160px;
}

/* ============================================
   Recommendations
   ============================================ */
.mse-scene-recommendations .mse-scene-inner {
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  padding-bottom: 4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mse-gold-dim) transparent;
}

.mse-scene-recommendations .mse-scene-inner::-webkit-scrollbar {
  width: 6px;
}

.mse-scene-recommendations .mse-scene-inner::-webkit-scrollbar-track {
  background: transparent;
}

.mse-scene-recommendations .mse-scene-inner::-webkit-scrollbar-thumb {
  background: var(--mse-gold-dim);
  border-radius: 3px;
}

/* ============================================
   User Choices Summary
   ============================================ */
   .mse-choices-summary {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(212, 168, 85, 0.08);
    border: 1px solid rgba(212, 168, 85, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(50px);
}

.mse-choices-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.mse-choice-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-text-secondary);
}

.mse-choice-item .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--mse-gold);
}

.mse-choice-value {
  color: var(--mse-gold-light);
  font-weight: 500;
}

/* Hide actor choice by default, show when has selection */
#mse-choice-actor {
  display: none;
}

#mse-choice-actor.mse-visible {
  display: flex;
}

@media (max-width: 640px) {
  .mse-choices-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .mse-choices-summary {
    padding: 0.875rem 1rem;
  }
}

.mse-plays-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* 3-Column Play Card Layout */
.mse-play-card {
  display: grid;
  grid-template-columns: 180px 1fr 380px;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgb(89 41 14 / 40%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--mse-ease);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px) !important;
  align-items: start;
}

.mse-play-card.mse-visible {
  opacity: 1;
  transform: translateY(0);
}

.mse-play-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Column 1: Image */
.mse-play-image {
  flex-shrink: 0;
  width: 180px;
  max-height: 280px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--mse-bg-warm);
  position: relative;
}

.mse-play-image img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--mse-ease);
}

.mse-play-image-placeholder {
  width: 100%;
  height: 250px;
  background: #2d261f;
}

.mse-play-card:hover .mse-play-image img {
  transform: scale(1.05);
}

/* Column 2: Content */
.mse-play-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  gap: 0.625rem;
}

/* Column 3: Showtimes - Compact List */
.mse-play-showtimes-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: visible; /* Allow popups to show */
  position: relative;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(140, 105, 125, 0.3);

}

.mse-play-showtimes-column .mse-showtimes-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ebb44b;
  margin-bottom: 0.25rem;
}

.mse-play-showtimes-column .mse-showtimes-label .material-symbols-outlined {
  font-size: 0.875rem;
  color: #ebb44b;
}

.mse-play-showtimes-column .mse-showtimes-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: visible; /* Allow popups to show */
}

/* Compact list-style showtime items - purple/velvet theme */
.mse-play-showtimes-column .mse-showtime-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: unset;
  width: 100%;
  padding: 0.375rem 0.625rem;
  background: rgba(90, 60, 90, 0.35);
  border-radius: 0.375rem;
  font-family: var(--mse-font-body);
  text-align: left;
  border: 1px solid rgba(140, 105, 140, 0.3);
  gap: 0.5rem;
}

.mse-play-showtimes-column .mse-showtime-item:hover {
  background: rgba(100, 70, 110, 0.5);
  border-color: rgba(160, 120, 160, 0.5);
}

/* Clickable showtime links in column layout */
.mse-play-showtimes-column .mse-showtime-link {
  grid-template-columns: 1fr 1fr 1fr auto;
  text-decoration: none;
  cursor: pointer;
}

.mse-play-showtimes-column .mse-showtime-link:hover {
  background: rgba(235, 180, 75, 0.2);
  border-color: var(--mse-gold-dim);
}

.mse-play-showtimes-column .mse-showtime-link .mse-ticket-icon {
  position: static;
  font-size: 0.875rem;
  color: var(--mse-gold-dim);
  opacity: 0;
  transition: opacity 0.2s ease;
  justify-self: end;
}

.mse-play-showtimes-column .mse-showtime-link:hover .mse-ticket-icon {
  opacity: 1;
}

/* Availability states in column layout */
.mse-play-showtimes-column .mse-showtime-item.mse-sold-out {
  opacity: 0.4;
  pointer-events: none;
}

.mse-play-showtimes-column .mse-showtime-item.mse-sold-out::after {
  font-size: 0.5625rem;
  padding: 0.0625rem 0.25rem;
}

/* Low stock popup positioning for showtimes column - show ABOVE to avoid overlap */
.mse-play-showtimes-column .mse-showtime-item.mse-low-stock {
  z-index: 1;
}

.mse-play-showtimes-column .mse-showtime-item.mse-low-stock:hover {
  z-index: 1000;
}

.mse-play-showtimes-column .mse-showtime-item.mse-low-stock::after {
  bottom: calc(100% + 8px);
  top: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%) scale(0.9);
  z-index: 1001;
}

.mse-play-showtimes-column .mse-showtime-item.mse-low-stock::before {
  bottom: calc(100% + 2px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  border-top-color: #991b1b;
  border-bottom-color: transparent;
  z-index: 1002;
}

.mse-play-showtimes-column .mse-showtime-item.mse-low-stock:hover::after,
.mse-play-showtimes-column .mse-showtime-item.mse-low-stock:hover::before {
  transform: translateX(-50%) scale(1);
}

.mse-play-showtimes-column .mse-showtime-day {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  margin: 0;
}

.mse-play-showtimes-column .mse-showtime-month {
  display: none;
}

.mse-play-showtimes-column .mse-showtime-date {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.mse-play-showtimes-column .mse-showtime-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mse-gold-light);
  margin: 0;
  text-align: right;
}

/* Compact date display: "Péntek 30 · 19:00" */
.mse-play-showtimes-column .mse-showtime-item .mse-showtime-left {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.mse-play-showtimes-column .mse-showtime-item .mse-showtime-right {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mse-gold-light);
}

.mse-play-title {
  font-family: var(--mse-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mse-text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mse-play-summary {
  font-family: 'Roboto', var(--mse-font-body), sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--mse-text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mse-play-reason {
  font-family: var(--mse-font-body);
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 400;
  color: var(--mse-gold-light);
  margin: 0;
  padding: 0.5rem 0.875rem;
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.12) 0%, rgba(212, 168, 85, 0.06) 50%, rgba(140, 105, 125, 0.08) 100%);
  border: 1px solid rgba(212, 168, 85, 0.2);
  border-radius: 0.625rem;
  line-height: 1.45;
}

/* Showtimes Label (legacy - keep for compatibility) */
.mse-showtimes-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--mse-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--mse-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mse-showtimes-label .material-symbols-outlined {
  font-size: 0.8125rem;
  color: var(--mse-gold-dim);
}

.mse-showtimes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.mse-showtime-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.625rem 0.75rem;
  background: rgba(90, 60, 100, 0.4);
  border-radius: 0.5rem;
  font-family: var(--mse-font-body);
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(140, 110, 150, 0.4);
}

.mse-showtime-item:hover {
  background: rgba(100, 70, 120, 0.6);
  transform: translateY(-2px);
  border-color: rgba(170, 130, 180, 0.6);
}

/* Clickable showtime links - direct to jegy.hu event */
.mse-showtime-link {
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.mse-showtime-link:hover {
  background: rgba(235, 180, 75, 0.15);
  border-color: var(--mse-gold-dim);
  transform: translateY(-2px);
}

.mse-showtime-link .mse-ticket-icon {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: 0.75rem;
  color: var(--mse-gold-dim);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mse-showtime-link:hover .mse-ticket-icon {
  opacity: 1;
}

/* Sold out and low stock states */
.mse-showtime-item.mse-sold-out {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.mse-showtime-item.mse-sold-out::after {
  content: 'ELFOGYOTT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-size: 0.5rem;
  font-weight: 700;
  color: #ff6b6b;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}

.mse-showtime-item.mse-low-stock {
  border-color: rgba(220, 38, 38, 0.7);
  animation: pulse-border-red 1.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.mse-showtime-item.mse-low-stock:hover {
  z-index: 1000;
}

@keyframes pulse-border-red {
  0%, 100% { 
    border-color: rgba(220, 38, 38, 0.7);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% { 
    border-color: rgba(239, 68, 68, 1);
    box-shadow: 0 0 8px 0 rgba(239, 68, 68, 0.4);
  }
}

/* Hover popup for low stock */
.mse-showtime-item.mse-low-stock::after {
  content: 'Siess! Már csak pár jegy maradt!';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Arrow for popup */
.mse-showtime-item.mse-low-stock::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  border: 6px solid transparent;
  border-top-color: #991b1b;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1002;
  pointer-events: none;
}

.mse-showtime-item.mse-low-stock:hover::after,
.mse-showtime-item.mse-low-stock:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.mse-showtime-day {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.125rem;
}

.mse-showtime-month {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.mse-showtime-date {
  font-size: 1.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  margin: 0.125rem 0 0.25rem;
}

.mse-showtime-time {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mse-gold-light);
  margin-top: 0.125rem;
}

.mse-showtime-range {
  font-family: var(--mse-font-body);
  font-size: 0.8125rem;
  color: var(--mse-text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .mse-showtimes-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .mse-showtime-item {
    flex-shrink: 0;
    min-width: 65px;
  }
}

/* Play Card Header (title + price) */
.mse-play-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mse-play-header .mse-play-title {
  margin: 0;
}

/* Price Badge */
.mse-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 168, 85, 0.15);
  border: 1px solid var(--mse-gold-dim);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mse-gold-light);
  white-space: nowrap;
}

.mse-price-badge .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Availability Badges */
.mse-play-badge-overlay {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
}

.mse-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mse-availability-badge .material-symbols-outlined {
  font-size: 0.875rem;
}

.mse-availability-badge.mse-sold-out {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

.mse-availability-badge.mse-low-stock {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  animation: mse-pulse-urgent 2s ease-in-out infinite;
}

/* Very urgent - last few seats */
.mse-availability-badge.mse-low-stock.mse-urgent {
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  animation: mse-pulse-fire 1s ease-in-out infinite;
}

@keyframes mse-pulse-fire {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 12px 4px rgba(220, 38, 38, 0.4);
  }
}

.mse-availability-badge.mse-plenty {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

@keyframes mse-pulse-urgent {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 12px 3px rgba(245, 158, 11, 0.3);
  }
}

/* Actor Match Highlight */
.mse-actor-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  margin: 0.75rem 0;
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.15) 0%, rgba(212, 168, 85, 0.08) 100%);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--mse-gold-light);
}

.mse-actor-match .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--mse-gold);
}

.mse-actor-match strong {
  color: var(--mse-gold);
}

/* Sold Out Card State */
.mse-play-card.mse-play-sold-out {
  opacity: 0.7;
}

.mse-play-card.mse-play-sold-out .mse-play-image img {
  filter: grayscale(50%);
}

.mse-play-card.mse-play-sold-out .mse-btn-ticket {
  background: var(--mse-text-muted);
  pointer-events: none;
}

/* Low Stock Card State */
.mse-play-card.mse-play-low-stock {
  border-color: rgba(245, 158, 11, 0.3);
}

.mse-play-card.mse-play-low-stock:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

/* Action Buttons - All on one line, same height */
.mse-play-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

.mse-play-actions .mse-btn {
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  height: 40px;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* "Részletek" button */
.mse-play-actions .mse-btn-small {
  flex: 0 0 auto;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

/* "Kérdezz erről" button - no shimmer */
.mse-play-actions .mse-btn-ask {
  flex: 0 0 auto;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

/* Remove shimmer from ask button */
.mse-play-actions .mse-btn-ask::before {
  display: none !important;
}

/* "Jegyvásárlás" with shimmer - takes remaining space */
.mse-play-actions .mse-btn-ticket {
  flex: 1 1 auto;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0;
  background-color: #ff5b0021;
}

.mse-play-actions .mse-btn-outline {
  background: rgba(255, 255, 255, 0.06);
}

.mse-play-actions .mse-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.mse-play-actions .mse-btn-ticket .material-symbols-outlined {
  font-size: 1.25rem;
}

.mse-play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
  margin: 0;
}

.mse-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Roboto', var(--mse-font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mse-text-secondary);
}

.mse-meta-item .material-symbols-outlined {
  font-size: 0.875rem;
  color: var(--mse-gold-dim);
}

/* Venue and Director styles */
.mse-meta-venue,
.mse-meta-director {
  background: rgba(212, 168, 85, 0.08);
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 168, 85, 0.15);
}

.mse-meta-venue .material-symbols-outlined {
  color: var(--mse-gold);
}

.mse-meta-director .material-symbols-outlined {
  color: var(--mse-gold);
}

/* ============================================
   Loading State
   ============================================ */
.mse-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--mse-text-muted);
}

.mse-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--mse-gold);
  animation: mse-spin 1s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes mse-spin {
  to { transform: rotate(360deg); }
}

.mse-loading p {
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
}

/* ============================================
   Empty State
   ============================================ */
.mse-empty-state {
  padding: 4rem 2rem;
}

.mse-empty-state .material-symbols-outlined {
  font-size: 3.5rem;
  color: var(--mse-text-muted);
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.mse-empty-state p {
  font-family: var(--mse-font-body);
  font-size: 1rem;
  color: var(--mse-text-muted);
  max-width: 360px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ============================================
   Details Scene
   ============================================ */
.mse-scene-details .mse-scene-inner {
  text-align: left;
}

.mse-detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .mse-detail-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.mse-detail-image {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--mse-bg-warm);
}

.mse-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.mse-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mse-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.mse-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
  color: var(--mse-text-secondary);
}

.mse-detail-meta-item .material-symbols-outlined {
  color: var(--mse-gold);
}

.mse-detail-cast {
  padding: 1rem;
  background: var(--mse-bg-card);
  border-radius: 0.75rem;
}

.mse-detail-cast h4 {
  font-family: var(--mse-font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mse-text-muted);
  margin-bottom: 0.5rem;
}

.mse-detail-cast p {
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
  color: var(--mse-text-secondary);
}

.mse-detail-description p {
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
  color: var(--mse-text-secondary);
  line-height: 1.65;
}

.mse-detail-actions {
  padding-top: 0.5rem;
}

/* ============================================
   Trigger Button
   ============================================ */
.mse-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 3rem;
  font-family: var(--mse-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, var(--mse-gold) 0%, var(--mse-gold-dim) 100%);
  color: var(--mse-bg-dark);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 168, 85, 0.25);
  transition: all 0.3s var(--mse-ease);
}

.mse-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 85, 0.35);
}

/* ============================================
   Helpers
   ============================================ */
.mse-hidden {
  display: none !important;
}

.mse-label {
  display: none;
}

/* ============================================
   Name Input Scene
   ============================================ */
.mse-scene-name .mse-welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mse-name-input-wrapper {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
}

.mse-name-input {
  width: 100%;
  padding: 1.25rem 1.75rem;
  font-family: var(--mse-font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--mse-text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(212, 168, 85, 0.25);
  border-radius: 3rem;
  text-align: center;
  outline: none;
  transition: all 0.3s var(--mse-ease);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
}

.mse-name-input::placeholder {
  color: var(--mse-text-muted);
}

.mse-name-input:focus {
  border-color: var(--mse-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(212, 168, 85, 0.15);
}

#mse-user-name {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 20px;
}

.mse-btn-skip {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mse-btn-skip:hover {
  color: var(--mse-text-secondary);
}

/* ============================================
   Greeting Scene
   ============================================ */
.mse-scene-greeting .mse-scene-inner {
  padding: 4rem 2rem;
}

.mse-greeting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mse-greeting-title {
  font-family: var(--mse-font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  color: var(--mse-gold);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mse-greeting-text {
  font-family: var(--mse-font-body);
  font-size: 1.125rem;
  color: var(--mse-text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.mse-greeting-logo {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mse-site-logo {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(212, 168, 85, 0.3));
  animation: mse-logo-glow 3s ease-in-out infinite;
}

.mse-site-name {
  font-family: var(--mse-font-display);
  font-size: 2rem;
  color: var(--mse-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: mse-logo-glow 3s ease-in-out infinite;
}

@keyframes mse-logo-glow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(212, 168, 85, 0.3));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 4px 30px rgba(212, 168, 85, 0.5));
    opacity: 0.95;
  }
}

/* ============================================
   Crystal Mood Scene
   ============================================ */
.mse-scene-crystal .mse-scene-inner {
  max-height: calc(100vh - 8rem);
  padding-bottom: 2rem;
}

.mse-crystal-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mse-crystal-container {
  width: 100%;
  max-width: 500px;
  height: 350px;
  border-radius: 1rem;
  overflow: hidden;
}

.mse-crystal-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--mse-font-body);
  font-size: 0.8125rem;
  color: var(--mse-text-muted);
}

.mse-crystal-hint .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--mse-gold-dim);
}

.mse-selected-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  min-height: 2.5rem;
}

.mse-selected-genre {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 85, 0.15);
  border: 1px solid var(--mse-gold-dim);
  border-radius: 2rem;
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-gold-light);
}

/* ============================================
   Schedule Scene
   ============================================ */
.mse-schedule-wrapper {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mse-schedule-wrapper .mse-preference-cluster {
  margin-top: 0 !important;
}

/* ============================================
   Actor Scene
   ============================================ */

.mse-scene-actors .mse-scene-subtitle {
  margin-bottom: 1.5rem;
}

.mse-actor-search-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.mse-search-input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 2rem;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.mse-search-input-container:focus-within {
  border-color: var(--mse-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(212, 168, 85, 0.2);
}

.mse-search-input-container .material-symbols-outlined {
  color: var(--mse-gold-light);
  font-size: 1.25rem;
}

.mse-actor-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--mse-text);
  font-family: var(--mse-font-body);
  font-size: 1rem;
}

.mse-actor-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mse-actor-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(26, 19, 15, 0.98);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 1rem;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.mse-actor-search-results.mse-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mse-search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--mse-text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.mse-search-result:hover {
  background: rgba(212, 168, 85, 0.15);
}

.mse-search-result:last-child {
  border-bottom: none;
}

.mse-search-result .mse-actor-name {
  font-weight: 500;
  color: var(--mse-text-primary);
}

.mse-search-result .mse-actor-count {
  font-size: 0.75rem;
  color: var(--mse-gold-light);
}

.mse-search-empty {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.mse-selected-actors-wrapper {
  margin-bottom: 1.5rem;
}

.mse-selected-actors-wrapper .mse-cluster-label {
  margin-bottom: 0.75rem;
}

.mse-selected-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 2.5rem;
}

.mse-no-selection {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.mse-selected-actor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.25), rgba(212, 168, 85, 0.15));
  border: 1px solid var(--mse-gold);
  border-radius: 2rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  color: var(--mse-gold);
  font-weight: 500;
  font-size: 0.875rem;
}

.mse-remove-actor {
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mse-remove-actor:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mse-remove-actor .material-symbols-outlined {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.mse-actor-chips {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mse-actor-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  min-width: auto;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  color: var(--mse-text-primary);
}

.mse-actor-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 85, 0.3);
}

.mse-actor-chip.mse-active {
  background: rgba(212, 168, 85, 0.15);
  border-color: var(--mse-gold);
}

.mse-actor-chip .mse-actor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.mse-actor-chip .mse-actor-name {
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--mse-text-primary);
}

.mse-actor-chip .mse-actor-count {
  font-size: 0.625rem;
  opacity: 0.8;
  line-height: 1;
  color: var(--mse-gold-light);
}

.mse-actor-chip.mse-active .mse-actor-count {
  opacity: 0.9;
  color: var(--mse-gold-light);
}

.mse-actor-thumb,
.mse-search-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 168, 85, 0.3);
  flex-shrink: 0;
}

.mse-actor-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 85, 0.1);
}

.mse-actor-placeholder .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--mse-gold-dim);
}

.mse-actor-chip .mse-actor-thumb {
  margin: 0;
}

.mse-actor-chip.mse-active .mse-actor-thumb {
  border-color: var(--mse-gold);
}

.mse-actor-chip.mse-active .mse-actor-placeholder {
  background: rgba(212, 168, 85, 0.2);
}

.mse-actor-chip.mse-active .mse-actor-placeholder .material-symbols-outlined {
  color: var(--mse-gold);
}

.mse-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mse-search-result .mse-search-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.mse-search-result .mse-actor-name {
  flex: 1;
}

/* ============================================
   Location Scene
   ============================================ */
.mse-location-wrapper {
  width: 100%;
  max-width: 600px;
  padding: 1rem;
}

/* ============================================
   Detail Travel Info
   ============================================ */
.mse-detail-travel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid rgba(212, 168, 85, 0.2);
  border-radius: 0.75rem;
  margin-top: 0.5rem;
}

.mse-detail-travel .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--mse-gold);
}

.mse-detail-travel span:last-child {
  font-family: var(--mse-font-body);
  font-size: 0.9375rem;
  color: var(--mse-text-secondary);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .mse-floating-images {
    opacity: 0.4;
  }
  
  .mse-flip-card {
    transform: scale(0.85);
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  /* Hide floating images on mobile for performance */
  .mse-floating-images {
    display: none;
  }
  
  /* Curtains - completely hidden on mobile */
  .mse-curtain-body.mse-curtain-open #mse-curtain-left {
    transform: translateX(-60vw);
  }
  
  .mse-curtain-body.mse-curtain-open #mse-curtain-right {
    transform: translateX(60vw);
  }
  
  /* Full-screen overlay */
  .mse-overlay {
    padding: 0;
  }
  
  .mse-overlay-inner {
    padding: 0;
  }
  
  /* Close button - larger touch target */
  .mse-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 100;
  }
  
  .mse-close .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  .mse-home {
    top: 0.75rem;
    right: 4.25rem;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 100;
  }
  
  .mse-home .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  /* Scene adjustments */
  .mse-scene {
    padding: 1rem;
    padding-top: 3.5rem;
  }
  
  .mse-scene-inner {
    max-width: 100%;
    padding: 1rem;
  }
  
  .mse-question {
    margin-bottom: 1.5rem;
    font-size: clamp(1.125rem, 5vw, 1.5rem);
    line-height: 1.3;
  }
  
  .mse-subtitle,
  .mse-scene-subtitle {
    font-size: 0.875rem;
  }
  
  /* Group type buttons */
  .mse-group-type-selector {
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mse-group-type-btn {
    padding: 0.875rem 1.25rem;
    min-width: 130px;
    flex: 1 1 auto;
    max-width: 160px;
  }
  
  .mse-group-type-btn .material-symbols-outlined {
    font-size: 1.75rem;
  }
  
  .mse-group-type-label {
    font-size: 0.8125rem;
  }
  
  /* Group counters */
  .mse-group-counters {
    flex-direction: column;
    gap: 2rem;
  }
  
  .mse-counter-group {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  
  .mse-counter-ring {
    width: 70px;
    height: 70px;
  }
  
  .mse-counter-value {
    font-size: 1.75rem;
  }
  
  .mse-counter-btn {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  
  .mse-counter-label-top {
    font-size: 0.6875rem;
    position: relative;
    top: auto;
    margin-bottom: 0.25rem;
  }
  
  .mse-group-total {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }
  
  /* Age nodes - scrollable */
  .mse-age-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  
  .mse-age-nodes {
    gap: 0.375rem;
    flex-wrap: nowrap;
    padding: 0 0.25rem;
    min-width: max-content;
  }
  
  .mse-age-node {
    width: 2.125rem;
    height: 2.125rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
  
  /* Chip clouds - horizontal scroll */
  .mse-chip-cloud {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    gap: 0.5rem;
  }
  
  .mse-chip {
    flex-shrink: 0;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  /* Actor chips - horizontal scroll */
  .mse-actor-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
    padding-bottom: 0.75rem;
  }
  
  .mse-actor-chip {
    flex-shrink: 0;
    min-width: auto;
  }
  
  /* Play cards - 2 column on tablet */
  .mse-play-card {
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .mse-play-image {
    width: 140px;
    max-height: 200px;
    grid-row: 1 / 2;
  }
  
  .mse-play-image img {
    max-height: 200px;
  }
  
  .mse-play-content {
    padding: 0;
    grid-row: 1 / 2;
  }
  
  /* Showtimes below content on tablet */
  .mse-play-showtimes-column {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid rgba(140, 105, 125, 0.3);
    padding-left: 0;
    padding-top: 1rem;
  }
  
  .mse-play-showtimes-column .mse-showtimes-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .mse-play-title {
    font-size: 1.125rem;
  }
  
  .mse-play-summary {
    font-size: 0.8125rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .mse-play-reason {
    font-size: 0.75rem;
  }
  
  .mse-play-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .mse-meta-item {
    font-size: 0.75rem;
  }
  
  .mse-meta-venue,
  .mse-meta-director {
    width: 100%;
    justify-content: center;
  }
  
  /* Showtimes - horizontal scroll */
  .mse-showtimes-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  
  .mse-showtime-item {
    flex-shrink: 0;
    min-width: 70px;
    padding: 0.5rem 0.625rem;
  }
  
  .mse-showtime-date {
    font-size: 1.5rem;
  }
  
  .mse-play-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  
  .mse-play-actions .mse-btn {
    padding: 0.75rem 1rem;
    justify-content: center;
    font-size: 0.8125rem;
    height: 44px;
  }
  
  .mse-play-actions .mse-btn-small {
    flex: 0 0 auto;
    width: auto;
  }
  
  .mse-play-actions .mse-btn-ask {
    flex: 0 0 auto;
  }
  
  .mse-play-actions .mse-btn-ticket {
    flex: 1 1 auto;
  }
  
  /* Footer buttons */
  .mse-scene-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(26, 19, 15, 0.98) 80%, transparent);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    z-index: 50;
  }
  
  .mse-btn-primary,
  .mse-btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    justify-content: center;
  }
  
  .mse-btn-back {
    width: 100%;
    order: 1;
  }
  
  /* Name input */
  .mse-name-input {
    font-size: 1.125rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
    max-width: none;
  }
  
  /* Curtains - simpler on mobile */
  .mse-curtain-fold {
    width: 25vw;
  }
  
  .mse-curtain-fold:nth-child(n+2) {
    margin-left: -18vw;
  }
  
  /* Crystal/decoration - smaller */
  .mse-crystal-container {
    height: 200px;
  }
  
  /* Search */
  .mse-actor-search-wrapper {
    width: 100%;
    max-width: none;
  }
  
  .mse-actor-search {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  }
  
  /* Selected actors pills */
  .mse-selected-actors {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }
  
  .mse-selected-actor {
    flex-shrink: 0;
  }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .mse-scene {
    padding: 0.75rem;
    padding-top: 3rem;
  }
  
  .mse-question {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .mse-group-type-btn {
    padding: 0.75rem 1rem;
    min-width: 110px;
  }
  
  .mse-group-type-btn .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  .mse-group-type-label {
    font-size: 0.75rem;
  }
  
  .mse-counter-ring {
    width: 60px;
    height: 60px;
  }
  
  .mse-counter-value {
    font-size: 1.5rem;
  }
  
  .mse-counter-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .mse-age-node {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  
  .mse-chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
  
  /* Play cards - single column on small mobile */
  .mse-play-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mse-play-image {
    width: 100%;
    max-width: 200px;
    max-height: 280px;
    margin: 0 auto;
  }
  
  .mse-play-image img {
    max-height: 280px;
  }
  
  .mse-play-content {
    grid-row: auto;
  }
  
  .mse-play-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .mse-play-header {
    flex-direction: column;
    align-items: center;
  }
  
  .mse-play-showtimes-column {
    padding-top: 0.75rem;
  }
  
  .mse-scene-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .mse-btn-primary,
  .mse-btn-secondary {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
  }
  
  /* Play card buttons - slightly smaller on small screens but still readable */
  .mse-play-actions {
    gap: 0.375rem;
  }
  
  .mse-play-actions .mse-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    height: 40px;
  }
  
  .mse-play-actions .mse-btn .material-symbols-outlined {
    font-size: 1rem;
  }
}

/* ============================================
   Touch-Friendly Improvements
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .mse-chip,
  .mse-actor-chip,
  .mse-age-node,
  .mse-counter-btn,
  .mse-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects that cause sticky states on touch */
  .mse-chip:hover,
  .mse-actor-chip:hover,
  .mse-btn:hover {
    transform: none;
  }
  
  /* Add active states for touch feedback */
  .mse-chip:active,
  .mse-actor-chip:active,
  .mse-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  
  .mse-play-card:active {
    transform: scale(0.99);
  }
  
  .mse-showtime-item:active {
    transform: scale(0.95);
    background: rgba(140, 105, 125, 0.9);
  }
}

/* ============================================
   Budget Scene
   ============================================ */
.mse-scene-budget .mse-scene-inner {
  max-width: 720px;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 5rem; /* Space for fixed footer */
  box-sizing: border-box;
}

.mse-budget-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  width: 100%;
}

/* Row 1: Price ranges - each spans 2 columns (33.3%) */
.mse-budget-btn:nth-child(1),
.mse-budget-btn:nth-child(2),
.mse-budget-btn:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: Wide options - each spans 3 columns (50%) */
.mse-budget-wide {
  grid-column: span 3 !important;
}

.mse-budget-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mse-text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  min-height: 110px;
}

.mse-budget-btn .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--mse-gold-dim);
  transition: all 0.3s var(--mse-ease);
  flex-shrink: 0;
}

.mse-budget-label {
  font-family: var(--mse-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mse-text-primary);
  display: block;
  line-height: 1.2;
}

.mse-budget-desc {
  font-size: 0.7rem;
  color: var(--mse-text-muted);
  display: block;
  line-height: 1.3;
  max-width: 140px;
  margin: 0 auto;
}

.mse-budget-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mse-budget-btn:hover .material-symbols-outlined {
  color: var(--mse-gold);
  transform: scale(1.1);
}

.mse-budget-btn.mse-active {
  background: rgba(212, 168, 85, 0.15);
  border-color: var(--mse-gold);
  box-shadow: 
    0 0 25px rgba(212, 168, 85, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mse-budget-btn.mse-active .material-symbols-outlined {
  color: var(--mse-gold-light);
}

.mse-budget-btn.mse-active .mse-budget-label {
  color: var(--mse-gold-light);
}

/* Gift option - special styling */
.mse-budget-gift {
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(212, 168, 85, 0.35);
}

.mse-budget-gift .material-symbols-outlined {
  color: var(--mse-gold);
}

/* Tablet - 2 column layout */
@media (max-width: 640px) {
  .mse-budget-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  /* All items span 1 column on tablet */
  .mse-budget-btn:nth-child(1),
  .mse-budget-btn:nth-child(2),
  .mse-budget-btn:nth-child(3) {
    grid-column: span 1;
  }
  
  /* Third item (10.000+) spans full width */
  .mse-budget-btn:nth-child(3) {
    grid-column: 1 / -1;
  }
  
  /* Wide buttons each take half */
  .mse-budget-wide {
    grid-column: span 1 !important;
  }
  
  .mse-budget-btn {
    padding: 1rem 0.5rem;
    min-height: 100px;
  }
  
  .mse-budget-label {
    font-size: 0.85rem;
  }
  
  .mse-budget-desc {
    font-size: 0.65rem;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .mse-scene-budget .mse-scene-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .mse-budget-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* All items full width on small mobile */
  .mse-budget-btn,
  .mse-budget-btn:nth-child(1),
  .mse-budget-btn:nth-child(2),
  .mse-budget-btn:nth-child(3),
  .mse-budget-wide {
    grid-column: 1 / -1 !important;
  }
  
  .mse-budget-btn {
    padding: 0.875rem 0.5rem;
    min-height: 80px;
    border-radius: 0.75rem;
  }
  
  .mse-budget-btn .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  .mse-budget-label {
    font-size: 0.85rem;
  }
  
  .mse-budget-desc {
    font-size: 0.65rem;
    max-width: 100%;
  }
}

/* ============================================
   iOS Safe Areas
   ============================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  .mse-overlay {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  @media (max-width: 768px) {
    .mse-close,
    .mse-home {
      top: calc(0.75rem + env(safe-area-inset-top));
    }
    
    .mse-scene-footer {
      padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
  }
}

/* ============================================
   Landscape Mobile
   ============================================ */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .mse-scene {
    padding: 0.5rem 1rem;
    padding-top: 2.5rem;
  }
  
  .mse-question {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .mse-group-counters {
    flex-direction: row;
    gap: 2rem;
  }
  
  .mse-counter-ring {
    width: 60px;
    height: 60px;
  }
  
  .mse-chip-cloud {
    max-height: 120px;
  }
  
  .mse-scene-footer {
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .mse-overlay * {
    animation: none !important;
    transition: none !important;
  }
}
