/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a1a;
    color: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    /* track global clicks for easter egg */
    cursor: default;
}

/* ============================================
   PROGRESS BAR (#progress-container)
   ============================================ */
/* Fixed at top, z-index: 1000, thin bar */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    opacity: 0; /* hidden on page 1 */
    transition: opacity 0.5s;
}
#progress-container.visible {
    opacity: 1;
}
#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ffd700, #e91e8e);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 0 15px 15px 0;
}
#progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 10px rgba(255,105,180,0.5);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

/* ============================================
   MOON EASTER EGG (#moon-icon)
   ============================================ */
#moon-icon {
    position: fixed;
    top: 50px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    opacity: 0.5;
    transition: all 0.3s;
}
#moon-icon:hover {
    opacity: 1;
    transform: scale(1.3);
}
#moon-icon.smiling {
    /* After click, rotate and pulse */
    animation: moonSmile 1s ease;
}

@keyframes moonSmile {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.5) rotate(20deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ============================================
   HIDDEN STARS (.hidden-star)
   ============================================ */
.hidden-star {
    position: fixed;
    font-size: 10px;
    cursor: pointer;
    opacity: 0.15;
    z-index: 998;
    transition: all 0.3s;
}
.hidden-star:hover {
    opacity: 0.6;
    transform: scale(1.5);
}
.hidden-star.found {
    opacity: 1;
    font-size: 20px;
    animation: starFound 0.5s ease;
}
.hidden-star[data-star="1"] { top: 15%; left: 5%; }
.hidden-star[data-star="2"] { top: 80%; left: 90%; }
.hidden-star[data-star="3"] { top: 45%; right: 3%; }
.hidden-star[data-star="4"] { bottom: 10%; left: 15%; }
.hidden-star[data-star="5"] { top: 30%; left: 85%; }
.hidden-star[data-star="6"] { bottom: 25%; right: 10%; }
.hidden-star[data-star="7"] { top: 60%; left: 3%; }

@keyframes starFound {
    0% { transform: scale(1); }
    50% { transform: scale(2.5); }
    100% { transform: scale(1); }
}

/* ============================================
   CANVAS OVERLAYS
   ============================================ */
#fireworks-canvas, #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
}
#finale-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Cherry blossoms */
#cherry-blossoms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 895;
}
.blossom {
    position: absolute;
    font-size: 20px;
    animation: fallBlossom 4s linear forwards;
    pointer-events: none;
}
@keyframes fallBlossom {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   EASTER EGG NOTIFICATION
   ============================================ */
#easter-egg-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255,105,180,0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}
#easter-egg-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   MODALS (.modal)
   ============================================ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal.show {
    opacity: 1;
    pointer-events: all;
}
.modal.hidden { display: none; }
.modal-content {
    background: rgba(30,30,60,0.95);
    border-radius: 20px;
    padding: 20px;
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,105,180,0.3);
    box-shadow: 0 0 40px rgba(255,105,180,0.2);
}
.modal-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 15px;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #ff69b4;
    transition: transform 0.2s;
}
.close-modal:hover {
    transform: scale(1.3) rotate(90deg);
}

/* ============================================
   PAGES (.page)
   ============================================ */
.page {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.95);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 50px 20px 30px;
}
.page.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.hidden {
    display: none !important;
}

/* ============================================
   COMMON ELEMENTS
   ============================================ */
.page-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(28px, 6vw, 48px);
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
    margin-bottom: 25px;
    text-align: center;
}
.page-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    color: #ff8ec7;
    margin-bottom: 20px;
    text-align: center;
}

/* Magic Button */
.magic-btn {
    background: linear-gradient(135deg, #ff69b4, #e91e8e);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(255,105,180,0.4);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}
.magic-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255,105,180,0.6);
}
.magic-btn:active {
    transform: translateY(0) scale(0.98);
}
/* Shimmer effect on button */
.magic-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.next-btn {
    margin-top: 25px;
}

