:root {
    --bg-top: #fff8e7;
    --bg-mid: #ffe8d6;
    --bg-bottom: #ffd6ba;
    --card: rgba(255, 255, 255, 0.8);
    --text: #31111d;
    --muted: #6e3f53;
    --yes: #00916e;
    --yes-hover: #007d5f;
    --no: #d64550;
    --no-hover: #bc2b3c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
    overflow-x: hidden;
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.35;
    animation: drift 9s ease-in-out infinite alternate;
    pointer-events: none;
}

.ambient-1 {
    width: 260px;
    height: 260px;
    background: #ff9a8b;
    top: -60px;
    left: -40px;
}

.ambient-2 {
    width: 300px;
    height: 300px;
    background: #fbc2eb;
    right: -80px;
    top: 20%;
    animation-delay: 1.2s;
}

.ambient-3 {
    width: 220px;
    height: 220px;
    background: #a6c1ee;
    bottom: -50px;
    left: 18%;
    animation-delay: 2.4s;
}

.card {
    width: min(760px, 100%);
    position: relative;
    z-index: 5;
    backdrop-filter: blur(8px);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 80px rgba(120, 46, 66, 0.2);
    border-radius: 28px;
    padding: 36px;
    animation: card-enter 0.9s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.eyebrow {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
}

h1 {
    margin: 12px 0;
    font-family: "Unbounded", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.subtitle {
    margin: 0;
    color: #4f2d3c;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
}

.actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(47, 18, 28, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-yes {
    background: var(--yes);
}

.btn-yes:hover {
    background: var(--yes-hover);
}

.btn-no {
    background: var(--no);
}

.btn-no:hover {
    background: var(--no-hover);
}

.hint {
    margin-top: 16px;
    color: var(--muted);
    font-weight: 600;
}

.stats {
    display: none;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.stats h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.stats p {
    margin: 6px 0;
}

.stats-note {
    font-size: 0.9rem;
    color: #7d4d5f;
}

#complimentLayer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 20;
}

.floating-compliment {
    position: absolute;
    font-weight: 700;
    text-wrap: balance;
    animation: float-in 4.8s ease-out forwards;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

.victory {
    text-align: center;
}

.victory h1 {
    margin-top: 4px;
}

.victory .subtitle {
    margin-inline: auto;
    max-width: 520px;
}

@keyframes float-in {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.92);
    }

    18% {
        opacity: 1;
    }

    100% {
        opacity: 0.95;
        transform: translateY(-16px) scale(1);
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(24px, -12px, 0) scale(1.08);
    }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 620px) {
    body {
        padding: 14px;
    }

    .card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}