/* =============================================
   Opening Effects – Enhanced Stylesheet
   ============================================= */

/* ----- Design Tokens ----- */
:root {
    --oe-gold: #cda434;
    --oe-gold-light: #f9d976;
    --oe-gold-dark: #997a00;
    --oe-gold-deep: #8a6300;
    --oe-cream: #fdfbf7;
    --oe-dark: #0a0a0a;
    --oe-crimson: #8b0000;
    --oe-crimson-light: #d32f2f;
    --oe-envelope-bg: #dfd8c8;
    --oe-envelope-fold: #eee8d6;
    --oe-curtain-red: #600000;
    --oe-font-display: 'Playfair Display', serif;
    --oe-font-body: 'Inter', sans-serif;
    --oe-font-script: 'Dancing Script', cursive;
    --oe-font-fancy: 'Great Vibes', cursive;
    --oe-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --oe-transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --oe-transition-dramatic: cubic-bezier(0.64, 0.04, 0.35, 1);
    --oe-transition-elegant: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ----- Global Wrapper ----- */
#opening-effect-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--oe-cream, #fdfbf7);
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#opening-effect-wrapper.opening-effect-ring_serenade {
    background-color: #f7f5f0 !important;
}

#opening-effect-wrapper.opening-effect-white_orchid_envelope {
    background-color: #E8E5DF !important;
}

#opening-effect-wrapper.opening-effect-art_deco_envelope {
    background-color: #121212 !important;
}

#opening-effect-wrapper.opening-effect-envelope_3d {
    background-color: #fbf9f5 !important;
}

#opening-effect-wrapper.opening-effect-blue_envelope_reveal {
    background-color: #0d1b2a !important;
}

#opening-effect-wrapper.opening-effect-lace_envelope {
    background-color: #2b1118 !important;
}

#opening-effect-wrapper.opening-effect-mystic_mandala {
    background-color: #1f080c !important;
}

#opening-effect-wrapper.opening-effect-navy_envelope {
    background-color: #0b132b !important;
}

#opening-effect-wrapper.opening-effect-golden_lotus {
    background-color: #1c1815 !important;
}

#opening-effect-wrapper.opening-effect-zeekr_cinematic,
#opening-effect-wrapper.opening-effect-porsche_unveil,
#opening-effect-wrapper.opening-effect-porsche_night_run,
#opening-effect-wrapper.opening-effect-porsche_showroom,
#opening-effect-wrapper.opening-effect-the_net_lounge_crystal,
#opening-effect-wrapper.opening-effect-the_net_lounge_flame,
#opening-effect-wrapper.opening-effect-champion_race_day,
#opening-effect-wrapper.opening-effect-royal_prince,
#opening-effect-wrapper.opening-effect-royal_gates,
#opening-effect-wrapper.opening-effect-midnight_gatsby,
#opening-effect-wrapper.opening-effect-biometric_scan,
#opening-effect-wrapper.opening-effect-starfield_reveal,
#opening-effect-wrapper.opening-effect-vinyl_drop,
#opening-effect-wrapper.opening-effect-theater_drape {
    background-color: #0b0f19 !important;
}

#opening-effect-wrapper.opening-effect-child_birthday_v1,
#opening-effect-wrapper.opening-effect-child_birthday_v2,
#opening-effect-wrapper.opening-effect-child_birthday_v3,
#opening-effect-wrapper.opening-effect-child_birthday_v4,
#opening-effect-wrapper.opening-effect-child_birthday_v5,
#opening-effect-wrapper.opening-effect-child_birthday_v6,
#opening-effect-wrapper.opening-effect-golden_gift,
#opening-effect-wrapper.opening-effect-storybook {
    background-color: #fffdfa !important;
}

body.effect-active {
    overflow: hidden !important;
}

#opening-effect-wrapper.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ----- Shared Entrance Animation ----- */
#opening-effect-wrapper > div {
    animation: effectEntrance 0.8s var(--oe-transition-smooth) both;
}

@keyframes effectEntrance {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ----- Shared Keyframes ----- */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(205, 164, 52, 0.3); }
    70%  { box-shadow: 0 0 0 18px rgba(205, 164, 52, 0); }
    100% { box-shadow: 0 0 0 0 rgba(205, 164, 52, 0); }
}

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

@keyframes shimmerSweep {
    0%   { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1);   opacity: 0; }
    10%      { opacity: 1; }
    90%      { opacity: 1; }
    50%      { transform: translateY(-60px) scale(1.3); }
}

@keyframes hintGlow {
    0%, 100% { opacity: 0.4; text-shadow: 0 0 0 transparent; }
    50%      { opacity: 1;   text-shadow: 0 0 12px rgba(205, 164, 52, 0.5); }
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

/* ----- Reusable Particle Container ----- */
.effect-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.effect-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--oe-gold-light);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.effect-particles .particle:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s; animation-duration: 3.5s; }
.effect-particles .particle:nth-child(2) { left: 35%; top: 75%; animation-delay: 0.6s; animation-duration: 4.2s; }
.effect-particles .particle:nth-child(3) { left: 55%; top: 85%; animation-delay: 1.2s; animation-duration: 3.8s; }
.effect-particles .particle:nth-child(4) { left: 75%; top: 70%; animation-delay: 1.8s; animation-duration: 4.5s; }
.effect-particles .particle:nth-child(5) { left: 25%; top: 90%; animation-delay: 2.4s; animation-duration: 3.2s; }
.effect-particles .particle:nth-child(6) { left: 65%; top: 78%; animation-delay: 3s;   animation-duration: 4s; }


/* =========================================
   1. ENVELOPE (Premium)
   ========================================= */
.envelope-wrapper.premium-style {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--oe-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    perspective: 1200px;
    z-index: 20;
}

.envelope-wrapper.premium-style .envelope {
    position: relative;
    width: 320px;
    height: 220px;
    background: transparent;
    box-shadow: none;
    transition: transform 1.2s var(--oe-transition-bounce);
    animation: breathe 3s ease-in-out infinite;
}

.env-back {
    position: absolute;
    inset: 0;
    background: var(--oe-envelope-bg);
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.env-card {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 205px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    z-index: 1;
    transition: transform 1.2s var(--oe-transition-smooth) 0.5s, box-shadow 1.2s ease 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.env-card-content h3 {
    font-family: var(--oe-font-display);
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.env-card-content p {
    font-size: 0.9rem;
    color: #666;
}

.env-front {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
}

.env-left-fold, .env-right-fold, .env-bottom-fold {
    position: absolute;
    background: var(--oe-envelope-fold);
}

.env-left-fold {
    top: 0; left: 0; bottom: 0; width: 50%;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.03);
}

.env-right-fold {
    top: 0; right: 0; bottom: 0; width: 50%;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    box-shadow: inset 2px 0 5px rgba(0,0,0,0.03);
}

.env-bottom-fold {
    bottom: 0; left: 0; right: 0; height: 65%;
    background: #f4efdf;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    filter: drop-shadow(0 -3px 5px rgba(0,0,0,0.06));
}

.env-top-flap {
    position: absolute;
    top: 0; left: 0; right: 0; height: 60%;
    background: var(--oe-envelope-fold);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    z-index: 3;
    transition: transform 0.8s var(--oe-transition-smooth) 0.1s, z-index 0s 0.4s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.env-wax-seal {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 35% 35%, var(--oe-crimson-light), var(--oe-crimson));
    border-radius: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oe-gold-light);
    font-family: var(--oe-font-display);
    font-size: 26px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3);
    border: 2px solid #700000;
    transition: opacity 0.4s ease, transform 0.4s var(--oe-transition-bounce);
    overflow: hidden;
}

.env-seal-shimmer {
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shimmerSweep 3s ease-in-out infinite;
}

.env-hint {
    margin-top: 50px;
    color: #8b7355;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: hintGlow 2.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.envelope.open .env-wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
}

.envelope.open .env-top-flap {
    transform: rotateX(180deg);
    z-index: 0;
}

.envelope.open .env-card {
    transform: translateY(-150px) scale(1.1);
    z-index: 5;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.envelope.open {
    transform: translateY(60px);
    animation: none;
}

.envelope.open + .env-hint {
    opacity: 0;
}


/* =========================================
   2. CURTAINS
   ========================================= */
.curtains-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.curtain-valance {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, #4a0000, var(--oe-curtain-red));
    z-index: 15;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--oe-gold);
}

.curtain-valance::before {
    content: '';
    position: absolute;
    bottom: -25px; left: 0; right: 0;
    height: 25px;
    background: repeating-conic-gradient(var(--oe-curtain-red) 0% 25%, transparent 0% 50%) 0 0 / 60px 25px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--oe-curtain-red);
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(0,0,0,0.15) 35px, rgba(0,0,0,0.15) 38px, transparent 38px, transparent 70px),
        linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.2) 100%);
    transition: transform 1.4s var(--oe-transition-dramatic);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    will-change: transform;
}

.curtain.left {
    left: 0;
    border-right: 3px solid var(--oe-gold);
}

.curtain.right {
    right: 0;
    border-left: 3px solid var(--oe-gold);
}

.curtain-tassel {
    position: absolute;
    bottom: 30%;
    width: 8px;
    height: 80px;
    background: linear-gradient(180deg, var(--oe-gold), var(--oe-gold-dark));
    border-radius: 0 0 4px 4px;
}

.curtain-tassel::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: var(--oe-gold);
    border-radius: 0 0 50% 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.curtain.left .curtain-tassel { right: 20px; }
.curtain.right .curtain-tassel { left: 20px; }

.curtain-spotlight {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,200,0.15), transparent 70%);
    border-radius: 50%;
    z-index: 9;
    animation: breathe 3s ease-in-out infinite;
}

.curtains-wrapper.open .curtain.left {
    transform: translateX(-100%);
}

.curtains-wrapper.open .curtain.right {
    transform: translateX(100%);
}

.curtain-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    transition: opacity 0.5s, transform 0.5s;
}

.curtains-wrapper.open .curtain-center {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.seal {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #e6b800, #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 30px rgba(205,164,52,0.3);
    border: 4px double #fff;
    cursor: pointer;
    animation: pulse 2.5s infinite;
}

.btn-open-curtains {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}


/* =========================================
   3. ROYAL GATES
   ========================================= */
.gates-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    perspective: 1200px;
    background: var(--oe-dark);
    cursor: pointer;
    overflow: hidden;
}

.gate {
    position: relative;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #1f1f1f, #333);
    border: 2px solid var(--oe-gold);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    transition: transform 1.5s var(--oe-transition-dramatic);
    z-index: 10;
    will-change: transform;
}

.gate.left {
    border-right: 4px solid var(--oe-gold);
    transform-origin: left;
}

.gate.right {
    border-left: 4px solid var(--oe-gold);
    transform-origin: right;
}

.gate-ornament {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--oe-gold);
    opacity: 0.5;
}

.gate-ornament.top-left,
.gate-ornament.top-right { top: 20px; }
.gate-ornament.bottom-left,
.gate-ornament.bottom-right { bottom: 20px; }
.gate-ornament.top-left { left: 20px; border-radius: 50% 0 50% 0; }
.gate-ornament.bottom-left { left: 20px; border-radius: 0 50% 0 50%; }
.gate-ornament.top-right { right: 20px; border-radius: 0 50% 0 50%; }
.gate-ornament.bottom-right { right: 20px; border-radius: 50% 0 50% 0; }

.gate-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 60px;
    background: linear-gradient(to bottom, var(--oe-gold-light), var(--oe-gold), var(--oe-gold-light));
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transform: translateY(-50%);
}

.right-handle { right: 15px; }
.left-handle { left: 15px; }

.gates-light-rays {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,200,0.1) 30%, rgba(255,255,200,0.15) 50%, rgba(255,255,200,0.1) 70%, transparent);
    z-index: 9;
    opacity: 0;
    transition: opacity 0.8s ease, width 1.5s ease;
}

.gates-wrapper.open .gates-light-rays {
    opacity: 1;
    width: 100%;
}

.gates-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    text-align: center;
    color: var(--oe-gold);
    pointer-events: none;
    transition: opacity 0.5s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.gates-center-text h2 {
    font-family: var(--oe-font-display);
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    animation: breathe 3s ease-in-out infinite;
}

.gates-wrapper.open .gate.left { transform: rotateY(-105deg); }
.gates-wrapper.open .gate.right { transform: rotateY(105deg); }
.gates-wrapper.open .gates-center-text { opacity: 0; }


/* =========================================
   4. WAX SEAL CARD
   ========================================= */
.wax-card-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    cursor: pointer;
    overflow: hidden;
}

