/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-light: #ffe4ec;
    --pink-pastel: #ffb6c1;
    --pink-medium: #ff85a2;
    --red: #e63946;
    --red-dark: #c1121f;
    --rose: #ff4d6d;
    --gold: #d4a574;
    --white: #ffffff;
    --cream: #fff5f7;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--pink-light);
    overflow: hidden;
    cursor: none;
    min-height: 100vh;
    color: #4a2040;
}

/* ==================== CUSTOM CURSOR ==================== */
#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-size: 20px;
    color: var(--red);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

/* ==================== FLOATING HEARTS BG ==================== */
#hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: var(--pink-pastel);
    opacity: 0.3;
    animation: floatUp linear infinite;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ==================== PAGES ==================== */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.page-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.page-content.wide {
    max-width: 900px;
}

/* ==================== PAGE 1: QUESTION ==================== */
#page-question {
    background: linear-gradient(135deg, var(--pink-light) 0%, #ffd1dc 50%, var(--pink-pastel) 100%);
}

.hearts-decoration {
    font-size: 40px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.hearts-decoration .deco-heart {
    color: var(--red);
    display: inline-block;
    margin: 0 10px;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.hearts-decoration .deco-heart:nth-child(2) {
    font-size: 60px;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

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

.greeting-question {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--rose);
    font-weight: 600;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease;
}

.title-question {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--red);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease;
}

.subtitle-question {
    font-size: 1.1rem;
    color: var(--pink-medium);
    margin-bottom: 40px;
    font-style: italic;
    animation: fadeInUp 1s ease 0.3s both;
}

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

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

.buttons-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-yes {
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    font-size: 1.4rem;
    padding: 18px 50px;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, var(--pink-medium), var(--rose));
    color: white;
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.35);
    position: absolute;
}

.no-message {
    margin-top: 20px;
    color: var(--rose);
    font-weight: 500;
    font-style: italic;
    min-height: 30px;
    animation: fadeInUp 0.3s ease;
}

/* ==================== PAGE 2: CELEBRATION ==================== */
#page-celebration {
    background: linear-gradient(135deg, #fff0f3 0%, #ffd1dc 50%, var(--pink-pastel) 100%);
}

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.title-celebration {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--red);
    margin-bottom: 10px;
    animation: bounceIn 1s ease;
}

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

.subtitle-celebration {
    font-size: 1.5rem;
    color: var(--pink-medium);
    margin-bottom: 20px;
}

.celebration-hearts {
    font-size: 3rem;
    margin: 20px 0;
}

.celebration-hearts span {
    display: inline-block;
    color: var(--red);
    margin: 0 5px;
    animation: heartFloat 2s ease-in-out infinite;
}

.celebration-hearts span:nth-child(2) { animation-delay: 0.3s; }
.celebration-hearts span:nth-child(3) { animation-delay: 0.6s; }
.celebration-hearts span:nth-child(4) { animation-delay: 0.9s; }
.celebration-hearts span:nth-child(5) { animation-delay: 1.2s; }

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

.celebration-text {
    font-size: 1.1rem;
    color: #7a4060;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-discover {
    background: linear-gradient(135deg, var(--red), #ff6b8a);
    color: white;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.btn-discover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

/* ==================== PAGE 3: TIMELINE ==================== */
#page-timeline {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ee 100%);
    overflow-y: auto;
    align-items: flex-start;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--pink-medium);
    font-style: italic;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin-bottom: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--pink-pastel), var(--red), var(--pink-pastel));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    flex-direction: row;
    padding-right: 52%;
}

.timeline-item.right {
    flex-direction: row-reverse;
    padding-left: 52%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--pink-pastel);
    text-align: left;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.15);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--rose);
    font-weight: 600;
}

.timeline-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--red);
    margin: 8px 0;
}

.timeline-card p {
    font-size: 0.9rem;
    color: #7a5070;
    line-height: 1.5;
}

/* ==================== PAGE 4: MEMORY GAME ==================== */
#page-love {
    background: linear-gradient(135deg, #fff0f3 0%, #fce4ec 100%);
    overflow-y: auto;
    padding-top: 20px;
    align-items: flex-start;
}

#page-love .section-title {
    font-size: 2rem;
    margin-top: 10px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.memory-card {
    perspective: 1000px;
    height: 130px;
    cursor: none;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.memory-card-front {
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    animation: cardPulse 3s ease-in-out infinite;
}

.memory-card:nth-child(odd) .memory-card-front {
    animation-delay: 0.5s;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3); }
    50% { box-shadow: 0 6px 30px rgba(230, 57, 70, 0.5); }
}

.memory-card-back {
    background: white;
    transform: rotateY(180deg);
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    border: 3px solid var(--pink-pastel);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.3;
}

.memory-card.matched .memory-card-front {
    background: linear-gradient(135deg, #4caf50, #81c784);
}

.memory-card.matched .memory-card-back {
    border-color: #81c784;
    color: #2e7d32;
}

.memory-counter {
    text-align: center;
    color: var(--red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ==================== PAGE 5: PLAYLIST ==================== */
#page-playlist {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0e8 100%);
}

.playlist-container {
    max-width: 500px;
    margin: 0 auto 30px;
}

.music-notes {
    font-size: 2rem;
    color: var(--pink-medium);
    margin-bottom: 20px;
    animation: noteBounce 3s ease-in-out infinite;
    letter-spacing: 15px;
}

@keyframes noteBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(5px); }
}

.playlist {
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--pink-pastel);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: none;
    gap: 15px;
}

.playlist-item:hover {
    background: var(--cream);
    transform: scale(1.02);
}

.playlist-item.playing {
    background: linear-gradient(135deg, #fff0f3, #ffe4ec);
}

.playlist-icon {
    font-size: 1.5rem;
    color: var(--pink-medium);
    width: 40px;
    height: 40px;
    background: var(--pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.playlist-item.playing .playlist-icon {
    background: var(--red);
    color: white;
    animation: spin 2s linear infinite;
}

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

.playlist-info {
    flex: 1;
    text-align: left;
}

.playlist-title {
    display: block;
    font-weight: 600;
    color: #4a2040;
    font-size: 0.95rem;
}

.playlist-note {
    display: block;
    font-size: 0.8rem;
    color: var(--pink-medium);
    font-style: italic;
}

.playlist-heart {
    color: var(--pink-pastel);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.playlist-item:hover .playlist-heart {
    color: var(--red);
    transform: scale(1.3);
}

/* ==================== PAGE 6: LETTER ==================== */
#page-letter {
    background: linear-gradient(135deg, #fff8fa 0%, #ffe8ee 100%);
}

.envelope-wrapper {
    margin: 30px auto;
    cursor: none;
}

.envelope {
    width: 200px;
    height: 140px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.6s ease;
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8d7da, #f4c2c8);
    border-radius: 8px;
    border: 2px solid var(--pink-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.envelope-heart {
    font-size: 2.5rem;
    color: var(--red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #f0b4bc, #e89da7);
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    z-index: 2;
    transition: transform 0.6s ease;
    transform-origin: top center;
    border: 2px solid var(--pink-medium);
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-hint {
    color: var(--pink-medium);
    font-style: italic;
    margin-top: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.letter-wrapper {
    animation: fadeInUp 0.8s ease;
}

.letter-paper {
    background: #fffef5;
    max-width: 550px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.1),
        inset 0 0 60px rgba(255, 235, 220, 0.3);
    border: 1px solid #f0e0d0;
    text-align: left;
    position: relative;
    background-image: 
        repeating-linear-gradient(
            transparent, transparent 31px, #e8ddd3 31px, #e8ddd3 32px
        );
    line-height: 32px;
}

.letter-date {
    font-size: 0.85rem;
    color: #b0a090;
    text-align: right;
    margin-bottom: 20px;
    font-style: italic;
}

.letter-greeting {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 15px;
}

.letter-text {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #5a4040;
    line-height: 32px;
    min-height: 200px;
}

.letter-text .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--red);
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.letter-signature {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--red);
    margin-top: 25px;
    text-align: right;
    transition: opacity 1s ease;
}

.signature-name {
    font-size: 1.6rem;
    font-weight: 700;
}

/* ==================== PAGE 7: BUCKET LIST ==================== */
#page-bucket {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4ec 100%);
    overflow-y: auto;
    align-items: flex-start;
}

.bucket-list {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bucket-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 2px solid var(--pink-pastel);
    cursor: none;
    transition: all 0.3s ease;
}

.bucket-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.15);
}

.bucket-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--pink-pastel);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--pink-pastel);
}

.bucket-item.done .bucket-check {
    background: var(--red);
    color: white;
    border-color: var(--red);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    50% { transform: scale(1.2); }
}

.bucket-text {
    text-align: left;
    flex: 1;
}

.bucket-title {
    display: block;
    font-weight: 600;
    color: #4a2040;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.bucket-item.done .bucket-title {
    color: var(--red);
}

.bucket-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--pink-medium);
    font-style: italic;
}

