/* ===================================================================
   🎂 7 TASTES OF BIRTHDAY — BORDERLESS DIFFUSED EDITORIAL SYSTEM
   =================================================================== */

:root {
    /* Fonts with complete Cyrillic support */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-fashion: 'Tenor Sans', serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Dynamic Theme Colors (Default: Theme 1 Blueberry) */
    --theme-color: #8b9dff;
    --theme-glow: rgba(139, 157, 255, 0.45);
    --theme-light: #d8e0ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);

    /* Animation Easing */
    --slider-ease: cubic-bezier(0.19, 1, 0.22, 1);
    --slider-duration: 0.9s;
}

/* --- THEME VARIATIONS --- */
body.theme-1 {
    --theme-color: #8b9dff;
    --theme-glow: rgba(139, 157, 255, 0.45);
    --theme-light: #d8e0ff;
}
body.theme-2 {
    --theme-color: #6cd488;
    --theme-glow: rgba(108, 212, 136, 0.45);
    --theme-light: #c8f5d4;
}
body.theme-3 {
    --theme-color: #ff688c;
    --theme-glow: rgba(255, 104, 140, 0.45);
    --theme-light: #ffcbd7;
}
body.theme-4 {
    --theme-color: #e5a85b;
    --theme-glow: rgba(229, 168, 91, 0.45);
    --theme-light: #fce4c4;
}
body.theme-5 {
    --theme-color: #f5cb3d;
    --theme-glow: rgba(245, 203, 61, 0.45);
    --theme-light: #faeab4;
}
body.theme-6 {
    --theme-color: #b665fa;
    --theme-glow: rgba(182, 101, 250, 0.45);
    --theme-light: #e8c2fe;
}
body.theme-7 {
    --theme-color: #f2c764;
    --theme-glow: rgba(242, 199, 100, 0.5);
    --theme-light: #faeac6;
}

/* --- COMPLETE SCROLLBAR SUPPRESSION (NO SCROLLBAR IN F11 OR WINDOWED) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background-color: #05070d;
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* --- TOAST CANVAS --- */
.toast-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
}

/* --- SITE HEADER: BORDERLESS & DIFFUSED --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(16px, 2.8vh, 26px) clamp(24px, 4vw, 56px);
    z-index: 95;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}

/* --- UNIFIED GLOWING PROGRESS CAPSULE BAR --- */
.progress-capsule-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 5px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: none;
}

.capsule-segment {
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    width: 22px;
    height: 5px;
    margin: 0 3px;
    border-radius: 4px;
    opacity: 0.3;
    transition: all 0.4s var(--slider-ease);
}

.capsule-segment:hover {
    opacity: 0.7;
    background: #fff;
}

.capsule-segment.active {
    width: 44px;
    height: 6px;
    opacity: 1;
    background: var(--seg-color);
    box-shadow: 0 0 14px var(--seg-color), 0 0 4px var(--seg-color);
}

/* --- REDESIGNED MINIMALIST SOUND BUTTON --- */
.audio-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: radial-gradient(ellipse at center, rgba(10, 18, 14, 0.85) 0%, rgba(6, 12, 9, 0.65) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-family: var(--font-fashion);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audio-pill-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.audio-equalizer-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.audio-equalizer-bars span {
    width: 2.5px;
    height: 4px;
    background: var(--theme-color);
    border-radius: 2px;
    transition: height 0.2s ease, background 0.4s ease;
}

.audio-pill-btn.playing .audio-equalizer-bars span:nth-child(1) {
    animation: barPulse 0.7s ease infinite alternate;
}
.audio-pill-btn.playing .audio-equalizer-bars span:nth-child(2) {
    animation: barPulse 0.5s ease 0.15s infinite alternate;
}
.audio-pill-btn.playing .audio-equalizer-bars span:nth-child(3) {
    animation: barPulse 0.8s ease 0.3s infinite alternate;
}

@keyframes barPulse {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* --- MAIN HORIZONTAL VIEWPORT & TRACK --- */
.horizontal-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 10;
}

.horizontal-track {
    display: flex;
    flex-direction: row;
    width: 700vw;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform var(--slider-duration) var(--slider-ease);
    will-change: transform;
}

/* Individual Fullscreen Slides */
.chapter-slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(70px, 10vh, 100px) clamp(24px, 5vw, 64px) clamp(30px, 5vh, 50px);
    overflow: hidden;
}

