/* ==========================================================================
   Birthday Special Web Page Styling - Rose Gold, Gold & Lavender Theme
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --bg-dark: #0c0817;
    --bg-dark-glow: #1a0f30;
    --rose-gold: #b76e79;
    --rose-gold-light: #d4a5ab;
    --lavender: #c3b1e1;
    --lavender-dark: #7a60a6;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --white: #ffffff;
    --text-muted: #b5a9cc;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(15px);
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Twinkling Stars Canvas --- */
#sparkles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Common UI Components --- */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* --- Sound Toggle Button --- */
.music-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.music-btn:hover {
    background: var(--rose-gold);
    border-color: var(--rose-gold-light);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(183, 110, 121, 0.5);
}

.music-btn.playing {
    background: var(--rose-gold);
    border-color: var(--rose-gold-light);
}

.music-wave {
    display: none;
    position: absolute;
    bottom: 8px;
    width: 20px;
    height: 12px;
    justify-content: space-between;
    align-items: flex-end;
}

.music-btn.playing .music-wave {
    display: flex;
}

.music-btn.playing i {
    transform: translateY(-5px);
    font-size: 0.9rem;
}

.music-wave span {
    width: 3px;
    height: 100%;
    background-color: var(--white);
    border-radius: 3px;
    animation: bounce 1s infinite alternate;
}

.music-wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.music-wave span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* --- Welcome Gate --- */
.welcome-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background: radial-gradient(circle at center, #1c0e35 0%, #08040f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, transform 1s ease;
    padding: 20px;
}

.welcome-gate.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.welcome-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--gold-light), var(--rose-gold-light), var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: fadeInDown 1.2s ease;
}

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1.2s ease;
}

/* --- 3D Gift Box Animation --- */
.gift-box-container {
    perspective: 1000px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.gift-box {
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    animation: floatGift 3s ease-in-out infinite, wiggleGift 5s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.gift-box:hover {
    transform: scale(1.1) rotateY(10deg);
}

.gift-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, var(--rose-gold), #9e5660);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.gift-lid {
    position: absolute;
    top: 15px;
    left: -5px;
    width: 130px;
    height: 25px;
    background: linear-gradient(135deg, var(--gold), #b8921e);
    border-radius: 5px;
    z-index: 5;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.gift-box:hover .gift-lid {
    transform: translateY(-15px) rotate(-5deg);
}

.gift-ribbon-v {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), #b8921e);
    z-index: 2;
}

.gift-ribbon-h {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 15px;
    background: linear-gradient(to right, var(--gold), #b8921e);
    z-index: 2;
}

.gift-tag {
    position: absolute;
    top: 40px;
    right: -10px;
    background: var(--white);
    color: var(--bg-dark);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    transform: rotate(15deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    border-left: 3px solid var(--rose-gold);
    z-index: 4;
}

/* --- Password Entry Card --- */
.password-entry-card {
    padding: 25px;
    max-width: 420px;
    margin: 0 auto;
    border-color: rgba(255, 255, 255, 0.12);
    animation: fadeInUp 1s ease 0.4s both;
}

.password-prompt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.password-prompt i {
    color: var(--gold);
    margin-right: 5px;
}

.password-input-wrapper {
    display: flex;
    gap: 10px;
}

.passcode-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--white);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.passcode-input:focus {
    border-color: var(--rose-gold-light);
    box-shadow: 0 0 10px rgba(183, 110, 121, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.unlock-btn {
    background: linear-gradient(135deg, var(--rose-gold), var(--lavender-dark));
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.unlock-btn:hover {
    background: linear-gradient(135deg, var(--rose-gold-light), var(--lavender));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.4);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 10px;
    animation: shake 0.5s ease;
}

/* --- Main Page Grid & Flow --- */
.main-celebration {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-glow), var(--bg-dark));
    min-height: 100vh;
    opacity: 1;
    transition: opacity 1s ease;
}

.main-celebration.hidden {
    display: none;
    opacity: 0;
}

/* --- Hero Header --- */
.hero-header {
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(180deg, rgba(28, 16, 53, 0.6) 0%, rgba(12, 8, 23, 0.95) 100%);
}

.hero-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--rose-gold-light);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--gold-light) 20%, var(--rose-gold-light) 50%, var(--lavender) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

.hero-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- Nav Menu --- */
.nav-menu {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 8px;
    border-radius: 30px;
    gap: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item i {
    font-size: 0.85rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--rose-gold), var(--lavender-dark));
    box-shadow: 0 5px 15px rgba(183, 110, 121, 0.3);
}