.card-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--oe-cream);
    transition: transform 1.2s var(--oe-transition-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.card-texture {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIi8+CjxwYXRoIGQ9Ik0xIDFoMnYySDF6IiBmaWxsPSIjZTBlMGUwIi8+Cjwvc3ZnPg==');
}

.card-half.top {
    top: 0;
    border-bottom: 2px solid #e0d8c3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 5;
}

.card-half.bottom { bottom: 0; border-top: 1px solid #fff; z-index: 4; }

.wax-seal-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s ease;
}

.real-wax {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, var(--oe-crimson-light), var(--oe-crimson));
    border-radius: 45% 55% 50% 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 3px 6px rgba(255,255,255,0.2), inset 0 -3px 6px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oe-gold-light);
    font-family: var(--oe-font-display);
    font-size: 36px;
    border: 2px solid #700000;
    position: relative;
    overflow: hidden;
    animation: breathe 3s ease-in-out infinite;
}

.wax-crack-lines {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wax-card-wrapper:active .wax-crack-lines,
.wax-card-wrapper.open .wax-crack-lines {
    opacity: 1;
}

.crack {
    position: absolute;
    background: rgba(0,0,0,0.4);
    border-radius: 1px;
}

.crack.c1 { top: 20%; left: 30%; width: 40%; height: 1px; transform: rotate(-15deg); }
.crack.c2 { top: 50%; left: 20%; width: 60%; height: 1px; transform: rotate(10deg); }
.crack.c3 { top: 70%; left: 25%; width: 45%; height: 1px; transform: rotate(-25deg); }

.tap-hint {
    margin-top: 15px;
    color: #333;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: hintBounce 2s ease-in-out infinite;
    opacity: 0.7;
}

.wax-card-wrapper.open .card-half.top { transform: translateY(-100%); }
.wax-card-wrapper.open .card-half.bottom { transform: translateY(100%); }
.wax-card-wrapper.open .wax-seal-center { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }


/* =========================================
   5. FROSTED GLASS
   ========================================= */
.frosted-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease;
    overflow: hidden;
    z-index: 999;
}

.frost-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.frost-crystal {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    filter: blur(1px);
    animation: frostFloat 6s ease-in-out infinite;
}

@keyframes frostFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20%      { opacity: 0.8; }
    80%      { opacity: 0.8; }
    50%      { transform: translateY(-40px) rotate(180deg); }
}

.frost-crystal:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.frost-crystal:nth-child(2) { left: 30%; top: 60%; animation-delay: 0.8s; }
.frost-crystal:nth-child(3) { left: 50%; top: 30%; animation-delay: 1.6s; }
.frost-crystal:nth-child(4) { left: 70%; top: 70%; animation-delay: 2.4s; }
.frost-crystal:nth-child(5) { left: 85%; top: 40%; animation-delay: 3.2s; }
.frost-crystal:nth-child(6) { left: 20%; top: 80%; animation-delay: 4s; }
.frost-crystal:nth-child(7) { left: 60%; top: 15%; animation-delay: 4.8s; }
.frost-crystal:nth-child(8) { left: 40%; top: 50%; animation-delay: 5.6s; }

.glass-content {
    text-align: center;
    color: #1a1a1a;
    transition: all 0.8s var(--oe-transition-smooth);
    z-index: 1;
}

.glass-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 3px;
}

.glass-line {
    width: 50px;
    height: 2px;
    background: var(--oe-gold);
    margin: 20px auto;
    animation: breathe 3s ease-in-out infinite;
}

.glass-subtitle {
    font-family: var(--oe-font-body);
    font-size: 1rem;
    color: #555;
    letter-spacing: 1px;
}

.pulse-circle {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 25px;
    border: 1px solid #1a1a1a;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.frosted-wrapper.open {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: transparent;
}

.frosted-wrapper.open .glass-content {
    transform: scale(1.3);
    opacity: 0;
}

.frosted-wrapper.open .frost-particles {
    opacity: 0;
    transition: opacity 0.5s;
}


/* =========================================
   6. MAGIC RING
   ========================================= */
.ring-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 1s;
}

.ring-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ring-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--oe-gold-light);
    border-radius: 50%;
    animation: orbitSpark 5s linear infinite;
    box-shadow: 0 0 6px var(--oe-gold);
}

@keyframes orbitSpark {
    0%   { transform: rotate(0deg)   translateX(110px) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: rotate(360deg) translateX(110px) scale(1.5); opacity: 0; }
}

.ring-spark:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; }
.ring-spark:nth-child(2) { top: 50%; left: 50%; animation-delay: 0.8s; }
.ring-spark:nth-child(3) { top: 50%; left: 50%; animation-delay: 1.6s; }
.ring-spark:nth-child(4) { top: 50%; left: 50%; animation-delay: 2.4s; }
.ring-spark:nth-child(5) { top: 50%; left: 50%; animation-delay: 3.2s; }
.ring-spark:nth-child(6) { top: 50%; left: 50%; animation-delay: 4s; }

.magic-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--oe-gold);
    box-shadow: 0 0 40px rgba(205,164,52,0.4), inset 0 0 40px rgba(205,164,52,0.4);
    transition: transform 1.5s var(--oe-transition-bounce), opacity 1s;
    position: relative;
    will-change: transform;
}

.magic-ring::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(205,164,52,0.6);
    animation: spin 10s linear infinite;
}

.ring-glow-pulse {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(205,164,52,0.2);
    animation: ringGlow 2.5s ease-in-out infinite;
}

@keyframes ringGlow {
    0%, 100% { transform: scale(1);   opacity: 0.3; box-shadow: 0 0 0 0 rgba(205,164,52,0); }
    50%      { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 30px rgba(205,164,52,0.3); }
}

