:root {
    --primary-color: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.5);
    --secondary-color: #c084fc;
    --accent-gold: #ffd166;
    --accent-purple: #7e22ce;
    
    --dark-bg: #0a0414;
    --dark-overlay: rgba(10, 4, 20, 0.82);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(192, 132, 252, 0.22);
    --glass-blur: blur(16px);
    
    --text-light: #ffffff;
    --text-muted: #e9d5ff;
    --font-heading: 'Playfair Display', serif;
    --font-title: 'Cinzel', serif;
    --font-handwriting: 'Dancing Script', cursive;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

input::selection, textarea::selection {
    background: rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

input::-moz-selection, textarea::-moz-selection {
    background: rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-user-select: none;
    user-select: none;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(13, 6, 20, 0.8);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-purple));
    border-radius: 4px;
}

.bg-slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.8s ease-in-out, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(35, 10, 45, 0.65) 0%, rgba(13, 6, 20, 0.88) 100%),
                linear-gradient(180deg, rgba(13, 6, 20, 0.5) 0%, rgba(13, 6, 20, 0.95) 100%);
    z-index: 1;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.intro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 3, 14, 0.92);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-modal.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 45px 35px;
    border-radius: 28px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
    animation: floatCard 4s ease-in-out infinite alternate;
}

.intro-heart-pulse {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: heartBeat 1.4s infinite;
}

.intro-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-style: italic;
}

.intro-hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d81159 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--primary-glow);
    transition: var(--transition-smooth);
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255, 51, 102, 0.7);
}

.glow-btn.small-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.love-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff0055, #ff5e7e);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.5);
    transition: var(--transition-smooth);
}

.love-cta-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 40px rgba(255, 0, 85, 0.8);
}

.secondary-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.secondary-pill-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
}

.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 6, 20, 0.65);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-text span {
    color: var(--primary-color);
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}

.nav-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu-toggle {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.nav-menu-toggle:hover, .nav-menu-toggle.active {
    background: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.nav-links {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    background: rgba(18, 10, 28, 0.96);
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 24px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    max-width: 920px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 51, 102, 0.25);
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}

.music-floating-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.player-left {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-mini-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
    animation: spinDisc 4s linear infinite;
    animation-play-state: paused;
}

.disc-mini-spinner.playing {
    animation-play-state: running;
}

.disc-mini-spinner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-icon-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    pointer-events: none;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-track-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
}

.equalizer-bars span {
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    height: 3px;
    transition: height 0.2s ease;
}

.equalizer-bars.playing span:nth-child(1) { animation: barAnim 0.7s ease-in-out infinite alternate; }
.equalizer-bars.playing span:nth-child(2) { animation: barAnim 0.5s ease-in-out infinite 0.2s alternate; }
.equalizer-bars.playing span:nth-child(3) { animation: barAnim 0.9s ease-in-out infinite 0.1s alternate; }
.equalizer-bars.playing span:nth-child(4) { animation: barAnim 0.6s ease-in-out infinite 0.3s alternate; }

.volume-slider-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-wrap i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.volume-slider-wrap input[type="range"] {
    width: 60px;
    height: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.main-content {
    padding-top: 80px;
}

.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    max-width: 850px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.badge-romance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #d8b4fe;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.gradient-text {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #ffd166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.3rem;
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 36px auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slideshow-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slideshow-indicators .dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

.section-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
    position: relative;
    z-index: 2;
}

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

.sub-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.timer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 35px 20px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.timer-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px var(--primary-glow);
}

.timer-number {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 40%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.timer-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.counter-quote-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.quote-text {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 18px;
}

.date-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.change-date-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.change-date-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.date-input-wrap {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.date-input-wrap.hidden {
    display: none;
}

.custom-date-field {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
}

.save-date-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.letter-container {
    max-width: 700px;
    margin: 0 auto;
    perspective: 1200px;
}

.interactive-envelope {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.envelope-front {
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(126, 34, 206, 0.15) 100%);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    transition: var(--transition-smooth);
}

.wax-seal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #9333ea 0%, #581c87 100%);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.65);
    margin: 0 auto 16px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.4s ease;
}

.wax-seal i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.seal-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.interactive-envelope:hover .wax-seal {
    transform: scale(1.1) rotate(10deg);
}

.envelope-to {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    color: #ffd166;
}

.letter-paper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, padding 0.5s ease;
    background: #fff8f0;
    color: #2b1e2c;
    border-radius: 0 0 24px 24px;
}

.interactive-envelope.opened .letter-paper {
    max-height: 900px;
    opacity: 1;
    padding: 40px;
}

.interactive-envelope.opened .envelope-front {
    padding: 20px;
}

.interactive-envelope.opened .wax-seal {
    transform: scale(0.8);
}

.letter-inner {
    position: relative;
}

.letter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.letter-head h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #8b0032;
}

.letter-date {
    font-style: italic;
    font-size: 0.9rem;
    color: #777;
}

.letter-body p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #332230;
}

.letter-footer {
    margin-top: 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.letter-footer span {
    font-size: 0.95rem;
    color: #666;
}

.letter-footer strong {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    color: #b3003b;
    margin-top: 4px;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.moment-card {
    cursor: pointer;
    perspective: 1000px;
}

.polaroid-frame {
    background: #ffffff;
    padding: 14px 14px 22px 14px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: rotate(var(--rot, -2deg));
    transition: var(--transition-smooth);
    color: #2b1e2c;
}

.moment-card:nth-child(even) .polaroid-frame {
    --rot: 2.5deg;
}
.moment-card:nth-child(3n) .polaroid-frame {
    --rot: -3deg;
}

.moment-card:hover .polaroid-frame {
    transform: translateY(-12px) rotate(0deg) scale(1.04);
    box-shadow: 0 25px 50px rgba(255, 51, 102, 0.4);
}

.polaroid-frame .img-box {
    width: 100%;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
}

.polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.moment-card:hover img {
    transform: scale(1.08);
}

.polaroid-caption {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    font-weight: 700;
}

.polaroid-caption i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 8, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 50px rgba(255, 51, 102, 0.4);
}

.lightbox-caption {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
}

.spotify-lyrics-container {
    background: rgba(18, 14, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 51, 102, 0.2);
}

.lyrics-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
    flex-wrap: wrap;
}

.lyrics-track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details .track-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.track-details .track-artist {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.lyrics-playback-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.playback-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pb-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.pb-btn.main-play-trigger, .pb-btn.fs-main-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #121212;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.pb-btn.main-play-trigger:hover, .pb-btn.fs-main-play:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 25px var(--primary-glow);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff758c);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.lyrics-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lyrics-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.lyrics-volume-control:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
}

.lyrics-volume-control i,
.fs-volume-wrap i {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.lyrics-volume-control i:hover,
.fs-volume-wrap i:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.lyrics-volume-control input[type="range"],
.fs-volume-wrap input[type="range"] {
    accent-color: var(--primary-color);
    cursor: pointer;
    width: 90px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.fs-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
}

.fullscreen-lyrics-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fullscreen-lyrics-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.spotify-lyrics-display {
    height: 480px;
    overflow-y: auto;
    padding: 50px 30px;
    position: relative;
    scrollbar-width: thin;
    background: linear-gradient(180deg, rgba(20, 15, 26, 0.9) 0%, rgba(10, 6, 16, 0.95) 100%);
}

.lyrics-lines-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 0;
}

.lyric-line {
    font-size: 1.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.3s ease, font-size 0.3s ease, opacity 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    padding: 4px 10px;
    border-radius: 8px;
    user-select: none;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(8px);
}

.lyric-line.active {
    font-size: 2.3rem;
    font-weight: 900;
    color: #ffffff;
    opacity: 1;
    transform: scale(1.03) translateX(10px);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 51, 102, 0.5);
}

.lyric-line.passed {
    color: rgba(255, 255, 255, 0.45);
}

.fullscreen-lyrics-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #18181b;
    background: radial-gradient(circle at center, #2e1a2f 0%, #120914 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

.fullscreen-lyrics-modal.active {
    opacity: 1;
    visibility: visible;
}

.fs-lyrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-track-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fs-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.fs-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.fs-artist {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.fs-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fs-close-btn:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.fs-lyrics-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    scroll-behavior: smooth;
    display: flex;
    justify-content: center;
}

.fs-lines-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 900px;
    width: 100%;
    padding: 160px 0;
}

.fs-lines-wrapper .lyric-line {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.3;
}

.fs-lines-wrapper .lyric-line.active {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
}

.fs-lyrics-footer {
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fs-progress-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.fs-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    border-radius: 22px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 51, 102, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(157, 78, 221, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.reason-card:hover .card-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--primary-color);
    color: #fff;
}

