/* ==========================================================================
   Base Styles & Design Tokens (Light Mode & Scrapbook Aesthetic)
   ========================================================================== */
:root {
    --bg-dark: #fffefb; /* Creamy paper color */
    --bg-dark-accent: #fff5f6; /* Warm pink paper color */
    --primary: #f06292; /* Sweet pink rose */
    --primary-light: #ff94b8; /* Light pastel pink */
    --primary-dark: #c2185b; /* Deep rose */
    --primary-glow: rgba(240, 98, 146, 0.2);
    --accent: #fcd34d; /* Amber gold */
    --text-dark: #3a3230; /* Soft charcoal/pencil ink */
    --text-muted: #7d706c; /* Soft slate/brown pencil */
    --envelope-bg: #f7d4c8; /* Soft terracotta pastel */
    --envelope-dark: #ebbeb1;
    --letter-bg: #fffcf5; /* Vintage writing paper */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-handwritten: 'Caveat', cursive;
    --font-script: 'Sacramento', cursive;
    
    --card-shadow: 0 15px 35px rgba(220, 200, 195, 0.25);
    --card-border: 2px dashed rgba(240, 98, 146, 0.15);
    --glass-bg: rgba(255, 254, 251, 0.75);
    --glass-blur: blur(8px);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Mobile Blocker Overlay (Desktop-only enforcement)
   ========================================================================== */
.mobile-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #fffcf9 0%, #ffeef2 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.blocker-content {
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed var(--primary-light);
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(220, 200, 195, 0.3);
}

.blocker-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.blocker-content h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.blocker-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.heart-pulse {
    font-size: 2.5rem;
    animation: heartbeat 1.2s infinite;
}

/* Media Query to activate blocker */
@media (max-width: 1023px) {
    .mobile-blocker {
        display: flex;
    }
    .page-container, .music-control, #particle-canvas {
        display: none !important;
    }
}

/* ==========================================================================
   Background Particles & Global Elements
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

/* Floating Music Control */
.music-control {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-control.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.5s, transform 0.5s;
}

.music-control.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

#music-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(240, 98, 146, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

#music-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(240, 98, 146, 0.5);
}

.music-icon.rotating {
    animation: rotate 4s linear infinite;
}

.music-control.muted .music-icon.rotating {
    animation-play-state: paused;
}

.music-tooltip {
    background: rgba(58, 50, 48, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.music-control:hover .music-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Page & Slide Layout (Scroll Snap)
   ========================================================================== */
.page-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 3;
}

.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
}

.slide-content {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: fadeInUp 0.8s ease-out;
}

