/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #111;
    color: white;
    margin: 0;
    padding: 20px;
}

.site-header {
    margin-bottom: 16px;
}

.logo {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
    image-rendering: crisp-edges;
}

.tagline {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.5px;
}

#stat-category {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 20px;
}

/* ── Scoreboard ───────────────────────────────────────────────────────────── */
.scoreboard {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 16px auto 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 30px;
    width: fit-content;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.score-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    padding: 10px;
}

.card {
    cursor: pointer;
    padding: 24px 20px;
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 14px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    width: 200px;
}

.card:hover:not(.disabled) {
    transform: scale(1.05);
    background: #2a2a2a;
    border-color: #555;
}

.card.disabled {
    cursor: default;
    pointer-events: none;
}

.card.winner {
    background: #1a3a1a;
    border-color: #4caf50;
    transform: scale(1.04);
}

.card.loser {
    background: #2a1a1a;
    border-color: #c0392b;
    opacity: 0.75;
}

.card img {
    width: 160px;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

.card h3 {
    margin: 8px 0 6px;
    font-size: 1rem;
}

/* ── Stat reveal ──────────────────────────────────────────────────────────── */
.stat-reveal {
    display: none;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 8px;
    color: #f0c040;
}

/* ── Result area ──────────────────────────────────────────────────────────── */
#result-area {
    margin-top: 20px;
    min-height: 60px;
}

#result {
    font-size: 1.4rem;
    margin: 0 0 16px;
}

.result-correct { color: #4caf50; }
.result-wrong   { color: #e74c3c; }

#next-btn {
    background: #f5a218;
    color: #111;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#next-btn:hover {
    background: #f0b030;
    transform: scale(1.04);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #2a2a2a;
    color: #555;
    font-size: 0.85rem;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #f5a218;
}
/* ── Help button ──────────────────────────────────────────────────────────── */
.help-btn {
    margin-top: 10px;
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 6px 16px;
    font-size: 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.help-btn:hover {
    color: #f5a218;
    border-color: #f5a218;
}

/* ── Help modal ───────────────────────────────────────────────────────────── */
#help-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#help-overlay.visible {
    display: flex;
}

#help-modal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: left;
}

#help-modal h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    color: #f5a218;
}

#help-modal ul {
    padding-left: 20px;
    margin: 0 0 24px;
    line-height: 1.9;
    color: #ccc;
    font-size: 0.95rem;
}

#help-modal ul li {
    margin-bottom: 6px;
}

.help-close-btn {
    background: #f5a218;
    color: #111;
    border: none;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    margin: 0 auto;
}

.help-close-btn:hover {
    background: #f0b030;
}

/* ── Help button ──────────────────────────────────────────────────────────── */
.help-btn {
    margin-top: 10px;
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 6px 16px;
    font-size: 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.help-btn:hover {
    color: #f5a218;
    border-color: #f5a218;
}

/* ── Help modal ───────────────────────────────────────────────────────────── */
#help-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#help-overlay.visible {
    display: flex;
}

#help-modal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: left;
}

#help-modal h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    color: #f5a218;
}

#help-modal ul {
    padding-left: 20px;
    margin: 0 0 24px;
    line-height: 1.9;
    color: #ccc;
    font-size: 0.95rem;
}

#help-modal ul li {
    margin-bottom: 6px;
}

.help-close-btn {
    background: #f5a218;
    color: #111;
    border: none;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    margin: 0 auto;
}

.help-close-btn:hover {
    background: #f0b030;
}