.ring-core {
    width: 140px;
    height: 140px;
    background: rgba(205,164,52,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ring-initials {
    color: var(--oe-cream);
    font-family: var(--oe-font-script);
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(205,164,52,0.8);
}

.ring-hint {
    margin-top: 40px;
    color: var(--oe-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: hintGlow 2.5s ease-in-out infinite;
}

.ring-wrapper.open .magic-ring {
    transform: scale(25);
    opacity: 0;
    border-width: 1px;
}

.ring-wrapper.open .ring-hint { opacity: 0; }
.ring-wrapper.open .ring-particles { opacity: 0; transition: opacity 0.3s; }


/* =========================================
   7. GOLDEN GIFT (Enhanced)
   ========================================= */
.gift-wrapper {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 60%, #1a1410 0%, #0d0906 60%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 1200px;
    overflow: hidden;
    position: relative;
}

/* Ambient golden glow behind box */
.gift-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(205,164,52,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: giftAmbient 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes giftAmbient {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.gift-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.gift-sparkles .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--oe-gold-light);
    border-radius: 50%;
    animation: giftSparkle 4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--oe-gold), 0 0 12px rgba(249,217,118,0.3);
}

@keyframes giftSparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    15%      { opacity: 1; transform: scale(1.2) translateY(-5px); }
    30%      { opacity: 0.6; transform: scale(0.8) translateY(-15px); }
    50%      { opacity: 1; transform: scale(1) translateY(-8px); }
    85%      { opacity: 0.4; }
}

.gift-sparkles .sparkle:nth-child(1) { top: 25%; left: 25%; animation-delay: 0s; animation-duration: 3.5s; }
.gift-sparkles .sparkle:nth-child(2) { top: 35%; left: 72%; animation-delay: 1s; animation-duration: 4.2s; }
.gift-sparkles .sparkle:nth-child(3) { top: 65%; left: 18%; animation-delay: 2s; animation-duration: 3.8s; }
.gift-sparkles .sparkle:nth-child(4) { top: 20%; left: 65%; animation-delay: 3s; animation-duration: 4.5s; }

.gift-box {
    position: relative;
    width: 220px;
    height: 210px;
    transform-style: preserve-3d;
    animation: giftFloat 4s ease-in-out infinite;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50%      { transform: translateY(-8px) rotateX(1deg); }
}

.gift-body {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 200px;
    height: 130px;
    background: linear-gradient(160deg, var(--oe-gold) 0%, #c49b2d 40%, var(--oe-gold-dark) 100%);
    border-radius: 6px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.6),
        inset 0 2px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.2),
        inset 4px 0 8px rgba(0,0,0,0.1),
        inset -4px 0 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s var(--oe-transition-dramatic), opacity 0.8s ease 0.2s;
    will-change: transform;
    overflow: hidden;
}

.gift-ribbon-v {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 24px;
    background: linear-gradient(90deg, #5a0000, #9a1010, #5a0000);
    box-shadow: inset 2px 0 3px rgba(255,255,255,0.1), inset -2px 0 3px rgba(0,0,0,0.3);
}

.gift-text {
    color: #fff;
    font-family: var(--oe-font-display);
    font-size: 1.3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 1;
    letter-spacing: 1px;
}

.gift-lid {
    position: absolute;
    top: 35px;
    left: -2px;
    width: 224px;
    height: 50px;
    background: linear-gradient(160deg, #edcf5e 0%, #d4a930 40%, #b8860b 100%);
    border-radius: 6px 6px 4px 4px;
    z-index: 2;
    transition: transform 1.4s var(--oe-transition-bounce), opacity 0.8s ease 0.2s;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.35),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--oe-gold-deep);
    will-change: transform;
    overflow: visible;
}

.gift-ribbon-h {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    height: 24px;
    background: linear-gradient(180deg, #5a0000, #9a1010, #5a0000);
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.1), inset 0 -2px 3px rgba(0,0,0,0.3);
}

.gift-bow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 45px;
}

.bow-loop {
    position: absolute;
    top: 3px;
    width: 36px;
    height: 32px;
    background: linear-gradient(135deg, #b01010, #8a0000);
    border-radius: 50%;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,100,100,0.2);
}

.bow-loop.bow-left  { left: 3px; transform: rotate(-18deg); }
.bow-loop.bow-right { right: 3px; transform: rotate(18deg); }

.bow-knot {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 40% 35%, #c01515, #6b0000);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.gift-hint {
    margin-top: 45px;
    color: var(--oe-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--oe-font-body);
    animation: hintGlow 2.5s ease-in-out infinite;
}

/* Open animation */
.gift-wrapper.open .gift-box { animation: none; }

.gift-wrapper.open .gift-lid {
    transform: translateY(-250px) rotateX(25deg) rotateZ(-15deg) scale(1.15);
    opacity: 0;
}

.gift-wrapper.open .gift-body {
    transform: translateY(120px) scale(0.9);
    opacity: 0;
}

.gift-wrapper.open .gift-hint { opacity: 0; transition: opacity 0.3s; }

/* Sparkles burst outward on open */
.gift-wrapper.open .gift-sparkles .sparkle {
    animation: giftSparkBurst 1.5s ease-out forwards;
}

@keyframes giftSparkBurst {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 1; transform: scale(2.5) translateY(-40px); }
    100% { opacity: 0; transform: scale(0) translateY(-100px); }
}

.gift-wrapper.open .gift-sparkles .sparkle:nth-child(1) { animation-delay: 0s; }
.gift-wrapper.open .gift-sparkles .sparkle:nth-child(2) { animation-delay: 0.1s; }
.gift-wrapper.open .gift-sparkles .sparkle:nth-child(3) { animation-delay: 0.2s; }
.gift-wrapper.open .gift-sparkles .sparkle:nth-child(4) { animation-delay: 0.3s; }


/* =========================================
   8. STORYBOOK
   ========================================= */
.storybook-wrapper {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.book-dust-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.storybook-wrapper.open .book-dust-particles { opacity: 1; }

.book-dust-particles .dust {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--oe-gold-light);
    border-radius: 50%;
    animation: dustRise 3s ease-out forwards;
    opacity: 0;
}

@keyframes dustRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-120px) translateX(30px) scale(0); opacity: 0; }
}

.book-dust-particles .dust:nth-child(1) { left: 40%; top: 60%; animation-delay: 0.3s; }
.book-dust-particles .dust:nth-child(2) { left: 50%; top: 55%; animation-delay: 0.5s; }
.book-dust-particles .dust:nth-child(3) { left: 45%; top: 65%; animation-delay: 0.7s; }
.book-dust-particles .dust:nth-child(4) { left: 55%; top: 50%; animation-delay: 0.9s; }
.book-dust-particles .dust:nth-child(5) { left: 42%; top: 58%; animation-delay: 1.1s; }
.book-dust-particles .dust:nth-child(6) { left: 52%; top: 62%; animation-delay: 1.3s; }

.book-3d {
    position: relative;
    width: 280px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1s;
    box-shadow: 20px 20px 40px rgba(0,0,0,0.8);
    will-change: transform;
}

.book-page-under {
    position: absolute;
    top: 5px;
    left: 0;
    width: 96%;
    height: 97%;
    background: var(--oe-cream);
    border-radius: 2px 8px 8px 2px;
    z-index: 1;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.1);
    border-right: 3px solid #ddd;
    overflow: hidden;
}

