/* ============================================
   SOFIE'S 19TH BIRTHDAY CARD
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #ff6b9d;
    --purple: #c56cf0;
    --gold: #ffd93d;
    --blue: #4d96ff;
    --green: #6bcb77;
    --red: #ff6b6b;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --light: #ffffff;
    --gradient-party: linear-gradient(135deg, #ff6b9d, #c56cf0, #4d96ff);
    --gradient-warm: linear-gradient(135deg, #ffd93d, #ff6b6b, #c56cf0);
    --gradient-russ: linear-gradient(135deg, #e74c3c, #c0392b);
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ============================================
   FIREWORKS CANVAS
   ============================================ */

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   CONFETTI CONTAINER
   ============================================ */

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    opacity: 0.9;
    animation: confettiFall var(--fall-duration, 4s) linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotateZ(var(--spin, 720deg)) rotateX(var(--flip, 360deg));
        opacity: 0;
    }
}

/* ============================================
   START SCREEN
   ============================================ */

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#start-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.start-content {
    text-align: center;
    animation: gentlePulse 2s ease-in-out infinite;
}

.start-emoji {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: wiggle 1s ease-in-out infinite;
}

.start-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--gold);
}

#start-btn {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 60px;
    background: var(--gradient-party);
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.4);
    animation: buttonPulse 1.5s ease-in-out infinite;
}

#start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 40px rgba(255, 107, 157, 0.6);
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    z-index: 2;
    overflow: hidden;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-party);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--card-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: radial-gradient(ellipse at center, #1a1a3e 0%, var(--darker) 70%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.balloons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    bottom: -100px;
    animation: floatUp 6s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: hue-rotate(calc(var(--delay, 0s) * 60));
}

.balloon:nth-child(1) { left: 10%; }
.balloon:nth-child(2) { left: 25%; }
.balloon:nth-child(3) { left: 50%; }
.balloon:nth-child(4) { left: 70%; }
.balloon:nth-child(5) { left: 85%; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-60vh) rotate(8deg); }
    100% { transform: translateY(-120vh) rotate(15deg); }
}

.hero-title {
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--gold);
    animation: fadeInDown 1s ease forwards;
}

.name-pop {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(4rem, 12vw, 10rem);
    background: var(--gradient-party);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    text-shadow: none;
}

.age-display {
    margin: 1rem 0;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;
}

.age-number {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(5rem, 15vw, 12rem);
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    animation: ageGlow 2s ease-in-out infinite alternate;
}

.age-label {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--gold);
    display: block;
}

.scroll-hint {
    margin-top: 3rem;
    animation: fadeInUp 1s ease 2s both;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.scroll-arrow {
    animation: bounce 1.5s ease-in-out infinite;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* ============================================
   FACTS SECTION
   ============================================ */

.facts-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1a1a3e 50%, var(--darker) 100%);
    padding-top: 6rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.fact-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(197, 108, 240, 0.2);
    border-color: var(--purple);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.fact-number {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.fact-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.fart-zone {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--green);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin-top: 2rem;
}

.fart-zone h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.fart-counter-display {
    margin: 1.5rem 0;
}

.fart-number {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    display: block;
    transition: transform 0.1s;
}

.fart-number.bump {
    transform: scale(1.2);
}

.fart-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.fart-btn {
    font-size: 1.3rem !important;
    background: linear-gradient(135deg, #6bcb77, #4ecdc4) !important;
    animation: none !important;
}

.fart-btn:active {
    transform: scale(0.9) !important;
}

.fart-extra {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gold);
    min-height: 1.5rem;
    font-style: italic;
}

/* ============================================
   BUTTONS
   ============================================ */

.fun-btn {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--gradient-party);
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.fun-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.5);
}

.fun-btn:active {
    transform: scale(0.95);
}

/* ============================================
   RUSS SECTION
   ============================================ */

.russ-section {
    background: linear-gradient(180deg, var(--darker) 0%, #2d1a1a 50%, var(--darker) 100%);
}

.russ-content {
    text-align: center;
    max-width: 800px;
}

.russ-hat {
    font-size: 6rem;
    animation: hatBounce 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes hatBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.russ-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.bus-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 2rem 0;
}

.bus {
    font-size: 4rem;
    animation: driveBus 8s linear infinite;
    white-space: nowrap;
}

@keyframes driveBus {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(calc(100vw + 100%)); }
}

.russeknuter {
    text-align: left;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.russeknuter h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.russ-rules {
    list-style: none;
}

.russ-rules li {
    padding: 0.6rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.russ-rules li:hover {
    transform: translateX(10px);
    color: var(--gold);
}

/* ============================================
   MUSIKAL SECTION
   ============================================ */

.musikal-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1a1a2e 100%);
    overflow: hidden;
}

.stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #B22222, #8B0000);
    z-index: 3;
    transition: transform 1.5s ease-in-out;
}

.curtain-left {
    left: 0;
    transform-origin: left;
    border-right: 5px solid #DAA520;
}

.curtain-right {
    right: 0;
    transform-origin: right;
    border-left: 5px solid #DAA520;
}

.curtain-left.open {
    transform: scaleX(0);
}

.curtain-right.open {
    transform: scaleX(0);
}

.stage-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.floating-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.note {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatNote 5s ease-in-out infinite;
    animation-delay: calc(var(--n) * 0.8s);
}

.note:nth-child(1) { left: 5%; top: 20%; }
.note:nth-child(2) { left: 85%; top: 30%; }
.note:nth-child(3) { left: 15%; top: 60%; }
.note:nth-child(4) { left: 75%; top: 70%; }
.note:nth-child(5) { left: 45%; top: 10%; }
.note:nth-child(6) { left: 55%; top: 80%; }

@keyframes floatNote {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(15deg); opacity: 1; }
}

.spotlight {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 400px;
    background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.musikal-text {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.star-container {
    margin-top: 2rem;
}

.big-star {
    font-size: 5rem;
    display: block;
    animation: starSpin 3s ease-in-out infinite;
}

@keyframes starSpin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(10deg); }
}

.star-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 0.5rem;
}

/* ============================================
   MINNER / TIMELINE SECTION
   ============================================ */

.minner-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1a2a1a 50%, var(--darker) 100%);
}

.timeline {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-party);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    transition-delay: var(--t-delay, 0s);
}

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--dark);
    border: 2px solid var(--purple);
    border-radius: 50%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: var(--purple);
}

.timeline-content h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--pink);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   RING ONKEL SECTION
   ============================================ */

.ring-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1a1a2e 100%);
}

.phone-container {
    margin-top: 2rem;
}

.phone {
    width: 280px;
    background: #1c1c1e;
    border-radius: 40px;
    padding: 2rem 1.5rem;
    border: 3px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.phone-screen {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-idle, .phone-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-avatar {
    font-size: 4rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.contact-avatar.ringing {
    animation: phoneRing 0.3s ease-in-out infinite alternate;
}

.contact-avatar.sleeping {
    animation: sleepBob 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes sleepBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.contact-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
}

.contact-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.calling-text {
    color: var(--green);
    font-size: 1.1rem;
    animation: pulse 1s ease-in-out infinite;
}

.ring-dots span {
    display: inline-block;
    font-size: 2rem;
    color: var(--green);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.ring-dots span:nth-child(2) { animation-delay: 0.2s; }
.ring-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

.sleep-message {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--blue);
}

.sleep-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.call-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(107, 203, 119, 0.4);
}

.call-button:hover {
    transform: scale(1.1);
}

.call-button.hangup {
    background: var(--red);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

/* ============================================
   NOSTALGIA / 2007 SECTION
   ============================================ */

.nostalgia-section {
    background: linear-gradient(180deg, var(--darker) 0%, #2a1a2e 50%, var(--darker) 100%);
    padding-top: 6rem;
}

.nostalgia-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.nostalgia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    margin-bottom: 3rem;
}

.nostalgia-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
    transition-delay: var(--n-delay, 0s);
}

.nostalgia-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
}

.nostalgia-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.nostalgia-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rickroll-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b9d, #c56cf0);
}

.fake-thumbnail {
    text-align: center;
}

.fake-play {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.rickroll-cover:hover .fake-play {
    transform: scale(1.3);
}

.fake-thumbnail p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: white;
}

.rickroll-card {
    border-color: var(--pink) !important;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.15);
}

.fun-2007-facts {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-2007-facts h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin-bottom: 1rem;
}

.fun-2007-facts ul {
    list-style: none;
}

.fun-2007-facts li {
    padding: 0.5rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   MUSIKERNØRD SECTION
   ============================================ */

.musikernord-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1e1a2e 50%, var(--darker) 100%);
    text-align: center;
}

.musikernord-content {
    max-width: 600px;
}

.musikernord-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.musikernord-btn {
    font-size: 1.5rem !important;
    padding: 1.2rem 3rem !important;
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    animation: buttonPulse 2s ease-in-out infinite;
}

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 2001;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, border-color 0.3s;
}

.modal-close:hover {
    transform: scale(1.2);
    border-color: var(--pink);
}

.modal-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   QUIZ SECTION
   ============================================ */

.quiz-section {
    background: linear-gradient(180deg, var(--darker) 0%, #1a2a2e 50%, var(--darker) 100%);
}

.quiz-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--gradient-party);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-question {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.quiz-option:hover {
    border-color: var(--purple);
    background: rgba(197, 108, 240, 0.1);
    transform: translateX(5px);
}

.quiz-option.correct {
    border-color: var(--green);
    background: rgba(107, 203, 119, 0.2);
    animation: correctPop 0.4s ease;
}

.quiz-option.wrong {
    border-color: var(--red);
    background: rgba(255, 107, 107, 0.2);
    animation: shake 0.4s ease;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

@keyframes correctPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quiz-feedback {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct-feedback {
    background: rgba(107, 203, 119, 0.15);
    color: var(--green);
}

.quiz-feedback.wrong-feedback {
    background: rgba(255, 107, 107, 0.15);
    color: var(--red);
}

#quiz-next {
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.quiz-result {
    text-align: center;
    max-width: 500px;
}

.quiz-result h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-party);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-result p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FINALE SECTION
   ============================================ */

.finale-section {
    background: linear-gradient(180deg, var(--darker) 0%, #2a1a1e 50%, var(--darker) 100%);
    min-height: 100vh;
}

.finale-content {
    text-align: center;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.hearts-bg {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatHeart 6s ease-in-out infinite;
    animation-delay: calc(var(--h) * 0.7s);
}

.heart:nth-child(1) { left: 5%; top: 10%; }
.heart:nth-child(2) { right: 10%; top: 20%; }
.heart:nth-child(3) { left: 15%; bottom: 30%; }
.heart:nth-child(4) { right: 20%; bottom: 10%; }
.heart:nth-child(5) { left: 50%; top: 5%; }
.heart:nth-child(6) { right: 40%; bottom: 40%; }
.heart:nth-child(7) { left: 30%; top: 40%; }
.heart:nth-child(8) { right: 5%; top: 50%; }

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

.finale-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.letter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: left;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.letter p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.letter p:first-child {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--gold);
}

.letter .signature {
    text-align: right;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    color: var(--gold);
}

.letter strong {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

.finale-btn {
    position: relative;
    z-index: 1;
    font-size: 1.3rem !important;
}

/* ============================================
   KEYFRAMES
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@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); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(255, 107, 157, 0.6); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ageGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.2rem;
    }

    .facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .fact-card {
        padding: 1.2rem;
    }

    .fact-number {
        font-size: 1.8rem;
    }

    .nostalgia-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .phone {
        width: 250px;
    }

    .fart-number {
        font-size: 2.5rem;
    }

    .letter {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-close {
        top: -35px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .start-content h2 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
}
