/* ═══════════════════════════════════════════════════════════════════════════
   HEARSAY — Room 412
   Baroque peephole experience. Paranoid intimacy.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dark Baroque Palette */
:root {
    /* Shadows and depths */
    --shadow-deep: #050403;
    --shadow-mid: #0a0806;
    --shadow-soft: #151210;
    
    /* Brass and metal */
    --brass-highlight: #d4af37;
    --brass-mid: #c9a227;
    --brass-dark: #8b6914;
    --brass-oxidized: #5c4a1f;
    
    /* Wood and warmth */
    --wood-dark: #1a120c;
    --wood-mid: #2d1f14;
    --wood-light: #4a3423;
    
    /* Accent */
    --parchment: #d4c5a9;
    --parchment-dark: #a69778;
    --blood-dried: #4a1a1a;
    --blood-fresh: #6b1c1c;
    
    /* Glow */
    --glow-warm: rgba(201, 162, 39, 0.4);
    --glow-soft: rgba(201, 162, 39, 0.2);
    
    /* Sizing - fill the overlay's transparent center (the brass ring opening) */
    /* This needs to match the actual transparent area in overlay.png */
    --peephole-size: min(58vh, 58vw);
    
    /* Z-index layers */
    --z-background: 0;
    --z-transition: 10;
    --z-simli: 20;
    --z-peephole: 30;
    --z-door-overlay: 40;
    --z-vignette: 50;
    --z-ui: 100;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--shadow-deep);
}

body {
    font-family: 'EB Garamond', 'Palatino Linotype', serif;
    color: var(--parchment);
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

.page {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

.page.fading-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENTRY PAGE - Heraldic Gateway
   ═══════════════════════════════════════════════════════════════════════════ */

#entry-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0806;
    overflow: hidden;
}

/* Entry stages */
.entry-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-stage.hidden {
    display: none;
}

/* STAGE 1: Full-screen video */
.entry-video-fullscreen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Show full video, letterboxed if needed */
    object-position: center;
    z-index: 1;
    background: #000;  /* Black bars if letterboxed */
}

/* STAGE 2: Letterbox video container */
.entry-letterbox-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    z-index: 10;
}

.entry-video-letterbox {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.entry-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(30, 25, 20, 0.8) 0%, rgba(10, 8, 6, 1) 70%),
        linear-gradient(135deg, rgba(139, 90, 43, 0.1) 0%, transparent 50%);
}

.entry-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.entry-crest {
    max-width: min(90vw, 700px);
    max-height: 65vh;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(139, 90, 43, 0.4));
    animation: crestGlow 4s ease-in-out infinite alternate;
}

/* Click to start overlay - covers full screen over the video */
.click-to-start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
    /* Subtle dark vignette to make button visible */
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.click-to-start-overlay.hidden {
    display: none;
}

.click-to-start-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border: 2px solid var(--brass-mid);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.click-to-start-overlay:hover .click-to-start-content {
    border-color: var(--brass-light);
    transform: scale(1.05);
    background: rgba(26, 21, 18, 0.8);
    box-shadow: 0 0 30px rgba(139, 90, 43, 0.3);
}

.start-text {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass-light);
    text-align: center;
}

/* Stage 2 letterbox controls */
#entry-stage-2 .skip-intro-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--brass-dark);
    color: var(--brass-mid);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 200;
}

#entry-stage-2 .skip-intro-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--brass-mid);
    color: var(--parchment);
}

#entry-stage-2 .skip-intro-btn.hidden {
    display: none;
}

/* Intro mute button */
#entry-stage-2 .intro-mute-btn {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--brass-dark);
    color: var(--brass-mid);
    font-size: 1.2rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 200;
    border-radius: 4px;
}

#entry-stage-2 .intro-mute-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--brass-mid);
}

/* Enter button in letterbox stage */
#entry-stage-2 .enter-button {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

/* Fade video when Enter appears */
.entry-video-letterbox.faded {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

@keyframes crestGlow {
    from { filter: drop-shadow(0 0 30px rgba(139, 90, 43, 0.3)); }
    to { filter: drop-shadow(0 0 50px rgba(139, 90, 43, 0.5)); }
}

.enter-button {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--parchment-light);
    background: transparent;
    border: 1px solid var(--brass-mid);
    padding: 1rem 3rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.enter-button:hover {
    border-color: var(--brass-light);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.enter-button:hover::before {
    transform: translateX(100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

#landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Old .landing-background removed - now using .video-blend-stack */

.landing-overlay {
    position: absolute;
    inset: 0;
    background: 
        /* Subtle darkening at edges, mostly transparent */
        linear-gradient(
            to top,
            rgba(5, 4, 3, 0.6) 0%,
            rgba(5, 4, 3, 0.15) 20%,
            transparent 40%,
            transparent 70%,
            rgba(5, 4, 3, 0.2) 100%
        );
}

.landing-content {
    position: relative;
    z-index: 10; /* Above animated-text video layer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    isolation: isolate; /* Prevent blend mode bleed from background */
    padding: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    height: 100%;
}

.landing-spacer {
    flex: 1;
}

/* Video blend stack - both videos in same container for blend to work */
.video-blend-stack {
    position: absolute;
    inset: 0;
    isolation: isolate;  /* Creates stacking context for blend - contains mix-blend-mode */
    background: transparent;
    z-index: -1; /* BEHIND everything else - ensure blend mode doesn't affect gallery */
}

.landing-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Video loading indicator - hidden by default, only show if really needed */
.video-loading {
    display: none;  /* Removed - was disruptive */
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Title overlay - centered on landing page */
.landing-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Above video, below carousel */
    text-align: center;
    pointer-events: none;
}

.landing-presenter {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    font-weight: 400;
    font-style: italic;
    color: var(--brass-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.landing-main-title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #e91e8c; /* Hot pink matching screenshot */
    text-shadow: 
        0 0 30px rgba(233, 30, 140, 0.5),
        0 0 60px rgba(233, 30, 140, 0.3);
    margin: 0;
    line-height: 1;
}

.landing-subtitle {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.animated-text-video {
    position: absolute;
    bottom: 8vh;  /* Lower - just above buttons */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;  /* Smaller sticky note */
    height: auto;
    z-index: 5;   /* Above background, below UI elements */
    background: transparent;
    mix-blend-mode: screen;  /* Black becomes transparent */
    opacity: 1;
    pointer-events: none;
    isolation: isolate; /* Prevent blend mode from affecting other elements */
}

/* Hide animated text when in Simli conversation */
body.simli-active .animated-text-video {
    display: none;
}

/* Landing Header */
.landing-header {
    margin-bottom: 2rem;
}

.platform-label {
    font-family: 'EB Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass-mid);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.experience-title {
    font-family: 'Cinzel', 'EB Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--parchment);
    text-shadow: 
        0 0 40px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.25rem;
}

.experience-tagline {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--parchment-dark);
    letter-spacing: 0.05em;
}

/* Character Instruction */
.character-instruction {
    margin: 1.5rem 0 2rem;
}

.character-instruction p {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass-dark);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHARACTER GALLERY - Orbital Layout around peephole
   ═══════════════════════════════════════════════════════════════════════════ */

.character-gallery {
    position: absolute;
    top: 50%;  /* Centered */
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks through to background */
    z-index: 100;
    isolation: isolate; /* Break out of animated-text blend mode */
    animation: carousel-rotate 120s linear infinite;
    /* Pause until landing page is visible — prevents rotation/counter-rotation desync */
    animation-play-state: paused;
}

@keyframes carousel-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Counter-rotate cards to keep faces upright - matches gallery rotation speed in reverse */
@keyframes carousel-counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.character-card {
    position: absolute;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks on cards */
    transition: opacity 0.3s ease;
    /* Prevent blend mode inheritance from animated text */
    mix-blend-mode: normal !important;
    isolation: isolate; /* Break stacking context for alpha videos */
    
    /* Orbital positioning - each card uses --angle from JS */
    --orbit-radius: 42vmin; /* Distance from center */
    --angle: 0deg;
    
    top: 50%;
    left: 50%;
    /* Position on orbit using static angle */
    transform: 
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(-1 * var(--orbit-radius)));
}

/* Outer wrapper counter-rotates against carousel animation */
.character-card-spinner {
    transform: rotate(0deg);
    /* Counter-rotate against carousel animation - same duration, opposite direction */
    animation: carousel-counter-rotate 120s linear infinite;
    /* Pause until landing page is visible — must stay in sync with gallery rotation */
    animation-play-state: paused;
}

/* Unpause carousel animations ONLY when landing page is visible */
/* This ensures rotation + counter-rotation start at exactly the same moment */
#landing-page.active .character-gallery {
    animation-play-state: running;
}

#landing-page.active .character-card-spinner {
    animation-play-state: running;
}

/* Inner wrapper counter-rotates against static orbital angle */
.character-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Counter-rotate against the card's static orbital position angle */
    transform: rotate(calc(-1 * var(--angle)));
}

.character-card.coming-soon {
    opacity: 0.7;  /* More visible but still dimmed */
}

.character-card.coming-soon:hover {
    opacity: 0.9;
}

/* Ensure coming-soon videos still show */
.character-card.coming-soon .character-preview {
    opacity: 1;  /* Videos at full opacity, card itself is dimmed */
}

.character-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--shadow-mid), var(--shadow-deep));
    border-radius: 50%;
}

.placeholder-initial {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--brass-dark);
    opacity: 0.5;
}

.coming-soon-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-deep);
    color: var(--cream);
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Hover: just scale up the circle, don't move the card (orbital positioning) */
.character-card:hover .character-circle {
    transform: scale(1.15) translateZ(0);
}