/* ============================================
   PAGE 1: LOADING SCREEN
   ============================================ */
#page-1 {
    background: radial-gradient(ellipse at center, #0d0d2b 0%, #000000 100%);
}
.stars-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}
.stars-container .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}
.loading-content {
    text-align: center;
    z-index: 10;
}
#loading-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(24px, 5vw, 40px);
    color: #ff69b4;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255,105,180,0.5);
}
.loading-bar {
    width: 280px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
}
#loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ffd700);
    border-radius: 10px;
    transition: width 0.3s ease;
}
#loading-percentage {
    font-size: 36px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255,215,0,0.5);
    margin-bottom: 20px;
}
#arrival-text {
    font-size: 20px;
    color: #ff8ec7;
    opacity: 0;
    transition: opacity 1s;
    font-style: italic;
}
#arrival-text.visible {
    opacity: 1;
}

/* ============================================
   PAGE 2: GIFT BOX
   ============================================ */
#page-2 {
    background: radial-gradient(ellipse at bottom, #1a0a2e 0%, #0a0a1a 100%);
}
.gift-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#gift-box {
    position: relative;
    cursor: pointer;
}
#gift-body {
    width: 200px;
    height: 160px;
    background: linear-gradient(135deg, #e91e8e, #ff69b4);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(233,30,142,0.4);
}
#gift-lid {
    width: 220px;
    height: 45px;
    background: linear-gradient(135deg, #c4167d, #e91e8e);
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
    position: relative;
    margin-left: -10px;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom right;
}
#gift-lid.open {
    transform: rotate(-120deg) translateY(-50px);
}
#gift-ribbon-top {
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255,215,0,0.6);
}
#gift-ribbon-v {
    width: 30px;
    height: 100%;
    background: #ffd700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
#gift-ribbon-h {
    width: 100%;
    height: 30px;
    background: #ffd700;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   PAGE 3: HEY BEAUTIFUL
   ============================================ */
#page-3 {
    background: radial-gradient(ellipse at center, #1a0520 0%, #0a0a1a 100%);
}
.message-content {
    text-align: center;
}
#hey-beautiful-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(28px, 7vw, 56px);
    color: #ff69b4;
    text-shadow: 0 0 30px rgba(255,105,180,0.5);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* ============================================
   PAGE 4: CALENDAR
   ============================================ */
#page-4 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.calendar-container {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,105,180,0.2);
    box-shadow: 0 0 30px rgba(255,105,180,0.1);
}
.calendar-grid {
    border-collapse: collapse;
    font-size: clamp(14px, 3vw, 18px);
}
.calendar-grid th {
    padding: 10px 15px;
    color: #ffd700;
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 14px);
}
.calendar-grid td {
    padding: 12px 15px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    border-radius: 10px;
    transition: all 0.3s;
}
.calendar-grid td:hover {
    background: rgba(255,255,255,0.05);
}
.heart-cell {
    position: relative;
    cursor: pointer !important;
}
.heart-pulse {
    display: inline-block;
    animation: heartBeat 1s infinite;
    font-size: clamp(20px, 4vw, 32px);
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
}
.calendar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,105,180,0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(-50%) translateY(10px);
    box-shadow: 0 5px 20px rgba(255,105,180,0.3);
}
.heart-cell:hover .calendar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

#birthday-reveal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse, #1a0520, #0a0a1a);
    z-index: 100;
}
.birthday-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(32px, 8vw, 64px);
    color: #ff69b4;
    text-shadow: 0 0 40px rgba(255,105,180,0.6);
    animation: birthdayPop 1s ease forwards;
}
@keyframes birthdayPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   PAGES 5-7: HEART PHOTOS
   ============================================ */
#page-5, #page-6, #page-7 {
    background: radial-gradient(ellipse at center, #1a0520 0%, #0a0a1a 100%);
}
.heart-container {
    margin: 20px 0;
}
.heart-btn {
    font-size: 80px;
    background: none;
    border: none;
    cursor: pointer;
    animation: heartBeat 1s infinite;
    transition: transform 0.5s;
    filter: drop-shadow(0 0 20px rgba(255,105,180,0.6));
}
.heart-btn:hover {
    transform: scale(1.2);
}
.heart-btn.clicked {
    animation: heartGrow 0.8s ease forwards;
}
@keyframes heartGrow {
    0% { transform: scale(1); }
    50% { transform: scale(3); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

.heart-photo-reveal {
    animation: photoReveal 0.8s ease forwards;
}
.heart-photo-reveal img {
    max-width: 300px;
    max-height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(255,105,180,0.4);
    border: 3px solid rgba(255,105,180,0.3);
}
@keyframes photoReveal {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================
   PAGE 8: MEMORY CARDS
   ============================================ */
#page-8 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.memory-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 500px;
    padding: 10px;
}
.memory-card {
    width: clamp(90px, 25vw, 140px);
    height: clamp(120px, 33vw, 180px);
    perspective: 800px;
    cursor: pointer;
}
.memory-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    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: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}
.memory-card-front {
    background: linear-gradient(135deg, #1a1a3e, #2a1a4e);
    border: 2px solid rgba(255,215,0,0.3);
    font-size: 36px;
    color: #ffd700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.memory-card-back {
    background: linear-gradient(135deg, #1a0520, #2a1535);
    border: 2px solid rgba(255,105,180,0.3);
    transform: rotateY(180deg);
    padding: 8px;
}
.memory-card-back img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 10px;
}
.memory-card-back p {
    font-size: clamp(10px, 2.5vw, 13px);
    color: #ff8ec7;
    margin-top: 5px;
    text-align: center;
}

/* ============================================
   PAGE 9: BALLOONS
   ============================================ */
#page-9 {
    background: radial-gradient(ellipse at top, #1a0a2e 0%, #0a0a1a 100%);
}
.balloons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 20px 0;
}
.balloon {
    width: 70px;
    height: 90px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    cursor: pointer;
    position: relative;
    animation: balloonFloat 3s ease-in-out infinite;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.2);
}
.balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.3);
}
.balloon:hover {
    transform: scale(1.1);
}
.balloon.popped {
    animation: balloonPop 0.3s ease forwards;
    pointer-events: none;
}
@keyframes balloonFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes balloonPop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}
.balloon-message {
    font-size: 14px;
    color: #ffd700;
    text-align: center;
    animation: messageFloat 0.5s ease forwards;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
@keyframes messageFloat {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAGE 10: CAKE
   ============================================ */
#page-10 {
    background: radial-gradient(ellipse at bottom, #1a0a10 0%, #0a0a1a 100%);
}
.cake-container {
    margin: 20px 0;
}
.cake {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.candles-row {
    display: flex;
    gap: 25px;
    margin-bottom: 5px;
    z-index: 2;
}
.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.candle:hover {
    transform: scale(1.1);
}
.candle-body {
    width: 10px;
    height: 40px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    border-radius: 3px 3px 2px 2px;
}
.candle-flame {
    font-size: 20px;
    animation: flicker 0.5s infinite alternate;
    transition: opacity 0.3s;
}
.candle-flame.out {
    opacity: 0;
    font-size: 0;
}
@keyframes flicker {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}
.cake-top {
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, #ff69b4, #e91e8e);
    border-radius: 15px 15px 5px 5px;
    position: relative;
}
.cake-top::before {
    content: '🎂 Happy Birthday 🎂';
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.cake-middle {
    width: 220px;
    height: 50px;
    background: linear-gradient(135deg, #c4167d, #d63384);
    border-radius: 5px;
}
.cake-bottom {
    width: 240px;
    height: 55px;
    background: linear-gradient(135deg, #a0125e, #c4167d);
    border-radius: 5px 5px 15px 15px;
    box-shadow: 0 10px 30px rgba(196,22,125,0.4);
}
#blow-instruction {
    margin-top: 20px;
    color: #ff8ec7;
    font-size: 16px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.clap-animation {
    font-size: 48px;
    animation: clapBounce 0.5s ease infinite;
    margin-top: 15px;
}
@keyframes clapBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   PAGE 11: SCRATCH CARD
   ============================================ */
#page-11 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.scratch-container {
    position: relative;
    width: 350px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255,105,180,0.3);
}
#scratch-message {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(20px, 5vw, 28px);
    color: #ff69b4;
    text-shadow: 0 0 20px rgba(255,105,180,0.3);
    background: linear-gradient(135deg, #1a0520, #0d0d2b);
    padding: 20px;
    text-align: center;
}
#scratch-canvas {
    position: absolute;
    top: 0; left: 0;
    cursor: grab;
    border-radius: 20px;
}

/* ============================================
   PAGE 12: PUZZLE
   ============================================ */
#page-12 {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 100%);
}
#puzzle-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 8px;
    border: 2px solid rgba(255,105,180,0.2);
}
.puzzle-piece {
    width: 100%;
    height: 100%;
    background-size: 300px 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid rgba(255,255,255,0.1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.puzzle-piece:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255,105,180,0.4);
    z-index: 10;
}
.puzzle-piece.selected {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,215,0,0.3);
    transform: scale(1.05);
    z-index: 10;
}
.puzzle-piece.correct {
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
}
@keyframes puzzleSwap {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); }
    100% { transform: scale(1); }
}
#puzzle-complete {
    position: absolute;
    text-align: center;
}
#puzzle-complete h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    color: #ffd700;
}

