/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #0f0c15;
    --primary: #ff5c8d;
    --secondary: #ffadbc;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    height: 2000vh; /* Ešte dlhšie pre plynulejšiu cestu */
    overflow-x: hidden;
}

/* --- CUSTOM CURSOR (BODKA + SRDCE) --- */

/* 1. BODKA */
.cursor-dot {
    width: 2px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    z-index: 999999 !important; 
    pointer-events: none;
    
    /* Normálne je viditeľná */
    opacity: 1;
    transition: opacity 0.2s;
}

/* 2. SRDCE (OBAL) */
.cursor-heart-outline {
    width: 40px;
    height: 40px;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
        transition: left 0.1s ease-out, top 0.1s ease-out; 

}

/* Štýl SVG srdca */
.cursor-heart-outline svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 2px rgba(255, 92, 141, 0.8));
}

.cursor-heart-outline path {
    fill: transparent; /* Prázdne */
    stroke: var(--primary);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* DÔLEŽITÉ: Pomalá animácia výplne (0.6s) */
    transition: fill 0.6s ease-out, transform 0.2s ease;
}

/* --- STAV KLIKNUTIA (Pridáva sa na BODY) --- */

/* Keď klikneš: Bodka zmizne IHNEĎ */
body.clicking .cursor-dot {
    opacity: 0;
    transition: none; /* Žiadna animácia, proste zmizne */
}

/* Keď klikneš: Srdce sa vyplní a trochu zmenší */
body.clicking .cursor-heart-outline path {
    fill: var(--primary); /* Zaleje sa farbou */
    transform: scale(0.9);
}



/* --- BACKGROUND --- */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(255, 92, 141, 0.15), transparent 25%), radial-gradient(circle at 85% 30%, rgba(100, 50, 255, 0.15), transparent 25%);
    z-index: -2;
}
.bg-grain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    /* ZMENA: Dáme vysoký z-index, aby bol šum NAD čiarou */
    z-index: 50; 
    pointer-events: none; /* Aby sa dalo klikať cez šum */
}

/* --- PROGRESS BAR --- */
.progress-line {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), #a06cd5);
    width: 0%; z-index: 100; transition: width 0.1s;
}

.side-scroll-container {
    position: fixed;
    right: 30px; /* Odstup od pravého okraja */
    top: 50%;
    transform: translateY(-50%); /* Vycentrované vertikálne */
    height: 60vh; /* Výška indikátora (60% obrazovky) */
    width: 4px; /* Tenká čiara */
    z-index: 100; /* Nad všetkým */
}

/* Sivá dráha (pozadie) */
.scroll-track {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Ružová výplň (postup) */
.scroll-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
    
    /* OPTIMALIZÁCIA: Povie prehliadaču, že sa bude meniť výška */
    will-change: height;
}

/* Srdiečko, ktoré sa kĺže */
.scroll-heart-icon {
    position: absolute;
    /* Pevne hore, hýbať budeme cez transform */
    top: 0; 
    left: 50%;
    
    /* Základné centrovanie */
    /* DÔLEŽITÉ: Tu nastavujeme len X, Y budeme riešiť v JS */
    transform: translateX(-50%); 
    
    width: 24px;
    height: 24px;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
    
    /* OPTIMALIZÁCIA: Žiadny transition, ale will-change */
    will-change: transform; 
    z-index: 2; /* Aby bolo nad čiarou */
}

.scroll-heart-icon svg {
    width: 100%; height: 100%;
    fill: currentColor;
}

/* Na mobile to skryjeme, tam to zavadzia */
@media (max-width: 768px) {
    .side-scroll-container { display: none; }
}

.viewport {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    perspective: 1000px; /* Dôležité pre 3D efekt */
    overflow: hidden;
    
}

.slide {
    position: absolute;
    width: 100%;  padding: 20px;
    display: flex; justify-content: center; align-items: center;
    
    /* Plynulý prechod všetkých vlastností */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
    
    opacity: 0;
    pointer-events: none;

}

/* 1. STAV: BUDÚCNOSŤ (Čaká dole) */
.slide.future {
    transform: translateY(100px) scale(0.8) rotateX(-10deg);
    filter: blur(10px) brightness(0.5);
    opacity: 0;
}