.character-card:hover .character-circle-border {
    border-color: var(--brass-mid);
    box-shadow: 
        0 0 15px var(--glow-warm),
        inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.character-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.4rem;
    transition: transform 0.2s ease;
    /* CRITICAL: Solid opaque background for alpha videos */
    background: #0a0806 !important;
    background-color: #0a0806 !important;
    /* Prevent any blend mode inheritance */
    mix-blend-mode: normal !important;
    /* Create isolated compositing context so alpha videos composite against our bg */
    isolation: isolate;
    /* Force GPU layer with SCALE (same as hover uses) - this fixes transparency */
    transform: scale(1) translateZ(0);
    -webkit-transform: scale(1) translateZ(0);
    will-change: transform;
    /* Ensure this paints as opaque backdrop */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Solid backdrop layer behind video - darker for better contrast */
.character-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0a0806 !important;
    background-color: #0a0806 !important;
    z-index: 0;
    border-radius: 50%;
}

/* ACTUAL HTML element backdrop - more reliable than ::before for alpha videos */
.character-backdrop {
    position: absolute;
    inset: 0;
    background: #0a0806 !important;
    background-color: #0a0806 !important;
    z-index: 0;
    border-radius: 50%;
    /* Force this to be a real compositing layer */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Ensure it's fully opaque and renders as a surface */
    opacity: 1 !important;
}

.character-circle-border {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--brass-oxidized);
    box-shadow: 
        0 0 15px var(--glow-soft),
        inset 0 0 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
}

.character-preview,
.character-card video,
.character-circle video {
    position: absolute; /* Changed to absolute for proper stacking */
    inset: 0;
    z-index: 1; /* Above the backdrop */
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.1);
    transition: filter 0.3s ease;
    /* CRITICAL: Prevent video transparency from showing through */
    background: #0a0806 !important;
    background-color: #0a0806 !important;
    mix-blend-mode: normal !important;
    isolation: isolate;
    /* Force GPU compositing layer */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* AGGRESSIVE fix for alpha-channel videos */
    mix-blend-mode: normal !important;
    background-color: #0a0806 !important;
    background: #0a0806 !important;
    /* Force opaque rendering */
    isolation: isolate;
    opacity: 1 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Fallback: composite over solid color */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.character-card:hover .character-preview {
    filter: saturate(1) contrast(1.1);
}

.character-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        var(--wood-mid) 0%,
        var(--shadow-mid) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-placeholder::after {
    content: '?';
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--brass-oxidized);
    opacity: 0.5;
}

.character-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;  /* Bigger */
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f0e6d3;  /* Warm cream - more visible */
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: visible;
    text-transform: uppercase;
    text-shadow: 
        0 0 8px rgba(232, 74, 138, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 0 #e84a8a,
        1px -1px 0 #e84a8a,
        -1px 1px 0 #e84a8a,
        1px 1px 0 #e84a8a;  /* Pink glow outline */
}

.character-role {
    font-family: 'EB Garamond', serif;
    font-size: 0.7rem;  /* Bigger */
    font-style: italic;
    color: #e84a8a;  /* Pink */
    opacity: 1;
    white-space: nowrap;
    overflow: visible;
    text-shadow: 
        0 0 6px rgba(232, 74, 138, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPERIENCE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

#hearsay-app {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Door surface */
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        radial-gradient(ellipse at 30% 20%, var(--wood-mid) 0%, var(--wood-dark) 50%, var(--shadow-deep) 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO LAYERS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO LAYERS - Full screen, overlay.png does all the masking
   ═══════════════════════════════════════════════════════════════════════════ */

.video-layer {
    position: absolute;
    inset: 0;  /* Full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-layer.hidden,
.face-layer.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#layer-background {
    z-index: var(--z-background);
    background: var(--shadow-deep);
}

#layer-background video {
    /* Hallway background - sized to fit peephole opening */
    width: 70vmin;
    height: 70vmin;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%; /* Circular to match peephole */
}

#layer-transition {
    z-index: 1;
    transition: opacity 0.15s ease;
}

#layer-transition.hidden {
    display: none !important;
}

/* Face Container: centered mount for all face elements (walkup + simli) */
#face-container {
    position: absolute;
    /* Center in viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Make it BIG to fill peephole */
    width: 90%;
    height: 90%;
    /* Stack above background */
    z-index: 15;
    /* Ensure no cropping */
    overflow: visible;
}

.face-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.face-layer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#layer-simli {
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: auto;
    /* Black removal handled by canvas BlackRemover - no CSS blend */
}

#simli-mount {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

#simli-mount simli-widget {
    /* Fill and center in container */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    overflow: visible;
    background: transparent !important;
}

/* Hide Simli's SVG loading animation (dotted face outline) */
#simli-mount simli-widget svg {
    display: none !important;
    visibility: hidden !important;
}

/* Simli widget and ALL containers - fully transparent backgrounds */
#simli-mount,
#simli-mount simli-widget,
#simli-mount simli-widget *,
#layer-simli,
#layer-simli * {
    background: transparent !important;
    background-color: transparent !important;
}

