:root {
    --bg-dark: #0f172a;
    --primary: #ec4899;
    /* Pink/Red for love/chemical */
    --accent: #8b5cf6;
    /* Violet */
    --cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Dynamic Background */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    z-index: -1;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.icon-wrapper {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

/* Inputs & Buttons */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.primary-btn,
.secondary-btn,
.icon-btn {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    width: 100%;
    font-size: 1.1rem;
}

.primary-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.icon-btn {
    background: var(--accent);
    color: white;
    padding: 0 1.5rem;
    font-size: 1.5rem;
}

/* Flask / Progress Bar */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.flask-container {
    width: 60px;
    height: 160px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 30px 30px;
    border-top: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.flask-body {
    width: 100%;
    height: 100%;
    position: relative;
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--accent));
    height: 0%;
    /* JS will control this: 16.6% per question */
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--primary);
}

.liquid::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.counter {
    font-family: 'Space Mono', monospace;
    color: var(--cyan);
}

/* Feedback & Animations */
.feedback {
    min-height: 24px;
    font-size: 0.9rem;
    font-weight: bold;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Screens toggling */
.screen {
    display: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.screen.hidden {
    display: none;
}

.screen.active {
    display: flex;
}

.caution-badge {
    background: rgba(252, 211, 77, 0.1);
    color: #fcd34d;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.gift-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px dashed var(--primary);
}

#countdown-timer span {
    display: inline-block;
    min-width: 60px;
}