:root {
  /* Vintage Cinema Palette */
  --bg-primary: #0C0B0A;
  --bg-velvet: #0C0B0A; /* Solid base to prevent gradient lines */
  --bg-secondary: #141210;
  --bg-tertiary: #121214;
  
  --text-primary: #F5E6D3; /* Vintage Cream */
  --text-secondary: rgba(245, 230, 211, 0.7);
  --text-muted: rgba(255, 255, 255, 0.3);
  
  --bg-velvet: #0a0807;
  --bg-primary: #0a0807;
  --bg-secondary: #14110f;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.4);
  --brass: #b8860b;
  --velvet-red: #3d0000;
  --accent-secondary: #222;
 /* Tobacco Red */
  
  --velvet: #8B0000; /* Deep Theater Red */
  --velvet-glow: rgba(139, 0, 0, 0.4);
  
  --glass-bg: rgba(20, 18, 16, 0.7);
  --glass-border: rgba(212, 175, 55, 0.2);
  --surface-blur: blur(32px);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 60px;
  --space-2xl: 120px;
  
  /* Radii */
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-accent {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-velvet);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Body is clean for better scrolling */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://grain-textures.s3.amazonaws.com/grain.png");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* Base Components */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-game {
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .container-game {
        max-width: 1400px;
    }
}

h1 {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.1;
  word-break: break-word;
}

/* Specific styling for 'Next Challenge' billboards */
.billboard-title {
    background: #111;
    color: var(--accent);
    padding: 8px 16px;
    border: 2px solid #b8860b;
    display: inline-block;
    text-transform: uppercase;
    font-size: 24px !important;
    letter-spacing: 0.3em;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.5),
        inset 0 0 10px rgba(212, 175, 55, 0.2);
    margin-bottom: 24px !important;
}

.marquee-glow {
    animation: marquee-flash 2.5s infinite alternate;
}

@keyframes marquee-flash {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px var(--accent)); }
    50% { filter: brightness(1.3) drop-shadow(0 0 20px var(--accent)); }
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Reduced max from 3rem to 2.5rem */
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word; /* Added for overflow protection */
}

.container-game h1,
.container-game h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem); /* tighter scaling inside game container */
}

/* Responsive Scaling */
@media (max-width: 768px) {
    :root {
        --space-xl: 48px;
        --space-2xl: 80px;
    }
    
    .nav-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
  :root {
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
  }
  
  .glass-card { padding: 20px; }
  .ornate-border::before { font-size: 14px; top: -10px; }
}

@media (max-height: 700px) {
    .container { padding-top: var(--space-md); }
    .home-hero { padding-top: 32px !important; }
    .hero-visual { margin-bottom: 24px; }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8),
              0 20px 60px -15px rgba(0, 0, 0, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Cinematic Curtains */
.curtain-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    overflow: hidden;
    perspective: 2000px; /* Enable 3D depth */
}

.curtain-panel {
    flex: 1;
    height: 100%;
    background-color: #8b0000; /* Deep Theater Red restored */
    /* Wave/Fold effect with complex gradient */
    background-image: 
        linear-gradient(90deg, 
            rgba(0,0,0,0.6) 0%, 
            rgba(0,0,0,0.1) 15%, 
            rgba(255,255,255,0.1) 25%, 
            rgba(0,0,0,0.3) 40%, 
            rgba(0,0,0,0) 50%, 
            rgba(0,0,0,0.6) 65%, 
            rgba(255,255,255,0.05) 85%, 
            rgba(0,0,0,0.6) 100%);
    background-size: 120px 100%; /* Wider folds */
    box-shadow: inset 0 0 150px rgba(0,0,0,0.8);
    transition: 
        transform 2.5s cubic-bezier(0.16, 1, 0.3, 1),
        background-size 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-bottom: 30px solid #1a1a1a; /* Thick bottom weighted bar */
}

/* Wavy bottom edge for curtains */
.curtain-panel::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background: radial-gradient(circle at 50% 100%, #8b0000 70%, transparent 72%);
    background-size: 60px 30px;
    z-index: 10;
}