/* 2. STAV: AKTÍVNY (Je tu) */
.slide.active {
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px) brightness(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* 3. STAV: MINULOSŤ (Odišiel hore) */
.slide.past {
    transform: translateY(-100px) scale(1.1) rotateX(10deg); /* Ide "do kamery" */
    filter: blur(20px);
    opacity: 0;
}

/* --- KASKÁDA (Prvky prichádzajú postupne) --- */

/* Všetky prvky v slide sa budú hýbať */
.content-wrapper > * {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(30px);
    opacity: 0;
}

/* Keď je slide aktívny, prvky sa ukážu */
.slide.active .content-wrapper > * {
    transform: translateY(0);
    opacity: 1;
}

/* Oneskorenia (Delay) - Toto robí ten "wow" efekt */
/* Prvky prichádzajú v poradí: 1. Nadpis, 2. Obrázok, 3. Text, 4. Tlačidlá */

.slide.active .content-wrapper h1, 
.slide.active .content-wrapper h2 { 
    transition-delay: 0.1s; 
}

.slide.active .content-wrapper .image-holder { 
    transition-delay: 0.2s; 
    transform: scale(1); /* Reset */
}

/* Špeciálny efekt pre obrázok pri príchode */
.slide.future .content-wrapper .image-holder {
    transform: scale(1.2) rotate(-5deg); /* Začína krivý a veľký */
}

.slide.active .content-wrapper p { 
    transition-delay: 0.3s; 
}

.slide.active .content-wrapper .btn,
.slide.active .content-wrapper .interaction-area { 
    transition-delay: 0.4s; 
}

/* --- POSITIONS (Zachované z minula) --- */
.slide[data-pos="left"] { justify-content: flex-start; padding-left: 10%; }
.slide[data-pos="right"] { justify-content: flex-end; padding-right: 10%; }
.slide[data-pos="center"] { justify-content: center; }

/* Na mobile všetko na stred */
@media (max-width: 768px) {
    .slide[data-pos="left"], .slide[data-pos="right"] { justify-content: center; padding: 20px; }
}

.glass-card {
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--border); padding: 40px; border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; text-align: center; }
h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 15px; color: var(--secondary); text-align: center; }
p { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.tag {
    display: inline-block; padding: 8px 16px; background: rgba(255, 92, 141, 0.2);
    color: var(--primary); border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.highlight {
    background: -webkit-linear-gradient(45deg, var(--primary), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.image-holder {
    width: 100%; height: 280px; border-radius: 20px; overflow: hidden; margin-bottom: 25px;
    border: 1px solid var(--border);
}
.image-holder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.slide.active:hover img { transform: scale(1.05); }

/* --- BUTTONS --- */
.interaction-area { position: relative; height: 150px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.btn {
    padding: 18px 45px; border-radius: 100px; font-family: var(--font-body);
    font-weight: 600; font-size: 1.1rem; border: none; transition: transform 0.3s;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 30px rgba(255, 92, 141, 0.4); }
.btn-primary:hover { transform: scale(1.05); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid var(--border); }

#noBtn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 100px; /* Aby sa text zmestil */
}

/* Keď sa NIE zmení na ÁNO */
#noBtn.transformed-yes {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(255, 92, 141, 0.4);
    transform: scale(1.1) !important; /* Reset veľkosti na normálnu/väčšiu */
    cursor: pointer;
}

#yesBtn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- OVERLAY --- */
/* --- OVERLAY --- */
.celebration-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(15, 12, 21, 0.95); 
    
    /* ZMENA: Namiesto centrovania na stred dáme zarovnanie hore */
    display: flex; 
    flex-direction: column;
    justify-content: flex-start; /* Obsah začne hore */
    align-items: center;
    padding-top: 15vh; /* Odstup od horného okraja (15% výšky obrazovky) */
    
    z-index: 1000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s; 
    overflow: hidden;
}

.celebration-overlay.show { 
    opacity: 1; 
    pointer-events: auto; 
}

/* ZMENA: Obsah bude mať vyšší z-index a bude nad kvetmi */
.celebration-content { 
    z-index: 50; /* Nad tulipánmi */
    text-align: center; 
    position: relative; /* Aby fungoval z-index */
}

.celebration-content h1 { 
    font-size: 5rem; 
    color: var(--primary); 
    text-shadow: 0 0 20px rgba(255, 92, 141, 0.5);
    margin-bottom: 20px; 
}

/* ZMENA: Tulipány ostanú dole, ale pre istotu ich trochu znížime */
.garden {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 45%; /* Zmenšené z 50% na 45%, aby nešli príliš vysoko */
    pointer-events: none; 
    z-index: 1; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end;
}
.tulip { position: absolute; bottom: -100px; display: flex; flex-direction: column; align-items: center; transform-origin: bottom center; z-index: 10; }
.stem {
    width: 10px; background: linear-gradient(90deg, #1b5e20 0%, #2e7d32 20%, #81c784 50%, #2e7d32 80%, #1b5e20 100%);
    border-radius: 50% 50% 10px 10px; height: 0px; position: relative; z-index: 1;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.3);
}
.stem::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: inherit; clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%); }
.leaf {
    position: absolute; width: 50px; height: 120px;
    background: linear-gradient(105deg, #388e3c 20%, #81c784 50%, #2e7d32 100%);
    opacity: 0; transform-origin: bottom center; box-shadow: inset 2px 2px 5px rgba(255,255,255,0.2), 2px 5px 5px rgba(0,0,0,0.2);
}
.leaf.left { left: -25px; bottom: 20px; border-radius: 0% 100% 0% 100% / 0% 100% 0% 100%; transform: rotate(-10deg) scale(0); }
.leaf.right { right: -25px; bottom: 60px; border-radius: 100% 0% 100% 0% / 100% 0% 100% 0%; transform: rotate(10deg) scale(0); }
.flower-head { position: relative; width: 44px; height: 56px; z-index: 2; transform: scale(0); margin-bottom: -4px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); }
.petal { position: absolute; bottom: 0; width: 22px; height: 55px; background: linear-gradient(to bottom, #ff4081, #c2185b); border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%; transform-origin: bottom center; }
.petal.center { left: 11px; z-index: 3; height: 58px; background: linear-gradient(to bottom, #ff80ab, #d81b60); box-shadow: 0 0 5px rgba(0,0,0,0.2); }
.petal.left { left: 0; transform: rotate(-15deg); z-index: 2; }
.petal.right { right: 0; transform: rotate(15deg); z-index: 2; }

/* ANIMÁCIE */
.grow-animation .stem { animation: growStem 2.5s ease-out forwards; }
.grow-animation .flower-head { animation: bloomFlower 1.5s 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.grow-animation .leaf { animation: unfurlLeaf 1.8s 0.5s ease-out forwards; }
@keyframes growStem { to { height: 55vh; } }
@keyframes bloomFlower { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes unfurlLeaf { to { opacity: 1; transform: rotate(var(--r)) scale(1); } }

/* MOBIL - Na mobile dáme všetko do stredu, lebo tam nie je miesto na cik-cak */
@media (max-width: 768px) {
    .slide[data-pos="left"], .slide[data-pos="right"] { justify-content: center; padding: 20px; }
    .content-wrapper { transform: translateY(50px) !important; }
    .slide.active .content-wrapper { transform: translateY(0) !important; }
    #windingPath { opacity: 0.3; stroke-width: 2px; } /* Cesta bude jemne v pozadí */
    .stem { width: 6px; }

    .celebration-overlay {
        padding-top: 10vh;
    }
    .celebration-content h1 {
        font-size: 3rem;
    }
}

/* --- NOVÝ HERO ÚVOD --- */

.hero-wrapper {
    position: relative;
    padding: 20px;
    z-index: 5;
}

/* Typografia */
.hero-top {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 0;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-main {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: 'Clash Display', sans-serif;
    color: #ffffff;
    position: relative;
}

/* ZMENA FARBY: Teraz používame premennú (tú peknú ružovú) */
.highlight-pink {
    color: var(--primary); 
    text-shadow: 0 0 25px rgba(255, 92, 141, 0.6); /* Ružová žiara */
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 80px; 
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- SCROLL TRIGGER --- */
.scroll-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.chevron-arrow {
    width: 40px;
    height: 40px;
    color: var(--primary);
    animation: bounceChevron 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px var(--primary));
}

.scroll-hint-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.3;
    font-weight: 400;
}

@keyframes bounceChevron {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* --- KRESLENÉ SRDIEČKA (Upravené pozície) --- */
.drawn-heart {
    position: absolute;
    fill: none;
    animation: doodleAnimation 3s infinite steps(1); 
    /* Ružový tieň */
    filter: drop-shadow(0 0 5px rgba(255, 92, 141, 0.5));
    opacity: 0.8;
}

/* 1. Veľké vľavo hore (posunuté viac doľava a hore) */
.heart-1 {
    width: 130px;
    height: 130px;
    top: -100px; /* Vyššie */
    left: -100px; /* Viac doľava */
    transform: rotate(-25deg);
}

/* 2. Malé vpravo hore (posunuté viac doprava) */
.heart-2 {
    width: 70px;
    height: 70px;
    top: -50px;
    right: -50px; /* Viac doprava */
    transform: rotate(20deg);
    animation-delay: 0.5s;
}

/* 3. Stredné vľavo dole (posunuté viac dole) */
.heart-3 {
    width: 100px;
    height: 100px;
    bottom: -50px;
    left: -60px; /* Viac doľava */
    transform: rotate(-10deg);
    animation-delay: 1s;
}

/* 4. Mini pri nadpise (ďalej od textu) */
.heart-4 {
    width: 45px;
    height: 45px;
    top: 50%;
    right: -80px; /* Úplne mimo textu */
    transform: rotate(45deg);
    animation-delay: 1.5s;
}

/* 5. Vpravo dole */
.heart-5 {
    width: 110px;
    height: 110px;
    bottom: -80px;
    right: -60px;
    transform: rotate(15deg);
    animation-delay: 0.2s;
}

.heart-6 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: -150px;
    transform: rotate(15deg);
    animation-delay: 0.2s;
}

/* Animácia "Doodle" - jemnejšia */
@keyframes doodleAnimation {
    0% { transform: rotate(var(--r, 0deg)) scale(1) translate(0,0); }
    33% { transform: rotate(calc(var(--r, 0deg) - 3deg)) scale(1.02) translate(1px, -1px); }
    66% { transform: rotate(calc(var(--r, 0deg) + 3deg)) scale(0.98) translate(-1px, 1px); }
    100% { transform: rotate(var(--r, 0deg)) scale(1) translate(0,0); }
}

/* MOBILE FIX */
@media (max-width: 600px) {
    .hero-main { font-size: 3rem; }
    .hero-top { font-size: 1.5rem; }
    
    /* Na mobile ich musíme trochu krotiť, aby nešli mimo obrazovku */
    .heart-1 { width: 80px; height: 80px; left: -20px; top: -40px; }
    .heart-2 { right: -10px; top: -30px; }
    .heart-5 { width: 70px; height: 70px; right: -10px; bottom: -20px;}
    .heart-3 { left: -10px; bottom: -20px;}
    .heart-4 { display: none; } 
}

/* --- KRESLENÉ MAŠLE --- */
.drawn-bow {
    position: absolute;
    width: 250px; /* Dosť veľké */
    height: 225px;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(255, 92, 141, 0.4));
    
    /* Rovnaká "trasľavá" animácia ako srdiečka */
    animation: doodleAnimation 4s infinite steps(1);
}

.bow-left {
    top: 30%;
    left: -500px; /* Aby trčala z boku */
    transform: translateY(-50%) rotate(-10deg);
}

.bow-right {
    top: 30%;
    right: -500px;
    transform: translateY(-50%) rotate(10deg);
}

/* RESPONSIVITA MAŠLÍ */
@media (max-width: 1000px) {
    /* Na tabletoch ich trochu zmenšíme */
    .drawn-bow { width: 100px; height: 80px; }
   
}

@media (max-width: 600px) {
     .bow-right { 
        display: none; 
    }

    /* Ľavú mašľu presunieme HORE DO STREDU */
    .bow-left {
        display: block;      /* Musí byť viditeľná */
        width: 120px;        /* Trochu menšia */
        height: 100px;
        
        /* Pozícia: Hore nad textom AHOJ */
        top: -200px;          
        left: 37%;           /* Horizontálne na stred */
        
        /* Triky na vycentrovanie: posun o polovicu šírky späť + jemné natočenie */
        transform: translateX(-50%) rotate(0deg);
    }
    
    
}


/* --- PLANÉTA (GRADIENT ARC) --- */
.planet-floor {
    position: absolute;
    bottom: -300px; /* Trochu schovaná dole */
    left: -40%; /* Širšia ako obrazovka pre jemný oblúk */
    width: 180%;
    height: 300px;
    background: radial-gradient(35% 100% at 50% 100%, #ff5c8d 0%, rgba(255, 92, 141, 0.4) 40%, transparent 80%);
    border-radius: 50% 50% 0 0; /* Polkruh */
    z-index: 1; /* Za textom, ale pred pozadím */
    pointer-events: none;
    opacity: 0.9;
}


@media (max-width: 768px) {
   
    .planet-floor {
        height: 200px;
        bottom: -280px;
        opacity: 0.9;
    }
}

/* --- ČÍSLA (18 a 8) --- */
.floating-number {
    position: absolute;
    font-family: 'Clash Display', sans-serif;
    font-size: 8rem; /* Veľké čísla */
    font-weight: 700;
    
    /* OUTLINE ŠTÝL */
    color: transparent; /* Priehľadné vnútro */
    -webkit-text-stroke: 3px var(--primary); /* Ružový obrys */
    
    opacity: 0.6; /* Jemne priehľadné */
    z-index: 0; /* Za hlavným textom */
    pointer-events: none; /* Aby sa dalo klikať cez ne */
    
    /* Animácia a prechod */
    transition: color 0.2s ease-out, transform 0.1s ease, -webkit-text-stroke 0.2s;
    filter: drop-shadow(0 0 5px rgba(255, 92, 141, 0.3));
    
    /* Doodle animácia (rovnaká ako mašle) */
    animation: doodleAnimation 5s infinite steps(1);
}

/* Pozícia 18 */
.num-left {
    top: -10%;
    left: 5%;
    transform: rotate(-15deg);
}

/* Pozícia 8 */
.num-right {
    top: -10%;
    right: 5%;
    transform: rotate(15deg);
}

.num-center {
    top: -40%; /* Úplne hore, trochu nad text AHOJ */
    left: 45%;
    /* Centrovanie + jemná rotácia */
    transform: translateX(-50%) rotate(-3deg);
    font-size: 4rem; /* Trochu menšie ako bočné, aby nezabilo nadpis */
    z-index: -2; /* Úplne vzadu, za mašľami */
}

/* --- FIX PRE KLIKNUTIE NA STREDOVÉ ČÍSLO --- */
/* Musíme prepísať všeobecný transform, inak by stratilo centrovanie */
body.clicking .num-center {
    /* Zachováme translateX(-50%) a pridáme scale */
    transform: translateX(-50%) scale(0.95) rotate(-3deg);
    color: var(--primary);
    -webkit-text-stroke: 0px transparent;
    opacity: 1;
}

/* --- EFEKT KLIKNUTIA (VYPLNENIE) --- */
/* Keď klikneš kdekoľvek (body má triedu .clicking), čísla sa vyplnia */
body.clicking .floating-number {
    color: var(--primary); /* Vyplní sa ružovou */
    -webkit-text-stroke: 0px transparent; /* Obrys zmizne (splynie) */
    opacity: 1; /* Plná viditeľnosť */
    transform: scale(0.95) rotate(var(--r, 0deg)); /* Jemné stlačenie */
    filter: drop-shadow(0 0 20px var(--primary)); /* Silná žiara */
}

/* RESPONSIVITA ČÍSEL */
@media (max-width: 768px) {
    .floating-number {
        font-size: 5rem; /* Menšie na mobile */
        opacity: 0.4; /* Menej výrazné aby nerušili text */
        z-index: -1;
    }
    
    /* Posunieme ich viac do rohov */
    .num-left { top: -50%; left: 5%; }
    .num-right { top: -50%; right: 5%; transform: rotate(20deg); }

    .num-center {
        font-size: 3rem; /* Menšie na mobile */
        top: -10%;
        left: 36%;
        opacity: 0.3; /* Veľmi jemné, aby sa nebilo s mašľou */
    }
}

/* --- SLIDE 2: DARK NEON POLAROIDY --- */

.polaroid-scene {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Širší záber */
    height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* DÔLEŽITÉ: Aby boli nad cestou */
    z-index: 2000; 
    transform-style: preserve-3d;
}

.polaroid-title {
    position: absolute;
    top: -80px;
    width: 100%;
    text-align: center;
    font-size: 3.5rem; /* Trochu väčšie */
    
    z-index: 2005; 
    transform: translateZ(50px); /* Fyzicky ho vysunieme dopredu */
    
    pointer-events: none; /* Aby sa dalo klikať cez text, ak treba */
}
/* 1. NEÓNOVÁ ŠNÚRA */
.string-svg {
    position: absolute;
    top: 20px;
    left: -10%;
    width: 120%;
    height: 150px; /* Hlbší previs */
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 5px var(--primary));
}

.string-svg path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2px;
    opacity: 0.6;
}

/* 2. WRAPPER (Hojdanie) */
.polaroid-wrapper {
    position: absolute;
    transform-origin: top center;
    z-index: 10; /* Nad cestou */
    cursor: pointer;
    animation: sway 4s ease-in-out infinite alternate;
}

/* Pozície - ROZTIAHNUTÉ VIAC DO ŠÍRKY */
.p1 { left: 5%; top: 50px; animation-delay: 0s; transform: rotate(-5deg); }
.p2 { left: 50%; top: 100px; transform: translateX(-50%); animation-delay: -2s; z-index: 11; }
.p3 { right: 5%; top: 50px; animation-delay: -1s; transform: rotate(5deg); }

/* 3. DARK POLAROID DIZAJN */
.polaroid {
    /* Tmavé pozadie namiesto bieleho */
    background: var(--primary); 
    /* Ružový neónový okraj */
    border: 1px solid var(--primary);
    /* Žiara okolo fotky */
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 15px rgba(255, 92, 141, 0.2);
    
    padding: 15px 15px 50px 15px; /* Viac miesta */
    width: 280px; /* ZVÄČŠENÉ (bolo 200px) */
    
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
}

/* Obrázok vnútri */
.img-box {
    width: 100%;
    height: 240px; /* Vyšší obrázok */
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Jemne stlmené, aby vynikol neón */
    transition: opacity 0.3s, transform 0.5s;
}

/* Text dole */
.caption {
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    color: #fff; /* Biely text */
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--primary); /* Jemná žiara textu */
}

/* 4. ŠTIPEC (Tmavý kov) */
.clip {
    width: 12px;
    height: 35px;
    background: linear-gradient(to bottom, white, white);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 10;
}

/* --- INTERAKCIA (HOVER) --- */
.polaroid-wrapper:hover {
    animation-play-state: paused;
    z-index: 100; /* Úplne navrch */
}

.polaroid-wrapper:hover .polaroid {
    transform: scale(1.15) rotate(0deg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 30px var(--primary); /* Silná žiara */
}

.polaroid-wrapper:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Animácia hojdania */
@keyframes sway {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

/* --- RESPONSIVITA (MOBIL) --- */
@media (max-width: 768px) {
    .polaroid-scene { 
        height: 60vh; 
        width: 100%;
        overflow: hidden; /* Aby nepretekalo */
    }
    
    .polaroid-title {
        font-size: 2rem;
        top: -40px;
    }

    /* Na mobile ich zmenšíme, ale stále budú dosť veľké */
    .polaroid { 
        width: 160px; /* Zmenšené pre mobil, ale stále čitateľné */
        padding: 8px 8px 35px 8px; 
    }
    .img-box { height: 140px; }
    .caption { font-size: 0.9rem; bottom: 10px; }
    
    /* Musíme ich poskladať tesnejšie k sebe */
    .p1 { left: -10px; top: 40px; transform: rotate(-5deg); }
    .p2 { left: 50%; top: 90px; transform: translateX(-50%); z-index: 20;}
    .p3 { right: -10px; top: 40px; transform: rotate(5deg); }
    
    /* Upravíme šnúru */
    .string-svg { height: 120px; top: 20px; }
    .string-svg path { d: path("M -50,0 Q 200,100 500,0"); }
}

/* --- IKONA FOTOAPARÁTU (DOLE) --- */
.camera-icon {
    position: absolute;
    bottom: -100px; /* Umiestnenie pod fotkami */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    color: var(--primary);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease, color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.camera-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px var(--primary));
    overflow: visible;
}

.camera-text {
    font-size: 0.7rem;
    margin-top: 10px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

/* Hover efekt */
.camera-icon:hover {
    transform: translateX(-50%) scale(1.1) rotate(-5deg);
    color: #fff; /* Zbelie */
}

.camera-icon:hover .camera-text {
    opacity: 1;
}

.camera-icon:hover svg {
    filter: drop-shadow(0 0 15px var(--primary));
}

/* --- EFEKT BLESKU (Flash Overlay) --- */
#flash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999; /* Úplne navrch */
    transition: opacity 0.1s ease-out; /* Rýchly nástup */
}

/* Trieda pre spustenie blesku */
#flash-overlay.active {
    opacity: 0.8;
    transition: none; /* Okamžite biele */
}

/* Responsivita foťáku */
@media (max-width: 768px) {
    .camera-icon { bottom: -60px; width: 50px; height: 50px; }
}

/* --- STICKY NOTE (Vyplnenie prázdneho miesta) --- */
.sticky-note {
    position: absolute;
    top: 100px; /* Umiestnenie nižšie */
    left: 32%; /* Úplne vľavo */
    width: 180px;
    height: 160px;
    
    /* Priehľadný neónový štýl */
    background: var(--primary);
    border: 1px dashed var(--primary);
    border-radius: 5px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    /* Natočenie */
    transform: rotate(-10deg);
    z-index: 5;
    
    /* Animácia plávania */
}

/* Text vnútri */
.handwriting {
    font-family: 'Satoshi', sans-serif; /* Alebo cursive font ak máš */
    font-weight: 600;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 92, 141, 0.5);
    margin: 0;
}

/* Lepiaca páska hore */
.tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}





/* NA MOBILE TO SKRYJEME (nie je tam miesto) */
@media (max-width: 768px) {
    .sticky-note { display: none; }
}


/* --- LOVE COUNTER (POČÍTADLO) --- */
.love-counter {
    position: absolute;
    bottom: 0px; /* Pod fotkami */
    left: 50%;
    transform: translateX(-50%);
    
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Tmavé pozadie */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 92, 141, 0.2);
    border-radius: 20px;
    padding: 15px 30px;
    z-index: 25;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.love-counter:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 92, 141, 0.2);
    border-color: var(--primary);
}