/* ============================================
   PAGE 13: ENVELOPE
   ============================================ */
#page-13 {
    background: radial-gradient(ellipse at center, #1a0520 0%, #0a0a1a 100%);
}

/* Phase 1: Envelope */
.envelope-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.envelope-phase.fade-out {
    opacity: 0;
    transform: scale(0.8);
}
.envelope {
    width: 280px;
    height: 190px;
    position: relative;
    margin: 20px 0;
    perspective: 800px;
}
.envelope-flap {
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 95px solid #c4167d;
    position: absolute;
    top: 0;
    z-index: 5;
    transition: transform 0.8s ease;
    transform-origin: top center;
}
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}
.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e91e8e, #ff69b4);
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(233,30,142,0.3);
}

/* Phase 2: Letter Card */
.letter-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: letterAppear 0.6s ease;
}
@keyframes letterAppear {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.letter-card {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(255,105,180,0.25), 0 0 80px rgba(255,105,180,0.08);
    border: 1px solid rgba(255,105,180,0.15);
    position: relative;
}
.letter-card::before {
    content: '💌';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
}
.letter-content {
    color: #333;
    font-size: 14px;
    line-height: 1.9;
}
.letter-content p {
    margin-bottom: 12px;
}
.letter-content p:first-child {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: #e91e8e;
    margin-bottom: 14px;
}
.letter-content p:last-child {
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    color: #e91e8e;
    text-align: right;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ============================================
   PAGE 14: PHOTO WALL
   ============================================ */
#page-14 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.photo-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 450px;
    padding: 10px;
}
.polaroid {
    background: white;
    padding: 10px 10px 35px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.polaroid:nth-child(1) { --rotation: -3deg; }
.polaroid:nth-child(2) { --rotation: 2deg; }
.polaroid:nth-child(3) { --rotation: -2deg; }
.polaroid:nth-child(4) { --rotation: 4deg; }
.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,105,180,0.4);
    z-index: 10;
}
.polaroid-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
}
.polaroid-caption {
    color: #333;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
    font-family: 'Dancing Script', cursive;
    font-size: 14px;
}

/* ============================================
   PAGE 15 & 17: QUIZ
   ============================================ */