.curtain-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/dust.png");
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.curtain-panel.left {
    transform-origin: left;
    border-right: 2px solid rgba(212, 175, 55, 0.3);
}

.curtain-panel.right {
    transform-origin: right;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.curtain-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.curtains-open .curtain-panel::after {
    opacity: 1;
}

.curtains-open .curtain-panel.left {
    transform: translateX(-75%) rotateY(82deg) scaleX(0.4);
    background-size: 20px 100%; /* Folds bunch up tightly! */
    box-shadow: 120px 0 180px rgba(0,0,0,1);
}

.curtains-open .curtain-panel.right {
    transform: translateX(75%) rotateY(-82deg) scaleX(0.4);
    background-size: 20px 100%; /* Folds bunch up tightly! */
    box-shadow: -120px 0 180px rgba(0,0,0,1);
}

/* Cinema Rows Silhouette */

.animate-fade {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 48px !important;
}

.hero-visual {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    margin-bottom: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}

.hero-visual-img {
    position: absolute;
    inset: 0;
    background: url('hero.png') center/cover;
    filter: brightness(0.4);
    transform: scale(1.02);
}

.hero-content {
    z-index: 1;
    text-align: center;
}

.hero-rank {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 10px;
    margin-bottom: 24px;
    color: var(--accent);
    font-weight: 800;
}

.how-it-works-card {
  text-align: left;
  background: rgba(245, 230, 211, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 32px;
  position: relative;
  transition: var(--transition-smooth);
}

.how-it-works-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent);
}

.how-it-works-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 22px;
}

.how-it-works-card .step-num {
  font-family: 'Playfair Display SC', serif;
  font-weight: 900;
  color: var(--accent);
  margin-right: 12px;
  font-size: 28px;
  opacity: 0.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 2px; /* Vintage ticket sharp edges */
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before,
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: inherit; /* Matches button color, but we'll mask it instead */
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.btn::before { left: -10px; background: var(--bg-primary); box-shadow: inset -3px 0 5px rgba(0,0,0,0.3); }
.btn::after { right: -10px; background: var(--bg-primary); box-shadow: inset 3px 0 5px rgba(0,0,0,0.3); }

/* Ensure ticket effect matches footer background when in footer */
footer .btn::before, footer .btn::after {
    background: var(--bg-secondary) !important;
}

.cta-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn-primary {
    background: var(--accent);
    color: #1A1816;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Perforated Line Effect */
.btn-primary::before, .btn-primary::after {
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    background: #FFBD2E;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 20px;
    border-radius: 100px;
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clue-card {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 36px solid #050505;
    position: relative;
    overflow: hidden;
    box-shadow: none; /* Removed shadows as requested */
    /* 35mm Vertical Sprocket Holes */
    background-image: 
        /* Left side holes */
        linear-gradient(to bottom, #111 0, #111 6px, transparent 6px, transparent 12px),
        /* Right side holes */
        linear-gradient(to bottom, #111 0, #111 6px, transparent 6px, transparent 12px);
    background-size: 14px 12px, 14px 12px;
    background-position: 11px 0, calc(100% - 11px) 0;
    background-repeat: repeat-y;
}

.clue-card::before,
.clue-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.05);
    border-left: 1px solid rgba(255,255,255,0.05);
    z-index: 5;
}

.clue-card::before { left: 5px; }
.clue-card::after { right: 5px; }

.proscenium {
    position: relative;
    padding: 60px 40px 40px;
    background: #2a0000; /* Velvet Red */
    background-image: linear-gradient(90deg, 
        rgba(0,0,0,0.5) 0%, 
        transparent 15%, 
        transparent 85%, 
        rgba(0,0,0,0.5) 100%);
    border: 10px solid #1a1a1a;
    outline: 2px solid #b8860b;
    outline-offset: -5px;
    box-shadow: 
        inset 0 0 100px rgba(0,0,0,1),
        0 40px 80px rgba(0,0,0,0.8);
    margin-bottom: 24px;
}

/* Red Velvet texture from curtains */
.proscenium::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/dust.png");
    opacity: 0.2;
    pointer-events: none;
}

.proscenium::before {
    display: none; /* Removed marquee lights as requested */
}

@keyframes marquee-lights {
    from { background-position: 0 0; }
    to { background-position: 80px 0; }
}

/* Animated Film Reel / Celluloid Strip */
.film-strip-scroller {
    position: absolute;
    left: 0;
    right: 0;
    height: 32px;
    background: #000;
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
    overflow: hidden;
    z-index: 2;
}

/* Refined 35mm Celluloid Strip (Horizontal) */
.film-strip-scroller::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 300%;
    /* Square sprocket holes for horizontal strip */
    background-image: 
        linear-gradient(90deg, #111 0, #111 14px, transparent 14px, transparent 24px);
    background-size: 24px 100%;
    background-position: 0 center;
    opacity: 0.8;
    animation: film-scroll-horizontal 3s infinite linear;
}

.film-strip-scroller.top {
    top: 0;
    height: 24px;
    background: #000;
    border-bottom: 1px solid #222;
}

.film-strip-scroller.bottom {
    bottom: 0;
    height: 24px;
    background: #000;
    border-top: 1px solid #222;
}

/* Vertical Sprocket Holes on the sides */
.proscenium {
    padding: 32px 50px;
    background: #080808;
    overflow: hidden;
    box-shadow: none; /* Removed glow/shadows */
}

.proscenium::after {
    display: none; /* Removed red texture/gradient */
}

@keyframes film-scroll-horizontal {
    from { transform: translateX(0); }
    to { transform: translateX(-64px); } /* 2 segments of 32px */
}

/* Dust and Scratches Overlay for the whole screen */
.film-scratches {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dust.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
    animation: flicker-noise 0.2s infinite;
}

@keyframes flicker-noise {
    0% { transform: translate(0,0); }
    50% { transform: translate(-1px, 2px); }
    100% { transform: translate(1px, -1px); }
}

#player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.7); /* Even more scaling to hide UI */
    pointer-events: none;
    z-index: 1;
}

.clue-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: auto; /* Block all interaction with player */
    z-index: 15;
}