.reason-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #fff;
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-hint {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.magic-generator-wrap {
    max-width: 650px;
    margin: 0 auto;
}

.generator-card {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.magic-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.generator-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 12px;
}

#random-love-text {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: #fff;
    min-height: 65px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.love-footer {
    background: rgba(7, 3, 12, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-fav-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-heart {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
}

.pulse-heart {
    color: var(--primary-color);
    animation: heartBeat 1.2s infinite;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.25); }
    70% { transform: scale(1); }
}

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

@keyframes barAnim {
    0% { height: 3px; }
    100% { height: 16px; }
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

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

.candlelight-toggle-btn {
    background: rgba(255, 170, 50, 0.15);
    border: 1px solid rgba(255, 180, 70, 0.4);
    color: #ffd280;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.candlelight-toggle-btn:hover {
    background: rgba(255, 170, 50, 0.3);
    border-color: #ffaa33;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 170, 50, 0.6);
    transform: translateY(-2px);
}
.candlelight-toggle-btn.active {
    background: #ff9922;
    color: #1a0f00;
    border-color: #ffaa33;
    box-shadow: 0 0 20px rgba(255, 153, 34, 0.8);
}

body.candlelight-active {
    filter: brightness(0.85) contrast(1.1);
}
body.candlelight-active::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at 50% 40%, rgba(255, 160, 50, 0.12) 0%, rgba(20, 10, 5, 0.6) 80%);
    animation: candleFlicker 3.5s infinite alternate ease-in-out;
}
@keyframes candleFlicker {
    0% { opacity: 0.8; }
    25% { opacity: 0.95; }
    50% { opacity: 0.75; }
    75% { opacity: 1; }
    100% { opacity: 0.85; }
}

.starmap-section {
    position: relative;
}
.starmap-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.starmap-card {
    background: radial-gradient(circle at center, rgba(20, 15, 45, 0.9) 0%, rgba(8, 6, 20, 0.95) 100%);
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 92, 246, 0.2);
    max-width: 680px;
    width: 100%;
}
.starmap-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px double rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 35px rgba(138, 92, 246, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    background: #03020c;
}
#starmap-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.starmap-compass {
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}
.starmap-compass span {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}
.compass-n { top: 4px; left: 50%; transform: translateX(-50%); }
.compass-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.compass-w { left: 6px; top: 50%; transform: translateY(-50%); }
.compass-e { right: 6px; top: 50%; transform: translateY(-50%); }

.constellation-label-center {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 5, 25, 0.8);
    border: 1px solid rgba(255, 100, 150, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff99bb;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}
.starmap-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.starmap-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.starmap-coords, .starmap-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}
.starmap-coords i, .starmap-date i {
    color: #ff3366;
}
.starmap-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0;
    font-size: 1.05rem;
}
.starmap-glow-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}
.starmap-glow-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 30px rgba(219, 39, 119, 0.8);
}

.love-jar-section {
    position: relative;
}
.jar-interactive-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.jar-wrapper {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    user-select: none;
}
.jar-wrapper:hover {
    transform: scale(1.05) translateY(-5px);
}
.jar-wrapper.shake {
    animation: jarShakeAnim 0.6s ease-in-out;
}
@keyframes jarShakeAnim {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg) scale(1.05); }
    40% { transform: rotate(8deg) scale(1.05); }
    60% { transform: rotate(-6deg) scale(1.05); }
    80% { transform: rotate(4deg) scale(1.05); }
}