/* Simli video - HIDDEN, canvas shows the processed frames */
#simli-mount simli-widget video {
    /* BlackRemover will hide this and show canvas instead */
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Canvas overlay for black removal - LARGER than peephole to hide edges */
#simli-canvas {
    position: fixed !important;
    top: 50% !important; /* True center */
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 110vmin !important;
    height: 110vmin !important; /* Square to match video aspect ratio */
    z-index: 100 !important;
    pointer-events: none !important;
}

/* Backup canvas rule */
#simli-mount #simli-canvas,
#layer-simli #simli-canvas,
#hearsay-app #simli-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Hide canvas if present */
#simli-mount simli-widget canvas {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PEEPHOLE FRAME - HIDDEN (using overlay.png instead)
   ═══════════════════════════════════════════════════════════════════════════ */

/* CSS peephole mask disabled - overlay.png does all the work now */
#layer-peephole {
    display: none;
}

#peephole-mask,
#peephole-glass {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOOR OVERLAY & VIGNETTE
   ═══════════════════════════════════════════════════════════════════════════ */

#layer-door-overlay {
    position: absolute;
    inset: 0;
    z-index: var(--z-door-overlay);
    pointer-events: none;  /* Clicks pass through to Simli */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make sure overlay image also passes through clicks */
#peephole-overlay {
    pointer-events: none;
}

/* Full-screen peephole overlay */
#peephole-overlay {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* Legacy door-ring support */
#door-ring {
    max-width: calc(var(--peephole-size) + 120px);
    max-height: calc(var(--peephole-size) + 120px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#door-ring.loaded {
    opacity: 1;
}

#vignette-overlay {
    position: absolute;
    inset: 0;
    z-index: var(--z-vignette);
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 25%,
        rgba(5, 4, 3, 0.3) 45%,
        rgba(5, 4, 3, 0.6) 60%,
        rgba(5, 4, 3, 0.85) 75%,
        rgba(5, 4, 3, 0.95) 90%,
        rgb(5, 4, 3) 100%
    );
}

.overlay-layer {
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPERIENCE UI
   ═══════════════════════════════════════════════════════════════════════════ */

.experience-ui {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-ui);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-dismiss,
.btn-back {
    font-family: 'EB Garamond', serif;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dismiss {
    background: linear-gradient(180deg, var(--blood-fresh) 0%, var(--blood-dried) 100%);
    border: 1px solid #5a2020;
    color: var(--parchment);
}

.btn-dismiss:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-dismiss:not(:disabled):hover {
    background: linear-gradient(180deg, #7a2525 0%, var(--blood-fresh) 100%);
}

.btn-back {
    background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-mid) 100%);
    border: 1px solid var(--brass-oxidized);
    color: var(--parchment);
}

.btn-back:hover {
    border-color: var(--brass-dark);
    background: linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-dark) 100%);
}

/* Character Info */
.character-info {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-ui);
    text-align: center;
}

.character-info #current-character-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--parchment);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.character-info #current-character-role {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--parchment-dark);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT BUTTON & MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.about-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #e84a8a;  /* Pink outline */
    color: #1a5c3a;  /* Billiard green */
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 0.6rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-shadow: 
        -1px -1px 0 #e84a8a,
        1px -1px 0 #e84a8a,
        -1px 1px 0 #e84a8a,
        1px 1px 0 #e84a8a;  /* Pink text outline */
}

.about-btn:hover {
    border-color: #ff6ba8;
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(-50%) scale(1.05);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 3, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    position: relative;
    max-width: 520px;
    padding: 3rem;
    text-align: center;
}

/* Recording Permission Modal */
.recording-modal-content {
    max-width: 480px;
    padding: 2.5rem 3rem;
}

.recording-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brass-mid);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.recording-modal-text {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--parchment);
    margin-bottom: 1rem;
}

.recording-modal-subtext {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--brass-oxidized);
    font-style: italic;
    margin-bottom: 1rem;
}

.recording-modal-headphone-note {
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: var(--parchment);
    background: rgba(139, 90, 43, 0.15);
    border-left: 3px solid var(--brass-oxidized);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.recording-modal-headphone-note strong {
    color: var(--brass-mid);
}

.recording-modal-headphone-note em {
    font-style: italic;
}

.recording-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recording-allow-btn {
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--parchment);
    background: linear-gradient(180deg, var(--brass-mid) 0%, var(--brass-dark) 100%);
    border: 1px solid var(--brass-highlight);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.recording-allow-btn:hover {
    background: linear-gradient(180deg, var(--brass-highlight) 0%, var(--brass-mid) 100%);
    transform: scale(1.02);
}

.recording-skip-btn {
    padding: 0.5rem 1.5rem;
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: var(--brass-oxidized);
    background: transparent;
    border: 1px solid var(--brass-oxidized);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recording-skip-btn:hover {
    color: var(--parchment);
    border-color: var(--parchment);
}

.recording-modal-note {
    font-family: var(--font-text);
    font-size: 0.75rem;
    color: var(--wood-light);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESS GATE MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.access-gate {
    z-index: 10000; /* Above everything */
}

.access-gate-content {
    max-width: 400px;
    padding: 3rem;
    text-align: center;
}

.access-gate-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--brass-mid);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.access-gate-text {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--parchment);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.access-gate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.access-gate-form input[type="password"] {
    width: 100%;
    max-width: 250px;
    padding: 0.75rem 1rem;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--parchment);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brass-oxidized);
    border-radius: 4px;
    text-align: center;
    letter-spacing: 0.1em;
}