/* --- FULLSCREEN BACKGROUND CAKE (REDUCED BLUR FOR VIBRANT TEXTURE) --- */
.slide-bg {
    position: absolute;
    inset: -20px;
    background-image: var(--bg-cake);
    background-size: cover;
    background-position: center;
    /* Reduced blur: 3.5px gives crisp appetizing textures, fruits, and mirror facets */
    filter: blur(3.5px) brightness(0.72) contrast(1.05);
    transform: scale(1.05) translate3d(-15px, 0, 0);
    z-index: 1;
    pointer-events: none;
    transition: transform 1.2s var(--slider-ease), filter 1.2s ease;
}

.chapter-slide.active .slide-bg {
    filter: blur(3.5px) brightness(0.75) contrast(1.06);
    transform: scale(1.01) translate3d(0, 0, 0);
}

/* Diffused Vignette Veil */
.slide-diffused-halo {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5, 7, 13, 0.35) 0%, rgba(4, 5, 10, 0.72) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Slide Content Stage */
.slide-content-stage {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1240px;
    min-width: 0; /* Prevents overflow-x child from stretching flex container */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.slide-content-stage.split-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.slide-content-stage.center-stage {
    align-items: center;
    text-align: center;
}

/* --- CINEMATIC STAGGER ANIMATIONS --- */
.card-animate {
    opacity: 0;
    transform: translate3d(35px, 0, 0) scale(0.97);
    transition: opacity 0.85s var(--slider-ease), transform 0.85s var(--slider-ease);
}

.chapter-slide.active .card-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.chapter-slide.active .card-animate:nth-child(1) { transition-delay: 0.12s; }
.chapter-slide.active .card-animate:nth-child(2) { transition-delay: 0.22s; }
.chapter-slide.active .card-animate:nth-child(3) { transition-delay: 0.32s; }

/* --- BORDERLESS DIFFUSED HALO CARDS (NO HARD EDGES OR BORDERS) --- */
.diffused-halo-card {
    position: relative;
    border: none; /* No hard borders! */
    border-radius: 40px;
    padding: clamp(32px, 5vh, 52px) clamp(28px, 4vw, 48px);
    /* Soft diffused radial background fading seamlessly into the cake */
    background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.82) 0%, rgba(6, 8, 14, 0.58) 60%, transparent 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
    max-width: 660px;
    box-shadow: none;
}

.diffused-halo-header {
    margin-bottom: 24px;
    max-width: 760px;
}

.halo-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 6px;
    font-family: var(--font-fashion);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 14px;
    transition: color 0.4s ease;
}

.kicker-sparkle {
    font-size: 0.9rem;
    color: var(--theme-light);
}

.badge-dot {
    opacity: 0.4;
}

/* --- TYPOGRAPHY (HAUTE COUTURE PLAYFAIR + TENOR SANS + MANROPE) --- */
.display-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.display-title .title-highlight,
.display-title strong {
    font-style: italic;
    color: var(--theme-light);
    font-weight: 400;
}

.display-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.02rem, 1.8vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.display-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    border-left: 2px solid var(--theme-color);
    padding-left: 20px;
    margin: 16px 0 28px;
    transition: border-color 0.4s ease;
}

/* Horizontal Scroll Hint */
.horizontal-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: none;
}

.hint-glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-color);
    animation: hintGlow 1.8s ease infinite alternate;
}

@keyframes hintGlow {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 1; }
}

.hint-arrow {
    font-family: var(--font-fashion);
    font-size: 1.1rem;
    color: var(--theme-color);
    animation: nudgeRight 1.6s ease-in-out infinite alternate;
}

@keyframes nudgeRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(8px); }
}

/* --- BORDERLESS SOFT PILL BUTTONS --- */
.btn-diffused-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 38px;
    background: #ffffff;
    color: #070912;
    border: none;
    border-radius: 999px;
    font-family: var(--font-fashion);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-diffused-pill:hover {
    background: var(--theme-color);
    color: #05060b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px var(--theme-glow);
}

.btn-diffused-pill:active {
    transform: translateY(1px) scale(0.98);
}

.btn-aurora-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: linear-gradient(135deg, #f7d070 0%, #caa042 100%);
    border: none;
    color: #120d04;
    border-radius: 999px;
    font-family: var(--font-fashion);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(238, 193, 92, 0.5);
    transition: all 0.35s ease;
    overflow: hidden;
}

.btn-aurora-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: rotate(25deg);
    animation: goldShine 3.5s ease-in-out infinite;
}

@keyframes goldShine {
    0% { left: -60%; }
    25% { left: 140%; }
    100% { left: 140%; }
}

.btn-aurora-gold:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 50px rgba(238, 193, 92, 0.7);
}

/* --- SLIDE 2: HARMONIOUS ARTISANAL CANDLE (MATCHA & PISTACHIO COMPOSITION) --- */
.interactive-candle-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
}

.candle-pedestal-wrap {
    position: relative;
    width: 220px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.4s var(--slider-ease);
}

.candle-pedestal-wrap:hover {
    transform: translateY(-4px);
}

.candle-pedestal-wrap:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 8px;
    border-radius: 20px;
}