.glass-jar {
    width: 220px;
    height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.jar-lid {
    width: 140px;
    height: 28px;
    background: linear-gradient(180deg, #d4af37 0%, #aa8014 100%);
    border-radius: 14px 14px 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    z-index: 3;
    border: 1px solid #e6ca65;
}
.jar-neck {
    width: 120px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    border-right: 3px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    backdrop-filter: blur(5px);
}
.jar-body {
    width: 220px;
    height: 254px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 60%, rgba(168, 85, 247, 0.18) 100%);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px 40px 50px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(255, 255, 255, 0.3), 0 0 30px rgba(168, 85, 247, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.jar-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 245, 235, 0.92);
    border: 1px dashed #d4af37;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 4;
}
.jar-label span {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #6b21a8;
    letter-spacing: 1px;
}
.jar-label small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
}
.jar-notes-pile {
    position: absolute;
    bottom: 20px;
    width: 100%;
    height: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    padding: 0 20px;
}
.folded-note {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: noteFloat 3s infinite ease-in-out alternate;
}
.n1 { background: #c084fc; transform: rotate(12deg); }
.n2 { background: #ffd166; transform: rotate(-24deg); animation-delay: 0.5s; }
.n3 { background: #a78bfa; transform: rotate(8deg); animation-delay: 1s; }
.n4 { background: #e879f9; transform: rotate(-15deg); animation-delay: 1.5s; }
.n5 { background: #38bdf8; transform: rotate(20deg); animation-delay: 0.8s; }
.n6 { background: #d8b4fe; transform: rotate(-10deg); animation-delay: 1.2s; }
.n7 { background: #fde047; transform: rotate(15deg); animation-delay: 0.3s; }
.n8 { background: #9333ea; transform: rotate(-18deg); animation-delay: 1.8s; }

@keyframes noteFloat {
    0% { transform: translateY(0px) rotate(var(--rot, 5deg)); }
    100% { transform: translateY(-6px) rotate(var(--rot, -5deg)); }
}
.jar-shadow {
    width: 180px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    margin-top: 10px;
    border-radius: 50%;
}
.jar-note-counter {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.drawn-note-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}
.drawn-note-modal.active {
    opacity: 1;
    visibility: visible;
}
.drawn-note-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 18, 0.85);
    backdrop-filter: blur(10px);
}
.drawn-note-card {
    position: relative;
    background: #fffdfa;
    background-image: radial-gradient(#ede4f5 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    color: #2b113a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(168, 85, 247, 0.3);
    border: 2px solid #e9d5ff;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.drawn-note-modal.active .drawn-note-card {
    transform: scale(1) translateY(0);
}
.note-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.note-close-btn:hover { color: #a855f7; }
.note-paper-clip {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: #a855f7;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.5);
}
.note-number-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.note-message-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: #2b113a;
    margin-bottom: 25px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.note-signature {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 25px;
}
.next-note-btn {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}
.next-note-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.coupon-card {
    background: linear-gradient(135deg, rgba(30, 20, 45, 0.9) 0%, rgba(18, 12, 28, 0.95) 100%);
    border: 2px dashed rgba(192, 132, 252, 0.4);
    border-radius: 18px;
    padding: 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.35s ease;
    overflow: hidden;
}
.coupon-card:hover {
    border-color: #a855f7;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.3);
}
.coupon-decor-cut {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0a0414;
    border-radius: 50%;
    z-index: 2;
}
.top-cut { top: -12px; left: 50%; transform: translateX(-50%); border-bottom: 2px dashed rgba(192, 132, 252, 0.4); }
.bottom-cut { bottom: -12px; left: 50%; transform: translateX(-50%); border-top: 2px dashed rgba(192, 132, 252, 0.4); }

.coupon-icon {
    font-size: 2.2rem;
    color: #ffd166;
    margin-bottom: 12px;
}
.coupon-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c084fc;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}
.coupon-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}
.coupon-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin-bottom: 18px;
}
.redeem-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}
.redeem-btn:hover {
    background: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}
.coupon-stamp {
    position: absolute;
    inset: 0;
    background: rgba(15, 8, 20, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 5;
}
.coupon-card.redeemed .coupon-stamp {
    opacity: 1;
    pointer-events: auto;
}
.stamp-text {
    border: 3px solid #00f0ff;
    color: #00f0ff;
    padding: 8px 18px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 12px;
    transform: rotate(-15deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    animation: stampPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes stampPop {
    0% { transform: rotate(-30deg) scale(2); opacity: 0; }
    100% { transform: rotate(-15deg) scale(1.1); opacity: 1; }
}

.vault-container {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.vault-chest-box {
    width: 160px;
    height: 120px;
    position: relative;
    cursor: pointer;
    perspective: 800px;
}
.chest-lid {
    width: 160px;
    height: 50px;
    background: linear-gradient(180deg, #b8860b 0%, #8b6508 100%);
    border-radius: 40px 40px 0 0;
    border: 3px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.4);
    position: relative;
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.vault-chest-box.opened .chest-lid {
    transform: rotateX(-70deg) translateY(-20px);
}
.lid-lock-hasp {
    width: 32px;
    height: 24px;
    background: #ffd700;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5c3a00;
    font-size: 0.9rem;
    transform: translateY(12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.chest-base {
    width: 160px;
    height: 70px;
    background: linear-gradient(180deg, #8b6508 0%, #5c4305 100%);
    border-radius: 0 0 16px 16px;
    border: 3px solid #ffd700;
    border-top: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chest-keyhole {
    width: 10px;
    height: 16px;
    background: #2b1f02;
    border-radius: 5px 5px 2px 2px;
}

.vault-passcode-card {
    background: rgba(25, 18, 40, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.passcode-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}
.passcode-input-group input {
    flex: 1;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 30px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 1.05rem;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
}
.passcode-input-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.vault-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}
.vault-hint code {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
}
.vault-error-msg {
    margin-top: 10px;
    color: #ff4d6d;
    font-size: 0.9rem;
    font-weight: 700;
}

.vault-unlocked-content {
    background: linear-gradient(135deg, rgba(40, 20, 50, 0.95) 0%, rgba(20, 10, 30, 0.98) 100%);
    border: 2px solid #ffd700;
    border-radius: 24px;
    padding: 35px 25px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
    animation: fadeInUp 0.6s ease;
}
.unlocked-badge {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}
.secret-polaroid-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.secret-polaroid {
    background: white;
    padding: 14px 14px 24px 14px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
    max-width: 240px;
    color: #222;
}
.secret-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background: #221528;
}
.secret-caption {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
    color: #551122;
    font-style: italic;
}
.secret-letter-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
    text-align: left;
}
.secret-letter-card h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.relock-vault-btn {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.relock-vault-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.vault-passcode-card.shake {
    animation: shakeError 0.5s ease;
}

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


.cursor-heart {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    user-select: none;
    transform: translate(-50%, -50%);
    animation: cursorHeartFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7));
}

@keyframes cursorHeartFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--move-x, 0px)), calc(-50% - var(--move-y, 35px))) scale(0.2) rotate(var(--rot, 20deg));
    }
}

.heartbeat-section {
    position: relative;
    overflow: hidden;
}
.heartbeat-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 30px 0;
}

.heart-pulse-waves {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pulse-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.6);
    opacity: 0;
}
.heartbeat-stage.active .w1 {
    animation: pulseWaveAnim 1.2s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
}
.heartbeat-stage.active .w2 {
    animation: pulseWaveAnim 1.2s infinite 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.heartbeat-stage.active .w3 {
    animation: pulseWaveAnim 1.2s infinite 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
}
@keyframes pulseWaveAnim {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
        border-color: rgba(168, 85, 247, 0.85);
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
        border-color: rgba(192, 132, 252, 0);
    }
}

.crystal-heart-box {
    width: 220px;
    height: 200px;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    position: relative;
    z-index: 5;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crystal-heart-box:hover {
    transform: scale(1.05);
}
.crystal-heart-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.crystal-heart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.65));
    transition: filter 0.3s ease;
}
.heart-touch-prompt {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.heart-touch-prompt i {
    font-size: 1.8rem;
    color: #e9d5ff;
    animation: bounceFinger 1.5s infinite ease-in-out;
}
.heart-touch-prompt span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}
@keyframes bounceFinger {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.1); }
}