.access-gate-form input[type="password"]::placeholder {
    color: var(--brass-oxidized);
    opacity: 0.7;
}

.access-gate-form input[type="password"]:focus {
    outline: none;
    border-color: var(--brass-mid);
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
}

.access-gate-form button[type="submit"] {
    padding: 0.75rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--wood-dark);
    background: linear-gradient(180deg, var(--brass-mid) 0%, var(--brass-oxidized) 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.access-gate-form button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--brass-highlight) 0%, var(--brass-mid) 100%);
    transform: scale(1.02);
}

.access-gate-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
}

.access-gate-error {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: #cc6666;
    margin-top: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: var(--brass-mid);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--parchment);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU BUTTONS - Fixed position at top corners
   ═══════════════════════════════════════════════════════════════════════════ */

.menu-buttons {
    position: fixed;
    bottom: 2rem;  /* Moved to bottom, below character gallery */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 500;
}

.menu-btn {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--brass-mid);
    color: var(--parchment);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--pink-outline), 0 0 20px rgba(232, 74, 138, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.menu-btn:hover {
    background: rgba(26, 92, 58, 0.9);
    border-color: var(--brass-light);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STORE MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.store-content {
    width: 95vw;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0a2618 0%, #1a4a32 50%, #0d3020 100%);
    border: 2px solid var(--brass-dark);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    position: relative;
    font-size: 0.9rem;
}

/* Store Header with Heraldic Crest */
.store-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--brass-dark);
}

.store-crest {
    width: 80px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: sepia(0.3) brightness(1.1);
}

.store-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--brass-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

/* Store Audio Controls - Bottom right to match main page */
.store-audio-controls {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--brass-dark);
    z-index: 1100; /* Above store modal content */
}

.audio-toggle-mini {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.volume-sliders-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--parchment-dark);
}

.volume-sliders-mini label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.volume-sliders-mini input[type="range"] {
    width: 100px;
    height: 6px;
    accent-color: var(--brass-mid);
    cursor: pointer;
}

.mute-btn-mini {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--brass-dark);
    color: var(--parchment);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.mute-btn-mini:hover {
    background: rgba(139, 69, 19, 0.6);
    border-color: var(--brass-mid);
}

.mute-btn-mini.muted {
    background: rgba(232, 74, 138, 0.3);
    border-color: #e84a8a;
}

.store-tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--brass-light);
    margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BAR MENU SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.bar-menu-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--brass-dark);
}

.bar-menu-section h2 {
    color: var(--pink-accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.bar-tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--brass-light);
    margin-bottom: 1rem;
}

.bar-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.bar-menu-grid.expanded {
    max-height: none;
}

.bar-drink-card {
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.2) 0%, 
        rgba(20, 12, 8, 0.9) 100%
    );
    border: 1px solid var(--brass-dark);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.drink-image {
    width: 100%;
    aspect-ratio: 4 / 3;  /* Wider format like store videos */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    background: var(--shadow-deep);
}

.drink-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Show full image, don't crop */
    object-position: center;
    filter: saturate(0.9) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.bar-drink-card:hover .drink-image img {
    filter: saturate(1.1) contrast(1.1);
    transform: scale(1.02);
}

