:root{
  --dq-accent:#b00000;
  --dq-accent-dark:#850000;
  --dq-text:#202020;
  --dq-muted:#666;
  --dq-border:#d8d8d8;
  --dq-bg:#ffffff;
  --dq-soft:#f7f7f7;
  --dq-ok:#237a3b;
  --dq-ok-bg:#eef8f1;
  --dq-bad:#a21b1b;
  --dq-bad-bg:#fff0f0;
}
.dq-wrap{
  max-width:760px;
  margin:0 auto;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--dq-text);
}
.dq-card{
  box-sizing:border-box;
  border:1px solid var(--dq-border);
  border-radius:10px;
  background:var(--dq-bg);
  padding:22px;
}
.dq-brand{
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--dq-accent);
  margin-bottom:7px;
}
.dq-title{
  font-size:30px;
  line-height:1.15;
  margin:0 0 5px;
}
.dq-sub{
  margin:0 0 6px;
  color:var(--dq-muted);
  font-size:15px;
}
.dq-date{
  color:#777;
  font-size:14px;
  margin-bottom:22px;
}
.dq-progress{
  color:#6b6b6b;
  font-size:14px;
  margin-bottom:8px;
}
.dq-question{
  font-size:22px;
  line-height:1.35;
  font-weight:700;
  margin:0 0 17px;
}
.dq-answers{
  display:grid;
  gap:10px;
}
.dq-answer{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  text-align:left;
  background:#fff;
  border:1px solid #ccc;
  border-radius:8px;
  padding:12px 14px;
  font-size:16px;
  line-height:1.35;
  cursor:pointer;
}
.dq-answer:hover:not(:disabled){
  border-color:var(--dq-accent);
  background:#fff8f8;
}
.dq-answer:disabled{cursor:default}
.dq-answer.is-correct{
  border-color:var(--dq-ok);
  background:var(--dq-ok-bg);
}
.dq-answer.is-wrong{
  border-color:var(--dq-bad);
  background:var(--dq-bad-bg);
}
.dq-answer:focus-visible,
.dq-button:focus-visible,
.dq-link:focus-visible{
  outline:3px solid rgba(176,0,0,.24);
  outline-offset:2px;
}
.dq-feedback{
  display:none;
  margin-top:18px;
  padding:15px 16px;
  background:var(--dq-soft);
  border-left:4px solid var(--dq-accent);
  line-height:1.5;
}
.dq-feedback strong{
  display:block;
  margin-bottom:5px;
}
.dq-link{
  display:inline-block;
  margin-top:10px;
  color:#990000;
  font-weight:700;
  text-decoration:none;
}
.dq-link:hover{text-decoration:underline}
.dq-controls{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px;
  margin-top:18px;
}
.dq-button{
  border:0;
  border-radius:8px;
  background:var(--dq-accent);
  color:#fff;
  padding:11px 17px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}
.dq-button:hover{background:var(--dq-accent-dark)}
.dq-button.secondary{
  background:#fff;
  color:var(--dq-accent);
  border:1px solid var(--dq-accent);
}
.dq-button.secondary:hover{background:#fff8f8}
.dq-button:disabled{
  opacity:.45;
  cursor:default;
}
.dq-result{
  display:none;
  text-align:center;
}
.dq-score{
  font-size:42px;
  font-weight:700;
  color:var(--dq-accent);
  margin:7px 0 10px;
}
.dq-result-text{
  font-size:18px;
  line-height:1.45;
  margin:0 auto;
  max-width:590px;
}
.dq-result-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:20px;
}
.dq-mode-note{
  margin:0 0 17px;
  padding:10px 12px;
  border-radius:7px;
  background:#f3f3f3;
  color:#555;
  font-size:14px;
}
.dq-free-count{
  color:#777;
  font-size:13px;
  margin-top:14px;
}
.dq-home{
  box-sizing:border-box;
  border:1px solid var(--dq-border);
  border-radius:9px;
  background:#fff;
  padding:17px 18px;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--dq-text);
}
.dq-home-title{
  font-size:21px;
  font-weight:700;
  margin:0 0 3px;
}
.dq-home-date{
  font-size:13px;
  color:#777;
  margin-bottom:10px;
}
.dq-home-question{
  font-size:18px;
  font-weight:700;
  line-height:1.35;
  margin:0 0 9px;
}
.dq-home-copy{
  font-size:15px;
  margin:0 0 12px;
}
.dq-home-link{
  display:inline-block;
  background:var(--dq-accent);
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
  border-radius:7px;
  padding:9px 13px;
}
.dq-error{
  padding:14px;
  border:1px solid #d9a3a3;
  background:#fff5f5;
  border-radius:8px;
}
@media(max-width:600px){
  .dq-card{padding:17px}
  .dq-title{font-size:26px}
  .dq-question{font-size:20px}
  .dq-answer{font-size:16px}
  .dq-controls{justify-content:stretch}
  .dq-controls .dq-button{flex:1 1 auto}
}