.counter-label {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.time-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

/* Čísla - Neónový font */
.time-box span:first-child {
    font-family: 'Clash Display', sans-serif; /* Alebo monospace */
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px var(--primary); /* Žiara */
    line-height: 1;
}

/* Popisky (Dní, Hod...) */
.time-box .label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--secondary);
    margin-top: 5px;
}

.separator {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: -15px; /* Zarovnanie s číslami */
}

/* MOBILE */
@media (max-width: 768px) {
    .love-counter {
        bottom: -70px;
        padding: 10px 20px;
        width: 90%; /* Aby sa zmestilo */
    }
    .time-box span:first-child { font-size: 1.4rem; }
    .separator { font-size: 1.2rem; }
}


/* --- LIKE BUTTON NA POLAROIDE --- */
.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 10;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.5); /* Priehľadná biela (nenalikeované) */
    stroke: var(--primary);
    stroke-width: 2px;
    transition: fill 0.3s, transform 0.3s;
}

/* Stav: LIKED (pridáme cez JS) */
.polaroid-wrapper.liked .like-btn svg {
    fill: var(--primary); /* Vyplnené ružovou */
    transform: scale(1.2);
}

.polaroid-wrapper.liked .like-btn {
    animation: popHeart 0.4s ease-out;
}

@keyframes popHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* --- CAMERA SHUTTER EFFECT --- */
.camera-shutter {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10000;
    display: flex; flex-direction: column;
}