.bar-drink-card:hover {
    border-color: var(--pink-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.drink-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.drink-mood {
    font-size: 1.5rem;
}

.drink-character {
    font-size: 0.7rem;
    font-family: 'Courier Prime', monospace;
    color: var(--pink-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.drink-name {
    font-family: 'Playfair Display', serif;
    color: var(--brass-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.drink-recipe {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--brass-mid);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted var(--brass-dark);
}

.drink-story {
    font-family: 'EB Garamond', serif;
    color: var(--cream);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.drink-virgin {
    font-size: 0.75rem;
    color: var(--brass-dark);
    font-family: 'Courier Prime', monospace;
}

.bar-toggle {
    display: block;
    margin: 1rem auto 0;
    background: transparent;
    border: 1px solid var(--brass-mid);
    color: var(--brass-light);
    padding: 0.5rem 1.5rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bar-toggle:hover {
    background: var(--brass-dark);
    color: var(--cream);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding-top: 0.75rem;
}

.store-product {
    position: relative;
    background: rgba(30, 25, 20, 0.8);
    border: 1px solid var(--brass-dark);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-product:hover {
    transform: translateY(-3px);
    border-color: var(--brass-mid);
}

.store-product.featured {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.08);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b9d, #ff4777);
    color: white;
    font-size: 0.6rem;
    padding: 4px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* All product images are now large format */

/* Responsive: single column on narrow screens */
@media (max-width: 700px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
}

.product-tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brass-light);
    margin: 0 0 0.3rem;
    opacity: 0.9;
}

.product-details {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-details.collapsed {
    display: none;
}

.product-details h4 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--parchment);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-contents {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.product-contents li {
    font-family: 'EB Garamond', serif;
    font-size: 0.75rem;
    color: var(--brass-light);
    padding: 0.2rem 0;
    padding-left: 1rem;
    position: relative;
}

.product-contents li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--brass-dark);
}

.product-cocktails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid var(--pink-accent);
}

.product-cocktails::before {
    content: '🍸 Signature Drink';
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: var(--pink-accent);
    margin-bottom: 0.25rem;
}

.cocktail-label {
    font-size: 0.75rem;
    color: var(--parchment-mid);
    font-style: italic;
}

.virgin-label {
    font-size: 0.7rem;
    color: var(--brass-mid);
}

.details-toggle {
    background: transparent;
    border: 1px solid var(--brass-dark);
    color: var(--brass-light);
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 0.5rem;
}

.details-toggle:hover {
    border-color: var(--brass-mid);
    color: var(--parchment);
}

.product-image {
    aspect-ratio: 3/2;  /* Landscape for sensory pack flat-lays */
    background: var(--shadow-deep);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Show full image, don't crop */
}

/* Product Gallery (multiple images) */
.product-gallery {
    margin-bottom: 0.75rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3/2;  /* Landscape for sensory pack flat-lays */
    object-fit: contain;  /* Show full image, don't crop */
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.25rem;
}

.gallery-thumbs img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--brass-mid);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brass-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Product Media Container - image + character video side by side */
.product-media {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-media .product-image,
.product-media .product-gallery {
    flex: 2;
    margin-bottom: 0;
}

.product-character-video {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    aspect-ratio: 3/4;  /* Portrait but wider than before */
    border-radius: 6px;
    overflow: hidden;
    background: #1a1512;
    position: relative;
}

.product-character-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1512;
    z-index: 0;
}

.product-character-video video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1512;
    mix-blend-mode: normal;
}

.product-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--parchment);
    margin: 0 0 0.3rem;
    letter-spacing: 0.05em;
}

.product-description {
    font-family: 'EB Garamond', serif;
    font-size: 0.75rem;
    color: var(--brass-light);
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-display);
    color: var(--billiard-green);
    font-size: 0.8rem;
}

.product-btn {
    background: var(--accent-deep);
    border: none;
    color: var(--cream);
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-btn:hover {
    background: #8a3040;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BAR GUIDE SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.bar-guide-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--brass-dark);
}

.bar-guide-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--pink-accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bar-tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--brass-light);
    margin-bottom: 1.5rem;
}

.bar-guide-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-drink-card {
    background: rgba(20, 15, 10, 0.9);
    border: 1px solid var(--brass-dark);
    border-left: 4px solid var(--pink-accent);
    border-radius: 8px;
    padding: 1.5rem;
}

.drink-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.drink-emoji {
    font-size: 1.5rem;
}

.drink-character {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brass-mid);
}

.drink-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--parchment-light);
    margin: 0 0 1rem;
}

.drink-ingredients {
    margin-bottom: 1rem;
}

