/* =========================================================
   Nivelamento — estilos próprios (sem Tailwind CDN)
   Reset mínimo + utilidades usadas + componentes.
   ========================================================= */

/* ---------- Reset (subconjunto do preflight do Tailwind) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg-dark: #060b1a;
  --panel-light: #f8fbff;
  --primary: #245fc2;
  --secondary: #26c652;
  --text-main: #0f172a;
  --text-muted: #475569;
}
* { font-family: 'Inter', sans-serif; }

/* ---------- Layout base ---------- */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: radial-gradient(circle at top right, rgba(36, 95, 194, 0.28), transparent 35%),
              radial-gradient(circle at bottom left, rgba(38, 198, 82, 0.2), transparent 35%),
              var(--bg-dark);
}

/* ---------- Componentes ---------- */
.glass-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: var(--text-main);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}
.screen { transition: opacity .3s ease, transform .3s ease; }
.screen.hidden { display: none; }
.screen.enter { opacity: 0; transform: translateX(24px); }
.screen.exit { opacity: 0; transform: translateX(-24px); }
.input-base {
  width: 100%; border-radius: .8rem; padding: .8rem 1rem;
  border: 1px solid #cbd5e1; background: #fff;
}
.input-base:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36,95,194,.18); }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .8rem; padding: .8rem 1.1rem; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--primary), #1e4ea5 55%, var(--secondary)); box-shadow: 0 10px 24px rgba(36,95,194,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(36,95,194,.4); }
.btn-secondary { color: #0f172a; background: #e2e8f0; }
.btn-secondary:hover { background: #cbd5e1; }
.option-btn {
  width: 100%; text-align: left; border: 1px solid #cbd5e1; border-radius: .8rem;
  background: #fff; color: var(--text-main); padding: .85rem 1rem; transition: all .2s ease;
}
.option-btn:hover { border-color: rgba(38,198,82,.9); background: rgba(38,198,82,.08); transform: translateY(-1px); }
.option-btn.is-selected { border-color: #245fc2; background: rgba(36,95,194,.1); }
.progress-track { background: #dbeafe; }
.progress-bar { background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s ease; }
.muted { color: var(--text-muted); }
.trophy { font-size: 3rem; line-height: 1; }

/* ---------- Utilidades ---------- */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.w-full { width: 100%; }
.h-2 { height: .5rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.max-w-4xl { max-width: 56rem; }
.min-h-screen { min-height: 100vh; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-5 { padding: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.mr-2 { margin-right: .5rem; }
.mt-3 { margin-top: .75rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-white\/70 { border-color: rgba(255,255,255,.7); }
.opacity-50 { opacity: .5; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.text-slate-900 { color: #0f172a; }
.text-sky-700 { color: #0369a1; }

/* ---------- Responsivo (md: ≥768px) ---------- */
@media (min-width: 768px) {
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:h-20 { height: 5rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-sm { font-size: .875rem; line-height: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