.book-page-lines {
    width: 80%;
    height: 80%;
    margin: 10% auto;
    background: repeating-linear-gradient(
        180deg,
        transparent, transparent 28px,
        rgba(0,0,0,0.04) 28px, rgba(0,0,0,0.04) 29px
    );
}

.book-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    border-radius: 2px 12px 12px 2px;
    transform-origin: left center;
    transition: transform 1.5s var(--oe-transition-dramatic), opacity 1s 0.5s;
    z-index: 5;
    border: 2px solid var(--oe-gold);
    border-left: 10px solid var(--oe-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    will-change: transform;
    overflow: hidden;
}

.book-cover-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(205,164,52,0.3);
    border-radius: 4px;
    pointer-events: none;
}

.book-cover-content { padding: 20px; color: var(--oe-gold); z-index: 1; }

.book-title {
    font-family: var(--oe-font-display);
    font-size: 2.2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    margin: 0;
}

.book-ornament { font-size: 2rem; margin: 15px 0; }
.book-ornament-top, .book-ornament-bottom {
    font-size: 1.5rem;
    opacity: 0.6;
    margin: 10px 0;
}
.book-ornament-bottom { transform: rotate(180deg); }

.book-hint {
    font-family: var(--oe-font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    animation: hintGlow 2.5s ease-in-out infinite;
}

.storybook-wrapper.open .book-cover { transform: rotateY(-130deg); opacity: 0; }
.storybook-wrapper.open .book-3d { transform: translateX(50px); opacity: 0; transition-delay: 0.4s; }


/* =========================================
   9. SILK UNVEIL
   ========================================= */
.silk-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.silk-cloth {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #700000 0%, #300000 100%);
    position: relative;
    transition: transform 1.5s var(--oe-transition-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    z-index: 10;
    transform-origin: top;
    will-change: transform;
}

.silk-folds {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 10%, rgba(255,255,255,0.06) 15%, transparent 20%);
    z-index: 1;
}

.silk-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmerSweep 4s ease-in-out infinite;
    z-index: 2;
}

.silk-content {
    z-index: 3;
    color: var(--oe-gold);
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.silk-content h2 {
    font-family: var(--oe-font-display);
    font-size: 2.8rem;
    margin: 0;
    animation: breathe 3s ease-in-out infinite;
}

.silk-line {
    width: 60px;
    height: 2px;
    background: var(--oe-gold);
    margin: 20px auto;
}

.silk-content p {
    font-family: var(--oe-font-body);
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
    animation: hintGlow 2.5s ease-in-out infinite;
}

.silk-tassel {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 60px;
    background: linear-gradient(180deg, var(--oe-gold), var(--oe-gold-dark));
    z-index: 11;
    transition: transform 1.5s var(--oe-transition-elegant);
}

.silk-tassel::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 20px;
    background: var(--oe-gold);
    border-radius: 0 0 50% 50%;
}

.silk-tassel.left { left: 30%; }
.silk-tassel.right { right: 30%; }

.silk-wrapper.open .silk-cloth { transform: translateY(-100%); }
.silk-wrapper.open .silk-tassel { transform: translateY(-100vh); }


/* =========================================
   10. THEATER DRAPE (Video)
   ========================================= */
.theater-drape-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theater-drape-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
}

.theater-skip-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease 2s both;
}

.theater-skip-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

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

.theater-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oe-gold), var(--oe-gold-light));
    width: 0%;
    z-index: 10;
    transition: width 0.3s linear;
}


/* =========================================
   11. VELVET DRAWER
   ========================================= */
.velvet-drawer-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: #1a1a1a; display: flex; flex-direction: column;
    align-items: center; justify-content: center; overflow: hidden;
    cursor: pointer; z-index: 20;
}

.vd-box {
    position: relative; width: 280px; height: 350px;
    perspective: 1000px; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: breathe 4s ease-in-out infinite;
}

.vd-cover, .vd-drawer {
    position: absolute; left: 0; width: 100%;
    background: linear-gradient(135deg, #4a0404, #2a0000);
    border: 2px solid var(--oe-gold);
    overflow: hidden;
}

.vd-velvet-texture {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent, transparent 3px,
            rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 4px
        );
    pointer-events: none;
}