/* Game Containers & Layout */
.game-container {
    display: none;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 500px; /* Mobile Default */
    margin: 0 auto;
    flex: 1;
    z-index: 10;
}

.game-container.active {
    display: flex;
}

/* Desktop Hub Grid */
.desktop-hub {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

@media (min-width: 1024px) {
    .desktop-hub {
        display: grid;
        grid-template-columns: 1.25fr 0.75fr; /* Simplified to prevent blowout */
        gap: 64px;
        align-items: start;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .game-container {
        max-width: none;
        width: 100%;
        padding: 40px 0;
    }
    
    .active-theatre {
        width: 100%;
        position: sticky;
        top: 20px;
        z-index: 50;
    }
}

/* Controls Container */
.controls-container {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    z-index: 100;
}

.controls-container .btn {
    flex: 1;
    height: 64px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.2em;
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 24px;
}

.hide-desktop { display: flex; }
.show-desktop-only { display: none; }

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
    .show-desktop-only { display: flex !important; }
    
    .active-theatre {
        width: 100%;
    }
    
    .game-controls-hub {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-top: 20px;
    }
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Modal & Overlays */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    z-index: 2000;
}

.glass-card {
    background: #14110f;
    border: 2px solid #b8860b;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(184, 134, 11, 0.2);
    position: relative;
    padding: 32px;
}

/* Brass Rivets for cards */

#guess-container {
    border: 4px solid #1a1a1a;
    outline: 1px solid #d4af37;
    outline-offset: -15px;
}

.screen-frame {
    border: 12px solid #1a1a1a;
    outline: 2px solid #333;
    box-shadow: 0 0 100px rgba(0,0,0,1), 0 0 40px rgba(212, 175, 55, 0.1);
    background: #000;
}

