/* =========================================================
   Teste de Dons Espirituais — Igreja Batista Sul
   Mobile first. Identidade: dourado + marrom (logo ibsul).
   ========================================================= */

:root {
  --gold: #e0a526;
  --gold-soft: #f3c968;
  --gold-dark: #b9821a;
  --brown: #8b4a3a;
  --brown-dark: #6b3729;
  --brown-soft: #a9705f;
  --cream: #fdf8f0;
  --cream-2: #f7ecdb;
  --ink: #3a2a22;
  --ink-soft: #6d5b50;
  --white: #fff;
  --ring: rgba(224, 165, 38, 0.35);
  --shadow-sm: 0 2px 8px rgba(107, 55, 41, 0.08);
  --shadow: 0 10px 30px rgba(107, 55, 41, 0.12);
  --shadow-lg: 0 24px 60px rgba(107, 55, 41, 0.18);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --font-h: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-b: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1000px 520px at 15% -10%, rgba(224, 165, 38, 0.22), transparent 62%),
    radial-gradient(820px 480px at 110% 8%, rgba(139, 74, 58, 0.14), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(224, 165, 38, 0.12), transparent 65%);
  background-attachment: fixed;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

button { font-family: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- Botões ---------------- */
.btn {
  --btn-bg: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(185, 130, 26, 0.32);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(185, 130, 26, 0.38); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: transparent;
  color: var(--brown);
  border: 1.6px solid rgba(139, 74, 58, 0.28);
  box-shadow: none;
  font-weight: 600;
}
.btn.ghost:hover { background: rgba(139, 74, 58, 0.06); box-shadow: none; }
.btn.brown { --btn-bg: linear-gradient(135deg, var(--brown-soft) 0%, var(--brown) 100%); box-shadow: 0 10px 24px rgba(107,55,41,.28); }
.btn.sm { min-height: 46px; font-size: 0.92rem; width: auto; padding: 10px 22px; }

/* ---------------- Estrutura de telas ---------------- */
.screen { display: none; padding: 26px 0 48px; animation: screenIn 0.55s cubic-bezier(.22,1,.36,1) both; }
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Cabeçalho / logo ---------------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 0 6px;
}
.brand img { width: 148px; height: auto; filter: drop-shadow(0 6px 14px rgba(107, 55, 41, 0.14)); }
.brand .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 700;
}

/* ---------------- Intro ---------------- */
.hero { text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  margin: 12px 0 10px;
  color: var(--brown-dark);
}
.hero h1 .hl {
  background: linear-gradient(105deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 34ch; margin: 0 auto 22px; }

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(224, 165, 38, 0.16);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 74, 58, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown);
  box-shadow: var(--shadow-sm);
}
.pill b { color: var(--gold-dark); }

/* grade de dons na intro */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 24px;
}
.gift-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(224, 165, 38, 0.24);
  border-radius: var(--r);
  text-align: center;
  animation: popIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform .2s, box-shadow .2s;
}
.gift-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.gift-chip .gift-icon { width: 34px; height: 34px; }
.gift-chip span { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.01em; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.gift-icon .acc-fill { fill: rgba(224, 165, 38, 0.22); stroke: none; }

/* ---------------- Formulário ---------------- */
.field { margin-bottom: 14px; text-align: left; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-soft);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.6px solid rgba(139, 74, 58, 0.16);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}
.field .hint { font-size: 0.75rem; color: var(--ink-soft); margin-top: 5px; }

/* aviso de anonimato */
.anon {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(135deg, rgba(224,165,38,.1), rgba(139,74,58,.05));
  border: 1px solid rgba(224,165,38,.28);
  border-radius: var(--r);
  padding: 15px;
  margin-bottom: 18px;
}
.anon-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.anon strong { display: block; font-size: .95rem; color: var(--brown-dark); }
.anon small { display: block; font-size: .81rem; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }

/* ---------------- Instruções ---------------- */
.scale-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.scale-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(224, 165, 38, 0.2);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.5s cubic-bezier(.22,1,.36,1) both;
}
.scale-item .num {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 6px 14px rgba(185, 130, 26, 0.3);
}
.scale-item[data-v="0"] .num { background: linear-gradient(135deg, #b9a292 0%, #8a7264 100%); box-shadow: none; }
.scale-item[data-v="1"] .num { background: linear-gradient(135deg, #dcc08c 0%, #c0a061 100%); }
.scale-item .txt strong { display: block; font-size: 0.96rem; color: var(--ink); }
.scale-item .txt small { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; display: block; margin-top: 2px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Quiz ---------------- */
.quiz-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 74, 58, 0.1);
  padding: 12px 0 11px;
}
.quiz-top .inner { display: flex; align-items: center; gap: 12px; }
.quiz-top img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.progress-track {
  flex: 1;
  height: 9px;
  background: rgba(139, 74, 58, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-dark));
  transition: width 0.45s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 12px rgba(224, 165, 38, 0.6);
}
.progress-label {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}
.progress-label b { color: var(--gold-dark); }

.q-card { margin-top: 22px; }
.q-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.q-index::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.q-text {
  font-family: var(--font-h);
  font-size: clamp(1.32rem, 5.6vw, 1.72rem);
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.28;
  margin-bottom: 22px;
}
.q-anim { animation: qIn 0.42s cubic-bezier(.22,1,.36,1) both; }
@keyframes qIn {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: none; }
}
.q-anim-back { animation: qInBack 0.42s cubic-bezier(.22,1,.36,1) both; }
@keyframes qInBack {
  from { opacity: 0; transform: translateX(-26px); }
  to   { opacity: 1; transform: none; }
}

.options { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  background: var(--white);
  border: 1.8px solid rgba(139, 74, 58, 0.14);
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, background 0.16s, box-shadow 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.opt:active { transform: scale(0.985); }
.opt .badge {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  background: var(--cream-2);
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.opt .lbl { flex: 1; }
.opt .lbl strong { display: block; font-size: 0.96rem; font-weight: 700; color: var(--ink); }
.opt .lbl small { display: block; font-size: 0.76rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.opt.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffaf0, #fff);
  box-shadow: 0 0 0 4px var(--ring);
}
.opt.selected .badge {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  transform: scale(1.06);
}

.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.link-btn {
  background: none; border: 0; padding: 8px 4px;
  color: var(--brown-soft); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 60%; justify-content: flex-end; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(139, 74, 58, 0.18); transition: background .3s, transform .3s; }
.dot.done { background: var(--gold); }
.dot.now { background: var(--brown); transform: scale(1.6); }

/* ---------------- Loading ---------------- */
#screen-loading { text-align: center; padding-top: 16vh; }
.loader { width: 96px; height: 96px; margin: 0 auto 26px; position: relative; }
.loader svg { animation: spin 2.4s linear infinite; }
.loader::after {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(224, 165, 38, 0.4);
  animation: spin 9s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-family: var(--font-h); font-size: 1.3rem; color: var(--brown-dark); min-height: 1.6em; }
.loading-msg span { animation: fadeIn .5s ease both; display: inline-block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- Resultado ---------------- */
.result-hero {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, var(--cream-2) 100%);
  border-radius: var(--r-lg);
  padding: 30px 20px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(224, 165, 38, 0.28);
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute; top: -50%; left: -20%; width: 140%; height: 120%;
  background: radial-gradient(closest-side, rgba(224, 165, 38, 0.22), transparent);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { opacity: .55; transform: scale(1);} 50% { opacity: 1; transform: scale(1.08);} }
.result-hero > * { position: relative; }
.result-hero .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 800; color: var(--brown-soft);
}
.hero-icon {
  width: 116px; height: 116px;
  margin: 16px auto 12px;
  display: grid; place-items: center;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(107, 55, 41, 0.16);
  animation: heroPop 0.8s cubic-bezier(.34,1.56,.64,1) both;
}
.hero-icon .gift-icon { width: 68px; height: 68px; }
@keyframes heroPop { from { opacity: 0; transform: scale(0.4) rotate(-12deg);} to { opacity: 1; transform: none; } }
.result-hero h2 { font-size: clamp(2rem, 9vw, 2.7rem); margin-bottom: 4px; }
.result-hero .tagline { font-size: 0.98rem; color: var(--ink-soft); font-style: italic; margin-bottom: 16px; }
.score-badge {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #fff; border: 1px solid rgba(224,165,38,.35);
  border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-sm);
  font-weight: 700; color: var(--brown);
}
.score-badge b { font-family: var(--font-h); font-size: 1.5rem; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-size: 1.24rem; color: var(--brown-dark);
  margin: 30px 0 14px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(224,165,38,.5), transparent); }

/* pódio top 3 */
.podium { display: grid; gap: 10px; }
.podium-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--r); padding: 14px;
  border: 1px solid rgba(139,74,58,.12); box-shadow: var(--shadow-sm);
  animation: slideUp .6s cubic-bezier(.22,1,.36,1) both;
}
.podium-item .rank {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-h); font-weight: 700; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.podium-item:nth-child(2) .rank { background: linear-gradient(135deg, #c9b8a8, #9c8878); }
.podium-item:nth-child(3) .rank { background: linear-gradient(135deg, #c99a72, #a4714b); }
.podium-item .gift-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.podium-item .info { flex: 1; min-width: 0; }
.podium-item .info strong { display: block; font-size: 1rem; }
.podium-item .info small { color: var(--ink-soft); font-size: .78rem; }
.podium-item .pts { font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; color: var(--gold-dark); }

/* barras */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; }
.bar-row .gift-icon { width: 26px; height: 26px; }
.bar-body { min-width: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 8px; }
.bar-head strong { font-size: 0.9rem; font-weight: 700; }
.bar-head span { font-size: 0.76rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar-track { height: 11px; background: rgba(139, 74, 58, 0.1); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
  position: relative; overflow: hidden;
}
.bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(200%); } }
.bar-pct { font-family: var(--font-h); font-weight: 700; font-size: .95rem; color: var(--brown); min-width: 42px; text-align: right; }

/* detalhe do dom */
.gift-detail {
  background: #fff; border-radius: var(--r-lg); padding: 22px 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(224,165,38,.18);
  margin-bottom: 14px;
  animation: slideUp .6s cubic-bezier(.22,1,.36,1) both;
}
.gift-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.gift-detail-head .box {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--cream-2); flex: 0 0 auto;
}
.gift-detail-head .gift-icon { width: 34px; height: 34px; }
.gift-detail-head h3 { font-size: 1.4rem; }
.gift-detail-head small { color: var(--ink-soft); font-size: .82rem; font-style: italic; }
.gift-detail p { font-size: .95rem; color: var(--ink-soft); }
.marks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.marks li { display: flex; gap: 9px; font-size: .9rem; align-items: flex-start; }
.marks li::before {
  content: '✦'; color: var(--gold-dark); font-size: .8rem; line-height: 1.5; flex: 0 0 auto;
}
.verse {
  background: linear-gradient(135deg, rgba(224,165,38,.1), rgba(139,74,58,.06));
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 13px 15px; margin-bottom: 16px;
}
.verse i { font-family: var(--font-h); font-size: .95rem; color: var(--brown-dark); display: block; }
.verse b { display: block; margin-top: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.serve-title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brown-soft); margin-bottom: 8px; }
.serve-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.serve-tag {
  font-size: .8rem; font-weight: 600; color: var(--brown);
  background: var(--cream); border: 1px solid rgba(139,74,58,.16);
  border-radius: 999px; padding: 6px 13px;
}

.note {
  font-size: .84rem; color: var(--ink-soft); text-align: center;
  background: rgba(255,255,255,.66); border: 1px dashed rgba(139,74,58,.22);
  border-radius: var(--r); padding: 14px 16px; margin: 22px 0;
}

.actions { display: grid; gap: 10px; margin-top: 22px; }

.footer { text-align: center; padding: 28px 0 12px; color: var(--brown-soft); font-size: .78rem; }
.footer img { width: 74px; margin: 0 auto 10px; opacity: .8; }

/* confetes */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ---------------- Admin ---------------- */
.admin-wrap { max-width: 1080px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat {
  background: #fff; border-radius: var(--r); padding: 16px;
  border: 1px solid rgba(224,165,38,.2); box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-family: var(--font-h); font-size: 1.9rem; color: var(--brown-dark); line-height: 1.1; }
.stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brown-soft); font-weight: 700; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid rgba(139,74,58,.12); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 640px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(139,74,58,.08); white-space: nowrap; }
th { background: var(--cream-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brown); position: sticky; top: 0; }
tbody tr:hover { background: rgba(224,165,38,.06); }
td .tag { display: inline-block; background: var(--cream-2); border-radius: 999px; padding: 2px 10px; font-weight: 700; color: var(--brown-dark); font-size: .78rem; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.tab {
  flex: 0 0 auto; border: 1px solid rgba(139,74,58,.18); background: #fff;
  border-radius: 999px; padding: 9px 18px; font-size: .86rem; font-weight: 700;
  color: var(--brown); cursor: pointer; transition: .2s;
}
.tab.active { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(185,130,26,.3); }

.err { color: #b3261e; font-size: .85rem; margin-top: 8px; min-height: 1.2em; }

/* ---------------- Responsivo ---------------- */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .card, .result-hero, .gift-detail { padding: 28px 30px; }
  .gift-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gift-chip .gift-icon { width: 40px; height: 40px; }
  .gift-chip span { font-size: .8rem; }
  .opt { padding: 16px 18px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn.full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .wrap { max-width: 760px; }
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------- Impressão ---------------- */
@media print {
  body { background: #fff; }
  .no-print, .quiz-top, .confetti { display: none !important; }
  .screen { padding: 0; }
  .result-hero, .gift-detail, .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
