:root{
  --card-bg:#fff;
  --text:#111;
  --muted:#444;
  --border:#e6e6e6;
  --primary:#111;
  --shadow: 0 8px 18px rgba(0,0,0,0.08);
  --radius:14px;
}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#f5f5f5;
  margin:0;
  padding:20px 12px;
  color:var(--text);
}
.quiz-card{
  max-width: 860px;
  margin: 18px auto;
  background: var(--card-bg);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
h2{ margin:0 0 8px 0; font-size: 26px; line-height:1.2; }
p{ margin: 8px 0; color: var(--muted); line-height:1.55; }
.small{ font-size: 13px; color:#555; }
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
button{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  background:#fafafa;
}
button:hover{ background:#f0f0f0; }
button:disabled{ opacity:.55; cursor:not-allowed; }
.primary{
  background: var(--primary);
  color:#fff;
  border-color: var(--primary);
}
.primary:hover{ background:#000; }
.linkbtn{
  border:none;
  background:transparent;
  text-decoration: underline;
  padding:0;
}
.answers{ display:grid; gap:10px; margin-top:10px; }
.answer{
  display:block;
  padding:12px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  cursor:pointer;
  line-height:1.35;
  text-align:left;
}
.answer:hover{ border-color:#111; }
.answer[aria-pressed="true"]{ border-color:#111; box-shadow: inset 0 0 0 1px #111; }
.progress{
  height: 10px;
  background:#eee;
  border-radius:999px;
  overflow:hidden;
  margin: 6px 0 10px 0;
}
.progress-bar{
  height:100%;
  width:0%;
  background:#111;
  transition: width 0.25s ease;
}
.meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:#333;
}
.box{
  border:1px solid #eee;
  background:#fcfcfc;
  border-radius:14px;
  padding:14px;
  margin-top:12px;
}
.badge{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  background:#111;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 760px){
  .grid2{ grid-template-columns: 1fr; }
}
.bar-row{
  display:grid;
  grid-template-columns: 190px 1fr 52px;
  gap:10px;
  align-items:center;
  margin: 10px 0;
}
@media (max-width: 560px){
  .bar-row{ grid-template-columns: 1fr; }
}
.bar{ height:10px; background:#eee; border-radius:999px; overflow:hidden; }
.bar-fill{ height:100%; width:0%; background:#111; transition: width .3s ease; }
.num{ text-align:right; font-size:13px; color:#222; }
@media (max-width: 560px){
  .num{ text-align:left; }
}
.cta{
  border: 1px dashed #ddd;
  border-radius:14px;
  padding:14px;
  margin-top:14px;
}
.cta a{ font-weight:800; color:#111; text-decoration: underline; }
