/* Load after quiz.css and quiz-compact.css. Layout and motion preferences stay intact. */
:root {
  --arcade-navy: #17314f;
  --arcade-blue: #2468c9;
  --arcade-red: #c93640;
  --arcade-gold: #f8be43;
  --arcade-green: #238366;
  --arcade-white: #fffaf0;
  --arcade-muted: #4c6174;
  --ink: var(--arcade-navy);
  --muted: var(--arcade-muted);
  --paper: var(--arcade-white);
  --line: #8494a1;
  --purple: var(--arcade-blue);
}

body, button, h1, h2, h3 { font-family: var(--sans); }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--arcade-navy);
  outline-offset: 4px;
}

/* Arrow, step number and check communicate progress without relying on hue. */
.passport {
  background: #f1f5ed;
  border-bottom: 2px solid var(--arcade-navy);
}
.progress-row { padding-top: 11px; }
.stamp-stop, .stamp-stop.collected { color: var(--arcade-navy); }
.stamp-stop b { color: var(--arcade-navy); font-size: 12px; font-weight: 700; }
.stamp-stop:not(:last-child)::after { background: #8494a1; }
.stamp {
  background: var(--arcade-white);
  border: 2px solid #61798e;
  box-shadow: 3px 3px 0 #b5c2cc;
  color: #61798e;
}
.stamp > svg { opacity: 1; }
.stamp-stop.collected .stamp {
  background: var(--arcade-green);
  border: 2px solid var(--arcade-navy);
  box-shadow: 3px 3px 0 #a9c9b5;
  color: #fff;
}
.stamp-stop.current:not(.collected) .stamp,
.stamp-stop.current.collected .stamp {
  background: var(--arcade-red);
  border: 2px solid var(--arcade-navy);
  box-shadow: 3px 3px 0 #ddb0a9;
  color: #fff;
}
.stamp-stop.current::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 12px;
  height: 8px;
  transform: translateX(-50%);
  background: var(--arcade-red);
  clip-path: polygon(0 0, 100% 0, 100% 25%, 75% 25%, 75% 50%, 62.5% 50%, 62.5% 75%, 50% 100%, 37.5% 75%, 37.5% 50%, 25% 50%, 25% 25%, 0 25%);
}
.stamp-stop.collected .stamp i {
  width: 17px;
  height: 17px;
  right: -6px;
  bottom: -5px;
  background: var(--arcade-green);
  border: 2px solid var(--arcade-white);
  box-shadow: 1px 1px 0 var(--arcade-navy);
}
.stamp-stop.collected .stamp i::after {
  left: 4px;
  top: 2px;
  width: 4px;
  height: 6px;
  border-color: #fff;
  border-width: 0 2px 2px 0;
}
#completion-count { color: var(--arcade-navy); font-weight: 750; }
.progress-track {
  height: 12px;
  border: 2px solid var(--arcade-navy);
  padding: 1px;
  background: var(--arcade-white);
  box-shadow: 2px 2px 0 #b5c2cc;
}
.progress-track > span { background: var(--arcade-green); }

/* Blue is reserved for a chosen answer; the filled check is an extra cue. */
.option {
  background: var(--arcade-white);
  color: var(--arcade-navy);
  border: 2px solid #61798e;
  border-radius: 0;
  box-shadow: 0 3px 0 #b5c2cc;
}
.option:hover {
  background: #edf4ff;
  border-color: var(--arcade-blue);
  box-shadow: 0 5px 0 #a9bdd5;
}
.option:active { box-shadow: 0 1px 0 #a9bdd5; }
.option.selected {
  background: var(--arcade-blue);
  color: #fff;
  border: 2px solid var(--arcade-navy);
  box-shadow: 0 3px 0 var(--arcade-navy);
}
.option.selected:hover { background: #1d5db8; box-shadow: 0 5px 0 var(--arcade-navy); }
.option.selected:active { box-shadow: 0 1px 0 var(--arcade-navy); }
.option strong { font-weight: 700; }
.option-check, .body-options .option-check {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #61798e;
}
.option-check svg, .body-options .option-check svg { width: 10px; height: 10px; }
.selected .option-check {
  background: var(--arcade-gold);
  border-color: var(--arcade-gold);
  color: var(--arcade-navy);
}
.option .body-icon { color: var(--arcade-blue); }
.option.selected .body-icon, .option.selected small { color: #fff; }

/* Gold stays on actions and the recommendation seal, with dark readable type. */
.question-nav { border-top: 2px dashed #8494a1; }
.next-button, .call-button {
  background: var(--arcade-gold);
  color: var(--arcade-navy);
  border: 2px solid var(--arcade-navy);
  border-radius: 0;
  box-shadow: 0 4px 0 var(--arcade-navy);
  font-weight: 750;
}
.next-button:hover:not(:disabled), .call-button:hover {
  background: #ffca5b;
  box-shadow: 0 6px 0 var(--arcade-navy);
}
.next-button:active:not(:disabled), .call-button:active { box-shadow: 0 1px 0 var(--arcade-navy); }
.next-button:disabled {
  opacity: 1;
  background: #e0e5e8;
  color: #536677;
  border-color: #8494a1;
  box-shadow: 0 3px 0 #b5c2cc;
}
.result-seal {
  background: var(--arcade-gold);
  color: var(--arcade-navy);
  border: 2px solid var(--arcade-navy);
  box-shadow: 4px 4px 0 #c49332;
}
.reward-card, .result-offer {
  background: #fff6db;
  border-color: #8c7545;
}
.reward-card { border-left: 4px solid var(--arcade-green); }
.reward-card > img, .result-offer > img { border-color: #8c7545; }
.reward-card figcaption,
.question-top, .early-call, .question-subtitle, .option small,
.reward-card p, .reward-card small, .back-button, .remaining,
.result-kicker, .result-reason, .result-reason strong, .offer-kicker,
.result-offer p, .offer-price > span, .care-note,
.result-booking > p, .result-booking small, .result-actions button {
  color: var(--arcade-muted);
}
.option.selected small { color: #fff; }
.result-booking strong, .offer-price strong { color: var(--arcade-navy); }
.care-note { background: #fff1d9; border-left-color: var(--arcade-red); }
.burst-pixel:nth-child(4n + 1) { background: var(--arcade-red); }
.burst-pixel:nth-child(4n + 2) { background: var(--arcade-blue); }
.burst-pixel:nth-child(4n + 3) { background: var(--arcade-gold); }
.burst-pixel:nth-child(4n) { background: var(--arcade-green); }

@media (max-width: 620px) {
  .progress-track { height: 11px; }
  .stamp, .stamp-stop.collected .stamp,
  .stamp-stop.current:not(.collected) .stamp,
  .stamp-stop.current.collected .stamp { box-shadow: 2px 2px 0 var(--arcade-navy); }
  .option-text { padding-right: 19px; }
  .body-options .option-text { padding-right: 0; }
  .body-options .option-check { top: 5px; right: 5px; width: 14px; height: 14px; }
}