/* --- Page Sections Layout --- */
.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
    position: relative;
    z-index: 10;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sec-badge {
    background: rgba(183, 110, 121, 0.15);
    border: 1px solid rgba(183, 110, 121, 0.3);
    color: var(--rose-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Section 1: Memory Lane (Polaroids) --- */
/* --- Sibling Prank Section --- */
.wide-container {
    max-width: 1000px !important;
    width: 95% !important;
}

.text-accent {
    color: var(--gold-light) !important;
    text-shadow: 0 0 10px rgba(254, 207, 239, 0.3) !important;
}

.prank-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.prank-card {
    background: #ffffff;
    padding: 12px 12px 24px 12px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 180px;
    transition: transform 0.3s ease;
    transform: rotate(var(--rot, 0deg));
}

.prank-card:nth-child(odd) { --rot: -3deg; }
.prank-card:nth-child(even) { --rot: 3deg; }
.prank-card:nth-child(3n) { --rot: -1.5deg; }
.prank-card:nth-child(4n) { --rot: 2deg; }

.prank-card:hover {
    transform: scale(1.1) rotate(0deg) translateY(-10px);
    z-index: 10;
}

.prank-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #ddd;
    display: block;
}

.prank-caption {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 0.95rem;
    color: #333333;
    text-align: center;
    margin-top: 12px;
    line-height: 1.3;
}

.prank-btn {
    margin-top: 20px;
    font-weight: bold;
    padding: 12px 30px;
}

/* --- Apology Transition Section --- */
.apology-card {
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 128, 0.25) !important;
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.15) !important;
    background: rgba(12, 6, 23, 0.9) !important;
}

.apology-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ff3366;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

.apology-subtitle {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.5;
}

.apology-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.apology-loader-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.apology-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff3366, #ff007f);
    border-radius: 3px;
    box-shadow: 0 0 10px #ff3366;
    animation: fillLoader 3.5s linear forwards;
}

