:root {
    --bg: #d94a5c; /* jemná červená */
    --text: #ffffff; /* biely text */
    --muted: #ffe3e7; /* jemný odtieň na hint */
    --maxw: 900px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
}

.center {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(
        1200px 800px at 50% 50%,
        rgba(255, 255, 255, 0.06),
        transparent 60%
    );
}

.intro-text {
    line-height: 1.1;
    letter-spacing: 0.5px;
    font-weight: 700;
    /* pekné škálovanie od mobilu po desktop */
    font-size: clamp(2rem, 7vw + 1vh, 6rem);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.hint {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    color: var(--muted);
}

.hidden {
    display: none;
}

main {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 80px 16px 24px;
    min-height: 100%;
}

/* kontajner s riadkami */
#list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
    /* aby riadky dobre čitateľne škálovali */
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    line-height: 1.5;
}

/* jednotlivý riadok */
.line {
    white-space: pre-wrap;
    word-break: break-word;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* jemná animácia pridaného riadku */
@keyframes popIn {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.line.added {
    animation: popIn 300ms ease-out;
}

/* plávajúce srdiečka */
#hearts-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.heart {
    position: absolute;
    bottom: -40px;
    font-size: 16px;
    opacity: 0.6;
    will-change: transform, opacity;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) translateX(var(--drift)) rotate(15deg);
    }
    100% {
        transform: translateY(-110vh) translateX(calc(var(--drift) * 2))
            rotate(-10deg);
        opacity: 0;
    }
}

/* vrstva poradia: intro nad srdiečkami, text nad všetkým */
#intro {
    z-index: 2;
}
main {
    z-index: 1;
    position: relative;
}