.shutter-top, .shutter-bottom {
    background: #111;
    width: 100%;
    height: 50vh;
    transition: transform 0.2s ease-in-out;
    /* Na začiatku otvorené (schované mimo obrazovku) */
    transform: scaleY(0); 
}

.shutter-top { transform-origin: top; }
.shutter-bottom { transform-origin: bottom; }

.flash-white {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: white; opacity: 0; transition: opacity 0.5s;
}

/* Trieda pre zatvorenie (Cvak!) */
.camera-shutter.snap .shutter-top,
.camera-shutter.snap .shutter-bottom {
    transform: scaleY(1); /* Zatvoria sa */
}

.camera-shutter.flash .flash-white {
    opacity: 0.8; /* Záblesk po otvorení */
}


/* --- TOAST NOTIFIKÁCIA (PRESUNUTÉ HORE) --- */
.toast {
    position: fixed;
    /* ZMENA: Namiesto bottom dáme top */
    top: 30px; 
    bottom: auto;
    
    left: 50%;
    /* ZMENA: Schováme ho smerom HORE (-150%) */
    transform: translateX(-50%) translateY(-150%);
    
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 30px;
    
    display: flex;
    align-items: center;
    gap: 15px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 20000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.show {
    /* ZMENA: Ukáže sa na pôvodnej pozícii */
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- NOVÁ ANIMÁCIA: FLOATING HEARTS (Lietajúce srdiečka) --- */
.mini-heart {
    position: fixed;
    color: var(--primary);
    font-size: 24px;
    pointer-events: none;
    z-index: 9999;
    animation: floatUpFade 1s ease-out forwards;
}

@keyframes floatUpFade {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        /* Letí hore a zmizne */
        transform: translate(var(--tx), -100px) scale(1);
        opacity: 0;
    }
}
/* --- SLIDE 3: REALISTICKÉ BUBLINY (FIX) --- */

/* Špecifické nastavenie pre Slide 3 */
#bubbles-slide {
    /* Uistíme sa, že sa správa ako ostatné slidy */
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: absolute; /* Musí byť absolute ako ostatné slidy */
    width: 100%;
    height: 100vh; /* Celá výška */
    overflow: hidden; /* Aby bubliny nepretekali */
}

/* Kontajner pre bubliny - Roztiahnutý na celý slide */
.bubbles-container {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1; /* Bubliny sú v pozadí slidu */
}

/* Obal pre nadpis - Vycentrovaný nad bublinami */
.bubble-title-wrapper {
    position: relative; /* Aby reagoval na flexbox */
    z-index: 10; /* Musí byť nad bublinami */
    text-align: center;
    width: 100%;
    /* Posun trochu hore, aby nebol v strede bublín */
    margin-bottom: 200px; 
    pointer-events: none; /* Aby sa dalo klikať na bubliny pod textom */
}

/* 3D BUBLINA */
.real-bubble {
    position: absolute;
    left: 0; top: 0;
    
    width: 140px; height: 140px;
    border-radius: 50%;
    cursor: pointer;
    
    /* Vzhľad */
    background: radial-gradient(130% 130% at 30% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 80%);
    box-shadow: 
        inset -5px -5px 15px rgba(255, 92, 141, 0.2), 
        inset 5px 5px 15px rgba(255, 255, 255, 0.3),  
        0 5px 15px rgba(0,0,0,0.3);
        
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    
    display: flex; justify-content: center; align-items: center;
    
    /* Plynulý pohyb */
    will-change: transform;
    /* Transition len pre efekty, nie pre pohyb */
    transition: opacity 0.3s, filter 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),  box-shadow 0.3s ease;
    
    z-index: 5; /* Pod textom */
}