/* Soft Ambient Illumination Aura - Blends with Matcha background */
.candle-ambient-aura {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(255, 205, 115, 0.28) 0%, rgba(108, 212, 136, 0.1) 48%, transparent 72%);
    filter: blur(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    animation: ambientAuraBreathe 3.6s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes ambientAuraBreathe {
    0% {
        opacity: 0.72;
        transform: translateX(-50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

.artisanal-candle-body {
    position: relative;
    width: 140px;
    height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
}

/* Living Organic Multilayered Flame */
.living-flame {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 44px;
    transform-origin: 50% 90%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 5;
    pointer-events: none;
}

.flame-outer-halo {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 195, 90, 0.45) 0%, rgba(255, 130, 40, 0.16) 45%, transparent 72%);
    filter: blur(7px);
    animation: flameHaloPulse 1.8s ease-in-out infinite alternate;
}

@keyframes flameHaloPulse {
    0% { transform: scale(0.92); opacity: 0.75; }
    100% { transform: scale(1.08); opacity: 1; }
}

.flame-sparkle {
    position: absolute;
    font-size: 10px;
    color: rgba(255, 240, 190, 0.88);
    pointer-events: none;
    line-height: 1;
    filter: drop-shadow(0 0 3px rgba(255, 220, 120, 0.8));
    animation: sparkleDrift 2.6s ease-in-out infinite alternate;
}

.flame-sparkle.s1 {
    top: -6px;
    left: -10px;
    animation-delay: 0.1s;
}

.flame-sparkle.s2 {
    top: 8px;
    right: -12px;
    font-size: 8px;
    animation-delay: 1.2s;
}

@keyframes sparkleDrift {
    0% { transform: translateY(0) scale(0.85); opacity: 0.45; }
    50% { transform: translateY(-4px) scale(1.15); opacity: 0.95; }
    100% { transform: translateY(-8px) scale(0.7); opacity: 0.3; }
}

.flame-tear {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 50% 80%, #ff4d00 0%, #ff9500 36%, #ffcf4d 68%, #fffdf4 100%);
    box-shadow: 0 0 18px rgba(255, 175, 40, 0.85), 0 0 36px rgba(255, 135, 15, 0.45);
    animation: livingFlameFlicker 1.5s ease-in-out infinite alternate;
}

@keyframes livingFlameFlicker {
    0% {
        transform: scale(1) rotate(-1.5deg);
        border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    }
    35% {
        transform: scale(0.95, 1.05) rotate(2deg);
        border-radius: 48% 52% 33% 37% / 58% 62% 38% 42%;
    }
    70% {
        transform: scale(1.03, 0.97) rotate(-0.5deg);
    }
    100% {
        transform: scale(0.98, 1.02) rotate(1.5deg);
        border-radius: 52% 48% 37% 33% / 62% 58% 42% 38%;
    }
}

.flame-inner-white {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 20px;
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at center, #ffffff 65%, rgba(255, 248, 220, 0.8) 100%);
    filter: drop-shadow(0 0 5px #ffffff);
}

.flame-blue-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 100%, #2968ff 25%, rgba(85, 160, 255, 0.55) 65%, transparent 100%);
}

/* Ethereal Smoke Trails */
.candle-smoke {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 6;
}

.smoke-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.smoke-path {
    opacity: 0;
}

/* Extinguished State */
.candle-pedestal-wrap.extinguished .living-flame {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
    pointer-events: none;
}

.candle-pedestal-wrap.extinguished .candle-ambient-aura {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
}

.candle-pedestal-wrap.extinguished .candle-smoke {
    opacity: 1;
}

.candle-pedestal-wrap.extinguished .smoke-path.p1 {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: smokeFloat 2.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.candle-pedestal-wrap.extinguished .smoke-path.p2 {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: smokeFloat 3.3s cubic-bezier(0.2, 0.8, 0.3, 1) 0.18s forwards;
}

@keyframes smokeFloat {
    0% {
        stroke-dashoffset: 220;
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
    20% {
        opacity: 0.8;
    }
    75% {
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-40px) scale(1.15);
    }
}

/* Carbonized Natural Wick with Ember Glow */
.candle-wick {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 15px;
    background: linear-gradient(180deg, #18130f 0%, #3e3226 65%, #251c14 100%);
    border-radius: 1px 2px 0 0;
    z-index: 3;
}

.candle-wick::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #ff6e26;
    box-shadow: 0 0 3px #ff9e3b;
    transition: opacity 0.6s ease;
}

.candle-pedestal-wrap.extinguished .candle-wick::before {
    opacity: 0;
}

/* Fluted Ivory Wax Pillar with Molten Pool */
.fluted-wax-pillar {
    position: relative;
    width: 44px;
    height: 148px;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(90deg, #d3c4b1 0%, #eae0cd 20%, #faf6ec 50%, #eae0cd 80%, #cdc0ad 100%);
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.75),
                inset 0 -3px 6px rgba(0, 0, 0, 0.22),
                0 14px 34px rgba(0, 0, 0, 0.38);
    overflow: visible;
    z-index: 2;
}

.wax-melt-pool {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, #f7efe1 0%, #ded2bc 80%, #bbaa92 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.pillar-flutes {
    position: absolute;
    inset: 5px 0 0 0;
    border-radius: 0 0 4px 4px;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 6px, rgba(0, 0, 0, 0.032) 7px, rgba(255, 255, 255, 0.065) 8px);
    pointer-events: none;
}

.wax-drip-bead {
    position: absolute;
    background: linear-gradient(180deg, #eae0ce 0%, #dbcea9 100%);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.wax-drip-bead.d1 {
    top: 20px;
    right: -2px;
    width: 4.5px;
    height: 12px;
    border-radius: 3px 0 3px 3px;
}

.wax-drip-bead.d2 {
    top: 42px;
    left: -2px;
    width: 4px;
    height: 8px;
    border-radius: 0 3px 3px 3px;
}

/* Antique Satin Bronze Sculpted Pedestal Base */
.sculpted-pedestal {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.brass-collar {
    position: relative;
    width: 32px;
    height: 9px;
    background: linear-gradient(90deg, #382f21 0%, #756447 28%, #a28e67 50%, #756447 72%, #322a1d 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.32);
}

.brass-platter {
    position: relative;
    width: 116px;
    height: 22px;
    background: linear-gradient(180deg, #64553a 0%, #443926 70%, #282116 100%);
    border-radius: 50% 50% 42% 42% / 60% 60% 40% 40%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(225, 200, 145, 0.4);
}

.platter-rim-shine {
    position: absolute;
    top: 2px;
    left: 15%;
    width: 70%;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(230, 205, 150, 0.6), transparent);
}

.wish-reveal-box {
    display: none;
    margin-top: 24px;
    padding: 24px 28px;
    background: radial-gradient(ellipse at center, rgba(10, 18, 14, 0.85) 0%, rgba(6, 12, 9, 0.65) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: none;
    animation: fadeIn 0.8s ease forwards;
}

.wish-reveal-box.visible {
    display: block;
}

.wish-kicker {
    display: inline-block;
    font-family: var(--font-fashion);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 8px;
}

.wish-body {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
}

/* --- SLIDE 3: MEMORY GALLERY (BORDERLESS & DIFFUSED) --- */
.gallery-diffused-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.memory-photo-card {
    border: none;
    border-radius: 28px;
    padding: 16px 16px 24px;
    background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.8) 0%, rgba(6, 8, 14, 0.55) 70%, transparent 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    transition: transform 0.4s var(--slider-ease);
    text-align: left;
}

.memory-photo-card:hover {
    transform: translateY(-8px);
}

.memory-img-box {
    width: 100%;
    height: 230px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
}

.memory-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.memory-photo-card:hover .memory-img-box img {
    transform: scale(1.05);
}

.memory-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    margin: 16px 6px 4px;
}

.memory-location {
    font-family: var(--font-fashion);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 6px 8px;
}

.memory-note {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 6px;
}

/* --- SLIDE 4: LETTER (DIFFUSED) --- */
.letter-diffused-sheet {
    border: none;
    border-radius: 36px;
    padding: clamp(36px, 5vh, 60px) clamp(30px, 4vw, 60px);
    background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.85) 0%, rgba(6, 8, 14, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.letter-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
    margin-bottom: 26px;
}

.letter-date {
    font-family: var(--font-fashion);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-color);
}

.letter-star {
    color: var(--theme-light);
}

.letter-salutation {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff;
}

.letter-content p {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}

.letter-sheet-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    margin-top: 26px;
    text-align: right;
}

.letter-sign {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.letter-author {
    font-family: var(--font-fashion);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-top: 4px;
}

/* --- SLIDE 5: ASPIRATIONS (DIFFUSED) --- */
.aspirations-diffused-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.aspiration-card {
    border: none;
    border-radius: 28px;
    padding: 36px 28px;
    background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.8) 0%, rgba(6, 8, 14, 0.55) 70%, transparent 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    cursor: default;
    transition: transform 0.4s var(--slider-ease);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.aspiration-card:hover {
    transform: translateY(-8px);
}

.aspiration-card.selected {
    background: radial-gradient(ellipse at center, rgba(16, 20, 32, 0.9) 0%, rgba(12, 16, 26, 0.7) 70%, transparent 100%);
}

.aspiration-num {
    font-family: var(--font-fashion);
    font-size: 1.4rem;
    color: var(--theme-color);
    margin-bottom: 8px;
}

.aspiration-tag {
    font-family: var(--font-fashion);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.aspiration-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.aspiration-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* --- SLIDE 6: VINYL DECK --- */
.vinyl-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.vinyl-badge {
    font-family: var(--font-fashion);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 5px 14px;
    background: radial-gradient(ellipse at center, rgba(10, 18, 14, 0.85) 0%, rgba(6, 12, 9, 0.65) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    color: var(--theme-color);
}

.vinyl-tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vinyl-diffused-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deck-frame {
    position: relative;
    width: clamp(240px, 32vw, 320px);
    height: clamp(240px, 32vw, 320px);
    background: radial-gradient(circle, #1a1626 0%, #0a0812 100%);
    border-radius: 28px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.vinyl-groove-disc {
    position: relative;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        #0e0b12 0px,
        #0e0b12 3px,
        #1c1624 4px,
        #0e0b12 6px
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vinyl-groove-disc.spinning {
    animation: vinylTurn 3.5s linear infinite;
}

@keyframes vinylTurn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-label {
    width: 36%;
    height: 36%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--theme-color) 0%, #451b68 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vinyl-star { font-size: 0.75rem; color: #fff; }
.vinyl-artist { font-family: var(--font-serif); font-size: 0.75rem; color: #fff; margin: 2px 0; }
.vinyl-side { font-family: var(--font-fashion); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }

.tonearm-rig {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 120px;
    transform-origin: 20px 10px;
    transform: rotate(-25deg);
    transition: transform 0.9s var(--slider-ease);
    z-index: 10;
    pointer-events: none;
}

.tonearm-rig.on-record {
    transform: rotate(18deg);
}

.tonearm-pivot {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc;
}

.tonearm-stick {
    position: absolute;
    top: 10px;
    right: 7px;
    width: 3px;
    height: 90px;
    background: linear-gradient(180deg, #ccc 0%, #777 100%);
}

.tonearm-cartridge {
    position: absolute;
    bottom: 12px;
    right: 2px;
    width: 13px;
    height: 20px;
    background: var(--theme-color);
    border-radius: 2px;
}

.diffused-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    margin-top: 18px;
}

.diffused-equalizer span {
    width: 3px;
    height: 4px;
    background: var(--theme-color);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.diffused-equalizer.active span:nth-child(odd) { animation: eqDance 0.7s ease infinite alternate; }
.diffused-equalizer.active span:nth-child(even) { animation: eqDance 0.9s ease 0.15s infinite alternate; }

@keyframes eqDance {
    0% { height: 3px; }
    100% { height: 18px; }
}

/* --- SLIDE 7: IMPERIAL TOAST (DIFFUSED) --- */
.toast-btn-wrapper {
    margin: 14px 0 30px;
}

.imperial-certificate-halo {
    max-width: 720px;
    margin: 0 auto;
    border: none;
    border-radius: 36px;
    padding: clamp(26px, 4vw, 40px);
    background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.85) 0%, rgba(6, 8, 14, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}

.cert-stamp-badge {
    display: inline-block;
    font-family: var(--font-fashion);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--theme-color);
    background: radial-gradient(ellipse at center, rgba(10, 18, 14, 0.85) 0%, rgba(6, 12, 9, 0.65) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    padding: 4px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.cert-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 14px;
    color: #fff;
}

.cert-body {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.cert-body strong {
    color: var(--theme-light);
    font-weight: 600;
}

.cert-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cert-sign-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--theme-light);
}

.btn-return-restart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-fashion);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 14px;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.btn-return-restart:hover {
    color: #fff;
}

/* --- ANIMATION UTILITY --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- F11 & FULLSCREEN OPTIMIZATION & MOBILE VIEWPORTS --- */
@media (min-width: 1440px) {
    .slide-content-stage {
        max-width: 1360px;
    }
    .display-title {
        font-size: 4.6rem;
    }
}

@media (max-width: 900px) {
    .card-animate {
        transform: translate3d(0, 14px, 0) scale(0.98);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .chapter-slide.active .card-animate {
        transform: translate3d(0, 0, 0) scale(1);
    }
    /* Prevent radial mask clipping on narrow screens */
    .diffused-halo-card,
    .memory-photo-card,
    .aspiration-card,
    .diffused-cert-plate {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        border-radius: 24px;
    }
    .display-title {
        font-size: clamp(2rem, 6.5vw, 3rem);
        line-height: 1.15;
    }
    .site-header {
        padding: 14px 20px;
    }
    .progress-capsule-bar {
        padding: 4px 8px;
        gap: 3px;
    }
    .capsule-segment {
        width: 16px;
        height: 4px;
        margin: 0 1.5px;
    }
    .capsule-segment.active {
        width: 32px;
        height: 5px;
    }
    
    .slide-content-stage.split-stage {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 480px;
    }
    .interactive-candle-stage {
        order: -1;
    }
    .candle-pedestal-wrap {
        width: 180px;
        height: 220px;
        transform: scale(0.85);
        margin-bottom: -15px;
    }
    
    /* Horizontal touch scroll-snap for memories gallery (shows ALL cards) */
    .slide-content-stage {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .gallery-diffused-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex;
        flex-direction: row;
        gap: 16px;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 16px 20px;
    }
    .gallery-diffused-grid::-webkit-scrollbar {
        display: none;
    }
    .memory-photo-card {
        flex: 0 0 260px;
        scroll-snap-align: center;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Horizontal touch scroll-snap for aspirations */
    .aspirations-diffused-row {
        display: flex;
        flex-direction: row;
        gap: 16px;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 16px 20px;
    }
    .aspirations-diffused-row::-webkit-scrollbar {
        display: none;
    }
    .aspiration-card {
        flex: 0 0 260px;
        scroll-snap-align: center;
        display: flex !important;
        flex-direction: column !important;
    }

    .diffused-parchment {
        padding: 28px 24px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .deck-frame {
        width: 220px;
        height: 220px;
    }
    .vinyl-platter {
        width: 185px;
        height: 185px;
    }
    .arm-mechanism {
        height: 125px;
    }
}

@media (max-width: 480px) {
    .chapter-slide {
        padding: 64px 14px 24px !important;
    }
    .display-title {
        font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
        line-height: 1.18;
        text-wrap: balance;
    }
    .site-header {
        padding: 10px 14px;
    }
    .capsule-segment {
        width: 11px;
        height: 3.5px;
        margin: 0 1px;
    }
    .capsule-segment.active {
        width: 22px;
        height: 4px;
    }
    .audio-label {
        display: none;
    }
    .audio-pill-btn {
        padding: 6px 10px;
    }
    
    .display-title {
        font-size: clamp(1.6rem, 5.6vw, 2rem);
        line-height: 1.18;
        word-break: normal;
        overflow-wrap: break-word;
    }
    .diffused-halo-card {
        padding: 20px 16px;
    }
    .diffused-halo-header {
        margin-bottom: 12px;
        padding: 0 8px;
    }
    .diffused-halo-header .display-title {
        font-size: clamp(1.5rem, 5.4vw, 1.95rem);
        line-height: 1.15;
    }
    .diffused-halo-header .display-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .halo-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
        flex-wrap: wrap;
        text-align: center;
    }
    .diffused-halo-header {
        width: 100%;
        max-width: 100%;
        margin-bottom: 14px;
        padding: 0 4px;
        box-sizing: border-box;
    }
    .display-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .candle-pedestal-wrap {
        width: 160px;
        height: 180px;
        transform: scale(0.72);
        margin-bottom: -25px;
    }
    .btn-diffused-pill {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
    .wish-reveal-box {
        margin-top: 14px;
        padding: 16px 18px;
    }
    .wish-body {
        font-size: 1.05rem;
    }

    .memory-photo-card {
        flex: 0 0 240px;
        padding: 14px 14px 20px;
    }
    .memory-img-box {
        height: 180px;
    }

    .aspiration-card {
        flex: 0 0 240px;
        padding: 24px 20px;
    }

    .diffused-parchment {
        padding: 22px 18px;
        max-height: 55vh;
    }
    .letter-body {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .deck-frame {
        width: 185px;
        height: 185px;
    }
    .vinyl-platter {
        width: 155px;
        height: 155px;
    }
    .arm-mechanism {
        height: 105px;
    }

    .diffused-cert-plate {
        padding: 24px 18px;
        border-radius: 20px;
    }
    .cert-heading {
        font-size: 1.8rem;
    }
    .cert-body {
        font-size: 1.02rem;
    }
}

@media (max-height: 660px) {
    .chapter-slide {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    .candle-pedestal-wrap {
        height: 160px;
        transform: scale(0.65);
        margin-bottom: -30px;
    }
    .diffused-parchment {
        max-height: 50vh;
    }
    .deck-frame {
        width: 160px;
        height: 160px;
    }
    .vinyl-platter {
        width: 135px;
        height: 135px;
    }
}