.vd-cover {
    top: 0; height: 50%; z-index: 3;
    border-bottom: 4px solid var(--oe-gold-dark);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.vd-drawer {
    bottom: 0; height: 50%; z-index: 4;
    border-top: none;
    transition: transform 1s var(--oe-transition-smooth);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 -5px 15px rgba(0,0,0,0.3);
    will-change: transform;
}

.vd-handle {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 20px; background: var(--oe-gold);
    border-radius: 0 0 20px 20px;
}

.vd-gem {
    position: absolute;
    top: -6px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(192,57,43,0.6), 0 0 15px rgba(192,57,43,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.vd-ring {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 25px; height: 25px; border: 3px solid var(--oe-gold-light);
    border-radius: 50%; box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.vd-card {
    position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    background: var(--oe-cream); z-index: 2; border: 1px solid #e0d8c3;
    border-radius: 4px; padding: 30px 15px; text-align: center;
    transition: transform 1.2s var(--oe-transition-bounce) 0.6s, opacity 1s 0.6s;
    will-change: transform;
}

.vd-title { font-family: var(--oe-font-display); color: #333; font-size: 1.6rem; }
.vd-line { width: 40px; height: 2px; background: var(--oe-gold); margin: 15px auto; }
.vd-text { color: #666; font-size: 0.9rem; }

.vd-hint {
    margin-top: 50px; color: var(--oe-gold); letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.8rem; animation: hintBounce 2s ease-in-out infinite; transition: opacity 0.3s;
}

.velvet-drawer-wrapper.open .vd-drawer { transform: translateY(110%); }
.velvet-drawer-wrapper.open .vd-card { transform: translateY(-120px) scale(1.15); z-index: 5; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.velvet-drawer-wrapper.open .vd-hint { opacity: 0; }
.velvet-drawer-wrapper.open .vd-box { animation: none; }


/* =========================================
   12. VINTAGE LOCKET
   ========================================= */
.locket-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #2c2c2c, #000); display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer; perspective: 1500px; z-index: 20;
    transition: transform 1.5s ease-in-out 1.2s, opacity 1s ease 2s;
}

.locket-chain {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 4px; height: calc(50% - 90px);
    background: repeating-linear-gradient(180deg, var(--oe-gold) 0, var(--oe-gold) 4px, var(--oe-gold-deep) 4px, var(--oe-gold-deep) 8px);
    animation: chainSwing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes chainSwing {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25%      { transform: translateX(-50%) rotate(1.5deg); }
    75%      { transform: translateX(-50%) rotate(-1.5deg); }
}

.locket-body {
    position: relative; width: 160px; height: 200px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: #e8c040;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 -10px 20px rgba(0,0,0,0.5);
    transform-style: preserve-3d; margin-top: -40px;
    overflow: hidden;
}

.locket-reflection {
    position: absolute;
    top: -50%; left: -50%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 45%, transparent 50%);
    animation: reflectionSweep 4s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes reflectionSweep {
    0%   { transform: translate(-20%, -20%) rotate(0deg); }
    50%  { transform: translate(120%, 120%) rotate(0deg); }
    100% { transform: translate(-20%, -20%) rotate(0deg); }
}

.locket-inside {
    position: absolute; inset: 5px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--oe-cream); display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2); z-index: 1;
}

.locket-initials { font-family: var(--oe-font-fancy); font-size: 4rem; color: var(--oe-gold-deep); }

.locket-door {
    position: absolute; top: 0; width: 50%; height: 100%;
    background: linear-gradient(135deg, var(--oe-gold-light), var(--oe-gold), var(--oe-gold-deep));
    z-index: 2; transition: transform 1.2s var(--oe-transition-dramatic);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.4); border: 2px solid #fff;
    will-change: transform;
    overflow: hidden;
}

.locket-engraving {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.locket-door.left {
    left: 0; border-radius: 60% 0 0 40% / 60% 0 0 40%; transform-origin: left center;
}

.locket-door.right {
    right: 0; border-radius: 0 60% 40% 0 / 0 60% 40% 0; transform-origin: right center;
}

.locket-hint {
    position: absolute; bottom: 15%; color: var(--oe-gold); letter-spacing: 2px;
    text-transform: uppercase; font-size: 0.8rem; animation: hintGlow 2.5s ease-in-out infinite;
}

.locket-wrapper.open .locket-door.left { transform: rotateY(-130deg); }
.locket-wrapper.open .locket-door.right { transform: rotateY(130deg); }
.locket-wrapper.open .locket-hint { opacity: 0; }
.locket-wrapper.open { transform: scale(15); opacity: 0; }


/* =========================================
   13. GOLDEN LOTUS (Enhanced)
   ========================================= */
.lotus-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 50% 70%, #0a2a1f 0%, #041610 50%, #010d09 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer; z-index: 20; perspective: 1000px;
}

/* Subtle ambient green glow */
.lotus-wrapper::before {
    content: '';
    position: absolute;
    bottom: 15%; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse, rgba(30,120,80,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: lotusAmbient 5s ease-in-out infinite;
}

@keyframes lotusAmbient {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Water ripple — centered properly */
.lotus-water-ripple {
    position: absolute;
    bottom: 18%;
    left: 50%;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(205,164,52,0.12);
    animation: lotusRipple 3.5s ease-out infinite;
    pointer-events: none;
}

.lotus-water-ripple::before,
.lotus-water-ripple::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    border: 1px solid rgba(205,164,52,0.08);
    animation: lotusRipple 3.5s ease-out infinite;
}

.lotus-water-ripple::before { animation-delay: 1.2s; }
.lotus-water-ripple::after { animation-delay: 2.4s; }

@keyframes lotusRipple {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Flower container — larger and centered */
.lotus-flower {
    position: relative;
    width: 180px; height: 180px;
    animation: lotusIdle 5s ease-in-out infinite;
}

@keyframes lotusIdle {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.02); }
}

/* Center jewel */
.lotus-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 70px; height: 70px;
    margin-top: -35px; margin-left: -35px;
    background: radial-gradient(circle at 35% 35%, #fff5c0, var(--oe-gold-light), var(--oe-gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--oe-font-display); font-size: 2rem; color: #fff;
    z-index: 5; opacity: 0; transform: scale(0.3);
    transition: all 1.2s var(--oe-transition-bounce) 0.8s;
    box-shadow:
        0 0 25px rgba(249,217,118,0.6),
        0 0 50px rgba(205,164,52,0.3),
        0 0 80px rgba(205,164,52,0.15),
        inset 0 -3px 6px rgba(0,0,0,0.2);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Petal base */
.petal {
    position: absolute;
    width: 55px; height: 110px;
    border-radius: 50% 50% 10% 50%;
    transform-origin: bottom center;
    z-index: 2;
    will-change: transform;
    overflow: hidden;
}

/* Petal vein texture */
.petal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.25) 0%, transparent 40%),
        repeating-linear-gradient(170deg, transparent, transparent 8px, rgba(255,255,255,0.06) 8px, rgba(255,255,255,0.06) 9px);
    border-radius: inherit;
    pointer-events: none;
}

/* Inner petals */
.petal.inner {
    z-index: 3;
    background: linear-gradient(150deg, #f0d050 0%, #d4a930 50%, var(--oe-gold-dark) 100%);
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.3),
        0 8px 20px rgba(0,0,0,0.4),
        0 0 15px rgba(205,164,52,0.15);
}

/* Outer petals — slightly translucent */
.petal.outer {
    z-index: 2;
    width: 48px; height: 100px;
    background: linear-gradient(150deg, var(--oe-gold) 0%, #8a6800 60%, #5a4200 100%);
    opacity: 0.75;
    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.2),
        0 6px 15px rgba(0,0,0,0.35);
}

/* Inner petal positions — properly centered */
.petal.inner.p-top    { top: -35px; left: 50%; margin-left: -27px; }
.petal.inner.p-right  { top: 50%; margin-top: -55px; right: -25px; transform: rotate(90deg); }
.petal.inner.p-bottom { bottom: -35px; left: 50%; margin-left: -27px; transform: rotate(180deg); }
.petal.inner.p-left   { top: 50%; margin-top: -55px; left: -25px; transform: rotate(-90deg); }

/* Outer petal positions (offset 45°) — properly centered */
.petal.outer.p-top-right    { top: -15px; right: -5px; transform: rotate(45deg); }
.petal.outer.p-bottom-right { bottom: -15px; right: -5px; transform: rotate(135deg); }
.petal.outer.p-bottom-left  { bottom: -15px; left: -5px; transform: rotate(-135deg); }
.petal.outer.p-top-left     { top: -15px; left: -5px; transform: rotate(-45deg); }

/* All petals: staggered transition for bloom cascade */
.petal.inner.p-top    { transition: transform 1.3s var(--oe-transition-bounce) 0.05s, opacity 0.9s ease 0.05s; }
.petal.inner.p-right  { transition: transform 1.3s var(--oe-transition-bounce) 0.15s, opacity 0.9s ease 0.15s; }
.petal.inner.p-bottom { transition: transform 1.3s var(--oe-transition-bounce) 0.25s, opacity 0.9s ease 0.25s; }
.petal.inner.p-left   { transition: transform 1.3s var(--oe-transition-bounce) 0.35s, opacity 0.9s ease 0.35s; }

.petal.outer.p-top-right    { transition: transform 1.1s var(--oe-transition-bounce) 0s,    opacity 0.8s ease 0s; }
.petal.outer.p-bottom-right { transition: transform 1.1s var(--oe-transition-bounce) 0.1s, opacity 0.8s ease 0.1s; }
.petal.outer.p-bottom-left  { transition: transform 1.1s var(--oe-transition-bounce) 0.2s, opacity 0.8s ease 0.2s; }
.petal.outer.p-top-left     { transition: transform 1.1s var(--oe-transition-bounce) 0.3s, opacity 0.8s ease 0.3s; }

.lotus-hint {
    margin-top: 130px;
    color: var(--oe-gold);
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: var(--oe-font-body);
    text-transform: uppercase;
    animation: hintGlow 2.5s ease-in-out infinite;
}

/* Open states — bloom cascade */
.lotus-wrapper.open .lotus-flower { animation: none; }

/* Inner petals open outward with gentle curl */
.lotus-wrapper.open .petal.inner.p-top    { transform: translateY(-90px) rotateX(75deg) scale(0.8); opacity: 0; }
.lotus-wrapper.open .petal.inner.p-right  { transform: rotate(90deg) translateY(-90px) rotateX(75deg) scale(0.8); opacity: 0; }
.lotus-wrapper.open .petal.inner.p-bottom { transform: rotate(180deg) translateY(-90px) rotateX(75deg) scale(0.8); opacity: 0; }
.lotus-wrapper.open .petal.inner.p-left   { transform: rotate(-90deg) translateY(-90px) rotateX(75deg) scale(0.8); opacity: 0; }

/* Outer petals open FIRST and WIDER */
.lotus-wrapper.open .petal.outer.p-top-right    { transform: rotate(45deg)   translateY(-110px) rotateX(85deg) scale(0.7); opacity: 0; }
.lotus-wrapper.open .petal.outer.p-bottom-right { transform: rotate(135deg)  translateY(-110px) rotateX(85deg) scale(0.7); opacity: 0; }
.lotus-wrapper.open .petal.outer.p-bottom-left  { transform: rotate(-135deg) translateY(-110px) rotateX(85deg) scale(0.7); opacity: 0; }
.lotus-wrapper.open .petal.outer.p-top-left     { transform: rotate(-45deg)  translateY(-110px) rotateX(85deg) scale(0.7); opacity: 0; }

/* Center reveals with golden pulse */
.lotus-wrapper.open .lotus-center {
    opacity: 1;
    transform: scale(1.3);
    box-shadow:
        0 0 40px rgba(249,217,118,0.8),
        0 0 80px rgba(205,164,52,0.4),
        0 0 120px rgba(205,164,52,0.2);
}

.lotus-wrapper.open .lotus-hint { opacity: 0; transition: opacity 0.3s; }
.lotus-wrapper.open .lotus-water-ripple { opacity: 0; transition: opacity 0.6s ease 0.3s; }

/* Final fade-out to reveal invitation */
.lotus-wrapper.open {
    transition: opacity 1s ease 2.2s;
    opacity: 0;
    pointer-events: none;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
    .envelope-wrapper.premium-style .envelope { width: 280px; height: 195px; }
    .book-3d { width: 240px; height: 350px; }
    .book-title { font-size: 1.8rem; }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
    .gates-center-text h2 { font-size: 2rem; }
    .glass-title { font-size: 2rem; }
    .silk-content h2 { font-size: 2.2rem; }
    .book-3d { width: 220px; height: 320px; }
    .book-title { font-size: 1.6rem; }
    .gift-box { width: 180px; height: 170px; }
    .gift-body { width: 160px; height: 110px; }
    .gift-lid { width: 180px; height: 40px; }
    .magic-ring { width: 150px; height: 150px; }
    .ring-core { width: 115px; height: 115px; }
    .ring-initials { font-size: 32px; }
    .locket-body { width: 130px; height: 165px; }
    .locket-initials { font-size: 3rem; }
    .vd-box { width: 240px; height: 300px; }
    .curtain-valance { height: 45px; }
    .curtain-tassel { height: 60px; }
}

/* Small phones */
@media (max-width: 480px) {
    .envelope-wrapper.premium-style .envelope { width: 240px; height: 170px; }
    .env-card { height: 160px; }
    .env-card-content h3 { font-size: 1.2rem; }
    .env-wax-seal { width: 50px; height: 50px; font-size: 20px; }
    .env-hint { font-size: 0.75rem; margin-top: 35px; }

    .gates-center-text h2 { font-size: 1.6rem; }
    .glass-title { font-size: 1.6rem; }
    .glass-subtitle { font-size: 0.85rem; }

    .silk-content h2 { font-size: 1.8rem; }
    .silk-content p { font-size: 0.75rem; letter-spacing: 2px; }

    .book-3d { width: 180px; height: 260px; }
    .book-title { font-size: 1.3rem; }
    .book-ornament { font-size: 1.5rem; margin: 8px 0; }

    .gift-box { width: 150px; height: 150px; }
    .gift-body { width: 130px; height: 90px; left: 10px; }
    .gift-lid { width: 150px; height: 35px; }
    .gift-text { font-size: 1rem; }

    .magic-ring { width: 120px; height: 120px; }
    .ring-core { width: 90px; height: 90px; }
    .ring-initials { font-size: 26px; }

    .real-wax { width: 70px; height: 70px; font-size: 28px; }
    .tap-hint { font-size: 0.75rem; }

    .locket-body { width: 110px; height: 140px; }
    .locket-initials { font-size: 2.5rem; }
    .lotus-flower { width: 120px; height: 120px; }
    .petal { width: 50px; height: 100px; }
    .petal.outer { width: 40px; height: 90px; }
    .lotus-center { font-size: 2rem; }
    .lotus-hint { margin-top: 90px; }

    .vd-box { width: 220px; height: 270px; }
    .vd-title { font-size: 1.3rem; }

    .curtain-valance { height: 35px; }
    .curtain-valance::before { height: 18px; background-size: 40px 18px; }
    .curtain-tassel { height: 45px; }

    .theater-skip-btn { bottom: 20px; right: 20px; font-size: 0.75rem; padding: 6px 16px; }

    .seal { width: 60px; height: 60px; }
}

/* =========================================
   7. GOLDEN GIFT (Magic Gift Box)
   ========================================= */
.opening-effect-golden_gift {
    cursor: pointer;
}

.audio-overlay.fun-intro {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.gift-box-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    animation: bounceGift 2s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

.gift-body {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 100px;
    height: 80px;
    background-color: #F8BBD0;
    border-radius: 5px;
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
}

.gift-body::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background-color: #D81B60;
}

.gift-lid {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 120px;
    height: 25px;
    background-color: #F48FB1;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-lid::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background-color: #D81B60;
}

.bow-left, .bow-right {
    position: absolute;
    bottom: 100%;
    width: 30px;
    height: 20px;
    border: 5px solid #D81B60;
    border-radius: 50% 50% 0 50%;
}
.bow-left { left: 50%; transform: translateX(-100%) rotate(-15deg); }
.bow-right { right: 50%; transform: translateX(100%) rotate(15deg); border-radius: 50% 50% 50% 0; }

.gift-box-container.open .gift-lid {
    transform: translateY(-80px) rotate(20deg) scale(1.1);
}

.gift-box-container.open .gift-body {
    transform: scaleY(0.9);
    transition: transform 0.3s;
}

.magic-stars i {
    position: absolute;
    color: #FFD54F;
    font-size: 1.2rem;
    opacity: 0;
    z-index: 10;
}

.star-1 { top: -20px; left: -20px; animation: twinkleStar 1.5s infinite 0.2s; }
.star-2 { top: 10px; right: -30px; animation: twinkleStar 1.5s infinite 0.5s; font-size: 0.9rem !important; }
.star-3 { top: -40px; right: 10px; animation: twinkleStar 1.5s infinite 0.8s; font-size: 1.5rem !important; }

.gift-box-container.open .star-1 { transform: translate(-40px, -60px) scale(1.5) rotate(45deg); opacity: 1; transition: all 0.6s; }
.gift-box-container.open .star-2 { transform: translate(50px, -40px) scale(1.5) rotate(90deg); opacity: 1; transition: all 0.6s; }
.gift-box-container.open .star-3 { transform: translate(20px, -80px) scale(2) rotate(180deg); opacity: 1; transition: all 0.6s; }

.tap-to-start-text {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #544A6E;
    animation: pulseText 1.5s infinite alternate;
}

.tap-to-start-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #888;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@keyframes bounceGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes twinkleStar {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(15deg); }
}

@keyframes pulseText {
    0% { transform: scale(0.98); opacity: 0.8; }
    100% { transform: scale(1.02); opacity: 1; }
}

/* =========================================
   15. VELVET MASQUERADE
   ========================================= */
.velvet-masquerade-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #f8f1f1;
    background-image: radial-gradient(circle at center, #ffffff 0%, #f7e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    perspective: 1200px;
    z-index: 20;
}

.vm-scene {
    position: relative;
    width: 320px;
    height: 220px;
    perspective: 1000px;
    z-index: 100;
}

.vm-envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background: #5d061e;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-flap {
    position: absolute;
    width: 0;
    height: 0;
}