#page-15, #page-17 {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 100%);
}
.quiz-question {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(22px, 5vw, 32px);
    color: #ff8ec7;
    margin-bottom: 30px;
    text-align: center;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.quiz-option, .date-option, .surprise-option {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,105,180,0.3);
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    text-align: center;
}
.quiz-option:hover, .date-option:hover, .surprise-option:hover {
    background: rgba(255,105,180,0.2);
    border-color: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,105,180,0.3);
}
.quiz-option.correct, .date-option.correct {
    background: rgba(255,105,180,0.4);
    border-color: #ff69b4;
    animation: correctPop 0.5s ease;
}
.quiz-option.wrong, .date-option.wrong {
    background: rgba(255,0,0,0.2);
    border-color: red;
    animation: shake 0.5s ease;
}
@keyframes correctPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
#quiz-result, #date-result {
    margin-top: 15px;
    font-size: 18px;
    color: #ffd700;
    min-height: 30px;
}

/* ============================================
   PAGE 16: TREASURE HUNT
   ============================================ */
#page-16 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.treasure-field {
    width: 350px;
    height: 350px;
    position: relative;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 20px 0;
    overflow: hidden;
}
.treasure-field .decoy, #hidden-star {
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}
.treasure-field .decoy:hover, #hidden-star:hover {
    transform: scale(1.3);
}
#hidden-star {
    animation: twinkle 2s infinite alternate;
}

/* ============================================
   PAGE 18: MUSIC
   ============================================ */
#page-18 {
    background: radial-gradient(ellipse at center, #1a0a10 0%, #0a0a1a 100%);
}
.vinyl-container {
    position: relative;
    margin: 20px 0;
}
#vinyl-record {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        #1a1a1a 0px,
        #1a1a1a 3px,
        #222 3px,
        #222 5px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.3s;
}
#vinyl-record.spinning {
    animation: spin 3s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.vinyl-label {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #e91e8e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    font-weight: 600;
    color: white;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
#vinyl-arm {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #888, #aaa);
    position: absolute;
    top: 30px;
    right: -30px;
    transform-origin: right center;
    transform: rotate(-30deg);
    transition: transform 0.5s;
    border-radius: 4px;
}
#vinyl-arm::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 15px;
    height: 15px;
    background: #ccc;
    border-radius: 2px;
    transform: rotate(45deg);
}
#vinyl-arm.playing {
    transform: rotate(-10deg);
}

/* ============================================
   PAGE 19: TIMELINE
   ============================================ */