/* ==================== PAGE 8: QUIZ ==================== */
#page-quiz {
    background: linear-gradient(135deg, #fff0f3 0%, #ffd1dc 100%);
}

#quiz-container {
    max-width: 550px;
    margin: 0 auto;
}

#quiz-progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

#quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--red));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-question {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 25px;
    animation: fadeInDown 0.5s ease;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: white;
    border: 2px solid var(--pink-pastel);
    border-radius: 16px;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #4a2040;
    cursor: none;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--rose);
    background: var(--cream);
    transform: translateX(5px);
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quiz-option.wrong {
    background: #f8d7da;
    border-color: var(--red);
    color: var(--red-dark);
}

.quiz-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
    animation: bounceIn 0.8s ease;
}

.quiz-result-message {
    font-size: 1.3rem;
    color: var(--red);
    font-weight: 500;
    margin: 20px 0;
}

/* ==================== FINAL MESSAGE ==================== */
.final-message {
    animation: fadeInUp 1s ease;
}

.final-message h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--red);
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.final-message p {
    font-size: 1.2rem;
    color: #7a4060;
    margin-bottom: 10px;
    line-height: 1.6;
}

.final-hearts {
    font-size: 3rem;
    margin-top: 20px;
}

.final-hearts span {
    display: inline-block;
    color: var(--red);
    margin: 0 8px;
    animation: heartFloat 2s ease-in-out infinite;
}

.final-hearts span:nth-child(2) { animation-delay: 0.4s; }
.final-hearts span:nth-child(3) { animation-delay: 0.8s; }

/* ==================== NAVIGATION DOTS ==================== */
#page-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink-pastel);
    cursor: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background: var(--rose);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--red);
    border-color: white;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

/* ==================== COMMON BUTTON STYLES ==================== */
.btn-next {
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    margin-top: 20px;
}

.btn-next:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .title-question {
        font-size: 2.2rem;
    }

    .title-celebration {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .memory-card {
        height: 110px;
    }

    .memory-card-back {
        font-size: 0.75rem;
    }

    #page-love .section-title {
        font-size: 1.6rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        flex-direction: row;
        padding-right: 0;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .page-content {
        padding: 30px 15px;
    }

    .letter-paper {
        padding: 25px;
    }

    #page-nav {
        right: 8px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .title-question {
        font-size: 1.8rem;
    }

    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .memory-card {
        height: 100px;
    }

    .memory-card-back {
        font-size: 0.7rem;
    }

    #page-love .section-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .btn-yes {
        padding: 14px 35px;
        font-size: 1.2rem;
    }

    .quiz-question {
        font-size: 1.4rem;
    }
}

/* ==================== PAGE 9: WHEEL ==================== */
#page-wheel {
    background: linear-gradient(135deg, #fff0f3 0%, #ffd1dc 100%);
}

.wheel-container {
    position: relative;
    display: inline-block;
    margin: 20px auto 25px;
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--red);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pointerBounce 1s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 
        0 0 0 8px var(--red),
        0 0 0 12px var(--pink-pastel),
        0 8px 30px rgba(0,0,0,0.15);
}

.wheel-result {
    margin: 20px auto;
    padding: 20px 30px;
    background: white;
    border-radius: 16px;
    border: 3px solid var(--red);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
    animation: bounceIn 0.6s ease;
    max-width: 400px;
}

.wheel-result p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--red);
    font-weight: 700;
}

#btn-spin {
    font-size: 1.2rem;
    padding: 16px 45px;
}

#btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #wheel-canvas {
        width: 300px;
        height: 300px;
    }

    .wheel-result p {
        font-size: 1.4rem;
    }
}

/* ==================== PAGE 10: CONCLUSION ==================== */
#page-conclusion {
    background: linear-gradient(135deg, #fff0f3 0%, #fce4ec 100%);
    overflow: hidden;
}

.falling-hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.falling-heart {
    position: absolute;
    top: -40px;
    color: var(--red);
    opacity: 0.5;
    animation: fallHeart linear infinite;
}

@keyframes fallHeart {
    0% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.conclusion-message {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 40px 35px;
    border: 3px solid var(--pink-pastel);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.15);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.conclusion-message p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a2040;
    margin-bottom: 30px;
}

.conclusion-signature {
    border-top: 2px solid var(--pink-pastel);
    padding-top: 20px;
}

.conclusion-signature p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .conclusion-message {
        padding: 25px 20px;
    }

    .conclusion-message p {
        font-size: 1rem;
    }

    .conclusion-signature p {
        font-size: 1.3rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pink-light);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-pastel);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-medium);
}