.drink-ingredients strong {
    color: var(--brass-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.drink-ingredients ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.drink-ingredients li {
    font-size: 0.85rem;
    color: var(--parchment-mid);
    margin-bottom: 0.25rem;
}

.drink-instructions {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.drink-instructions strong {
    color: var(--brass-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.drink-instructions p {
    font-size: 0.9rem;
    color: var(--parchment-mid);
    line-height: 1.6;
    margin: 0;
}

.drink-story {
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    color: var(--brass-mid);
    margin-bottom: 0.75rem;
}

.drink-virgin {
    font-size: 0.8rem;
    color: var(--brass-mid);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.store-notice {
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    color: var(--brass-mid);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brass-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WAITLIST FORM
   ═══════════════════════════════════════════════════════════════════════════ */

.waitlist-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.waitlist-form input[type="email"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brass-dark);
    color: var(--parchment);
    padding: 0.6rem 1rem;
    font-family: 'EB Garamond', serif;
    font-size: 0.9rem;
    width: 220px;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--brass-dark);
}

.waitlist-form button {
    background: var(--billiard-green);
    border: none;
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.waitlist-form button:hover {
    background: #1a5a3a;
}

/* Coming Soon Modal */
.coming-soon-content h2 {
    font-family: var(--font-display);
    color: var(--parchment);
}

.coming-soon-content p {
    font-family: 'EB Garamond', serif;
    color: var(--brass-light);
    margin: 1rem 0 1.5rem;
}

.about-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--parchment);
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-lead {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--brass-mid);
}

.about-tagline {
    font-style: italic;
    color: var(--parchment-dark);
    margin-top: 1.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUDIO CONTROLS
   ═══════════════════════════════════════════════════════════════════════════ */

.audio-controls {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-ui);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Hide audio controls until landing page */
.audio-controls.hidden {
    display: none !important;
}

.audio-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--brass-oxidized);
    background: linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-dark) 100%);
    color: var(--parchment);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle:hover {
    border-color: var(--brass-mid);
    transform: scale(1.05);
}

.enable-recording-btn {
    order: -1;  /* Put above other elements */
    padding: 0.5rem 0.75rem;
    min-width: 140px;  /* Fixed width to prevent jumping */
    border-radius: 4px;
    border: 1px solid var(--brass-oxidized);
    background: linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-dark) 100%);
    color: var(--parchment);
    font-size: 0.75rem;
    font-family: var(--font-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.enable-recording-btn:hover {
    border-color: var(--brass-mid);
    transform: scale(1.02);
}

.enable-recording-btn.enabled {
    background: linear-gradient(180deg, #2a4a2a 0%, #1a3a1a 100%);
    border-color: #4a8a4a;
    cursor: default;
}

.enable-recording-btn:disabled {
    opacity: 0.8;
}

.audio-toggle.playing {
    border-color: var(--brass-mid);
    box-shadow: 0 0 10px var(--glow-soft);
}

.volume-sliders {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(26, 18, 12, 0.95);
    border: 1px solid var(--brass-oxidized);
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.audio-controls:hover .volume-sliders,
.audio-controls:focus-within .volume-sliders {
    display: flex;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-group label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--parchment-dark);
    width: 50px;
}

.slider-group input[type="range"] {
    width: 140px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--wood-dark);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brass-mid);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Mute Button */
.mute-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--brass-dark);
    color: var(--parchment);
    font-family: var(--font-display);
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.mute-btn:hover {
    background: rgba(139, 69, 19, 0.6);
    border-color: var(--brass-mid);
}

.mute-btn.muted {
    background: rgba(232, 74, 138, 0.4);
    border-color: #e84a8a;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes brass-pulse {
    0%, 100% {
        box-shadow: 
            inset 0 0 80px 30px rgba(0, 0, 0, 0.9),
            inset 0 0 30px 10px rgba(0, 0, 0, 0.6),
            0 0 150px 80px rgba(0, 0, 0, 0.95),
            0 0 20px 5px rgba(201, 162, 39, 0.1);
    }
    50% {
        box-shadow: 
            inset 0 0 80px 30px rgba(0, 0, 0, 0.9),
            inset 0 0 30px 10px rgba(0, 0, 0, 0.6),
            0 0 150px 80px rgba(0, 0, 0, 0.95),
            0 0 30px 8px rgba(201, 162, 39, 0.2);
    }
}

.simli-active #peephole-mask {
    animation: brass-pulse 3s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading #layer-simli::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-top-color: var(--brass-mid);
    border-right-color: var(--brass-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    :root {
        --peephole-size: 80vw;
    }
    
    .character-gallery {
        gap: 1.25rem;
    }
    
    .character-circle {
        width: 110px;
        height: 110px;
    }
    
    .character-name {
        font-size: 0.9rem;
    }
    
    .experience-title {
        font-size: 2rem;
    }
}

@media (max-height: 600px) {
    .landing-header {
        margin-bottom: 1rem;
    }
    
    .character-instruction {
        margin: 0.75rem 0 1rem;
    }
    
    .character-circle {
        width: 90px;
        height: 90px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .simli-active #peephole-mask {
        animation: none;
    }
    
    .page {
        transition: none;
    }
    
    .character-card {
        transition: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SESSION INDICATOR & END SESSION BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.session-indicator {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--brass-dark);
    color: var(--brass-mid);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    z-index: 490;
}

.session-indicator.hidden {
    display: none;
}

.session-btn {
    background: rgba(139, 69, 19, 0.85) !important;
    border-color: #d4a574 !important;
}

.session-btn:hover {
    background: rgba(178, 102, 51, 0.95) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WRITING ENGINE MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.writing-modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border: 2px solid var(--brass-dark);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}

.writing-state {
    padding: 2rem;
}

.writing-state.hidden {
    display: none;
}

/* Loading spinner */
.writing-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(212, 165, 116, 0.2);
    border-top-color: var(--brass-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.writing-state h2 {
    font-family: 'Playfair Display', serif;
    color: var(--brass-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.writing-state p {
    color: var(--parchment);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.writing-hint {
    color: var(--brass-mid) !important;
    font-style: italic;
    font-size: 0.85rem !important;
}

/* Chapter content */
.chapter-content {
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--brass-dark);
    border-radius: 4px;
    margin: 1.5rem 0;
}

.chapter-content p {
    color: var(--parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-indent: 1.5em;
}

.chapter-content p:first-child {
    text-indent: 0;
}

.chapter-meta {
    color: var(--brass-mid);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.meta-sep {
    margin: 0 0.5rem;
}

.chapter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error state */
#writing-error h2 {
    color: #e84a8a;
}

#writing-error-message {
    color: var(--parchment);
    background: rgba(232, 74, 138, 0.1);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAPTERS PAGE (Your Story)
   ═══════════════════════════════════════════════════════════════════════════ */

.chapters-btn {
    background: rgba(75, 0, 130, 0.85) !important;
    border-color: #9370db !important;
}

.chapters-btn:hover {
    background: rgba(106, 13, 173, 0.95) !important;
}

.chapters-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    border: 2px solid var(--brass-dark);
    border-radius: 8px;
    padding: 2.5rem;
}

.chapters-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--brass-dark);
}

.chapters-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--brass-light);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.chapters-tagline {
    color: var(--brass-mid);
    font-style: italic;
    font-size: 0.95rem;
}

/* Empty state */
.chapters-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--parchment);
}

.chapters-empty p {
    margin-bottom: 0.5rem;
}

.chapters-hint {
    color: var(--brass-mid);
    font-size: 0.9rem;
}

/* Chapters list */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chapter-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brass-dark);
    border-radius: 6px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-card:hover {
    border-color: var(--brass-mid);
    background: rgba(26, 21, 18, 0.6);
    transform: translateY(-2px);
}

.chapter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chapter-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--brass-light);
    margin: 0;
}

.chapter-date {
    color: var(--brass-mid);
    font-size: 0.8rem;
}

.chapter-preview {
    color: var(--parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.chapter-card-meta {
    color: var(--brass-mid);
    font-size: 0.8rem;
}

/* Chapter reader */
.chapter-reader {
    padding: 1rem 0;
}

.back-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.reader-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brass-dark);
}

.reader-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--brass-light);
    margin-bottom: 0.5rem;
}

.reader-meta {
    color: var(--brass-mid);
    font-size: 0.85rem;
}

.reader-content {
    max-height: 55vh;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.reader-content p {
    color: var(--parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    text-indent: 1.5em;
}

.reader-content p:first-child {
    text-indent: 0;
}

.reader-actions {
    text-align: center;
}

/* ─── Narrator Audio Player ─── */

.chapter-audio-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(139, 90, 43, 0.2);
}

.listen-btn {
    background: transparent;
    border: 1px solid var(--brass-dark);
    color: var(--brass-light);
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
}

.listen-btn:hover {
    border-color: var(--brass-mid);
    background: rgba(139, 90, 43, 0.1);
    color: var(--parchment);
}

.listen-btn.hidden {
    display: none;
}

.listen-icon {
    font-size: 1rem;
}

/* Loading spinner while TTS generates */
.listen-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brass-mid);
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
}

.listen-loading.hidden {
    display: none;
}

.listen-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--brass-dark);
    border-top-color: var(--brass-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Audio player controls */
.chapter-audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.chapter-audio-player.hidden {
    display: none;
}

.audio-play-pause {
    background: transparent;
    border: 1px solid var(--brass-dark);
    color: var(--brass-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.audio-play-pause:hover {
    border-color: var(--brass-mid);
    background: rgba(139, 90, 43, 0.15);
}

.audio-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(139, 90, 43, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background: var(--brass-mid);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    color: var(--brass-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BIND MANUSCRIPT SECTION & MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.bind-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.bind-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass-oxidized), transparent);
    margin-bottom: 2rem;
}

.bind-content {
    text-align: center;
}

.bind-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--brass-mid);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

.bind-content p {
    font-family: var(--font-text);
    color: var(--parchment);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.bind-hint {
    font-style: italic;
    font-size: 0.85rem !important;
    color: var(--brass-oxidized) !important;
    margin-bottom: 1.5rem !important;
}

.bind-btn {
    background: linear-gradient(180deg, var(--brass-mid) 0%, var(--brass-oxidized) 100%);
    color: var(--wood-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.bind-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--brass-highlight) 0%, var(--brass-mid) 100%);
    transform: scale(1.02);
}

.bind-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.bind-btn.not-ready {
    background: rgba(139, 90, 43, 0.3);
    border: 1px solid var(--brass-oxidized);
    color: var(--brass-oxidized);
}

/* Binding Modal */
.binding-modal-content {
    max-width: 550px;
}

.binding-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.binding-stats .stat {
    text-align: center;
}

.binding-stats .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--brass-mid);
    letter-spacing: 0.05em;
}

.binding-stats .stat-label {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--brass-oxidized);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.binding-message {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--parchment);
    opacity: 0.9;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Manuscript Modal */
.manuscript-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.manuscript-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 90, 43, 0.3);
}

.manuscript-header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brass-mid);
    margin-bottom: 0.5rem;
}

.manuscript-tagline {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--parchment);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.manuscript-meta {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--brass-oxidized);
}

.manuscript-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.manuscript-content p {
    color: var(--parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    text-indent: 1.5em;
}

.manuscript-content p:first-child {
    text-indent: 0;
}

.manuscript-content h2,
.manuscript-content h3 {
    font-family: var(--font-display);
    color: var(--brass-mid);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-indent: 0;
}

.manuscript-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass-oxidized), transparent);
    margin: 2rem 0;
}

.manuscript-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