/* Hover efekt */
.real-bubble:hover {
    transform: scale(1.1); /* Zväčšenie */
    box-shadow:
        inset -5px -5px 15px rgba(255, 92, 141, 0),  /* fade out */
        inset 5px 5px 15px rgba(255, 255, 255, 0),  /* fade out */
        0 0 25px rgba(255, 92, 141, 0.6);  
    z-index: 20; /* Pri hoveri navrch */
}

/* Odlesk */
.reflection {
    position: absolute;
    top: 15%; left: 15%;
    width: 25%; height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-45deg);
    pointer-events: none;
}

/* Text */
.blurred-text {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    pointer-events: none;
    padding: 10px;
    filter: blur(5px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* Prasknutá */
.real-bubble.popped {
    background: transparent;
    box-shadow: none;
    border: none;
    pointer-events: none;
    z-index: 9999 !important; 
}
.real-bubble.popped .reflection { display: none; }
.real-bubble.popped .blurred-text {
    z-index: 10000 !important; 
    filter: blur(0);
    opacity: 1;
    transform: scale(1.4);
    text-shadow: 0 0 20px var(--primary);
}
.real-bubble.popped::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8);
    animation: bubblePop 0.3s ease-out forwards;
}
@keyframes bubblePop {
    0% { transform: scale(1); opacity: 1; border-width: 2px; }
    100% { transform: scale(1.5); opacity: 0; border-width: 0px; }
}

/* Veľkosti */
.real-bubble:nth-child(1) { width: 130px; height: 130px; }
.real-bubble:nth-child(2) { width: 160px; height: 160px; }
.real-bubble:nth-child(3) { width: 110px; height: 110px; }
.real-bubble:nth-child(4) { width: 140px; height: 140px; }
.real-bubble:nth-child(5) { width: 150px; height: 150px; }
.real-bubble:nth-child(6) { width: 120px; height: 120px; }
.real-bubble:nth-child(7) { width: 170px; height: 170px; }
.real-bubble:nth-child(8) { width: 100px; height: 100px; }
.real-bubble:nth-child(9) { width: 145px; height: 145px; }
.real-bubble:nth-child(10) { width: 135px; height: 135px; }


/* --- SLIDE 4: SÚHVEZDIE (OPRAVENÉ) --- */

#constellation-slide {
    /* Uistíme sa, že sa správa ako ostatné slidy */
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: absolute; /* Musí byť absolute ako ostatné slidy */
    width: 100%;
    height: 100vh; /* Celá výška */
    overflow: hidden; /* Aby bubliny nepretekali */
}

.constellation-title {
    position: absolute;
    top: 15%; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    text-align: center;
    pointer-events: none; 
    z-index: 20;
}

.constellation-container {
    position: absolute;
    top: 0; 
    left: 0; /* Začína od ľavého kraja */
    width: 100%; /* Plná šírka */
    height: 100%;
    z-index: 15;
    justify-content: center;
}

/* Čiary (SVG) - musia byť cez celú obrazovku */
.lines-svg {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 0 5px var(--primary));
}

/* Hviezda (Bod) - ZVÄČŠENÁ KLIKATEĽNÁ PLOCHA */
.star {
    position: absolute;
    width: 30px; height: 30px; /* Väčšia plocha pre myš */
    display: flex; justify-content: center; align-items: center;
    transform: translate(-50%, -50%);
    cursor: crosshair;
    z-index: 20;
}

/* Vizuál hviezdy (bodka vnútri) */
.star::after {
    content: '';
    width: 12px; height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--primary);
    transition: transform 0.3s ease, background-color 0.3s;
}

/* Pulzovanie */
.star:not(.active)::after {
    animation: twinkle 2s infinite ease-in-out alternate;
}

/* Aktívna hviezda */
.star.active::after {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    transform: scale(1.5);
}

@keyframes twinkle {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Správa po dokončení */
.constellation-msg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    
    font-family: 'Clash Display', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px var(--primary);
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 30;
    pointer-events: none;
    width: 80%; /* Aby sa text zalamoval ak treba */
}

.constellation-msg.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* MOBILE */
@media (max-width: 768px) {
    .constellation-msg { font-size: 2rem; }
    .star::after { width: 10px; height: 10px; }
}


/* --- SLIDE 5: LOCK & KEY (FIXED HEIGHT) --- */

#final-slide {
    /* DÔLEŽITÉ: Musí byť absolute (zdedené od .slide), aby sedel na obrazovke */
    position: absolute; 
    top: 0; 
    left: 0; 
    
    /* Vynútená plná veľkosť */
    width: 100%;
    height: 100vh; 
    
    overflow: hidden; 
    display: block !important; /* Flexbox tu netreba, lebo vnútro je absolute */
    
    /* Zabezpečí, že je viditeľný */
    opacity: 0;
    pointer-events: none;
}

/* Keď je aktívny, musí byť vidieť */
#final-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* 1. ZÁMOK - Vrstva, ktorá zakrýva všetko */
#lockScreen {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; /* Roztiahne sa na celú výšku slidu */
    
    /* Tmavé pozadie s rozmazaním */
    background: rgba(15, 12, 21, 0.95); 
    backdrop-filter: blur(15px);
    
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start; /* Zarovnanie od vrchu */
    padding-top: 15vh; /* Posun obsahu trochu nižšie */
    
    z-index: 50; 
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

#lockScreen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.5);
    pointer-events: none;
}

.unlock-title {
    font-size: 2rem; 
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 40px; 
    z-index: 5;
}

/* 2. ZÁMOK (Veľkosť) */
.heart-lock {
    width: 320px;
    height: 320px;
    position: relative;
    transition: transform 0.3s;
    flex-shrink: 0; /* Aby sa nezmenšoval na malých obrazovkách */
        transition: all 0.3s ease-out; /* Plynulý prechod */

}

.keyhole-circle, .keyhole-triangle {
    transition: all 0.3s;
    background: white; /* Biela dierka */
}

.keyhole-triangle {
    border-top-color: white; /* Biela dierka */
}

/* AKTIVOVANÝ STAV (Keď je kľúč blízko) - TOTO CHÝBALO */
.heart-lock.active {
    transform: scale(1.1); /* Zväčší sa */
}

.heart-lock.active svg {
    color: var(--primary); /* Zmení farbu na ružovú */
    filter: drop-shadow(0 0 30px var(--primary)); /* Silná žiara */
}

/* Dierka sa tiež rozsvieti */
.heart-lock.active .keyhole-circle {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.heart-lock.active .keyhole-triangle {
    border-top-color: var(--primary);
}

.keyhole-container {
    position: absolute; top: 55%; left: 50%; 
    transform: translate(-50%, -50%) scale(1.5); 
    display: flex; flex-direction: column; align-items: center;
    opacity: 0.6;
}

/* 3. KĽÚČ (Absolútne na spodku obrazovky) */
.neon-key {
    position: absolute;
    bottom: 10%; /* 10% od spodku obrazovky */
    left: 50%;
    transform: translateX(-50%); 
    
    width: 90px; height: 90px; 
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
    cursor: grab;
    z-index: 60; /* Musí byť nad pozadím */
    touch-action: none; 
}

.neon-key:active { cursor: grabbing; }

/* Nápoveda */
.drag-hint {
    position: absolute; 
    bottom: 5%; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem; 
    opacity: 0.5; 
    pointer-events: none;
    width: 100%;
    text-align: center;
    z-index: 55;
}

/* 4. OTÁZKA - Skrytá pod zámkom */
#proposalContent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    opacity: 0; 
    visibility: hidden;
    z-index: 1; 
    transform: scale(0.8);
    
    pointer-events: none;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#proposalContent.show {
    opacity: 1 !important;
    visibility: visible;
    z-index: 60; 
    transform: scale(1);
    pointer-events: auto;
}
/* Shockwave */
.shockwave {
    position: fixed; top: 50%; left: 50%; width: 10px; height: 10px;
    background: transparent; border: 50px solid var(--primary);
    border-radius: 50%; transform: translate(-50%, -50%);
    opacity: 0; pointer-events: none; z-index: 2000;
}
.shockwave.explode { animation: shockwaveAnim 0.8s ease-out forwards; }
@keyframes shockwaveAnim {
    0% { width: 10px; height: 10px; opacity: 1; border-width: 50px; }
    100% { width: 200vw; height: 200vw; opacity: 0; border-width: 0px; }
}

/* Text otázky */
.big-question {
    font-size: 3.5rem; text-align: center; margin-bottom: 40px;
    z-index: 31;
}
.highlight-neon {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary);
    font-style: italic;
}
.pulse-btn { animation: heartbeat 1.5s infinite; }
@keyframes heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 92, 141, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 92, 141, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 92, 141, 0); }
}


/* Animácia pulzovania (Twinkle) */
@keyframes twinkleBg {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

/* Animácia pohybu hore (Parallax) */
@keyframes starFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* WARP SPEED POZADIE */
#starfield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* Úplne vzadu v rámci slidu */
    opacity: 0.6; /* Aby nerušilo spojovanie hviezd */
    pointer-events: none;
}


/* --- SÚHVEZDIE: NOVÉ EFEKTY --- */

/* Chybový stav (Zatrasenie a červená farba) */
.shake-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Čiary pri chybe */
.lines-svg line.error-line {
    stroke: #ff3333 !important; /* Červená */
    filter: drop-shadow(0 0 5px red);
    transition: stroke 0.2s;
}

/* Plné srdce (Vyplnenie po úspechu) */
.heart-fill-shape {
    fill: rgba(255, 92, 141, 0.2); /* Jemná výplň */
    stroke: var(--primary);
    stroke-width: 0;
    filter: drop-shadow(0 0 20px var(--primary));
    opacity: 0;
    transform-origin: center;
    transform: scale(0.8);
    transition: all 1s ease;
    animation: heartbeat 1.5s infinite;
}

/* Trieda pre zobrazenie srdca */
.heart-fill-shape.visible {
    opacity: 1;
    transform: scale(1);
    stroke-width: 3px; /* Obrys sa objaví */
}

/* Indikátor ďalšej hviezdy (Navádzanie) */
.star.next-target::after {
    background: var(--primary); /* Žltá */
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.3);
    animation: pulseTarget 1s infinite;
}

@keyframes pulseTarget {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* --- FLUID BACKGROUND (HMLA) --- */

.fluid-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; /* Úplne vzadu v slide */
    overflow: hidden;
    opacity: 0.6; /* Jemné, aby neprebilo text */
}

.fluid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Kľúčový efekt hmly */
    opacity: 0.8;
    animation: fluidFloat 10s infinite ease-in-out alternate;
    transition: transform 0.5s ease-out; /* Pre interakciu s myšou */
}

/* 1. Ružová (Hlavná) */
.b-1 {
    width: 500px; height: 500px;
    background: #ff5c8d;
    top: -100px; left: -100px;
    animation-delay: 0s;
}

/* 2. Fialová (Hĺbka) */
.b-2 {
    width: 400px; height: 400px;
    background: #9d4edd;
    bottom: -50px; right: -50px;
    animation-delay: -2s;
}

/* 3. Modrá (Kontrast) */
.b-3 {
    width: 300px; height: 300px;
    background: #3a0ca3;
    bottom: 20%; left: 20%;
    opacity: 0.6;
    animation-delay: -4s;
}

/* 4. Svetlá Ružová (Highlight) */
.b-4 {
    width: 200px; height: 200px;
    background: #ff99ac;
    top: 30%; right: 30%;
    animation-delay: -1s;
}

/* Jemné plávanie (automatické) */
@keyframes fluidFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}


/* --- PENGUIN & PEBBLE CSS (UPRAVENÉ) --- */
#pebble-slide {
    display: flex !important; /* Vynútiť flex pre centrovanie */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100vh;
}

.pebble-title {
    position: absolute;
    top: 10%;
    width: 100%;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.pebble-container {
    position: relative;
    width: 100%; 
    height: 100%;
    /* Kamene budú po celej ploche */
}

.pebble {
    position: absolute;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.5), 2px 2px 5px rgba(255,255,255,0.1);
    transition: transform 0.2s, background-color 0.3s;
    z-index: 10;
}

.pebble:hover { transform: scale(1.1); background: #444; }

/* --- ČERVENÝ KAMIENOK (CHYBA) --- */
.shake-pebble {
    animation: shakePebble 0.5s ease-in-out;
    background-color: #ff3333 !important; /* Červená farba */
    box-shadow: 0 0 15px #ff3333 !important; /* Červená žiara */
}

@keyframes shakePebble {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-10deg); }
    40% { transform: translateX(8px) rotate(10deg); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* THE PENGUIN (Centrovaný) */
.penguin-box {
    position: absolute;
    top: 50%; 
    left: 50%;
    /* Začína v strede ale skrytý (zmenšený) */
    transform: translate(-50%, -50%) scale(0); 
    width: 120px; 
    height: 140px;
    z-index: 50;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Skákací efekt */
}

.penguin-box.show {
    /* Zväčší sa v strede */
    transform: translate(-50%, -50%) scale(2); 
}

/* Vykreslenie tučniaka (rovnaké) */
.penguin { position: relative; width: 100%; height: 100%; }
.penguin-body {
    width: 100%; height: 100%; background: #222; border-radius: 50% 50% 40% 40%;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.5);
}
.penguin-belly {
    position: absolute; bottom: 5px; left: 15%; width: 70%; height: 80%;
    background: white; border-radius: 50% 50% 40% 40%;
}
.penguin-eye {
    position: absolute; top: 35%; width: 12px; height: 12px;
    background: black; border-radius: 50%; z-index: 5;
    animation: blink 4s infinite;
}
.penguin-eye.left { left: 30%; }
.penguin-eye.right { right: 30%; }
.penguin-beak {
    position: absolute; top: 42%; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-top: 12px solid #ff9800; z-index: 5;
}
.penguin-blush {
    position: absolute; top: 40%; width: 15px; height: 10px;
    background: rgba(255, 105, 180, 0.4); border-radius: 50%; z-index: 4;
}
.penguin-blush.left { left: 20%; }
.penguin-blush.right { right: 20%; }
.penguin-foot {
    position: absolute; bottom: -5px; width: 25px; height: 15px;
    background: #ff9800; border-radius: 50%; z-index: -1;
}
.penguin-foot.left { left: 20%; transform: rotate(-10deg); }
.penguin-foot.right { right: 20%; transform: rotate(10deg); }
@keyframes blink { 0%, 96%, 100% { height: 12px; } 98% { height: 2px; top: 38%; } }

/* Správa pod tučniakom */
.pebble-message {
    position: absolute;
    top: 75%; /* Pod stredom */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s 0.3s;
    pointer-events: none;
    z-index: 60;
}
.pebble-message.show { opacity: 1; pointer-events: auto; }

.pebble-message h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

/* --- THERMOMETER FIX (BIGGER & CLEANER) --- */

#thermo-slide {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.thermo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Väčšie medzery */
    z-index: 30;
    position: relative;
    width: 100%;
}

.thermometer-wrapper {
    position: relative;
    height: 60vh;
    width: 120px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 92, 141, 0.3));
    
    /* Pridáme transition pre plynulé stmavnutie */
    transition: opacity 1s ease, filter 1s ease;
}

/* TOTO JE NOVÉ: Stav, keď je hotovo */
.thermometer-wrapper.completed {
    opacity: 0.1; /* Veľmi slabá viditeľnosť */
    filter: grayscale(100%); /* Zošedivie, aby červený text vynikol */
}

/* Sklo a kvapalina (bez zmeny, len pre istotu prikladám) */
.thermo-glass {
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 60px;
    position: relative; overflow: hidden; backdrop-filter: blur(5px);
}