.modal {
    width: 95%;
    max-width: 500px;
    background: #0C0B0A;
    border: 4px solid #1a1a1a;
    padding: 64px 40px;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    box-shadow: 0 50px 100px rgba(0,0,0,1);
    position: relative;
    outline: 1px solid var(--accent);
    outline-offset: -20px;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.search-input {
    width: 100%;
    background: #0C0B0A;
    border: 2px solid #1a1a1a;
    padding: 24px 32px;
    border-radius: 100px; /* Pill shape */
    color: #FFF;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.search-input:focus {
    border-color: var(--accent);
    background: #141210;
    box-shadow: 
        inset 0 4px 10px rgba(0,0,0,0.5),
        0 0 30px rgba(212, 175, 55, 0.1);
}

.score-pill {
    padding: 12px 24px;
    background: #ffffff;
    background-image: 
        repeating-linear-gradient(
            transparent,
            transparent 15px,
            rgba(0,0,0,0.03) 15px,
            rgba(0,0,0,0.08) 16px,
            transparent 16px,
            transparent 28px
        );
    border: 3px solid #b22222;
    border-radius: 4px;
    outline: none;
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: #003366;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    position: relative;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 0 10px rgba(255,255,255,1);
    transition: all 0.2s ease;
}

.score-pill span[data-t] {
    color: #b22222;
    opacity: 1;
    font-size: 11px;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 10px;
    font-weight: 900;
}

#audio-hint-btn.score-pill {
    background: #fff;
    color: #cc0000;
    cursor: pointer;
}

#audio-hint-btn.score-pill:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Unified Hero Styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, var(--bg-primary) 100%),
                url('hero.png') center/cover no-repeat;
    transform: scale(1.1);
    filter: blur(4px);
    animation: hero-zoom 20s infinite alternate ease-in-out;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(5, 5, 5, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Celluloid Effects */
.celluloid-flicker {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.celluloid-flicker::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 50% 50%, rgba(255,245,200,0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Dust Motes Layer (Higher Z-Index to be over video) */
.celluloid-flicker::after {
    content: '';
    position: absolute;
    inset: -100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
    background-size: 300px 300px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 30; /* Over everything */
    animation: dust-drift 15s linear infinite;
}

/* Projector Lens Glow */
.clue-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 10%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 245, 200, 0.05) 0%, transparent 60%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 25;
}

/* Film Grain Overlay */
.video-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 21;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes dust-drift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { transform: translate(-40px, -40px) rotate(10deg); opacity: 0.1; }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(-4%, 2%); }
    30% { transform: translate(2%, -4%); }
    40% { transform: translate(-2%, 6%); }
    50% { transform: translate(-4%, 2%); }
    60% { transform: translate(6%, 0); }
    70% { transform: translate(0, 4%); }
    80% { transform: translate(-6%, 0); }
    90% { transform: translate(4%, 2%); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; filter: contrast(1) brightness(1); }
    50% { opacity: 0.99; filter: contrast(1.02) brightness(1.02); }
}

.marquee-glow {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                 0 0 20px rgba(212, 175, 55, 0.4);
    animation: marquee-pulse 2s infinite alternate;
}

@keyframes marquee-pulse {
    from { opacity: 0.8; }
    to { opacity: 1; filter: brightness(1.2); }
}

.ornate-border {
    border: 3px double var(--accent);
    padding: 2px;
    position: relative;
}

.ornate-border::before {
    content: "◈";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 0 10px;
    color: var(--accent);
    font-size: 18px;
}

@keyframes hero-zoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.0); }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    outline: none !important; /* Remove blue browser ring */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn.active {
    background: var(--accent);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--accent);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}


.suggestions {
    list-style: none;
    margin-top: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 16px;
    border: 1px solid transparent;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--surface-border);
    color: var(--accent);
}

