:root {
    --primary: #ff6b6b;
    --primary-hover: #ff5252;
    --secondary: #4ecdc4;
    --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #2d3436;
}

body {
    background: var(--bg-gradient);
    font-family: "Outfit", "DM Sans", system-ui, sans-serif;
    margin: 0;
    padding: 20px 16px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Floating background elements */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: var(--primary);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: #ff7675;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: #fab1a0;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#question-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.banner-gif {
    width: 100%;
    margin-bottom: 24px;
    perspective: 1000px;
}

.banner-gif img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    transition: transform 0.5s ease;
}

.banner-gif:hover img {
    transform: rotateY(5deg) scale(1.02);
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.buttons button {
    padding: 12px 32px;
    min-height: 54px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

#yes-button {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#yes-button:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#no-button {
    color: #636e72;
    background: #f1f2f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#no-button:hover {
    background: #dfe6e9;
}

.no-dodge {
    animation: dodge 0.2s ease;
}

@keyframes dodge {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-12px) rotate(-3deg);
    }

    75% {
        transform: translateX(12px) rotate(3deg);
    }

    100% {
        transform: translateX(0);
    }
}

/* Flee mode — button runs away */
#no-button.flee-mode {
    position: fixed;
    z-index: 9999;
    transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: auto;
    cursor: not-allowed;
    font-size: 1.4rem;
    min-width: 48px;
    min-height: 48px;
    will-change: top, left, opacity, transform;
}

.message {
    display: none;
    margin-top: 16px;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#success-message {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.language-selector {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.language-selector select {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 6px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    #question-heading {
        font-size: 1.5rem;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .buttons button {
        width: 100%;
        max-height: 80px;
    }

    #yes-button {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        padding: 10px 24px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
}