.game-area {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.online-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.opponent-name {
    color: var(--text-muted);
    font-weight: 600;
}

.trivia-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.trivia-main-panel,
.score-panel,
.final-standings {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.trivia-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.status {
    color: var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.round-pill,
.timer-pill,
.category-badge {
    border-radius: 999px;
    color: white;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.round-pill {
    background: #4f46e5;
    padding: 8px 14px;
}

.timer-pill {
    align-items: center;
    background: var(--warning-color);
    display: inline-flex;
    font-size: 1.25rem;
    justify-content: center;
    min-width: 62px;
    padding: 8px 14px;
}

.timer-pill.low-time {
    background: var(--danger-color);
    animation: trivia-pulse 0.8s ease-in-out infinite;
}

.question-card {
    background: radial-gradient(circle at top left, rgba(41, 128, 185, 0.13), transparent 38%),
        linear-gradient(135deg, #1a1a2e 0%, #25305f 100%);
    border-radius: 18px;
    color: white;
    padding: 24px;
}

.category-badge {
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 13px;
    text-transform: uppercase;
}

#question-text {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.25;
    margin: 0 0 20px;
}

.options-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-btn {
    background: #ffffff;
    border: 3px solid transparent;
    border-radius: 14px;
    color: #1f2937;
    min-height: 68px;
    padding: 14px 16px;
    text-align: left;
    width: 100%;
}

.option-btn:hover:not(:disabled) {
    background: #e8f3ff;
    border-color: var(--primary-hover);
    color: #102a43;
}

.option-btn.selected {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.option-btn.correct {
    background: #dcfce7;
    border-color: var(--success-color);
    color: #14532d;
}

.option-btn.incorrect {
    background: #fee2e2;
    border-color: var(--danger-color);
    color: #7f1d1d;
}

.option-label {
    background: #1a1a2e;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    margin-right: 10px;
    width: 28px;
}

.answer-feedback,
.local-progress {
    background: var(--background-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 16px;
    padding: 12px 14px;
}

.answer-feedback.correct {
    border-left-color: var(--success-color);
}

.answer-feedback.incorrect {
    border-left-color: var(--danger-color);
}

.local-progress {
    border-left-color: #4f46e5;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.score-panel h3 {
    color: var(--secondary-color);
    margin: 0 0 14px;
    text-align: center;
}

.scoreboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-row {
    align-items: center;
    background: var(--background-color);
    border: 2px solid transparent;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 11px 12px;
}

.score-row.leader {
    background: #fff7ed;
    border-color: #fdba74;
}

.score-rank {
    align-items: center;
    background: var(--secondary-color);
    border-radius: 50%;
    color: white;
    display: inline-flex;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.score-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-value {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 900;
}

.final-standings {
    margin-top: 20px;
    text-align: center;
}

.final-standings h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.final-list {
    display: grid;
    gap: 10px;
    margin: 12px auto 0;
    max-width: 560px;
}

.final-row {
    align-items: center;
    background: var(--background-color);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

.game-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

#next-round-btn {
    margin-top: 16px;
}

.interstitial-screen {
    align-items: center;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 520px;
    min-height: 280px;
    padding: 40px;
    text-align: center;
}

.interstitial-content h2 {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.next-player-name {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin: 16px 0 22px;
}

@keyframes trivia-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 900px) {
    .trivia-layout {
        grid-template-columns: 1fr;
    }

    .score-panel {
        order: -1;
    }
}

@media (max-width: 640px) {
    .game-area {
        padding: 14px;
    }

    .trivia-main-panel,
    .score-panel,
    .final-standings {
        padding: 14px;
    }

    .trivia-top-row {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-btn {
        min-height: 58px;
    }

    .game-buttons {
        flex-direction: column;
    }
}
