:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --card-bg: rgba(255, 255, 255, 0.96);
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --gold-color: #f59e0b;
    --gold-hover: #d97706;
    --danger-color: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    margin: 0;
    padding: 15px;
    min-height: 100vh;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.btn-admin-sm {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.card-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }
.text-center { text-align: center; }

.btn {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-large { font-size: 1.15rem; padding: 16px 30px; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-gold { background: var(--gold-color); color: white; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-danger { background: var(--danger-color); color: white; }

.input-field, .textarea-field {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}
.input-field:focus, .textarea-field:focus { border-color: var(--primary-color); }
.uppercase { text-transform: uppercase; }

.code-box {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    margin: 15px 0;
}
.code-box strong { color: var(--primary-color); font-size: 2rem; letter-spacing: 3px; }

.team-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.team-pill { background: #e0e7ff; color: #3730a3; padding: 8px 16px; border-radius: 20px; font-weight: 700; }

.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.q-badge { background: #e0e7ff; color: #3730a3; padding: 8px 16px; border-radius: 20px; font-weight: bold; }
.timer-badge { background: #fee2e2; color: #991b1b; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 1.1rem; }

.question-title { font-size: 1.5rem; color: #0f172a; margin-bottom: 25px; line-height: 1.4; }

.answers-grid { display: grid; gap: 15px; }
.answer-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-left: 6px solid var(--gold-color);
    padding: 18px;
    border-radius: 12px;
}
.answer-card h4 { margin: 0 0 8px 0; color: #475569; }
.answer-text { font-size: 1.2rem; font-weight: 600; color: #0f172a; margin: 0 0 12px 0; }

.paused-banner {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.scoreboard { display: grid; gap: 10px; margin-top: 15px; }
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
}
.score-badge { background: var(--gold-color); color: white; padding: 4px 12px; border-radius: 12px; font-weight: bold; }

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
}
.modal-card {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.close-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; }

.admin-section { margin-top: 20px; border-top: 1px solid #e2e8f0; padding-top: 15px; }
.admin-q-text { font-weight: bold; color: #334155; }
.admin-ans-box { display: grid; gap: 8px; }
.admin-ans-item { background: #f1f5f9; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}