:root {
  --bg: #1e3b20; --bg2: #142814; --surface: #2a442a; --surface-light: #355035; --border: #4a6a4a; --primary: #f0c000; --primary-dim: rgba(240,192,0,0.12); --success: #4cde80; --danger: #ff5555; --text: #f0f5f0; --text-muted: #7fa87f; --lime: #b5f000; --radius: 20px; --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --font-head: 'Segoe UI Black', 'Arial Black', system-ui, -apple-system, sans-serif;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, button, input { margin: 0; padding: 0; }
body { font-family: var(--font); background: linear-gradient(160deg, var(--bg2) 0%, var(--bg) 60%, #1a2a10 100%); color: var(--text); min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(176,240,0,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(80,160,60,0.08) 0%, transparent 60%); pointer-events: none; z-index: 0; will-change: auto; }
.break-text { word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; white-space: normal; }
.screen { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 18px 32px; position: relative; z-index: 1; text-align: center; }
.screen.active { display: flex; animation: slideUp 0.3s ease-out both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.top-bar { width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px 0 4px; margin-bottom: 4px; }
.app-badge { background: rgba(181, 240, 0, 0.1); border: 1.5px solid var(--lime); border-radius: 50px; padding: 6px 20px; font-family: var(--font-head); font-size: 0.85rem; font-weight: 900; letter-spacing: 1.5px; color: var(--lime); text-transform: uppercase; box-shadow: 0 0 15px rgba(181, 240, 0, 0.2); }
.logo-container { margin: 12px 0 18px; width: 260px; height: 130px; background: var(--surface); border-radius: var(--radius); display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1.5px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04); contain: layout; }
.logo-container img { width: 260px; height: 130px; object-fit: cover; decoding: sync; }
.gauge-wrapper { position: relative; width: 190px; height: 190px; margin-bottom: 24px; filter: drop-shadow(0 0 20px rgba(176,240,0,0.18)); }
.gauge-svg { transform: rotate(-90deg); width: 190px; height: 190px; }
.gauge-bg { fill: none; stroke: var(--surface); stroke-width: 14; }
.gauge-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.gauge-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.gauge-val { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--lime); line-height: 1; }
.gauge-lab { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.home-stats { display: flex; gap: 12px; width: 100%; margin-bottom: 24px; }
.stat-card { flex: 1; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; }
.stat-val { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: var(--lime); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.q-img-container { width: 210px; height: 210px; margin-bottom: 18px; background: #fff; border-radius: 18px; display: flex; justify-content: center; align-items: center; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 3px var(--border); contain: layout; margin-left: auto; margin-right: auto; }
.q-img-container img { width: 100%; height: 100%; object-fit: contain; }
.q-text-box { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px 18px; width: 100%; margin-bottom: 18px; font-size: 1.2rem; font-weight: 700; line-height: 1.5; color: var(--text); text-align: center; }
.q-progress-wrap { width: 100%; background: var(--surface); border-radius: 50px; height: 7px; margin-bottom: 18px; overflow: hidden; }
.q-progress-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, #4cde80, #b5f000); transition: width 0.4s ease; }
.options-grid { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.option-btn { width: 100%; min-height: 62px; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; display: flex; align-items: center; padding: 14px 16px; cursor: pointer; transition: border-color 0.18s, background 0.18s; text-align: left; position: relative; overflow: hidden; }
.option-btn:hover { border-color: rgba(176,240,0,0.3); }
.option-btn:active { transform: scale(0.97); }
.opt-letter { background: var(--surface-light); color: var(--primary); min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 900; font-size: 1rem; margin-right: 14px; border: 1.5px solid var(--border); flex-shrink: 0; font-family: var(--font-head); }
.opt-text { color: var(--text); font-size: 1.09rem; font-weight: 700; line-height: 1.35; }
.option-btn.correct { border-color: var(--success); background: rgba(76,222,128,0.12); }
.option-btn.correct .opt-letter { background: rgba(76,222,128,0.2); color: var(--success); border-color: var(--success); }
.option-btn.wrong { border-color: var(--danger); background: rgba(255,85,85,0.1); }
.option-btn.wrong .opt-letter { background: rgba(255,85,85,0.2); color: var(--danger); border-color: var(--danger); }
.explanation-box { display: none; width: 100%; margin-top: 14px; padding: 16px; background: rgba(255,85,85,0.08); border-left: 4px solid var(--danger); border-radius: 14px; color: #ffcccc; font-size: 0.93rem; line-height: 1.5; text-align: left; }
.btn-main { width: 100%; background: linear-gradient(135deg, var(--primary) 0%, #e0a800 100%); color: #000; border: none; border-radius: 18px; padding: 20px; font-size: 1.1rem; font-weight: 900; margin-top: 22px; box-shadow: 0 6px 24px rgba(240,192,0,0.35); font-family: var(--font-head); letter-spacing: 1px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; text-decoration: none; text-align: center; }
.btn-main:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(240,192,0,0.2); }
.btn-text { background: transparent; color: var(--lime); border: none; font-size: 1rem; font-weight: 700; margin-top: 16px; cursor: pointer; text-decoration: underline; padding: 10px; }
.result-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; margin-top: 28px; margin-bottom: 8px; text-align: center; }
.result-badge { border-radius: 16px; padding: 18px 28px; width: 100%; margin: 16px 0 10px; text-align: center; }
.result-badge.aprovado { background: rgba(76,222,128,0.1); border: 2px solid var(--success); }
.result-badge.reprovado { background: rgba(255,85,85,0.1); border: 2px solid var(--danger); }
.result-status { font-family: var(--font-head); font-size: 2rem; font-weight: 900; letter-spacing: 2px; }
.result-status.aprovado { color: var(--success); text-shadow: 0 0 20px rgba(76,222,128,0.5); }
.result-status.reprovado { color: var(--danger); text-shadow: 0 0 20px rgba(255,85,85,0.5); }
.result-msg { font-size: 1rem; font-weight: 700; margin-top: 8px; color: var(--text); }
.score-row { display: flex; gap: 12px; width: 100%; margin: 14px 0; }
.score-card { flex: 1; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; }
.score-card.hits { border-color: rgba(76,222,128,0.4); }
.score-card.misses { border-color: rgba(255,85,85,0.4); }
.score-num { font-family: var(--font-head); font-size: 2rem; font-weight: 900; }
.score-card.hits .score-num { color: var(--success); }
.score-card.misses .score-num { color: var(--danger); }
.score-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.q-counter-row { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }
.q-counter-num { color: var(--lime); font-family: var(--font-head); }
.home-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--text); text-align: center; margin-bottom: 4px; }
.home-sub { font-size: 0.88rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.login-form { margin-bottom: 16px; }
.password-input { width: 150px; padding: 15px; border: 2px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font-size: 2rem; text-align: center; font-family: var(--font-head); letter-spacing: 8px; }
.password-input::placeholder { color: var(--text-muted); }
.login-error { color: var(--danger); font-size: 0.9rem; height: 1.2rem; margin-top: 8px; font-weight: 700; }
.ios-guide-container { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px; border-top: 1px solid var(--border); animation: slideUp 0.5s ease-out; }
.ios-guide-content { max-width: 520px; margin: 0 auto; color: var(--text); position: relative; text-align: left; }
.ios-guide-content h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 12px; color: var(--lime); }
.ios-guide-content p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 12px; }
.ios-guide-content ol { list-style: none; padding-left: 0; margin-bottom: 10px; }
.ios-guide-content li { margin-bottom: 12px; display: flex; align-items: center; font-size: 0.9rem; background: var(--surface); padding: 10px; border-radius: 10px; border: 1px solid var(--border); }
.ios-icon { width: 24px; height: 24px; margin: 0 6px; background: #fff; padding: 2px; border-radius: 5px; vertical-align: middle; }
.ios-guide-close { position: absolute; top: -5px; right: 0; background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer; }

/* ESTILOS DO RODAPÉ */
.app-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); width: 100%; text-align: center; }
.footer-links { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; padding: 0 5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }