/* ===================================
   BIRTHDAY INTERACTIVE ADVENTURE
   Design: Cozy Romantic Pastel
   =================================== */

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

:root {
    /* Colors */
    --color-primary: #fff9fb;
    --color-text: #5a4a55;
    --color-accent-pink: #ffb7b2;
    --color-accent-lilac: #e0bbe4;
    --color-mint: #d4f0f0;
    --color-cream: #fdfd96;
    --color-doodle-dark: #5a4a55;
    --color-doodle-medium: #8c7b85;
    --color-doodle-light: #c9b8c3;

    /* Typography */
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Outfit', sans-serif;
    --font-doodle: 'Indie Flower', cursive;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Shadows & Glows */
    --shadow-soft: 0 4px 20px rgba(255, 183, 178, 0.15);
    --shadow-medium: 0 8px 30px rgba(224, 187, 228, 0.25);
    --shadow-strong: 0 12px 40px rgba(90, 74, 85, 0.2);
    --glow-pink: 0 0 20px rgba(255, 183, 178, 0.6);
    --glow-lilac: 0 0 25px rgba(224, 187, 228, 0.5);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-primary);
    overflow-x: hidden;
    cursor: none;
}

/* === CUSTOM CURSOR === */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s var(--ease-smooth);
    animation: wobble 2s ease-in-out infinite;
}

.custom-cursor.hover {
    transform: scale(1.5);
}

.custom-cursor.click {
    transform: scale(0.8);
}

.custom-cursor svg {
    filter: drop-shadow(0 2px 4px rgba(255, 183, 178, 0.4));
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* === BUTTONS (Global Fix) === */
.btn-pill {
    height: 40px;
    padding: 0 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-lilac) 100%);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(255, 183, 178, 0.3);
    transition: all 0.2s var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--glow-pink);
    animation: heartPop 0.3s ease-in-out;
}

.btn-pill:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-pill:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

.btn-pill.small-btn {
    height: 32px;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.btn-pill.icon-only {
    width: 40px;
    padding: 0;
}

.icon-inline {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* === PROGRESS RAIL === */
.progress-rail {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-circle {
    width: 50px;
    height: 50px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--color-accent-pink);
    transition: stroke-dasharray 0.5s ease;
}

.progress-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--ease-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* === QUICK PANEL === */
.quick-panel-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 890;
    pointer-events: none;
}

.panel-tab {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    pointer-events: auto;
    z-index: 901;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-bounce);
}

.panel-tab:hover {
    transform: scale(1.1);
}

.quick-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: rgba(255, 249, 251, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-smooth);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.quick-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent-pink);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.panel-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-links button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.panel-links button:hover {
    background: rgba(255, 183, 178, 0.2);
    color: var(--color-accent-pink);
}

/* === MAP OVERLAY === */
.map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 249, 251, 0.98);
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s var(--ease-smooth);
    padding: 2rem;
}

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

.map-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent-pink);
    margin-bottom: 2rem;
    text-align: center;
}

.close-map-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-text);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.map-icon-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    opacity: 0.5;
    filter: grayscale(1);
    position: relative;
    padding: 1rem;
    border-radius: 12px;
}

.map-icon-large.unlocked {
    opacity: 1;
    filter: grayscale(0);
}

.map-icon-large.completed {
    background: rgba(224, 187, 228, 0.1);
    box-shadow: 0 0 15px rgba(224, 187, 228, 0.3);
}

.map-icon-large.completed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--color-accent-pink);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 183, 178, 0.4);
}

.map-icon-large:hover {
    transform: scale(1.1);
}

.map-icon-large svg {
    width: 60px;
    height: 60px;
    color: var(--color-accent-pink);
}

.reset-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #8c7b85 0%, #c9b8c3 100%);
}

.reset-btn:hover {
    box-shadow: 0 0 15px rgba(140, 123, 133, 0.5);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === SECTIONS === */
.section {
    min-height: 100vh;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent-pink);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-doodle-medium);
}

/* === INTRO (Love Bomb) === */
#intro {
    background: linear-gradient(135deg, #fff9fb 0%, #ffe5ec 50%, #ffd6e0 100%);
}

.intro-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cat-peek-left {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 4rem;
    transform: rotate(10deg);
}

.cat-peek-right {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 4rem;
    transform: rotate(-10deg);
}

.teddy-bear-float {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 3rem;
    animation: float 4s infinite;
}

.meme-caption {
    position: absolute;
    font-family: var(--font-doodle);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
}

.meme-caption.left {
    top: 30%;
    left: 10%;
    transform: rotate(-5deg);
}

.meme-caption.right {
    top: 40%;
    right: 10%;
    transform: rotate(5deg);
}

.meme-caption.top-center {
    top: 15%;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
}

.heart-bokeh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 183, 178, 0.2) 2px, transparent 2px);
    z-index: 0;
    pointer-events: none;
}

