:root {
    --app-bg-1: #050816;
    --app-bg-2: #1a2a6c;
    --app-accent: #ffcc00;
    --app-accent-soft: rgba(255, 204, 0, 0.12);
    --app-card-bg: rgba(10, 13, 32, 0.92);
    --app-border-soft: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f8f9fa;
    background: radial-gradient(circle at top, #202456, #050816 60%, #020308 100%);
    position: relative;
    overflow-x: hidden;
}

/* background glow */
.app-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.15), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(255, 204, 0, 0.18), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(76, 0, 255, 0.25), transparent 60%);
    opacity: 0.95;
    z-index: -2;
}

.app-navbar {
    backdrop-filter: blur(22px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 20;
}

.navbar-brand .logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--app-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
}

.logo-bolt {
    color: var(--app-accent);
    font-weight: 800;
    font-size: 1.1rem;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* main */

/* .app-main {
    position: relative;
    z-index: 1;
} */

.app-alert {
    border-radius: 999px;
    padding-inline: 1.5rem;
}

/* game card */

.game-card {
    border-radius: 24px;
    padding: 1.8rem 1.6rem 1.8rem;
    background: linear-gradient(135deg, rgba(4, 10, 30, 0.98), rgba(16, 20, 43, 0.98));
    border: 1px solid var(--app-border-soft);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

@media (min-width: 992px) {
    .game-card {
        padding: 2.2rem 2rem;
    }
}

.question-box {
    padding: 1.4rem 1.2rem;
    border-radius: 18px;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 55%);
    border: 1px solid var(--app-border-soft);
}

.question-text {
    font-size: 1.15rem;
    font-weight: 500;
}

/* answers */

.answers-grid {
    display: grid;
    /* grid-template-columns: 1fr; */
    gap: 0.75rem;
}

/* @media (min-width: 576px) {
    .answers-grid {
        grid-template-columns: 1fr 1fr;
    }
} */

.answer-form {
    margin: 0;
}

.answer-btn {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 60%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f8f9fa;
    text-align: left;
    transition: all 0.16s ease-out;
    font-size: 0.95rem;
}

.answer-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent 65%);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.answer-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.answer-btn-hidden {
    opacity: 0.25;
    border-style: dashed;
    cursor: not-allowed;
}

.answer-letter {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--app-accent-soft);
    color: var(--app-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-text {
    white-space: normal;
}

/* lifelines */

.lifeline-btn {
    border-radius: 999px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lifeline-count {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* progress */

.app-progress {
    height: 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.app-progress .progress-bar {
    background: linear-gradient(90deg, #ffcc00, #ff8800);
}

/* difficulty badges */

.badge-easy {
    background: rgba(25, 135, 84, 0.2);
    color: #4ade80;
}

.badge-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #facc15;
}

.badge-hard {
    background: rgba(220, 53, 69, 0.2);
    color: #fb7185;
}

.app-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