#page-19 {
    background: radial-gradient(ellipse at center, #0d1530 0%, #0a0a1a 100%);
}
.timeline-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 90%;
}
.timeline-viewport {
    overflow: hidden;
    width: 300px;
    border-radius: 20px;
}
.timeline-slides {
    display: flex;
    transition: transform 0.5s ease;
}
.timeline-slide {
    min-width: 300px;
    padding: 15px;
    text-align: center;
}
.timeline-photo {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(255,105,180,0.3);
    border: 2px solid rgba(255,105,180,0.2);
}
.timeline-text {
    color: #ff8ec7;
    margin-top: 12px;
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
}
.slide-btn {
    background: rgba(255,105,180,0.2);
    border: 2px solid rgba(255,105,180,0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-btn:hover {
    background: rgba(255,105,180,0.4);
    transform: scale(1.1);
}

/* ============================================
   PAGE 20: JAR OF MEMORIES
   ============================================ */
#page-20 {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 100%);
}
.jar {
    position: relative;
    width: 200px;
    margin: 20px auto;
}
.jar-body {
    width: 180px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border: 3px solid rgba(255,255,255,0.15);
    border-radius: 10px 10px 30px 30px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.jar-lid {
    width: 200px;
    height: 25px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 10px 10px 5px 5px;
    margin: 0 auto;
    position: relative;
    top: -3px;
    box-shadow: 0 -5px 15px rgba(255,215,0,0.2);
    order: -1;
}
.jar-star {
    position: absolute;
    font-size: 28px;
    cursor: pointer;
    animation: jarFloat 3s ease-in-out infinite;
    transition: transform 0.3s;
}
.jar-star:hover {
    transform: scale(1.3);
}
.jar-star.clicked {
    animation: starPop 0.5s ease forwards;
}
@keyframes jarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes starPop {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.jar-star:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.jar-star:nth-child(2) { top: 40%; left: 55%; animation-delay: 0.5s; }
.jar-star:nth-child(3) { top: 60%; left: 25%; animation-delay: 1s; }
.jar-star:nth-child(4) { top: 30%; left: 70%; animation-delay: 1.5s; }
.jar-star:nth-child(5) { top: 75%; left: 50%; animation-delay: 2s; }

.jar-message {
    margin-top: 15px;
    color: #ff8ec7;
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    text-align: center;
    animation: messageFloat 0.5s ease;
    text-shadow: 0 0 15px rgba(255,105,180,0.4);
}

/* ============================================
   PAGE 21: NIGHT SKY
   ============================================ */
#page-21 {
    background: radial-gradient(ellipse at top, #050520 0%, #000 100%);
}
.night-sky {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 15px 0;
    background: radial-gradient(ellipse at top, #0d1b2a 0%, #050510 100%);
}
@keyframes twinkleStar {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}
.shooting-star {
    position: absolute;
    font-size: 36px;
    cursor: pointer;
    animation: starFloat 3s ease-in-out infinite alternate;
    transition: transform 0.2s;
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    /* Bigger tap target with padding */
    padding: 12px;
    margin: -12px;
    user-select: none;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));
}
.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.6));
    transform: translateY(-50%);
    pointer-events: none;
}
.shooting-star:hover {
    transform: scale(1.4);
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.9));
}
.shooting-star.caught {
    animation: starCaught 0.6s ease forwards !important;
    pointer-events: none;
}
@keyframes starFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -8px) rotate(5deg); }
    50% { transform: translate(-5px, 5px) rotate(-3deg); }
    75% { transform: translate(8px, 3px) rotate(4deg); }
    100% { transform: translate(-8px, -6px) rotate(-5deg); }
}
@keyframes starCaught {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(2.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}
.wishes-container {
    text-align: center;
    min-height: 30px;
}
.wish-text {
    color: #ffd700;
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    animation: wishAppear 0.6s ease;
    text-shadow: 0 0 15px rgba(255,215,0,0.5);
    margin: 6px 0;
}
@keyframes wishAppear {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAGE 22: LAST SURPRISE
   ============================================ */
#page-22 {
    background: radial-gradient(ellipse at center, #1a0520 0%, #0a0a1a 100%);
}

/* ============================================
   PAGE 23: COUNTDOWN
   ============================================ */
#page-23 {
    background: #000;
}
#countdown-number {
    font-size: clamp(100px, 30vw, 200px);
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 50px rgba(255,215,0,0.5), 0 0 100px rgba(255,215,0,0.3);
    animation: countPulse 0.5s ease;
}
@keyframes countPulse {
    0% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.screen-shake {
    animation: screenShake 0.5s ease;
}
@keyframes screenShake {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-5px, -5px); }
    20% { transform: translate(5px, -5px); }
    30% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, 5px); }
    50% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, -5px); }
    70% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, 5px); }
    90% { transform: translate(-5px, -5px); }
}

/* ============================================
   PAGE 24: FIREWORKS FINALE
   ============================================ */
#page-24 {
    background: #000;
    overflow: hidden;
}
.finale-message {
    position: absolute;
    z-index: 10;
    font-size: 48px;
    animation: finaleGlow 2s infinite alternate;
}
@keyframes finaleGlow {
    0% { text-shadow: 0 0 20px rgba(255,215,0,0.5); }
    100% { text-shadow: 0 0 60px rgba(255,215,0,1), 0 0 100px rgba(255,105,180,0.5); }
}

/* ============================================
   PAGE 25: FINAL MESSAGE
   ============================================ */
#page-25 {
    background: radial-gradient(ellipse at center, #1a0520 0%, #000 100%);
}
.final-content {
    text-align: center;
    max-width: 600px;
}
#final-message {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(22px, 5vw, 36px);
    color: #ff69b4;
    line-height: 1.8;
    text-shadow: 0 0 30px rgba(255,105,180,0.4);
}
#final-heart {
    font-size: 80px;
    margin-top: 30px;
    animation: heartBeat 1s infinite;
}

/* Heart rain easter egg */
.heart-rain {
    position: fixed;
    font-size: 20px;
    animation: heartFall 3s linear forwards;
    pointer-events: none;
    z-index: 1800;
}
@keyframes heartFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Cat easter egg */
.hidden-cat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    z-index: 1999;
    animation: catBounce 1s ease-in-out infinite alternate;
    cursor: pointer;
}
@keyframes catBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Konami code retro */
.retro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    color: #0f0;
    font-size: 24px;
    animation: retroFlicker 0.1s infinite alternate;
}
@keyframes retroFlicker {
    0% { opacity: 0.95; }
    100% { opacity: 1; }
}

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

/* Tablet */
@media (max-width: 768px) {
    .page {
        padding: 45px 15px 25px;
    }
    .page-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 15px;
    }
    .magic-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    .gift-scene #gift-body {
        width: 160px;
        height: 130px;
    }
    .gift-scene #gift-lid {
        width: 180px;
        height: 38px;
        margin-left: -10px;
    }
    .calendar-grid th {
        padding: 8px 10px;
    }
    .calendar-grid td {
        padding: 10px 10px;
    }
    .envelope {
        width: 240px;
        height: 165px;
    }
    .envelope-flap {
        border-left: 120px solid transparent;
        border-right: 120px solid transparent;
        border-top: 82px solid #c4167d;
    }
    #vinyl-record {
        width: 180px;
        height: 180px;
    }
    .vinyl-label {
        width: 65px;
        height: 65px;
        font-size: 9px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    .page {
        padding: 40px 12px 20px;
    }
    .page-title {
        font-size: clamp(20px, 5vw, 32px);
        margin-bottom: 12px;
    }
    .page-subtitle {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .magic-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    .next-btn {
        margin-top: 15px;
    }

    /* Progress bar */
    #progress-container {
        height: 26px;
    }
    #progress-text {
        font-size: 9px;
    }

    /* Gift box */
    #gift-body {
        width: 140px;
        height: 110px;
    }
    #gift-lid {
        width: 155px;
        height: 32px;
        margin-left: -7px;
    }
    #gift-ribbon-v { width: 22px; }
    #gift-ribbon-h { height: 22px; }
    #gift-ribbon-top { width: 24px; height: 24px; top: -12px; }

    /* Calendar */
    .calendar-container {
        padding: 15px;
    }
    .calendar-grid th {
        padding: 6px 6px;
        font-size: 11px;
    }
    .calendar-grid td {
        padding: 8px 6px;
        font-size: 13px;
    }
    .heart-pulse {
        font-size: clamp(18px, 4vw, 26px) !important;
    }
    .calendar-tooltip {
        font-size: 11px;
        padding: 8px 14px;
    }

    /* Heart photos */
    .heart-btn {
        font-size: 60px;
    }
    .heart-photo-reveal img {
        max-width: 250px;
        max-height: 280px;
    }

    /* Memory cards */
    .memory-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 280px;
    }
    .memory-card {
        width: clamp(110px, 35vw, 130px);
        height: clamp(140px, 45vw, 170px);
    }

    /* Balloons */
    .balloons-container {
        gap: 10px;
        max-width: 340px;
    }
    .balloon {
        width: 55px;
        height: 70px;
    }
    .balloon-message {
        font-size: 12px;
    }

    /* Cake */
    .candles-row {
        gap: 15px;
    }
    .candle-body {
        width: 8px;
        height: 30px;
    }
    .candle-flame {
        font-size: 16px;
    }
    .cake-top {
        width: 160px;
        height: 48px;
    }
    .cake-top::before {
        font-size: 10px;
    }
    .cake-middle {
        width: 175px;
        height: 40px;
    }
    .cake-bottom {
        width: 190px;
        height: 45px;
    }
    #blow-instruction {
        font-size: 13px;
    }

    /* Scratch card */
    .scratch-container {
        width: 280px;
        height: 160px;
    }
    #scratch-canvas {
        width: 280px;
        height: 160px;
    }
    #scratch-message {
        font-size: clamp(16px, 4vw, 22px);
    }

    /* Puzzle */
    #puzzle-container {
        width: 260px !important;
        height: 260px !important;
    }
    .puzzle-piece {
        background-size: 244px 244px !important;
    }

    /* Envelope */
    .envelope {
        width: 220px;
        height: 145px;
    }
    .envelope-flap {
        border-left: 110px solid transparent;
        border-right: 110px solid transparent;
        border-top: 72px solid #c4167d;
    }
    .letter-card {
        padding: 22px 18px;
    }
    .letter-content {
        font-size: 13px;
        line-height: 1.7;
    }
    .letter-content p:first-child {
        font-size: 19px;
    }
    .letter-content p:last-child {
        font-size: 16px;
    }

    /* Photo wall */
    .photo-wall {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        gap: 12px;
    }
    .polaroid {
        padding: 6px 6px 25px;
    }
    .polaroid-photo {
        height: 110px;
    }
    .polaroid-caption {
        font-size: 11px;
    }

    /* Quiz */
    .quiz-question {
        font-size: clamp(18px, 4.5vw, 26px);
        margin-bottom: 20px;
    }
    .quiz-option, .date-option, .surprise-option {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 180px;
    }

    /* Treasure hunt */
    .treasure-field {
        width: 280px;
        height: 280px;
    }

    /* Music */
    #vinyl-record {
        width: 160px;
        height: 160px;
    }
    .vinyl-label {
        width: 55px;
        height: 55px;
        font-size: 8px;
    }
    #vinyl-arm {
        width: 70px;
        height: 6px;
    }

    /* Timeline */
    .timeline-viewport {
        width: 250px;
    }
    .timeline-slide {
        min-width: 250px;
    }
    .timeline-photo {
        max-height: 200px;
    }
    .timeline-text {
        font-size: 15px;
    }
    .slide-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Jar */
    .jar-body {
        width: 150px;
        height: 200px;
    }
    .jar-lid {
        width: 170px;
        height: 20px;
    }
    .jar-star {
        font-size: 22px;
    }
    .jar-message {
        font-size: 16px;
    }

    /* Night sky */
    .night-sky {
        height: 250px;
    }
    .wish-text {
        font-size: 16px;
    }

    /* Countdown */
    #countdown-number {
        font-size: clamp(80px, 25vw, 160px);
    }

    /* Final message */
    #final-message {
        font-size: clamp(18px, 4.5vw, 28px);
    }
    #final-heart {
        font-size: 60px;
    }

    /* Modal */
    .modal-content {
        padding: 15px;
        max-width: 92%;
    }
    .modal-content img {
        max-height: 50vh;
    }

    /* Birthday reveal */
    .birthday-text {
        font-size: clamp(26px, 7vw, 48px);
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .page {
        padding: 38px 8px 15px;
    }
    .memory-cards-grid {
        max-width: 240px;
        gap: 8px;
    }
    .memory-card {
        width: 105px;
        height: 135px;
    }
    #puzzle-container {
        width: 220px !important;
        height: 220px !important;
    }
    .puzzle-piece {
        background-size: 204px 204px !important;
    }
    .photo-wall {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    .balloons-container {
        max-width: 280px;
    }
    .balloon {
        width: 48px;
        height: 62px;
    }
    .timeline-viewport {
        width: 220px;
    }
    .timeline-slide {
        min-width: 220px;
    }
}