/* === MEMORY GARDEN (Lush Lawn) === */
#memory-garden {
    position: relative;
    background: linear-gradient(180deg, #87CEEB 0%, #C2E9FB 60%, #81c784 60%, #2e7d32 100%);
    overflow: hidden;
}

.garden-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Clouds */
.garden-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 120px 20px 0 rgba(255, 255, 255, 0.6),
        300px -30px 0 rgba(255, 255, 255, 0.7),
        500px 40px 0 rgba(255, 255, 255, 0.5);
    filter: blur(4px);
    animation: floatClouds 60s linear infinite;
}

@keyframes floatClouds {
    from {
        transform: translateX(-100px);
    }

    to {
        transform: translateX(100vw);
    }
}

.garden-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.butterfly {
    position: absolute;
    font-size: 1.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    animation: flyAround 15s infinite linear;
    z-index: 10;
}

.b1 {
    top: 30%;
    left: -10%;
    animation-delay: 0s;
}

.b2 {
    top: 50%;
    right: -10%;
    animation-delay: 7s;
    animation-direction: reverse;
}

@keyframes flyAround {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        left: -10%;
    }

    25% {
        transform: translateX(30vw) translateY(-50px) rotate(10deg);
    }

    50% {
        transform: translateX(60vw) translateY(20px) rotate(-5deg);
    }

    75% {
        transform: translateX(90vw) translateY(-30px) rotate(5deg);
    }

    100% {
        transform: translateX(110vw) translateY(0) rotate(0deg);
        left: 110%;
    }
}

.garden-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    padding-bottom: 4rem;
    /* Space for stems to sit in grass */
    z-index: 1;
    margin-top: auto;
    /* Push to bottom */
    min-height: 50vh;
}

.garden-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s var(--ease-bounce);
    width: 80px;
    height: 160px;
    /* Height includes stem */
    justify-content: flex-start;
    transform-origin: bottom center;
}

/* The Flower Head (Icon) */
.garden-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
    animation: sway 3s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

/* The Stem */
.garden-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 110px;
    /* Stem height */
    background: #4CAF50;
    /* Green stem */
    z-index: 1;
    border-radius: 4px;
}

/* Leaves */
.garden-item::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: 24px;
    height: 12px;
    background: #4CAF50;
    border-radius: 0 12px 0 12px;
    transform: translateX(-24px) rotate(-15deg);
    box-shadow: 26px -10px 0 #4CAF50;
    /* Second leaf on right */
}

/* Hover Effects */
.garden-item:hover .garden-icon {
    transform: scale(1.3) rotate(10deg);
    animation-play-state: paused;
}

.garden-item:hover::after {
    background: #66BB6A;
    /* Lighter green on hover */
}

@keyframes sway {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

/* Randomize sway delays for natural feel */
.garden-item:nth-child(2n) .garden-icon {
    animation-delay: 0.5s;
}

.garden-item:nth-child(3n) .garden-icon {
    animation-delay: 1s;
}

.garden-item:nth-child(5n) .garden-icon {
    animation-delay: 1.5s;
}

.garden-tooltip {
    position: absolute;
    top: -40px;
    /* Move above flower */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.garden-item:hover .garden-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === REASSURANCE (Fun Emoji Covers) === */
#reassurance {
    background: linear-gradient(135deg, #fff9fb 0%, #ffe5ec 100%);
}

.reassurance-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.reassurance-card {
    background: #fdfd96;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    transform-style: preserve-3d;
    min-height: 200px;
    position: relative;
    transform: rotate(var(--rotate, 0deg));
}

.reassurance-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.reassurance-card:hover::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: sparklePop 0.6s ease-in-out infinite alternate;
}

@keyframes sparklePop {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2) rotate(20deg);
        opacity: 1;
    }
}

.reassurance-card.cover-polaroid {
    background: white;
    padding-bottom: 3rem;
    border: 1px solid #eee;
}

.reassurance-card.cover-vellum {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
}

.reassurance-card.cover-washi {
    border-top: 12px solid rgba(255, 183, 178, 0.6);
}

.reassurance-card.cover-fold {
    border-bottom-right-radius: 40px;
    background: linear-gradient(135deg, transparent 25px, #fdfd96 25px);
}

.reassurance-card.cover-sticker {
    border: 2px dashed var(--color-accent-pink);
}

.reassurance-card.cover-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 100%;
    background: rgba(224, 187, 228, 0.3);
    pointer-events: none;
}

.card-emoji-decor {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    opacity: 0.8;
}

.card-emoji-decor.top-left {
    top: 10px;
    left: 10px;
    transform: rotate(-15deg);
}

.card-emoji-decor.bottom-right {
    bottom: 10px;
    right: 10px;
    transform: rotate(15deg);
}

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

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-back {
    transform: rotateY(180deg);
    font-family: var(--font-doodle);
    font-size: 1.25rem;
    color: #333;
}

/* === QUIZ === */
#quiz {
    background: linear-gradient(180deg, var(--color-accent-lilac) 0%, var(--color-mint) 50%, var(--color-primary) 100%);
}

