* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #1b1035;
    color: #1b1035;
}
.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.card.wide {
    max-width: 640px;
}
h1 { margin-top: 0; font-size: 1.6rem; }
label {
    display: block;
    text-align: left;
    margin: 16px 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
}
input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #1b1035;
}
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border: none;
    border-radius: 8px;
    background: #eee;
    color: #1b1035;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary { background: #7c3aed; color: #fff; }
.btn-secondary { background: transparent; border: 1px solid #7c3aed; color: #7c3aed; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.button-stack .btn { margin-top: 12px; }
.error { color: #c0392b; font-weight: 600; }
.game-code {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #7c3aed;
    margin: 8px 0;
}
#qrcode { display: inline-block; margin: 16px 0; }
.timer {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 12px 0;
}
.answers {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}
.answer-btn {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #7c3aed;
    background: #fff;
    color: #1b1035;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
}
.answer-btn.selected { background: #7c3aed; color: #fff; }
.answer-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.participant-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.participant-list li {
    background: #f2edff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}
.leaderboard {
    list-style: none;
    padding: 0;
    text-align: left;
}
.leaderboard li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.leaderboard li.rank-1 { font-weight: 800; color: #7c3aed; }
.review-item {
    text-align: left;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
}
.review-item .correct { color: #1a8a4a; font-weight: 700; }
.review-item .wrong { color: #c0392b; }
.muted { color: #666; font-size: 0.9rem; }