/* Scrapbook Grid & Patterns for slides */
#slide-letter {
    background: #fffcf8;
    background-image: radial-gradient(#ffebee 1.2px, transparent 1.2px), radial-gradient(#ffebee 1.2px, #fffcf8 1.2px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

#slide-gallery {
    background: #fffbfd;
    background-image: linear-gradient(rgba(240, 98, 146, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(240, 98, 146, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

#slide-cake {
    background: #fefcf5;
}

#slide-wish {
    background: #fffaf8;
    background-image: radial-gradient(#ebd0cd 1px, transparent 0);
    background-size: 24px 24px;
}

/* Shared Typography */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.15rem;
    font-family: var(--font-handwritten);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    text-align: center;
    max-width: 600px;
}

/* Scroll Down / Next indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
    animation: pulseSlow 2s infinite;
}

.scroll-arrow {
    animation: bounceDown 1.5s infinite;
    font-size: 0.95rem;
    color: var(--primary);
}

/* Scrapbook Doodles / Stickers / Pins */
.scrapbook-pin {
    position: absolute;
    font-size: 2rem;
    z-index: 6;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.left-pin { top: 5%; left: 8%; transform: rotate(-15deg); }
.right-pin { top: 7%; right: 9%; transform: rotate(20deg); }
.center-pin { top: 4%; left: 50%; transform: translateX(-50%) rotate(5deg); }

.scrapbook-tape {
    position: absolute;
    width: 130px;
    height: 35px;
    background: rgba(254, 219, 145, 0.45);
    border-left: 2px dashed rgba(255,255,255,0.5);
    border-right: 2px dashed rgba(255,255,255,0.5);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    z-index: 6;
}
.right-tape { top: 6%; right: 12%; transform: rotate(-8deg); }
.left-tape-angle { top: 8%; left: 10%; transform: rotate(15deg); background: rgba(255, 182, 193, 0.45); }

.scrapbook-sticker {
    position: absolute;
    font-size: 2.2rem;
    z-index: 6;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
}

/* ==========================================================================
   Slide 1: Welcome Hero Section (Image Fully Visible)
   ========================================================================== */
#slide-hero {
    background: #fffdf9;
}

.hero-scrapbook-board {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 0.5rem 2rem;
    z-index: 5;
}

.hero-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.hero-image {
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(220, 200, 195, 0.45);
    border: 8px solid #ffffff; /* Premium polaroid-like paper border */
    background: #ffffff;
    transform: rotate(-0.5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.01);
}

.hero-footer-bar {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-top: 2px dashed rgba(240, 98, 146, 0.15);
    background: transparent;
}

.hero-bar-text {
    text-align: left;
}

.pre-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Primary Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 6;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(240, 98, 146, 0.4);
}

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

.btn-heart-icon {
    font-size: 0.95rem;
    animation: heartbeat 1.2s infinite;
}

/* ==========================================================================
   Slide 2: The Letter (3D Envelope)
   ========================================================================== */
.envelope-container {
    perspective: 1200px;
    width: 440px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-top: 1rem;
}

.envelope {
    position: relative;
    width: 420px;
    height: 270px;
    background-color: var(--envelope-dark);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 15px 35px rgba(220, 200, 195, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.envelope-container:hover .envelope {
    transform: translateY(-10px);
}

/* Flaps and Pocket */
.flap {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.top-flap {
    top: 0;
    left: 0;
    border-width: 140px 210px 0 210px;
    border-color: var(--envelope-bg) transparent transparent transparent;
    transform-origin: top;
    z-index: 4;
    transition: transform 0.5s ease 0.3s, z-index 0.1s ease 0.5s;
}

.left-flap {
    top: 0;
    left: 0;
    border-width: 135px 0 135px 215px;
    border-color: transparent transparent transparent var(--envelope-dark);
    z-index: 3;
    border-bottom-left-radius: 8px;
}

.right-flap {
    top: 0;
    right: 0;
    border-width: 135px 215px 135px 0;
    border-color: transparent var(--envelope-dark) transparent transparent;
    z-index: 3;
    border-bottom-right-radius: 8px;
}

.pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 145px;
    background-color: var(--envelope-bg);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 3;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.02);
}

/* The Letter Paper */
/* The Letter Paper */
.letter-paper {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 380px;
    height: 440px; /* Increased from 340px to show all letter text without scrollbars */
    background: var(--letter-bg);
    padding: 3rem 2.5rem; /* Tighter padding for text spacing */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
    overflow: hidden;
    
    /* Closed state: tucked inside and invisible to prevent corner-peeking bugs */
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transform-origin: center center;
    
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s ease,
                z-index 0.1s ease;
                
    /* Notebook ruled lines */
    background-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 96%, #e8dcd9 96%, #e8dcd9 100%);
    background-size: 100% 28px;
    background-color: var(--letter-bg);
}

/* Red notebook left margin */
.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35px;
    height: 100%;
    width: 2px;
    background-color: rgba(255, 78, 121, 0.25);
    z-index: 1;
}

.notebook-header {
    height: 10px;
    border-bottom: 2px double rgba(255, 78, 121, 0.15);
    margin-bottom: 15px;
}

.letter-text {
    font-family: var(--font-handwritten);
    font-size: 1.15rem;
    font-weight: 600;
    color: #4b3e3b;
    line-height: 28px; /* Must match background-size height */
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    padding-left: 1.5rem;
}

.letter-salutation {
    font-weight: 700;
    font-size: 1.3rem;
}

.letter-text p {
    margin-bottom: 0px; /* Aligned with lines */
}

.letter-valediction {
    margin-top: 1.5rem;
    font-weight: 600;
}

.signature {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-dark);
    display: inline-block;
    margin-top: 4px;
    line-height: 1;
}

