* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background:
        radial-gradient(circle at 10% 10%, #ffd7e7, transparent 40%),
        radial-gradient(circle at 90% 90%, #e1caff, transparent 40%),
        linear-gradient(135deg, #fff0f6, #f6efff);

    --card: rgba(255, 255, 255, 0.78);

    --text: #443342;
    --muted: #8a7186;

    --pink: #ff6b9a;
    --pink-dark: #ec4f82;

    --button-no: #eeeeee;
    --button-no-text: #666666;

    --shadow: rgba(80, 40, 80, 0.15);
}


/* =========================
   DARK THEME
   ========================= */

body.dark {
    --background:
        radial-gradient(circle at 20% 10%, #35204c, transparent 40%),
        radial-gradient(circle at 80% 90%, #182c4b, transparent 40%),
        linear-gradient(135deg, #171522, #101521);

    --card: rgba(35, 30, 45, 0.82);

    --text: #f8edf7;
    --muted: #b9a8ba;

    --pink: #ff79a7;
    --pink-dark: #ff5c94;

    --button-no: #34313b;
    --button-no-text: #c9c2cc;

    --shadow: rgba(0, 0, 0, 0.35);
}


/* =========================
   BODY
   ========================= */

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Quicksand", sans-serif;

    background: var(--background);

    color: var(--text);

    overflow: hidden;

    transition:
        background 0.6s ease,
        color 0.4s ease;
}


/* =========================
   THEME BUTTON
   ========================= */

.theme-toggle {
    position: fixed;

    top: 22px;
    right: 22px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: var(--card);

    color: var(--text);

    font-size: 1.3rem;

    cursor: pointer;

    box-shadow:
        0 8px 25px var(--shadow);

    backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        background 0.4s ease;

    z-index: 100;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.08);
}


/* =========================
   MAIN CARD
   ========================= */

.card {
    position: relative;

    z-index: 5;

    width: min(90%, 520px);

    padding: 50px 35px;

    text-align: center;

    background: var(--card);

    backdrop-filter: blur(15px);

    border-radius: 32px;

    box-shadow:
        0 25px 70px var(--shadow);

    animation: appear 0.8s ease;

    transition:
        background 0.5s ease,
        box-shadow 0.5s ease;
}


/* =========================
   TEXT
   ========================= */

.ring {
    font-size: 3.8rem;

    margin-bottom: 12px;

    animation: float 3s ease-in-out infinite;
}

.little-title {
    font-size: 0.95rem;

    font-weight: 600;

    color: var(--muted);

    margin-bottom: 10px;
}

h1 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);

    font-weight: 700;

    margin-bottom: 8px;
}

.question {
    font-size: clamp(1.7rem, 6vw, 2.3rem);

    font-weight: 600;

    margin-bottom: 14px;
}

.subtext {
    color: var(--muted);

    font-size: 1rem;

    margin-bottom: 35px;
}


/* =========================
   BUTTONS
   ========================= */

.buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}

button {
    font-family: inherit;

    border: none;

    border-radius: 999px;

    padding: 15px 30px;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.3s ease;
}

.yes-button {
    background: var(--pink);

    color: white;

    box-shadow:
        0 8px 25px rgba(255, 107, 154, 0.35);
}

.yes-button:hover {
    transform: scale(1.08);

    box-shadow:
        0 12px 30px rgba(255, 107, 154, 0.45);
}

.no-button {
    background: var(--button-no);

    color: var(--button-no-text);
}

.no-button:hover {
    transform: scale(0.96);
}


/* =========================
   BEARS
   ========================= */

.bear {
    position: fixed;

    z-index: 2;

    width: 130px;

    pointer-events: none;

    user-select: none;

    filter:
        drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));

    animation: bearFloat 4s ease-in-out infinite;
}

.bear01 {
    left: 5%;
    bottom: 8%;

    animation-delay: 0s;
}

.bear02 {
    right: 5%;
    bottom: 8%;

    animation-delay: 1s;
}

.bear03 {
    left: 8%;
    top: 8%;

    width: 105px;

    animation-delay: 2s;
}

.bear04 {
    right: 8%;
    top: 10%;

    width: 105px;

    animation-delay: 1.5s;
}


/* =========================
   SUCCESS SCREEN
   ========================= */

.success {
    position: fixed;

    inset: 0;

    z-index: 200;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px;

    background: var(--background);

    animation: appear 0.8s ease;
}

.success-bears {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-bottom: 10px;
}

.success-bears img {
    width: 110px;

    animation: bearFloat 3s ease-in-out infinite;
}

.success-bears img:nth-child(2) {
    animation-delay: 0.5s;
}

.success-heart {
    font-size: 6rem;

    color: var(--pink);

    line-height: 1;

    animation: heartbeat 1s ease-in-out infinite;
}

.success h1 {
    color: var(--pink);

    margin-top: 15px;
}

.success p {
    font-size: 1.5rem;

    margin-top: 10px;
}

.small-message {
    font-size: 1rem !important;

    color: var(--muted);

    margin-top: 15px !important;
}


/* =========================
   FLOATING HEARTS
   ========================= */

.heart {
    position: absolute;

    bottom: -50px;

    font-size: 20px;

    opacity: 0.45;

    pointer-events: none;

    animation: rise linear forwards;
}


/* =========================
   UTILITY
   ========================= */

.hidden {
    display: none;
}


/* =========================
   ANIMATIONS
   ========================= */

@keyframes appear {

    from {
        opacity: 0;

        transform: scale(0.9);
    }

    to {
        opacity: 1;

        transform: scale(1);
    }
}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bearFloat {

    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes rise {

    from {
        transform:
            translateY(0)
            rotate(0deg);
    }

    to {
        transform:
            translateY(-110vh)
            rotate(360deg);
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .card {
        padding: 40px 25px;
    }

    .bear {
        width: 85px;
    }

    .bear03,
    .bear04 {
        width: 70px;
    }

    .bear01 {
        left: 1%;
        bottom: 3%;
    }

    .bear02 {
        right: 1%;
        bottom: 3%;
    }

    .bear03 {
        left: 2%;
        top: 5%;
    }

    .bear04 {
        right: 2%;
        top: 6%;
    }

    .theme-toggle {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;
    }
}