.vm-top {
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 115px solid #5d061e;
    top: 0;
    left: 0;
    transform-origin: top;
    transition: transform 0.6s ease;
    z-index: 60;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.vm-bottom {
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-bottom: 110px solid #3d0315;
    bottom: 0;
    left: 0;
    z-index: 40;
}

.vm-left {
    border-top: 110px solid transparent;
    border-bottom: 110px solid transparent;
    border-left: 160px solid #5a0a20;
    top: 0;
    left: 0;
    z-index: 30;
}

.vm-right {
    border-top: 110px solid transparent;
    border-bottom: 110px solid transparent;
    border-right: 160px solid #5a0a20;
    top: 0;
    right: 0;
    z-index: 30;
}

.vm-seal-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 70;
    transition: all 0.4s ease;
}

.vm-envelope.open .vm-top {
    transform: rotateX(180deg);
    z-index: 20;
}

.vm-envelope.open .vm-seal-img {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

.vm-floral {
    position: absolute;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 80;
    background-size: contain;
    background-repeat: no-repeat;
}

.vm-tl { top: -60px; left: -60px; background-image: url('https://png.pngtree.com/png-vector/20240926/ourmid/pngtree-orchid-flower-border-png-image_13895130.png'); }
.vm-br { bottom: -60px; right: -60px; transform: rotate(180deg); background-image: url('https://png.pngtree.com/png-vector/20231023/ourmid/pngtree-red-orchid-on-white-background-vibrant-png-image_10174647.png'); }

.vm-card {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 300px;
    height: 200px;
    background: #fff url('https://www.transparenttextures.com/patterns/cream-paper.png');
    padding: 25px;
    box-sizing: border-box;
    border: 2px solid #b8860b;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.vm-envelope.open .vm-card {
    transform: translateY(-200px) scale(1.1);
    height: 445px;
    z-index: 90;
}

.vm-save-the-date {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #5d061e;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.vm-card-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #3a0312;
    margin: 15px 0;
}

.vm-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #b8860b;
    margin: 15px 0;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.vm-envelope.open .vm-card-photo {
    opacity: 1;
}

.vm-card-date {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #b8860b;
    font-weight: 700;
    letter-spacing: 2px;
}

.vm-hint {
    margin-top: 50px;
    color: #5d061e;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: hintGlow 2.5s ease-in-out infinite;
}


/* =========================================
   BUTTERFLY REVEAL
   ========================================= */
.opening-effect-butterfly_reveal {
    background: linear-gradient(145deg, #fef6f9 0%, #fcf0f4 50%, #f8e8ee 100%);
}

.butterfly-reveal-scene {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(145deg, #fef6f9 0%, #fcf0f4 50%, #f8e8ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* =========================================
   LACE ENVELOPE / BLUE ENVELOPE VIP
   ========================================= */
.lace-envelope-wrapper,
.blue-envelope-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
}

