:root {
    --accent: #1976d2;
    --bg: #f8fafc;
    --card: #fff;
    --red: #e53935;
    --blue: #1e88e5;
    --yellow: #fdd835;
    --green: #43a047;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    position: relative;
}

h1 { text-align: center; font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 10px 0; }
#liveClock { text-align: center; font-weight: 700; margin-bottom: 15px; color: var(--accent); font-size: 13px; }

#liveScoreboard { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.playerScore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-weight: 800;
}
.playerScore.active-turn { border: 2.5px solid var(--accent); background: #e0f2fe; }

.current-player { text-align: center; margin-bottom: 25px; }
.current-player span {
    background: var(--accent);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
}

#qTracker { text-align: center; font-weight: 800; color: #64748b; font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; }
.question { font-size: 2.2rem; font-weight: 900; text-align: center; margin-bottom: 20px; color: #0f172a; }

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.answers button {
    border: none;
    padding: 15px;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-label {
    background: rgba(255, 255, 255, 0.3);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 900;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-c0 { background: var(--red) }
.btn-c1 { background: var(--blue) }
.btn-c2 { background: var(--yellow); color: #000 !important; }
.btn-c2 .option-label { background: rgba(0, 0, 0, 0.1); border-color: rgba(0, 0, 0, 0.2); }
.btn-c3 { background: var(--green) }

.reveal-correct { background: var(--green) !important; color: #fff !important; border: 4px solid #fff; }
.reveal-wrong { background: var(--red) !important; color: #fff !important; opacity: 0.8; }

#feedbackStatus { text-align: center; font-size: 1.4rem; font-weight: 900; margin-bottom: 15px; display: none; text-transform: uppercase; }
.txt-success { color: var(--green) !important; }
.txt-danger { color: var(--red) !important; }

#nextBtn { padding: 20px; font-size: 1.3rem; border: none; border-radius: 18px; background: #1e293b; color: #fff; cursor: pointer; display: none; width: 100%; font-weight: 900; }

.setup-box { display: flex; flex-direction: column; gap: 12px; }
.setup-box input, .setup-box select { padding: 15px; border-radius: 12px; border: 2px solid #e2e8f0; font-size: 1rem; width: 100%; }
.pdf-btn { width: 100%; padding: 18px; background: #1e293b; color: white; border: none; border-radius: 16px; font-weight: 900; cursor: pointer; margin-top: 10px; }

#toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 50px; padding: 16px; position: fixed; z-index: 1001; left: 50%; bottom: 30px; transform: translateX(-50%); font-weight: 700; }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@keyframes fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }
