:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent: #38bdf8; /* Electric Blue */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --success: #22c55e;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#game-container {
    background: var(--card-bg);
    width: 95%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

#question-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    min-height: 80px;
    line-height: 1.5;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.02);
    font-weight: bold;
}

#current-index {
    color: var(--accent);
    font-weight: bold;
}

/* Container for the end-game actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Share Button - Matches your Hero CTA Gradient */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: linear-gradient(135deg, #F5A623, #C1440E);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: .85rem;
    padding: .85rem 1.75rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Baloo 2', cursive;
    letter-spacing: .02em;
    box-shadow: 0 8px 32px rgba(245,166,35,0.25);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245,166,35,0.35);
}

/* Try Again Button - Matches your Game Card Style */
.retry-btn {
    background: rgba(255, 255, 255, 0.04);
    color: #F0EEE8;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: .85rem;
    padding: .85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F5A623;
    color: #F5A623;
}

#iq-rank {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}