.thermo-liquid {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 0%;
    background: linear-gradient(to top, #ff0000, #ff5c8d);
    box-shadow: 0 0 30px #ff0000;
    transition: height 0.1s linear;
    z-index: 1;
}

/* --- FINÁLNY TEXT (VYLEPŠENÝ) --- */
.final-crash-msg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    
    font-family: 'Clash Display', sans-serif;
    font-size: 8rem; /* Obrovské */
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    white-space: nowrap; /* Aby sa nerozbil na riadky ak netreba */
    
    text-align: center;
    
    /* EXTRÉMNA ŽIARA */
    text-shadow: 
        0 0 20px #ff0000,
        0 0 50px #ff0000,
        0 0 100px #ff0000,
        0 0 150px #ff5c8d;
        
    z-index: 200; /* Musí byť nad všetkým, aj nad konfetami */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Skákací efekt */
    pointer-events: none;
}

.final-crash-msg.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Mobilná úprava pre text */
@media (max-width: 768px) {
    .final-crash-msg { 
        font-size: 4rem; 
        white-space: normal; /* Na mobile sa môže zalomiť */
    } 
}

/* Tlačidlo */
.hold-btn {
    font-size: 1.2rem;
    padding: 20px 50px;
    z-index: 40;
    /* Zabránime označovaniu textu na mobile pri dlhom stlačení */
    user-select: none; 
    -webkit-user-select: none;
}

/* --- KOMPLIMENTY --- */
#compliments-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 25; overflow: hidden;
}

.floating-compliment {
    position: absolute;
    color: #fff;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 2rem; /* Väčšie písmo komplimentov */
    text-shadow: 0 0 15px var(--primary);
    white-space: nowrap;
    opacity: 0;
    animation: floatRandom 3s ease-out forwards;
}

@keyframes floatRandom {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; }
    20% { opacity: 1; transform: scale(1.2) translateY(0); }
    100% { opacity: 0; transform: scale(1.5) translateY(-150px); }
}

/* Mobilná úprava */
@media (max-width: 768px) {
    .thermometer-wrapper { height: 50vh; width: 80px; }
    .thermo-glass { width: 60px; }
    .thermo-bulb { width: 70px; height: 70px; }
    .thermo-liquid { width: 36px; }
    .final-crash-msg { font-size: 4rem; } /* Na mobile trochu menšie aby sa zmestilo */
}


/* --- OBÁLKA A LIST --- */

/* Wrapper - Nastavíme obrovské rozmery */
.envelope-wrapper {
    position: relative;
    width: 700px;  /* Pôvodne 300px -> Teraz 700px */
    height: 450px; /* Pôvodne 200px -> Teraz 450px */
    margin-top: 100px; /* Aby mala miesto na vysunutie */
    animation: floatEnvelope 3s ease-in-out infinite;
    cursor: pointer;
    /* Centrovanie */
    margin-left: auto;
    margin-right: auto;
}

@keyframes floatEnvelope {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Samotná obálka */
.envelope {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Zadná stena */
.envelope-back {
    position: absolute;
    width: 100%; height: 100%;
    background: #ff5c8d;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Predné vrecko (Geometria obálky) */
/* Musí byť polovica šírky (350px) */
.envelope-pocket {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    border-left: 350px solid #ff85a8; 
    border-right: 350px solid #ff7096;
    border-bottom: 240px solid #ff5c8d;
    border-top: 210px solid transparent;
    border-radius: 0 0 10px 10px;
    z-index: 3;
    pointer-events: none; 
}

/* Horná chlopňa */
.envelope-flap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-left: 350px solid transparent;
    border-right: 350px solid transparent;
    border-top: 250px solid #ff4075; 
    border-bottom: 200px solid transparent;
    border-radius: 10px 10px 0 0;
    transform-origin: top;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s;
    z-index: 4;
}

.envelope-wrapper.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1; 
}

/* --- OBROVSKÝ LIST (PAPIER) --- */
.letter-paper {
    position: absolute;
    bottom: 0; 
    left: 5%; 
    width: 90%; 
    height: 90%; /* O niečo vyšší základ */
    
    /* 1. TEXTÚRA PAPIERA (Pergamenový efekt) */
    background-color: #fffdf0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,250,240,0.5));
    
    /* Jemný vnútorný tieň pre hĺbku */
    box-shadow: inset 0 0 30px rgba(139, 69, 19, 0.1), 0 -5px 15px rgba(0,0,0,0.1);
    
    padding: 40px; 
    border-radius: 5px; /* Ostrejšie rohy ako obálka */
    z-index: 2; 
    transition: transform 1s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Vysunutie listu - Musí ísť poriadne vysoko */
.envelope-wrapper.open .letter-paper {
    /* Pôvodne bolo -300px, teraz dáme menej, aby ostal v strede */
    transform: translateY(-180px); 
    z-index: 10; /* Musí byť najvyššie */
    
    /* List sa natiahne, aby sa zmestil text */
    height: auto; 
    min-height: 520px; 
    
    /* Silnejší tieň, keď je vonku */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Text listu - Veľký a čitateľný */
.letter-text {
    opacity: 0;
    transition: opacity 0.5s 0.8s;
    color: #4a3b32; /* Tmavohnedá farba písma (lepšie sedí k pergamenu) */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.envelope-wrapper.open .letter-text {
    opacity: 1;
}

.handwritten-title {
    font-family: 'Satoshi', sans-serif; /* Alebo tvoj handwriting font */
    font-size: 3rem; /* Obrovský nadpis */
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 20px;
    text-shadow: none;
}

.handwritten-body {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.5rem; /* Veľký text tela */
    font-weight: 500;
    color: #444;
    line-height: 1.6;
    margin-bottom: 40px;
}

.handwritten-body strong {
    font-size: 1.8rem;
    color: #000;
    display: block;
    margin-top: 20px;
}

/* --- VOSKOVÁ PEČAŤ (TIEŽ VÄČŠIA) --- */
.wax-seal {
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px; /* Zväčšená */
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.envelope-wrapper.open .wax-seal {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
    pointer-events: none;
}

/* --- VEĽKÉ TLAČIDLÁ --- */
.letter-buttons {
    display: flex;
    gap: 30px; /* Väčšia medzera */
    margin-top: 20px;
}

.letter-paper .btn {
    padding: 20px 60px; /* Obrovské tlačidlá */
    font-size: 1.5rem; /* Veľký text v tlačidlách */
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-paper .btn-primary {
    background: #d32f2f; 
    color: white;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
    border: none;
}

.letter-paper .btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.6);
}

.letter-paper .btn-outline {
    background: transparent;
    color: #555;
    border: 3px solid #ddd; /* Hrubší okraj */
}

.letter-paper .btn-outline:hover {
    border-color: #333;
    color: #333;
    background: rgba(0,0,0,0.05);
}

/* --- RESPONZIVITA (MOBIL) --- */
/* Keďže je obálka 700px, na mobile by rozbila displej. */
/* Použijeme trik s transform: scale(), aby sa celá zmenšila ale zachovala proporcie */

@media (max-width: 768px) {
    .envelope-wrapper {
        transform: scale(0.45); 
        margin-top: 50px; /* Trochu miesta hore */
    }
    
    /* List sa na mobile vysunie menej, aby neušiel z obrazovky */
    .envelope-wrapper.open .letter-paper {
        transform: translateY(-150px); /* Menej hore */
        min-height: 600px; /* Dlhší papier, aby sa text zmestil na úzko */
    }
    
    .letter-text {
        transform: scale(1.2); /* Zväčšíme text na mobile, lebo obálka je zmenšená */
    }
}

/* Pre tablety */
@media (min-width: 769px) and (max-width: 1024px) {
    .envelope-wrapper {
        transform: scale(0.7);
    }
}

@media (max-width: 450px) {
    
    /* 1. Oprava nadpisov, aby neutekali */
    .thermo-content h2 {
        font-size: 1.8rem; /* Menšie písmo */
        padding: 0 10px; /* Odstup od krajov */
        line-height: 1.2;
    }
    
    /* 2. Oprava finálneho textu (ÚPLNE NAJVIAC) */
    .final-crash-msg {
        font-size: 3.5rem !important; /* Aby sa zmestilo */
        width: 100%;
        padding: 0 10px;
        white-space: normal; /* Povoliť zalomenie riadkov */
        line-height: 1;
    }

    /* 3. Oprava kvapaliny (Gap fix) */
    .thermo-glass {
        /* Uistíme sa, že sklo má overflow hidden */
        overflow: hidden; 
        position: relative;
        /* Trochu širšie sklo na mobile vyzerá lepšie */
        width: 80px; 
    }

    .thermo-liquid {
        /* Kvapalina musí byť o kúsok širšia ako kontajner, aby zakryla medzery */
        width: 102%; 
        left: -1%; /* Vycentrovanie */
        bottom: 0;
        
        /* Ak bola medzera dole, toto ju fixne */
        border-radius: 0 0 50px 50px; 
    }
    
    /* 4. Tlačidlo DRŽ MA */
    .hold-btn {
        padding: 15px 40px;
        font-size: 1rem;
        width: 80%; /* Aby nebolo príliš široké */
    }

    .pebble-message {
        font-size: 1rem;
    }
}

@media (max-width: 450px) {

    /* 1. SÚHVEZDIE - ZACHOVANIE TVARU */
    /* Namiesto celej obrazovky spravíme z kontajnera štvorec v strede */
    #constellationContainer {
        width: 340px !important;  /* Fixná šírka pre iPhone Mini */
        height: 340px !important; /* Fixná výška -> ŠTVOREC */
        position: absolute;
        top: 50%;
        left: 50%;
        /* Vycentrovanie kontajnera */
        transform: translate(-50%, -40%) !important; 
        /* Hviezdy sa teraz rozmiestnia relatívne k tomuto štvorcu = PERFEKTNÝ TVAR */
    }
    
    /* Zmenšíme hviezdy, aby sa nezlievali */
    .star {
        width: 25px !important;
        height: 25px !important;
    }
    
    /* Text "Spoj naše hviezdy" posunieme vyššie, aby nezavadzal */
    .constellation-title {
        top: 10% !important;
        width: 100%;
        padding: 0 10px;
    }

    /* 3. KOMPLIMENTY - ABY NEUTEKALI */
    .floating-compliment {
        font-size: 1.4rem !important; /* Menšie písmo */
        max-width: 80vw; /* Maximálna šírka textu */
        white-space: normal !important; /* Povoliť zalamovanie riadkov */
        text-align: center;
        line-height: 1.2;
        /* Zabezpečíme, že aj keď je rotovaný, nezasiahne okraj */
        margin-left: -10px; 
    }

    .polaroid-scene {
        height: 75vh !important; /* Viac miesta na výšku */
        width: 100%;
        overflow: visible; /* Aby tieň a prvky neboli odseknuté */
    }

    /* 1. OPRAVA POČÍTADLA (COUNTER) - PRESNÝ STRED */
    .love-counter {
        /* Musíme resetovať šírku a pozíciu */
        width: auto !important;
        min-width: 300px !important; /* Minimálna šírka aby sa text nezlomil */
        max-width: 95% !important;   /* Aby nepretiekol cez okraj */
        
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important; /* Toto ho dá presne na stred */
        bottom: -20px !important; /* Poloha pod fotkami */
        
        /* Zarovnanie obsahu vnútri */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        
        padding: 15px 20px !important;
        margin: 0 !important; /* Zrušíme akékoľvek marginy */
    }

    /* Aby sa časovače (čísla) nerozpadli */
    .time-grid {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 5px !important; /* Menšie medzery medzi číslami */
    }
    
    .time-box {
        min-width: 35px !important; /* Fixná šírka pre každé číslo */
    }


    /* 2. OPRAVA LANKA (ŠNÚRY) - ABY PASOVALA K FOTKÁM */
    .string-svg {
        width: 120% !important; /* Širšia ako displej */
        left: 25% !important;
        top: 25px !important; /* Posunúť nižšie k štipcom */
        height: 150px !important;
        overflow: visible !important;
    }

    /* ZMENA TVARU KRIVKY CEZ CSS */
    /* Toto "prekreslí" šnúru tak, aby išla hlbšie dole k strednej fotke */
    .string-svg path {
        /* M (začiatok vľavo), Q (bod ohybu dole v strede), (koniec vpravo) */
        d: path("M 0,20 Q 180,140 400,20") !important;
        stroke-width: 2px !important;
    }


    /* 3. DOLADENIE POZÍCIE POLAROIDOV (ABY SEDELI NA ŠNÚRE) */
    
    /* Ľavá fotka */
    .polaroid-wrapper.p1 {
        left: -20px !important;
        top: 40px !important;
        transform: scale(0.6) rotate(-8deg) !important;
    }

    /* Stredná fotka (musí byť nižšie, tam kde je ohyb šnúry) */
    .polaroid-wrapper.p2 {
        left: 50% !important;
        /* Posunieme ju nižšie, aby to vyzeralo, že visí na spodku šnúry */
        top: 100px !important; 
        transform: translate(-50%, 0) scale(0.65) rotate(3deg) !important;
    }

    /* Pravá fotka */
    .polaroid-wrapper.p3 {
        left: auto !important;
        right: -20px !important;
        top: 40px !important;
        transform: scale(0.6) rotate(8deg) !important;
    }

    /* Ikona foťáku - posunúť nižšie aby nezavadzala counteru */
    .camera-icon {
        bottom: -90px !important;
    }


    /* =========================================
       2. SLIDE 5: OBÁLKA (RESPONZIVITA)
       ========================================= */

    .envelope-wrapper {
        /* Vynútime jej pôvodnú veľkosť, aby sa nerozbila grafika */
        width: 700px !important;
        height: 450px !important;
        
        /* Teraz ju odtrhneme z toku a dáme presne do stredu */
        position: absolute !important;
        top: 60% !important; /* Posun nižšie, aby bolo miesto pre list */
        left: 50% !important;
        margin: 0 !important;
        
        /* KĽÚČOVÉ: Posun o polovicu doľava (-50%) a zmenšenie (scale 0.45) */
        transform: translate(-50%, -50%) scale(0.42) !important;
        transform-origin: center center !important;
    }

    /* 2. LIST (PAPIER) - ROZTIAHNUTIE A SKRÁTENIE */
    .letter-paper {
        width: 90% !important;  /* Roztiahnuť takmer na celú šírku obálky */
        left: 5% !important;    /* Vycentrovať (5% zľava, 5% sprava) */
        padding: 30px 20px !important; /* Menší padding */
    }

    /* Ako sa list vysunie */
    .envelope-wrapper.open .letter-paper {
        /* Vysunie sa menej vysoko, aby neušiel z obrazovky */
        transform: translateY(-200px) !important;
        
        /* Nebude taký dlhý ako predtým */
        min-height: 450px !important; 
        height: auto !important;
    }

    /* 3. TEXT V LISTE */
    .letter-text {
        /* Aby sa text zmestil do šírky */
        width: 100% !important;
        transform: scale(1.1); /* Trochu zväčšíme písmo */
    }

    .handwritten-title {
        font-size: 3rem !important;
        margin-top: 10px;
        line-height: 1.1;
    }

    .handwritten-body {
        font-size: 1.8rem !important;
        margin-bottom: 20px;
        padding: 0 10px; /* Aby sa nelepil na kraje */
    }

    /* 4. TLAČIDLÁ - MENŠIE A VEDĽA SEBA */
    .letter-buttons {
        flex-direction: column !important; /* Pod seba */
        gap: 15px !important;
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }

    .letter-paper .btn {
        width: 80% !important; /* Široké tlačidlá */
        padding: 15px 0 !important; /* Menej vysoké */
        font-size: 1.8rem !important; /* Čitateľné */
        border-radius: 50px !important;
    }

    /* 5. VOSKOVÁ PEČAŤ */
    .wax-seal {
        /* Uistíme sa, že je v strede obálky */
        top: 55% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 120px !important; /* Na mobile nech je veľká, ľahšie sa trafí */
        height: 120px !important;
    }
    
    /* Keď sa otvorí, pečať zmizne */
    .envelope-wrapper.open .wax-seal {
        transform: translate(-50%, -50%) scale(2) !important;
        opacity: 0;
    }

    .num-right {
        top: -30%;
    }

    .num-left {
        top: -30%;
    }
    

}