:root {
    --color-primary: #ff6b00;
    --color-secondary: #1e293b;
    --color-bg: #f8fafc;
    --color-accent: #22c55e;
    --color-card: rgba(255, 255, 255, 0.88);
    --color-text: #0f172a;
    --color-muted: #64748b;
    --shadow-soft: 0 20px 60px rgba(30, 41, 59, 0.12);
    --radius-xl: 28px;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #fff7f0 0%, var(--color-bg) 28%, #eef4ff 100%);
    color: var(--color-text);
    min-height: 100vh;
}

.theme-dark {
    --color-card: rgba(15, 23, 42, 0.88);
    --color-text: #e2e8f0;
    --color-muted: #94a3b8;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 0, 0.22), transparent 24%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.app-navbar {
    background: rgba(248, 250, 252, 0.78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.theme-dark .app-navbar,
.theme-dark .app-footer {
    background: rgba(15, 23, 42, 0.75);
}

.brand-mark,
.navbar .nav-link,
.navbar-brand {
    color: var(--color-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.theme-dark .brand-mark,
.theme-dark .navbar .nav-link,
.theme-dark .navbar-brand {
    color: #f8fafc;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c42 100%);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.25);
}

.hero-section {
    padding-top: 4rem;
}

.hero-card,
.panel-card,
.feature-card,
.schedule-card,
.question-card,
.empty-panel {
    background: var(--color-card);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.hero-card,
.panel-card,
.feature-card,
.schedule-card,
.question-card {
    padding: 1.5rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.hero-stats,
.card-meta,
.profile-metric,
.mini-scoreboard__header,
.leaderboard-entry,
.rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-stats strong,
.timer-badge strong,
.leaderboard-rank {
    font-family: 'Poppins', sans-serif;
}

.chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.08);
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.chip-live,
.status-pill,
.chip-success {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.chip-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.leaderboard-shell,
#live-leaderboard {
    gap: 1rem;
}

.leaderboard-entry,
.rank-row {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.52);
}

.theme-dark .leaderboard-entry,
.theme-dark .rank-row {
    background: rgba(30, 41, 59, 0.6);
}

.leaderboard-rank,
.timer-badge {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(34, 197, 94, 0.12));
    color: var(--color-secondary);
    padding: 0.8rem 1rem;
    border-radius: 20px;
}

.timer-badge {
    min-width: 72px;
    text-align: center;
}

.answer-option {
    border: 1px solid rgba(148, 163, 184, 0.35);
    width: 100%;
    min-height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.95rem 1rem;
    text-align: left;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.answer-option:hover,
.answer-option:focus {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 0, 0.5);
}

.answer-option--a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0.96));
    border-color: rgba(59, 130, 246, 0.34);
}

.answer-option--b {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(255, 255, 255, 0.96));
    border-color: rgba(236, 72, 153, 0.34);
}

.answer-option--c {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.96));
    border-color: rgba(34, 197, 94, 0.32);
}

.answer-option--d {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(255, 255, 255, 0.96));
    border-color: rgba(249, 115, 22, 0.35);
}

.answer-option.selected {
    border-color: rgba(255, 107, 0, 0.55);
    background: rgba(255, 107, 0, 0.08);
 }

.answer-option:disabled {
    opacity: 1;
    cursor: default;
}

.answer-option.is-correct {
    border-color: rgba(34, 197, 94, 0.75);
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.answer-option.is-wrong {
    border-color: rgba(239, 68, 68, 0.75);
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.answer-feedback {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.answer-feedback--correct {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.answer-feedback--wrong {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.answer-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
}

.answer-loader__dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #2563eb;
    animation: loader-pulse 0.85s ease-in-out infinite;
}

.progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.progress-bar {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.empty-panel {
    padding: 2rem;
    text-align: center;
    color: var(--color-muted);
}

.animate-rise {
    animation: rise-in 0.45s ease both;
}

.app-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loader-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .section-heading,
    .hero-stats,
    .leaderboard-entry,
    .profile-metric,
    .rank-row {
        align-items: start;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 2rem;
    }

    .panel-card,
    .feature-card,
    .schedule-card,
    .question-card {
        padding: 1.2rem;
    }
}