@keyframes fillLoader {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Screen shake glitch effect */
.shake-screen {
    animation: shakeScreen 0.5s ease infinite;
}

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

/* --- Polaroid Memory Wall Grid --- */
.memory-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px 20px;
    padding: 30px 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.memory-polaroid {
    background: #ffffff;
    padding: 14px 14px 28px 14px;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.memory-polaroid.rot-left { transform: rotate(-2.5deg); }
.memory-polaroid.rot-right { transform: rotate(2.5deg); }
.memory-polaroid.tilt-up { transform: rotate(1deg); }

.memory-polaroid:hover {
    transform: scale(1.08) rotate(0deg) translateY(-12px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(254, 207, 239, 0.2);
    z-index: 15;
}

.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #ddd;
    background: #111;
}

.polaroid-img, .polaroid-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.15rem;
    color: #222222;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* --- Section 2: Interactive Cake --- */
.cake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.cake-wrapper {
    position: relative;
    width: 320px;
    height: 300px;
    margin-top: 40px;
}

/* Plate */
.plate {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    background: linear-gradient(180deg, #e6e6e6, #b3b3b3);
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Cake Layers */
.cake {
    position: absolute;
    width: 250px;
    height: 240px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 2;
}

.layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.layer-bottom {
    bottom: 0;
    width: 240px;
    height: 70px;
    background: linear-gradient(to right, #4a2818, #6d3d24, #4a2818);
    border-bottom: 4px solid #331b0f;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3);
}

.layer-middle {
    bottom: 45px;
    width: 200px;
    height: 65px;
    background: linear-gradient(to right, var(--rose-gold), #cd8c95, var(--rose-gold));
    z-index: 3;
    border-bottom: 3px solid #9e5660;
}

.layer-top {
    bottom: 90px;
    width: 160px;
    height: 60px;
    background: linear-gradient(to right, var(--gold), #ffd700, var(--gold));
    z-index: 5;
    border-bottom: 3px solid #b8921e;
}

/* Icing & Drips */
.icing {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 25px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.drips {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 20px;
    z-index: 6;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.drip {
    width: 14px;
    height: 22px;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.drip:nth-child(2) { height: 32px; width: 12px; }
.drip:nth-child(3) { height: 18px; width: 15px; }
.drip:nth-child(4) { height: 28px; width: 10px; }
.drip:nth-child(5) { height: 24px; width: 13px; }

/* Candles */
.candles-wrapper {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 80px;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.candle {
    width: 8px;
    height: 45px;
    background: linear-gradient(to right, #e05e5e, #ff8080, #e05e5e);
    position: relative;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.candle:nth-child(even) {
    height: 52px;
    background: linear-gradient(to right, #4da6ff, #80bfff, #4da6ff);
}

.candle:nth-child(3) {
    height: 48px;
    background: linear-gradient(to right, #e6b800, #ffeb80, #e6b800);
}

.candle:hover {
    transform: scaleY(1.08);
}

.thread {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #444;
}

/* Flame Animation */
.flame {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: radial-gradient(circle at bottom, #ffeb60 20%, #ff5e00 70%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    box-shadow: 0 0 10px #ff9d00, 0 0 20px #ff5e00;
    animation: flicker 1s ease-in-out infinite alternate;
    transform-origin: bottom center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.candle.extinguished .flame {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

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

.cake-instructions {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-icon {
    color: var(--gold);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Birthday Letter --- */
.birthday-letter {
    max-width: 650px;
    width: 100%;
    margin: 50px auto 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
    position: relative;
    transition: all 1s ease;
}

.birthday-letter.hidden-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    pointer-events: none;
    max-height: 0;
    padding: 0 40px;
    overflow: hidden;
    margin: 0;
    border: none;
}

.letter-seal {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rose-gold), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    border: 2px solid var(--white);
}

.letter-heading {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--rose-gold-light);
    margin-bottom: 20px;
}

.letter-content {
    font-family: var(--font-sans);
    font-weight: 300;
    color: #e0d8f0;
    line-height: 1.8;
}

.letter-content p {
    margin-bottom: 15px;
}

.letter-signature {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* --- Section 3: Sister Quiz --- */
.quiz-card-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 380px;
}

.quiz-card {
    padding: 35px;
    width: 100%;
    transition: all 0.5s ease;
}

.quiz-card.hidden-card {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
    display: none;
}

.quiz-header {
    margin-bottom: 25px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.quiz-progress {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--rose-gold), var(--lavender));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.quiz-counter {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--white);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

.quiz-option.correct {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71;
    font-weight: 600;
}

.quiz-option.incorrect {
    background: rgba(231, 76, 60, 0.2) !important;
    border-color: #e74c3c !important;
    color: #e74c3c;
}

.quiz-feedback {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-feedback.hidden {
    display: none;
}

.feedback-icon {
    font-size: 1.8rem;
}

.feedback-icon.correct-icon::before {
    content: "🎉";
}

.feedback-icon.incorrect-icon::before {
    content: "😅";
}

.feedback-text {
    font-size: 0.95rem;
    color: #e0d8f0;
}

.next-btn, .restart-btn {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--rose-gold), var(--lavender-dark));
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.next-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.3);
}

/* Quiz Score Screen */
.quiz-score-screen {
    padding: 40px;
    text-align: center;
    width: 100%;
}

.quiz-score-screen.hidden-card {
    display: none;
}

.trophy-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.trophy-icon {
    font-size: 4.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: floatGift 3s ease-in-out infinite;
}

.trophy-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0,0,0,0) 70%);
}

.score-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.score-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--gold-light), var(--rose-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.score-message {
    color: #e0d8f0;
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section 4: Wish Lanterns --- */
.lanterns-playground {
    width: 100%;
    height: 400px;
    background: linear-gradient(to top, rgba(12,8,23,0.8), rgba(26,15,48,0.4));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.lantern-sky-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(12, 8, 23, 0.9), transparent);
    z-index: 2;
}

/* Flying Lantern Styling */
.lantern {
    position: absolute;
    width: 45px;
    height: 60px;
    background: radial-gradient(circle at center, #ffd27f 10%, #ff8033 60%, rgba(200,80,0,0.8) 100%);
    border-radius: 20px 20px 8px 8px;
    box-shadow: 0 0 20px rgba(255, 128, 51, 0.6), 0 0 40px rgba(255, 210, 127, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 5;
    animation: riseAndWobble 15s linear infinite;
    bottom: -70px;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 10px;
    height: 10px;
    background: #ffebad;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 15px #ff8033;
}

/* Lantern Message Hover Card */
.lantern-msg-bubble {
    position: absolute;
    bottom: 70px;
    background: rgba(12, 8, 23, 0.9);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 10;
}

.lantern:hover .lantern-msg-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes riseAndWobble {
    0% {
        bottom: -70px;
        transform: translateX(0) scale(0.9);
        opacity: 1;
    }
    10% {
        transform: translateX(10px) scale(0.9);
    }
    30% {
        transform: translateX(-15px) scale(0.75);
    }
    50% {
        transform: translateX(15px) scale(0.6);
    }
    70% {
        transform: translateX(-10px) scale(0.45);
    }
    90% {
        transform: translateX(5px) scale(0.35);
        opacity: 0.8;
    }
    100% {
        bottom: 105%;
        transform: translateX(0) scale(0.2);
        opacity: 0;
    }
}

.lantern-input-container {
    padding: 25px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-wrapper input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--white);
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--rose-gold-light);
    box-shadow: 0 0 10px rgba(183, 110, 121, 0.3);
}

.release-btn {
    background: linear-gradient(135deg, var(--rose-gold), var(--lavender-dark));
    border: none;
    border-radius: 10px;
    padding: 0 25px;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.release-btn:hover {
    background: linear-gradient(135deg, var(--rose-gold-light), var(--lavender));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.3);
}

.presets-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.preset-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.preset-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    color: #e0d8f0;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-badge:hover {
    background: rgba(183, 110, 121, 0.15);
    border-color: var(--rose-gold-light);
    color: var(--white);
}

/* --- Detailed Polaroid Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 4, 11, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}

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

.modal-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    border-color: rgba(255,255,255,0.15);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    overflow: hidden;
}

.modal-overlay.hidden .modal-content {
    animation: zoomOut 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--rose-gold);
    transform: rotate(90deg);
}

.modal-icon-header {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    border-bottom: 1px solid var(--card-border);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.modal-text-container {
    padding: 25px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--rose-gold-light);
    margin-bottom: 12px;
}

.modal-desc {
    color: #e0d8f0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-sub {
    font-size: 0.75rem;
    margin-top: 5px;
    color: rgba(255,255,255,0.2);
}

/* --- Keyframe Animations --- */
@keyframes floatGift {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes wiggleGift {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-5deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-5deg); }
    98% { transform: rotate(5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(183, 110, 121, 0.3); }
    100% { text-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 50px rgba(195, 177, 225, 0.4); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 15px;
        padding: 5px;
    }
    
    .nav-item {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .polaroid-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cake-wrapper {
        width: 280px;
    }
    
    .plate {
        width: 260px;
    }
    
    .cake {
        width: 210px;
    }
    
    .layer-bottom { width: 200px; }
    .layer-middle { width: 170px; }
    .layer-top { width: 130px; }
    .icing { width: 130px; }
    .drips { width: 130px; }
    .candles-wrapper { width: 110px; }
    
    .birthday-letter {
        padding: 25px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .release-btn {
        padding: 14px;
        justify-content: center;
    }
}

.card-funny {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: var(--gold-light);
    font-style: italic;
    line-height: 1.5;
}

.card-funny i {
    color: var(--rose-gold-light);
    margin-right: 5px;
    font-size: 0.9rem;
}

.welcome-note-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.welcome-note-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--rose-gold-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lock-icon-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rose-gold), #ff3366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.5);
}
