:root {
  --bg: #f5fbf6;
  --panel: #ffffff;
  --text: #183223;
  --muted: #657468;
  --primary: #48a967;
  --primary-dark: #287b45;
  --primary-soft: #e6f6eb;
  --accent: #f2b84b;
  --border: #cfe4d5;
  --shadow: 0 20px 55px rgba(35, 101, 56, .14);
  --radius-lg: 26px;
  --radius-md: 15px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% 0, #fff 0, #f5fbf6 42rem);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.page-shell {
  width: min(760px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  background: var(--panel);
  border: 1px solid rgba(72,169,103,.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.quiz-panel { padding: 26px clamp(20px, 6vw, 54px) 38px; }
.quiz-header { text-align: center; }
.brand { display: inline-block; text-decoration: none; }
.brand-logo { display: block; width: min(310px, 78vw); max-height: 112px; object-fit: contain; }
.progress-wrapper { margin-top: 18px; }
.progress-meta { display:flex; justify-content:space-between; margin-bottom:8px; color:var(--muted); font-size:.8rem; font-weight:700; }
.progress-track, .analysis-track { height: 9px; overflow:hidden; background:#e4efe7; border-radius:999px; }
.progress-bar, .analysis-bar { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--primary),#7dcc91); border-radius:inherit; transition:width .25s linear; }
.quiz-content { padding-top: 34px; }
.screen { animation: enter .25s ease both; }
@keyframes enter { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.eyebrow { margin:0 0 12px; color:var(--primary-dark); text-transform:uppercase; letter-spacing:.12em; font-size:.76rem; font-weight:800; }
h1,h2 { margin:0; font-family:"Nunito",Arial,sans-serif; line-height:1.12; text-align:center; }
h1 { font-size:clamp(2rem,7vw,3.5rem); }
h2 { font-size:clamp(1.65rem,5vw,2.45rem); }
.friendly-title { color:var(--primary-dark); margin-bottom:12px; }
.lead,.question-intro { color:var(--muted); line-height:1.65; text-align:center; }
.lead { margin:18px auto 0; max-width:620px; }
.question-intro { margin:0 auto 20px; max-width:620px; font-weight:600; }
.notice { margin:24px auto 0; max-width:620px; display:flex; gap:12px; padding:16px 18px; background:var(--primary-soft); border-radius:14px; color:var(--muted); line-height:1.5; }
.news-card { margin:22px auto 30px; max-width:620px; overflow:hidden; border:1px solid var(--border); border-radius:18px; box-shadow:0 12px 30px rgba(33,80,46,.12); background:#fff; }
.news-card img { display:block; width:100%; max-height:390px; object-fit:cover; object-position:top; }
.news-card figcaption { padding:10px 14px; color:var(--muted); font-size:.82rem; text-align:center; }
.question-explanation { margin:14px auto 0; max-width:620px; color:var(--muted); text-align:center; line-height:1.5; }
.options { display:grid; gap:11px; margin-top:26px; }
.options-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.option-button { width:100%; min-height:62px; padding:12px 14px; display:grid; grid-template-columns:34px 1fr; align-items:center; gap:12px; color:var(--text); text-align:left; background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); cursor:pointer; transition:.18s ease; }
.option-button:hover { border-color:var(--primary); transform:translateY(-1px); }
.option-button.is-selected { color:#fff; background:linear-gradient(135deg,var(--primary-dark),var(--primary)); border-color:var(--primary-dark); box-shadow:0 8px 20px rgba(40,123,69,.22); }
.option-check { width:29px; height:29px; display:grid; place-items:center; border:1px solid #b9d4c0; border-radius:8px; background:#fff; color:var(--primary-dark); font-weight:900; }
.option-label { font-weight:600; line-height:1.35; }
.question-actions { margin-top:28px; display:flex; justify-content:space-between; gap:12px; }
.primary-button,.secondary-button { min-height:52px; padding:0 22px; border-radius:999px; font-weight:800; cursor:pointer; }
.primary-button { color:#fff; background:linear-gradient(135deg,var(--primary-dark),var(--primary)); border:0; box-shadow:0 10px 24px rgba(40,123,69,.22); }
.primary-button:hover { transform:translateY(-1px); }
.primary-button:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; transform:none; }
.secondary-button { color:var(--primary-dark); background:#fff; border:1px solid var(--border); }
.continue-button { min-width:180px; }
.start-screen { text-align:center; }
.start-screen .primary-button { margin-top:28px; }
.analysis-screen { text-align:center; padding:30px 0; }
.completion-icon { width:64px; height:64px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--primary); font-size:1.8rem; font-weight:900; }
.analysis-meta { margin:34px 0 9px; display:flex; justify-content:space-between; color:var(--muted); font-weight:700; }
.analysis-track { height:13px; }
.redirect-note { margin-top:18px; color:var(--muted); font-size:.9rem; }
.noscript-message { margin:30px; padding:18px; border:1px solid #a33; color:#a33; background:#fff; }
@media (max-width:640px){
  .page-shell{width:100%;min-height:100vh;margin:0;border:0;border-radius:0;box-shadow:none}
  .quiz-panel{padding:18px 17px 30px}
  .brand-logo{max-height:92px}
  .quiz-content{padding-top:26px}
  .options-grid{grid-template-columns:1fr}
  .news-card img{max-height:300px}
  .question-actions{align-items:stretch}
  .question-actions .primary-button{flex:1}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Seletores: rádio para escolha única, caixa para múltipla escolha */
.option-button.is-single .option-check {
  border-radius: 50%;
}

.option-button.is-single.is-selected .option-check {
  position: relative;
  color: transparent;
  border-color: #fff;
}

.option-button.is-single.is-selected .option-check::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary-dark);
  box-shadow: 0 0 0 4px #fff;
}

.option-button.is-multiple .option-check {
  border-radius: 8px;
}

/* Bloco de reportagens da última pergunta */
.news-section {
  margin: 4px auto 34px;
  text-align: center;
}

.news-section h3 {
  margin: 0;
  font-family: "Nunito", Arial, sans-serif;
  color: var(--muted);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

.news-hint {
  margin: 8px 0 18px;
  color: var(--primary-dark);
  font-size: .88rem;
  font-style: italic;
}

.news-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 520px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 0 7%;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.news-slide {
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(33, 80, 46, .1);
}

.news-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.news-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.news-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.news-dots span:first-child {
  background: var(--primary);
}


/* Ajuste visual dos seletores de escolha única */
.option-button.is-single .option-check {
  width: 28px;
  height: 28px;
  border: 2px solid #b9d4c0;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  box-shadow: none;
  position: relative;
}

.option-button.is-single.is-selected .option-check {
  border-color: #fff;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

.option-button.is-single.is-selected .option-check::after {
  content: "";
  position: absolute;
  inset: 6px;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

/* Carrossel de reportagens */
.news-carousel {
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  grid-auto-columns: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.news-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.news-slide {
  max-width: 430px;
}

.news-slide img {
  aspect-ratio: auto;
  max-height: 520px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.news-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.news-dots button:hover {
  transform: scale(1.25);
}

.news-dots button.is-active {
  background: var(--primary);
}

@media (max-width: 640px) {
  .news-carousel,
  .news-slide {
    max-width: 360px;
  }

  .news-slide img {
    max-height: 470px;
  }
}