/* Scrollbar inside letter paper */
.letter-text::-webkit-scrollbar {
    width: 4px;
}
.letter-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
.letter-text::-webkit-scrollbar-thumb {
    background: var(--envelope-dark);
    border-radius: 2px;
}

/* Opened Envelope State */
.envelope-container.open .top-flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition: transform 0.5s ease, z-index 0.1s ease 0.15s;
}

.envelope-container.open .letter-paper {
    opacity: 1;
    transform: translateY(-340px) scale(1.65); /* Increased slide translation */
    z-index: 10;
    box-shadow: 0 20px 45px rgba(180, 150, 145, 0.4);
    
    /* Delay the letter slide-out until the flap finishes opening */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, 
                opacity 0.4s ease 0.3s,
                z-index 0s ease 0.3s;
}

.envelope-container.open .letter-text {
    opacity: 1;
    transition: opacity 0.4s ease 0.7s; /* Fade text in once the letter is fully scaled */
}

/* ==========================================================================
   Slide 3: Polaroid Gallery (Scrapbook Collage)
   ========================================================================== */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    width: 100%;
    perspective: 1000px;
}

.polaroid-card {
    background-color: #faf8f5;
    padding: 16px 16px 26px 16px;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(180, 160, 155, 0.35);
    transform: rotate(var(--rotation));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 330px;
    cursor: pointer;
    z-index: 4;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f3ede7;
    border-radius: 2px;
}

.polaroid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(10%) contrast(1.02);
    transition: filter 0.4s ease;
}

.polaroid-caption {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    font-weight: 700;
    color: #4b3e3b;
    text-align: center;
    margin-top: 1.2rem;
    letter-spacing: 0.5px;
}

/* Washi Tape styling overlay */
.washi-tape {
    position: absolute;
    width: 100px;
    height: 28px;
    background: rgba(254, 219, 145, 0.55);
    border-left: 2px dashed rgba(255,255,255,0.4);
    border-right: 2px dashed rgba(255,255,255,0.4);
    z-index: 5;
}
.tape-top {
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
}
.tape-top-right {
    top: -12px;
    right: 20px;
    transform: rotate(6deg);
    background: rgba(255, 182, 193, 0.55);
}

