/* IMPORT FONTÓW */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --hot-pink: #ff4d6d;
    --dark-pink: #c9184a;
    --light-pink: #ffb3c1;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --bg-dark: #1a0a10;
}

/* RESET I BAZA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

/* ANIMOWANE TŁO - Zablokowane przy skrolowaniu */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ff0055 0%, #ff758c 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
    background: linear-gradient(135deg, #7000ff 0%, #ff4d6d 100%);
    right: -10%;
    top: -10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    background: #ff85a1;
    left: -5%;
    bottom: -10%;
    width: 350px;
    height: 350px;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(100px, 150px) scale(1.2) rotate(90deg); }
}

/* KONTENER GŁÓWNY */
.main-scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    gap: 60px; /* Odstępy między sekcjami */
    width: 100%;
}

/* STYL KARTY SZKLANEJ */
.glass-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-pink);
}

/* TYPOGRAFIA */
h1, h2 {
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }

p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* LICZNIK */
.counter-container {
    background: rgba(255, 77, 109, 0.1);
    padding: 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-pink);
    margin-bottom: 10px;
}

.timer {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 600;
}

.timer span {
    flex: 1;
}

/* SŁOIK I ZDJĘCIA */
.jar-photo-frame {
    width: 100%;
    height: 280px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--glass-border);
    overflow: hidden;
}

.jar-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heart-trigger {
    font-size: 3.5rem;
    cursor: pointer;
    filter: drop-shadow(0 0 10px var(--hot-pink));
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ZDRAPKA */
#scratch-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#scratch-reward {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: var(--dark-pink);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    touch-action: none; /* Ważne dla telefonów */
}

/* QUIZ */
#answers {
    margin-top: 20px;
}

#answers button {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

#answers button:hover {
    background: var(--hot-pink);
    transform: scale(1.02);
}

/* PRZYCISK KOŃCOWY */
.liquid-btn {
    border: none;
    padding: 18px 40px;
    background: var(--hot-pink);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.4);
}

.liquid-btn:hover {
    transform: scale(1.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* ANIMOWANE SERDUSZKA (JS) */
.floating-heart {
    position: fixed;
    top: -5vh;
    z-index: 999;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .glass-card { padding: 30px 20px; }
    .timer { font-size: 1.2rem; }
    #scratch-container { width: 100%; }
}