.heartbeat-stage.active .crystal-heart-box {
    animation: lubDubBeat var(--beat-duration, 0.8s) infinite ease-in-out;
}
.heartbeat-stage.active .crystal-heart-svg {
    filter: drop-shadow(0 0 45px rgba(168, 85, 247, 1)) drop-shadow(0 0 15px #ffffff);
}
@keyframes lubDubBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.22); }
    28% { transform: scale(1.06); }
    42% { transform: scale(1.16); }
    56% { transform: scale(1); }
    100% { transform: scale(1); }
}

.heartbeat-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(18, 10, 28, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: 16px 28px;
    margin-top: 35px;
    max-width: 580px;
    width: 100%;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hud-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}
.hud-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
}
.hud-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.hud-value {
    font-size: 2rem;
    font-weight: 900;
    color: #c084fc;
    font-family: monospace, sans-serif;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.hud-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e9d5ff;
}
.hud-status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d8b4fe;
    margin-top: 4px;
    text-align: center;
}

.hud-ecg-box {
    flex: 1;
    height: 40px;
    position: relative;
    overflow: hidden;
}
.ecg-line-svg {
    width: 100%;
    height: 100%;
}
.ecg-path {
    fill: none;
    stroke: rgba(168, 85, 247, 0.4);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.heartbeat-stage.active .ecg-path {
    stroke: #00f0ff;
    filter: drop-shadow(0 0 6px #00f0ff);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: ecgFlow 1.2s linear infinite;
}
@keyframes ecgFlow {
    to { stroke-dashoffset: 0; }
}

.heartbeat-quote-box {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(192, 132, 252, 0.3);
    border-radius: 14px;
    padding: 12px 24px;
    max-width: 520px;
    text-align: center;
}
.heartbeat-quote-box p {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.3s ease;
}

body.heartbeat-vignette-pulse::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99998;
    box-shadow: inset 0 0 90px rgba(147, 51, 234, 0.45);
    animation: vignetteBeat var(--beat-duration, 0.8s) infinite ease-in-out;
}
@keyframes vignetteBeat {
    0%, 100% { opacity: 0.2; }
    30% { opacity: 0.85; }
}

button, a, input, select, textarea, .coupon-card, .reason-card, .moment-card, .jar-wrapper, .crystal-heart-box {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 992px) {
    .hero-main-title {
        font-size: 3.2rem;
    }
    .hero-description {
        font-size: 1.5rem;
    }
    .music-showcase-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .vinyl-showcase-card {
        padding: 30px;
    }
    .starmap-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .section-block {
        padding: 60px 18px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-desc {
        font-size: 0.95rem;
    }

    .nav-container {
        padding: 10px 16px;
    }
    .brand-text {
        font-size: 1.15rem;
    }
    .candlelight-toggle-btn .candle-label {
        display: none;
    }
    .candlelight-toggle-btn {
        padding: 7px 11px;
    }
    .volume-slider-wrap {
        display: none;
    }
    .player-info {
        display: none;
    }
    .music-floating-player {
        padding: 3px 8px;
        gap: 6px;
    }
    .disc-mini-spinner {
        width: 32px;
        height: 32px;
    }
    .player-icon-btn {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .nav-links {
        top: 65px;
        width: 94%;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        padding: 14px;
        border-radius: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nav-link {
        font-size: 0.82rem;
        padding: 8px 10px;
        justify-content: flex-start;
    }

    .hero-section {
        padding: 120px 16px 70px 16px;
        min-height: auto;
    }
    .hero-main-title {
        font-size: 2.4rem;
    }
    .hero-description {
        font-size: 1.25rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }
    .love-cta-btn, .secondary-pill-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 0.95rem;
    }

    .timer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .timer-card {
        padding: 22px 14px;
        border-radius: 18px;
    }
    .timer-number {
        font-size: 2.5rem;
    }
    .timer-label {
        font-size: 0.85rem;
    }

    .starmap-frame {
        width: min(280px, 75vw);
        height: min(280px, 75vw);
    }
    .starmap-title {
        font-size: 1.15rem;
    }
    .starmap-coords, .starmap-date {
        font-size: 0.85rem;
    }
    .starmap-quote {
        font-size: 0.95rem;
    }

    .envelope-front {
        padding: 35px 15px;
    }
    .wax-seal {
        width: 68px;
        height: 68px;
    }
    .wax-seal i {
        font-size: 1.3rem;
    }
    .envelope-to {
        font-size: 1.7rem;
    }
    .interactive-envelope.opened .letter-paper {
        padding: 25px 18px;
    }
    .letter-head h3 {
        font-size: 1.3rem;
    }
    .letter-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .letter-footer strong {
        font-size: 1.6rem;
    }

    .lyrics-player-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .lyrics-playback-center {
        width: 100%;
        max-width: 100%;
    }
    .lyrics-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .lyrics-volume-control {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
    .lyrics-volume-control input[type="range"] {
        width: 75px;
    }
    .fullscreen-lyrics-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
    .spotify-lyrics-display {
        height: 360px;
        padding: 30px 16px;
    }
    .lyrics-lines-wrapper {
        padding: 80px 0;
        gap: 16px;
    }
    .lyric-line {
        font-size: 1.25rem;
    }
    .lyric-line.active {
        font-size: 1.45rem;
    }

    .crystal-heart-box {
        width: 180px;
        height: 165px;
    }
    .heartbeat-hud {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        margin-top: 25px;
        max-width: 320px;
    }
    .hud-stat-box {
        min-width: auto;
    }
    .hud-ecg-box {
        width: 100%;
        height: 32px;
    }
    .heartbeat-quote-box {
        padding: 10px 16px;
        margin: 15px 10px 0 10px;
    }
    .heartbeat-quote-box p {
        font-size: 0.9rem;
    }

    .glass-jar {
        width: 180px;
        height: 250px;
    }
    .jar-lid {
        width: 120px;
        height: 24px;
    }
    .jar-neck {
        width: 100px;
        height: 14px;
    }
    .jar-body {
        width: 180px;
        height: 212px;
    }
    .drawn-note-card {
        padding: 30px 16px 22px 16px;
        margin: 0 10px;
    }
    .note-message-text {
        font-size: 1.15rem;
        min-height: 60px;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .coupon-card {
        min-height: auto;
        padding: 20px 18px;
    }
    .coupon-title {
        font-size: 1.15rem;
    }
    .coupon-desc {
        font-size: 0.88rem;
    }

    .vault-passcode-card {
        padding: 20px 15px;
    }
    .passcode-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .passcode-input-group input {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    .passcode-input-group button {
        width: 100%;
        justify-content: center;
    }
    .vault-unlocked-content {
        padding: 24px 15px;
    }
    .secret-letter-card {
        padding: 15px;
        font-size: 0.9rem;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .generator-card {
        padding: 24px 16px;
    }
    #random-love-text {
        font-size: 1.35rem;
        min-height: 50px;
    }

    .intro-glass-card {
        padding: 30px 18px;
        border-radius: 24px;
    }
    .intro-title {
        font-size: 1.8rem;
    }
    .intro-subtitle {
        font-size: 0.95rem;
    }

    .fs-lyrics-header {
        padding: 15px 18px;
    }
    .fs-title {
        font-size: 1rem;
    }
    .fs-lyrics-container {
        padding: 20px 16px;
    }
    .fs-lines-wrapper {
        padding: 80px 0;
        gap: 18px;
    }
    .fs-lines-wrapper .lyric-line {
        font-size: 1.35rem;
    }
    .fs-lines-wrapper .lyric-line.active {
        font-size: 1.65rem;
    }
    .fs-lyrics-footer {
        padding: 15px 18px;
    }
}

@media (max-width: 380px) {
    .nav-container {
        padding: 8px 10px;
        gap: 8px;
    }
    .brand-text {
        font-size: 1rem;
    }
    .nav-logo-img {
        width: 36px;
        height: 36px;
    }
    .nav-menu-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .nav-links {
        grid-template-columns: 1fr;
    }
    .hero-main-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .timer-number {
        font-size: 2rem;
    }
    .timer-label {
        font-size: 0.75rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .starmap-frame {
        width: 230px;
        height: 230px;
    }
    .crystal-heart-box {
        width: 150px;
        height: 140px;
    }
}

.flipbook-section {
    position: relative;
}

.flipbook-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 20px 0;
}

.flipbook-pedestal {
    perspective: 1600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    width: 100%;
}

.flipbook-wrapper {
    position: relative;
    width: 360px;
    height: 480px;
    transform-style: preserve-3d;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(168, 85, 247, 0.3);
    border-radius: 12px 18px 18px 12px;
}

.flip-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
}

.flip-page.flipped {
    transform: rotateY(-180deg);
}

.page-front, .page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px 16px 16px 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.3), 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-front {
    background: linear-gradient(135deg, #1e132b 0%, #150b20 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    z-index: 2;
}

.page-back {
    background: linear-gradient(225deg, #180d24 0%, #11071c 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    transform: rotateY(180deg);
    border-radius: 16px 8px 8px 16px;
    z-index: 1;
}

.cover-front {
    background: linear-gradient(135deg, #381a4d 0%, #1c082b 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.15), 0 15px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cover-heart-badge {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffd166 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 209, 102, 0.6);
    animation: heartPulse 2s infinite ease-in-out;
}

.cover-title {
    font-family: var(--font-title);
    font-size: 1.7rem;
    color: #ffd700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1.3;
}

.cover-subtitle {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.cover-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.cover-ornament {
    color: #ffd700;
    font-size: 0.85rem;
    letter-spacing: 6px;
    opacity: 0.8;
}

.page-hint {
    font-size: 0.8rem;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 209, 102, 0.4);
}

.chapter-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(168, 85, 247, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.page-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.story-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    font-style: italic;
}

.quote-signature {
    margin-top: 12px;
    font-family: var(--font-handwriting);
    font-size: 1.25rem;
    color: var(--secondary-color);
    text-align: right;
}

.page-num {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    display: block;
    margin-top: 8px;
}

.page-polaroid {
    background: #fff;
    padding: 8px 8px 14px 8px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    text-align: center;
    margin-top: 10px;
}

.page-polaroid img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 4px;
}

.polaroid-text {
    font-family: var(--font-handwriting);
    font-size: 1.05rem;
    color: #333;
    display: block;
    margin-top: 4px;
}

.cover-back-final {
    background: linear-gradient(135deg, #2b113d 0%, #160624 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.end-title {
    font-family: var(--font-title);
    font-size: 1.7rem;
    color: #ffd700;
}

.end-text {
    font-size: 1.05rem;
    color: #ffffff;
}

.end-signature {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.flipbook-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.book-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

.book-page-indicator {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.wheel-section {
    position: relative;
}

.wheel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto;
}

.wheel-main-container {
    position: relative;
    width: 440px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 4s cubic-bezier(0.17, 0.97, 0.32, 1);
}

.wheel-pointer-wrap {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.wheel-pointer {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #ffd700;
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.7));
}

.wheel-center-btn {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd166 0%, #a855f7 100%);
    border: 4px solid #ffffff;
    box-shadow: 0 0 25px rgba(255, 209, 102, 0.8), 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-smooth);
}

.wheel-center-btn i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.wheel-center-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(255, 209, 102, 1);
}

.wheel-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 35px;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wheel-status-icon {
    font-size: 2.2rem;
    color: #ffd700;
    animation: bounceSlow 2s infinite ease-in-out;
}

#wheel-result-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: #ffffff;
    line-height: 1.3;
}

#wheel-result-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.scratch-section {
    position: relative;
}

.scratch-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.scratch-card-outer {
    position: relative;
    width: 380px;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.6);
    background: #12091c;
}

.scratch-prize-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e153b 0%, #12081d 100%);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    z-index: 1;
}

.prize-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.prize-icon-wrap {
    font-size: 2.4rem;
    color: #ff4d6d;
    margin: 4px 0;
}

.prize-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.prize-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.prize-secret-code {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-top: 4px;
}

.prize-secret-code span {
    color: #ffd700;
    font-weight: 700;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    transition: opacity 0.6s ease;
}

.scratch-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.scratch-percent-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .flipbook-wrapper {
        width: 300px;
        height: 420px;
    }
    .page-front, .page-back {
        padding: 20px 16px;
    }
    .cover-title {
        font-size: 1.45rem;
    }
    .cover-subtitle {
        font-size: 1.5rem;
    }
    .wheel-main-container {
        width: 320px;
        height: 320px;
    }
    .scratch-card-outer {
        width: 320px;
        height: 240px;
    }
    .lantern-sky-stage {
        height: 300px;
    }
}