.quiz-container {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 249, 251, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.quiz-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.quiz-sticker {
    position: absolute;
    font-size: 2rem;
}

.quiz-sticker.top-left {
    top: 1rem;
    left: 1rem;
    transform: rotate(-15deg);
}

.quiz-sticker.top-right {
    top: 1rem;
    right: 1rem;
    transform: rotate(15deg);
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-progress {
    flex: 1;
    height: 8px;
    background: rgba(224, 187, 228, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--color-accent-pink);
    width: 0%;
    transition: width 0.5s var(--ease-smooth);
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeInUp 0.5s var(--ease-smooth);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-option {
    background: white;
    border: 2px solid var(--color-accent-lilac);
    border-radius: 16px;
    padding: 1.25rem;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.quiz-option:hover {
    background: var(--color-accent-lilac);
    transform: translateX(5px);
}

.quiz-result {
    text-align: center;
}

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

.share-card {
    background: white;
    padding: 1rem;
    border: 2px solid var(--color-accent-pink);
    border-radius: 12px;
    display: inline-block;
    margin: 2rem 0;
    transform: rotate(-2deg);
}

.seal-animation {
    font-size: 4rem;
    animation: pulse 2s infinite;
}

.quiz-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* === STORY TIMELINE === */
#story-pathway {
    background: linear-gradient(180deg, #ffe5ec 0%, var(--color-primary) 100%);
}

.timeline-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent-lilac);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

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

.node-marker {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--color-accent-pink);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.node-card {
    position: absolute;
    width: 40%;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.node-card:hover {
    transform: scale(1.05);
}

.timeline-node:nth-child(odd) .node-card {
    left: 0;
    text-align: right;
}

.timeline-node:nth-child(even) .node-card {
    right: 0;
    text-align: left;
}

/* === DOODLE JOURNEY === */
#doodle-journey {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-primary) 100%);
}

.doodle-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.doodle-viewport {
    width: 100%;
    max-width: 800px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doodle-scene-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doodle-img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    display: none;
}

.doodle-img.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* === POETRY BOOK === */
#poetry-book {
    background: linear-gradient(135deg, #8c7b85 0%, #c9b8c3 100%);
    perspective: 2000px;
}

.book-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.book-3d-container {
    position: relative;
    z-index: 20;
}

.center-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
}

.placeholder-art svg {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* === STARS === */
#stars {
    background: radial-gradient(ellipse at center, #2a1a2e 0%, #0f0a14 100%);
}

#stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.stars-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.stars-content button {
    pointer-events: auto;
}

.stars-title {
    color: var(--color-accent-pink);
    text-shadow: 0 0 20px rgba(255, 183, 178, 0.5);
}

/* === FINAL ROOM === */
#final-room {
    position: relative;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    animation: float 5s infinite;
}

.float-item.bear {
    top: 70%;
    left: 10%;
    font-size: 4rem;
    animation-duration: 6s;
}

.float-item.heart {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.float-item.star {
    top: 30%;
    left: 30%;
    animation-delay: 2s;
}

.float-item.moon {
    top: 10%;
    right: 10%;
    animation-delay: 3s;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

/* === MODAL === */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(90, 74, 85, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: rgba(255, 249, 251, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-strong);
    position: relative;
    animation: popIn 0.3s var(--ease-bounce);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: #999;
}

.hidden {
    display: none;
}

/* === ANIMATIONS === */
@keyframes wobble {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .garden-grid,
    .map-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-viewport {
        flex-direction: column;
    }

    .book-3d-container {
        width: 100%;
        height: 600px;
    }

    .page {
        width: 100%;
        position: relative;
        height: auto;
        min-height: 400px;
    }

    .page-left,
    .page-right {
        border-radius: 10px;
        border: none;
        margin-bottom: 1rem;
    }

    .quick-panel {
        width: 100%;
    }

}

.poem-text {
    white-space: pre-line;
    font-family: var(--font-doodle);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === COUNTDOWN LOCK SCREEN === */
#preunlock-gate {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fff9fb 0%, #ffe5ec 50%, #ffd6e0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

#preunlock-gate.fade-out {
    opacity: 0;
    pointer-events: none;
}

#countdown-wrapper {
    text-align: center;
    z-index: 10;
    position: relative;
}

#countdown-wrapper h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-accent-pink);
    margin-bottom: 1rem;
}

#countdown-wrapper p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 3rem;
}

#countdown-timer {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.countdown-unit {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(255, 183, 178, 0.3);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-pink);
    font-family: var(--font-body);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#countdown-bunnies {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

#countdown-bunnies .decor-item {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

#countdown-bunnies .decor-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

#countdown-bunnies .decor-item:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

#countdown-bunnies .decor-item:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

#countdown-bunnies .decor-item:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@media (max-width: 768px) {
    #countdown-timer {
        gap: 1rem;
    }
    
    .countdown-unit {
        min-width: 80px;
        padding: 1.5rem 1rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    #countdown-wrapper h1 {
        font-size: 2.5rem;
    }
}
