:root {
    --primary: #0f172a; 
    --success: #00ff88; 
    --danger: #ff0055; 
    --warning: #ffcc00;
    /* NOVA COR PARA PORTUGUÊS: Índigo Elétrico */
    --port: #6366f1; 
    --mat: #00d4ff; 
    --fis: #ff9100; 
    --qui: #ffcf00; 
    --bio: #39ff14; 
    --his: #ff4d00; 
    --geo: #00ffcc; 
    --bg: #f8fafc;
}

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--bg); 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
}

#app { 
    background: white; 
    width: 95%; 
    max-width: 950px; 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    text-align: center; 
    border: 1px solid #e2e8f0; 
}

.hidden { display: none; }

.brand-title { color: var(--primary); font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; margin-bottom: 5px; }
.brand-subtitle { color: #64748b; margin-bottom: 30px; font-weight: 500; font-size: 1rem; }

.section-label { color: #94a3b8; font-weight: bold; font-size: 0.8rem; letter-spacing: 1px; margin: 20px 0 10px 0; }

/* GRID DE DISCIPLINAS EM 2 LINHAS EQUILIBRADAS */
.grid-disciplinas {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px;
    margin: 20px auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .grid-disciplinas { grid-template-columns: repeat(2, 1fr); } 
}

.grid-anos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin-top: 10px; }

.btn { 
    padding: 18px 20px; border: none; border-radius: 16px; cursor: pointer; 
    color: white; font-weight: 800; font-size: 0.85rem; transition: 0.4s; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    display: flex; justify-content: center; align-items: center;
}

.btn:hover { transform: translateY(-3px); filter: brightness(1.1) saturate(1.2); }

.btn-ano { background: var(--primary); }
.btn-em { background: #1e293b; border: 2px solid #334155; }
.btn-success { background: var(--success); color: #0f172a; text-shadow: none; }
.btn-warning { background: var(--warning); color: #0f172a; text-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-back { background: #f1f5f9; color: #64748b; box-shadow: none; text-shadow: none; margin-top: 20px; }

/* Cores das Disciplinas */
.btn-por, .btn-port { background: var(--port); box-shadow: 0 4px 0 #4f46e5; }
.btn-mat { background: var(--mat); box-shadow: 0 4px 0 #00b8d9; }
.btn-fis { background: var(--fis); box-shadow: 0 4px 0 #cc7400; }
.btn-qui { background: var(--qui); color: #0f172a; text-shadow: none; box-shadow: 0 4px 0 #cc9900; }
.btn-bio { background: var(--bio); color: #0f172a; text-shadow: none; box-shadow: 0 4px 0 #2ecc11; }
.btn-his, .btn-hist { background: var(--his); box-shadow: 0 4px 0 #cc3d00; }
.btn-geo { background: var(--geo); color: #0f172a; text-shadow: none; box-shadow: 0 4px 0 #00cc99; }
.btn-cie, .btn-ciencias { background: #3b82f6; box-shadow: 0 4px 0 #2563eb; }

/* Jogo */
#timer-container { width: 100%; height: 16px; background: #f1f5f9; border-radius: 50px; margin: 30px 0; border: 2px solid #e2e8f0; overflow: hidden; }
#timer-bar { height: 100%; background: linear-gradient(90deg, var(--success), var(--danger)); width: 100%; transition: width 0.1s linear; }

.question-text { font-size: 1.6rem; color: #1e293b; margin-bottom: 35px; font-weight: 700; line-height: 1.4; min-height: 100px; }
.options { display: grid; gap: 12px; max-width: 750px; margin: 0 auto; text-align: left; }
.opt-btn { padding: 20px; border: 2px solid #f1f5f9; border-radius: 18px; background: #fff; cursor: pointer; font-size: 1.1rem; transition: 0.3s; color: #475569; }
.opt-btn:hover { border-color: var(--mat); background: #f0f9ff; }

.game-header { display: flex; justify-content: space-between; font-weight: 800; color: #94a3b8; text-transform: uppercase; }
.score-big { font-size: 7rem; color: var(--success); font-weight: 900; margin: 10px 0; }
.breadcrumb { font-size: 0.85rem; color: #94a3b8; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; }