.lantern-section {
    position: relative;
}

.lantern-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 820px;
    margin: 0 auto;
}

.lantern-sky-stage {
    position: relative;
    width: 100%;
    height: 380px;
    background: radial-gradient(circle at 50% 120%, #200e33 0%, #0c0517 60%, #030108 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.2);
}

.sky-stars-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 40px 60px, #fff, transparent),
        radial-gradient(1px 1px at 120px 180px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 250px 80px, #ffd166, transparent),
        radial-gradient(1.5px 1.5px at 380px 140px, #fff, transparent),
        radial-gradient(1px 1px at 520px 70px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 680px 190px, #ff9e00, transparent);
    background-size: 700px 300px;
    opacity: 0.8;
}

.sky-moon-glow {
    position: absolute;
    top: -60px;
    right: 40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.25) 0%, rgba(255, 200, 100, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.launchpad {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(255, 150, 50, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.floating-lanterns-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sky-lantern {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 46px;
    height: 64px;
    background: linear-gradient(180deg, #ffc048 0%, #ff793f 65%, #d63031 100%);
    border-radius: 12px 12px 6px 6px;
    box-shadow: 0 0 30px #ff793f, 0 0 60px rgba(255, 121, 63, 0.6), inset 0 0 15px #fff2a1;
    transform: translate(-50%, 0) scale(1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    animation: launchAndFloat 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 5;
}

.sky-lantern::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 24px;
    height: 4px;
    background: #572800;
    border-radius: 2px;
}

.sky-lantern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 28px;
    height: 3px;
    background: #331500;
    border-radius: 2px;
}

.lantern-flame {
    width: 10px;
    height: 14px;
    background: radial-gradient(ellipse at center, #ffffff 0%, #ffd32a 50%, #ff5e57 100%);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 12px #ffd32a;
    animation: flameFlicker 0.25s infinite alternate;
}

.lantern-wish-bubble {
    position: absolute;
    top: -24px;
    background: rgba(10, 5, 20, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.9; }
    100% { transform: scale(1.15) rotate(2deg); opacity: 1; }
}

@keyframes launchAndFloat {
    0% {
        bottom: 20px;
        transform: translate(-50%, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: translate(calc(-50% + var(--sway-x1, 20px)), -100px) scale(0.85) rotate(4deg);
    }
    60% {
        transform: translate(calc(-50% + var(--sway-x2, -25px)), -220px) scale(0.65) rotate(-3deg);
    }
    85% {
        transform: translate(calc(-50% + var(--sway-x3, 15px)), -320px) scale(0.45) rotate(2deg);
        opacity: 0.9;
    }
    100% {
        bottom: 420px;
        transform: translate(calc(-50% + var(--sway-x4, -10px)), -400px) scale(0.25) rotate(0deg);
        opacity: 0;
    }
}

.passive-star-lantern {
    position: absolute;
    width: 14px;
    height: 18px;
    background: linear-gradient(180deg, #ffc048 0%, #ff793f 100%);
    border-radius: 4px;
    box-shadow: 0 0 15px #ff793f, 0 0 25px rgba(255, 121, 63, 0.8);
    opacity: 0.85;
    animation: gentleStarSway 6s infinite ease-in-out alternate;
    cursor: pointer;
    pointer-events: auto;
}

@keyframes gentleStarSway {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.08); }
}

.lantern-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.lantern-input-group {
    display: flex;
    gap: 12px;
}

.lantern-input-group input {
    flex: 1;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 30px;
    padding: 14px 22px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.lantern-input-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.quick-wishes-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.quick-wishes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-wish-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(192, 132, 252, 0.25);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quick-wish-chip:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
}

.launched-wishes-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 700;
}

.wishes-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.wish-history-badge {
    background: rgba(255, 121, 63, 0.15);
    border: 1px solid rgba(255, 121, 63, 0.35);
    color: #ffbe76;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.4s ease;
}

@media (max-width: 600px) {
    .lantern-input-group {
        flex-direction: column;
    }
}