/* Gallery hover effects */
.polaroid-card:hover {
    transform: scale(1.06) rotate(0deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(180, 160, 155, 0.5);
    z-index: 10;
}

/* ==========================================================================
   Slide 4: Cake & Celebration
   ========================================================================== */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.cake-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cake-container.fade-out {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    pointer-events: none;
}

/* Cake design */
.cake {
    position: relative;
    width: 260px;
    height: 160px;
}

.cake-plate {
    position: absolute;
    bottom: -15px;
    left: -20px;
    width: 300px;
    height: 20px;
    background: #f0eae1;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.cake-layer {
    position: absolute;
    width: 260px;
    border-radius: 120px / 30px;
}

.bottom-layer {
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, #f3abb8 0%, #e07f91 100%);
}

.middle-layer {
    bottom: 35px;
    height: 65px;
    background: linear-gradient(to bottom, #ffd1da 0%, #efa1af 100%);
}

.frosting-top {
    position: absolute;
    top: 30px;
    width: 260px;
    height: 45px;
    background: #fffefb;
    border-radius: 120px / 25px;
    z-index: 2;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.frosting-top::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 260px;
    height: 20px;
    background-image: radial-gradient(circle at 10px -5px, #fffefb 15px, transparent 16px);
    background-size: 20px 30px;
}

/* Candles */
.candle-holder {
    position: absolute;
    top: -15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 3;
}

.candle {
    position: relative;
    width: 12px;
    height: 55px;
    background: linear-gradient(to right, #ffe5e8 50%, #f06292 50%);
    background-size: 15px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.candle:hover {
    transform: scale(1.1);
}

.candle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 5px;
    width: 2px;
    height: 6px;
    background: #555;
}

/* Flame */
.flame {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 22px;
    background: radial-gradient(circle at 50% 80%, #ffed8a 30%, #ff9800 70%, #ff3d00 100%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
    animation: flicker 0.15s ease-in-out infinite alternate;
    transform-origin: 50% 80%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.candle.blown-out .flame {
    opacity: 0;
    transform: translateX(-50%) scale(0);
    pointer-events: none;
}

/* Celebration message block */
.celebration-msg {
    text-align: center;
    max-width: 650px;
    z-index: 5;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 3px dashed var(--primary-light);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-msg.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.celebration-msg.hidden {
    display: none;
}

.wishing-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.celebration-msg p {
    font-size: 1.15rem;
    font-family: var(--font-handwritten);
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

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

/* ==========================================================================
   Slide 5: Make a Wish (Form connected to Webhook)
   ========================================================================== */
.scrapbook-form-container {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 480px;
}

/* Option Buttons Grid */
.wish-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.wish-option-btn {
    background: #faf8f5;
    border: 2px dashed rgba(240, 98, 146, 0.2);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.wish-option-btn:nth-child(odd) {
    transform: rotate(-1.5deg);
}
.wish-option-btn:nth-child(even) {
    transform: rotate(2deg);
}

.wish-option-btn .wish-icon {
    font-size: 2rem;
}

.wish-option-btn .wish-label {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.wish-option-btn:hover {
    transform: scale(1.06) rotate(0deg);
    box-shadow: 0 8px 18px rgba(220, 200, 195, 0.3);
    border-color: var(--primary-light);
}

.wish-option-btn.active {
    background-color: #fff2f5;
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(240, 98, 146, 0.15);
    transform: scale(1.04) translateY(-4px);
}

/* Lined notebook form paper */
.wish-form-paper {
    background: var(--letter-bg);
    border: 1px solid rgba(220, 200, 195, 0.35);
    border-radius: 4px;
    padding: 3rem 3.5rem;
    width: 100%;
    box-shadow: 0 15px 35px rgba(220, 200, 195, 0.3);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    /* Ruled lines pattern */
    background-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 96%, #e8dcd9 96%, #e8dcd9 100%);
    background-size: 100% 32px;
}

/* Notebook binder ring holes decoration */
.wish-form-paper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 12px;
    background-image: radial-gradient(circle, #ddd 6px, transparent 7px);
    background-size: 30px 100%;
    opacity: 0.7;
}

.wish-form-paper.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    top: 80px;
}

.wish-fields-section {
    display: none;
}

.wish-fields-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.wish-fields-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.wish-info-text {
    font-family: var(--font-handwritten);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Form controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 2px dashed var(--primary-light);
    background: transparent;
    padding: 8px 10px;
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.form-input::placeholder {
    color: #a89c99;
}

.form-input:focus {
    border-bottom-color: var(--primary);
    border-bottom-style: solid;
}

.form-textarea {
    height: 96px;
    resize: none;
    line-height: 32px;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-submit {
    box-shadow: 0 6px 15px rgba(240, 98, 146, 0.3);
}

/* Success Card */
.wish-success-card {
    background: #fffcf8;
    border: 3px dashed var(--primary-light);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 15px 35px rgba(220, 200, 195, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-success-card.hidden {
    display: none;
}

.seal-icon {
    font-size: 3.5rem;
    animation: heartbeat 1.2s infinite;
    margin-bottom: 1rem;
}

.wish-success-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.wish-success-card p {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    20%, 60% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(1);
    }
}

@keyframes bounceDown {
    0%, 100%, 20%, 50%, 80% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

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

@keyframes flicker {
    0% {
        transform: translateX(-50%) rotate(-1deg) scale(0.95);
    }
    100% {
        transform: translateX(-50%) rotate(1deg) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.9;
    }
}

/* ==========================================================================
   Slide 6: Peace & Music Player Styling
   ========================================================================== */
.peace-player-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    width: 100%;
    max-width: 900px;
    margin-top: 1rem;
}

/* Left Card: Lyrics box */
.lyrics-card {
    flex: 1.1;
    background: #fffcf8;
    border: 1px solid rgba(220, 200, 195, 0.35);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(220, 200, 195, 0.25);
    display: flex;
    flex-direction: column;
    padding: 2.2rem 2.5rem;
    position: relative;
    max-height: 480px;
    
    /* Ruled notebook line texture */
    background-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 96%, #e8dcd9 96%, #e8dcd9 100%);
    background-size: 100% 28px;
}

/* Red margin line */
.lyrics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    height: 100%;
    width: 2px;
    background-color: rgba(255, 78, 121, 0.25);
    z-index: 1;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px double rgba(255, 78, 121, 0.15);
    padding-bottom: 8px;
    z-index: 2;
    padding-left: 2rem;
}

.lyrics-title-label {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.spotify-badge {
    color: #1ed760; /* Spotify Green */
    font-size: 1.8rem;
    animation: rotate 10s linear infinite;
    animation-play-state: paused;
}

.lyrics-card.playing .spotify-badge {
    animation-play-state: running;
}

.lyrics-body {
    flex: 1;
    overflow-y: auto;
    font-family: var(--font-handwritten);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 28px; /* Alignment with line grid */
    color: #524744;
    padding-left: 2rem;
    position: relative;
    z-index: 2;
}

.lyrics-body::-webkit-scrollbar {
    width: 4px;
}
.lyrics-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
.lyrics-body::-webkit-scrollbar-thumb {
    background: var(--envelope-dark);
    border-radius: 2px;
}

/* Paragraph spacing inside lyrics */
.lyrics-body p {
    margin-bottom: 28px; /* Align with ruled lines */
}

/* Custom Highlight text class (Spotify active line indicator) */
.lyrics-body .highlight {
    background: linear-gradient(120deg, rgba(254, 219, 145, 0.5) 0%, rgba(254, 219, 145, 0.8) 100%);
    padding: 0 4px;
    border-radius: 2px;
}

.lyrics-footer {
    display: flex;
    justify-content: flex-start;
    padding-left: 2rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 2;
}

/* Right Card: Music Player */
.player-card {
    flex: 0.9;
    background: #faf8f5;
    border: 1px solid rgba(220, 200, 195, 0.35);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(220, 200, 195, 0.3);
    padding: 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-height: 480px;
}

.player-card .tape-top {
    top: -14px;
    width: 110px;
    height: 28px;
    background: rgba(255, 182, 193, 0.55);
    z-index: 5;
}

.player-album-art {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.player-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.player-card.playing .player-album-art img {
    transform: scale(1.03);
}

.player-info {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.player-song-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.player-song-artist {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Progress Slider */
.player-progress-container {
    width: 100%;
    margin-bottom: 1.5rem;
}

.player-progress-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.player-progress-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
}

.player-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-dark);
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.1s, background-color 0.2s;
}

.player-progress-slider:hover::-webkit-slider-thumb {
    transform: scale(1.3);
    background: var(--primary);
}

.player-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 6px;
}

/* Media Controls */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 240px;
    margin-top: 0.5rem;
}

.player-ctrl-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.player-ctrl-btn:hover {
    color: var(--primary);
    transform: scale(1.08);
}

.player-ctrl-btn:active {
    transform: scale(0.95);
}

/* Main Play/Pause Button */
.player-ctrl-btn.btn-play-main {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-dark);
    color: #fffefb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.player-ctrl-btn.btn-play-main:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

.player-ctrl-btn.btn-play-main .play-icon {
    margin-left: 3px; /* visual center fix for triangle play icon */
}

.player-ctrl-btn.btn-play-main.playing .play-icon {
    margin-left: 0;
}

/* Active Toggle button states */
.player-ctrl-btn.active {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(240, 98, 146, 0.3);
}