/* Animations */
.animate-fade { animation: fadeIn 0.8s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.nav-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.concierge-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
    padding: 0 4px;
    margin-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    filter: brightness(1.2);
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: 50%;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--accent);
  padding-bottom: var(--space-md);
}

.nav-header a.logo {
    color: #FFFFFF;
    text-decoration: none;
}

.nav-header a.logo:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.concierge-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
  z-index: 1000;
  opacity: 0.8;
}

/* Luxury Components */
.section-velvet {
  background: linear-gradient(to bottom, #050505, #0F0000 50%, #050505);
  border-top: 1px solid rgba(139, 0, 0, 0.1);
  border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.text-luxury {
  background: linear-gradient(to bottom, #F5E6D3 0%, #D4AF37 50%, #B2922D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Playfair Display SC', serif;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.luxury-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 48px !important;
  border: 2px solid #D4AF37;
  background: #141210;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.8),
    inset 0 0 50px rgba(212, 175, 55, 0.05);
  position: relative;
  transition: var(--transition-smooth);
}

.luxury-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.proscenium {
    position: relative;
    background: #000;
    padding: 1px; /* Sharp edge */
    box-shadow: 0 0 100px rgba(0,0,0,1);
    z-index: 5;
    margin-bottom: 24px;
}

.ticket-card {
    background: #e6dcc7; /* Aged Paper / Yellowish Ticket */
    color: #1a1a1a;
    padding: 40px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    overflow: visible;
    max-width: 450px !important;
    margin: 40px auto;
}

/* Ticket Side Cut-outs */
.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.ticket-card::before { left: -20px; }
.ticket-card::after { right: -20px; }

/* Perforated Vertical Line */
.ticket-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100px;
    border-left: 2px dashed rgba(0,0,0,0.15);
    z-index: 2;
}

.ticket-header {
    font-family: 'Playfair Display SC', serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 24px;
    text-align: center;
}

.ticket-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    padding: 16px 0;
    text-align: center;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 32px;
}

.ticket-barcode {
    font-family: 'Libre Barcode 39', cursive, monospace; /* Fallback if not loaded */
    font-size: 40px;
    opacity: 0.8;
}

.ticket-score-circle {
    width: 70px;
    height: 70px;
    border: 3px double #1a1a1a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ticket-card.void-ticket {
    background: #c4bcb2;
    color: #666;
    filter: grayscale(0.4);
}

.ticket-card.void-ticket .ticket-title {
    opacity: 0.3;
}

.ticket-card.void-ticket::after {
    content: 'VOID';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 140px;
    font-weight: 950;
    color: rgba(0, 0, 0, 0.4);
    border: 12px double rgba(0, 0, 0, 0.4);
    padding: 0 40px;
    pointer-events: none;
    font-family: 'Playfair Display SC', serif;
    z-index: 100;
}

.void-ticket .ticket-header { color: #555; opacity: 1; }
.void-ticket .ticket-title { border-color: #1a1a1a; color: #555; }
.void-ticket .ticket-score-circle { border-color: #333; color: #333; opacity: 0.5; }

.card-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 15px rgba(255,176,0,0.2));
}

.penalty-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(139, 0, 0, 0.2);
  color: #ff4444;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 8px;
}

#stage-text {
    font-family: 'Playfair Display SC', serif;
    color: var(--accent);
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 900;
    opacity: 0.7;
    margin: 24px 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
  font-weight: 300;
  letter-spacing: 0.05rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-xl {
  padding: 18px 48px !important;
  font-size: 18px !important;
}

/* Theater Grids */
.grid-theater {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

@media (min-width: 1200px) {
    .grid-theater {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
}

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



/* Apollo Marquee Styling for Rules */
.vintage-ad-card {
    background: #E8E2D9;
    padding: 64px 32px 48px;
    border: 3px solid #1a1a1a;
    outline: 1px solid #1a1a1a;
    outline-offset: 8px;
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        inset 0 0 100px rgba(139, 69, 19, 0.05);
    /* Removed overflow: hidden to fix badge clipping */
    background-image: 
        linear-gradient(rgba(232, 226, 217, 0.9), rgba(232, 226, 217, 0.9)),
        url("https://www.transparenttextures.com/patterns/paper-fibers.png");
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.vintage-ad-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.vintage-ad-card::before {
    content: '★★★★★';
    position: absolute;
    bottom: 24px;
    font-size: 14px;
    color: #8B0000;
    letter-spacing: 4px;
    opacity: 0.6;
}

.vintage-ad-tag {
    background: #1a1a1a;
    color: #E8E2D9;
    padding: 2px 12px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: absolute;
    top: 24px;
    left: 32px;
    border-radius: 2px;
}

.vintage-ad-card .card-icon {
    font-size: 48px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)) sepia(0.5);
}

.vintage-ad-card h3 {
    font-family: 'Playfair Display SC', serif;
    font-size: 24px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 8px;
}

.vintage-ad-card p {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: center;
    margin-bottom: 24px; /* Reduced to make room for billing block */
}

.billing-block {
    font-family: 'Inter', sans-serif;
    font-size: 7px; /* Very small, authentic */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0,0,0,0.5);
    text-align: center;
    line-height: 1.1;
    margin-top: auto;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.billing-block b {
    color: #1a1a1a;
    font-weight: 800;
}

.vintage-ad-card h3 {
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
}

.vintage-ad-card p {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.vintage-ad-card .card-icon {
    font-size: 40px;
    margin-bottom: 8px;
    filter: grayscale(1) contrast(1.5);
    opacity: 0.8;
}

.ad-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B0000;
    color: #fff;
    padding: 4px 20px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    z-index: 100;
}

.vintage-ad-card:nth-child(even) .ad-badge {
    background: #1a1a1a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Clapperboard Stage Display */
.clapperboard {
    background: #111;
    border-radius: 4px;
    padding: 10px;
    position: relative;
    max-width: 240px;
    margin: 0 auto 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border: 3px solid #000;
    transform: rotate(-2deg);
}

.clapperboard-top {
    height: 35px;
    background: repeating-linear-gradient(
        45deg,
        #111,
        #111 20px,
        #fff 20px,
        #fff 40px
    );
    border-radius: 4px 4px 0 0;
    border-bottom: 3px solid #000;
    margin: -10px -10px 15px -10px;
}

.clapper-content {
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    padding: 10px 0;
    line-height: 1.4;
}

/* Category & Mode Cards */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.selection-card {
    aspect-ratio: 16/10;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 3px solid rgba(212, 175, 55, 0.2);
}

.selection-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.selection-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.selection-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Modal Overlay Centering Update */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
    .desktop-hub {
        flex-direction: column;
        padding: 0;
    }

    .active-theatre {
        width: 100% !important;
        padding: 0 12px;
    }

    .game-controls-hub {
        width: 100% !important;
        margin-top: 24px;
    }

    .selection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .selection-card {
        aspect-ratio: 16/11 !important;
    }

    .clapperboard {
        max-width: 180px !important;
        padding: 6px !important;
        margin-top: 12px !important;
    }

    .clapperboard-top {
        height: 25px !important;
        margin: -6px -6px 8px -6px !important;
    }

    .clapper-content {
        font-size: 11px !important;
        padding: 5px 0 !important;
    }

    .billboard-title {
        font-size: 28px !important;
    }

    .hero-visual-img {
        height: 180px !important;
    }

    #home-points {
        font-size: 40px !important;
    }

    .concierge-bar .logoText {
        font-size: 18px !important;
    }

    /* Fix Curtains on Mobile */
    .curtain-panel.left { transform: translateX(-100%) skewX(-15deg) !important; }
    .curtain-panel.right { transform: translateX(100%) skewX(15deg) !important; }
}

@media (max-width: 480px) {
    .container-game {
        padding: 8px !important;
    }

    .luxury-card {
        padding: 20px !important;
    }

    .btn-xl {
        font-size: 14px !important;
        padding: 16px 24px !important;
    }
}

