.quiz-view { padding-block: 22px 35px; }
.play-shell { width: min(100% - 32px, 716px); margin-inline: auto; }
.quiz-head { text-align: center; margin-bottom: 16px; }
.quiz-kicker { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.round-label {
  color: var(--accent); font-size: 14px; font-weight: 700;
  letter-spacing: .085em; text-transform: uppercase; line-height: 1.2;
}
.round-steps { display: flex; align-items: center; gap: 4px; width: min(100%, 183px); }
.round-steps span { flex: 1; height: 3px; background: var(--line); border-radius: 4px; }
.round-steps span[data-reached] { background: var(--accent); }
.quiz-head h1 {
  margin-top: 7px; font-size: clamp(39px, 6vw, 61px);
  line-height: .99; letter-spacing: -.045em;
}
.quiz-head h1:focus, .result-side h2:focus { outline: none; }
.quiz-deck { color: var(--muted); font-size: 16px; margin-top: 6px; }
.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.portrait-button {
  display: block; padding: 0; position: relative;
  width: 100%; aspect-ratio: 1.2; min-width: 0;
  border: 0; border-radius: 12px; background: var(--tint);
  overflow: hidden; isolation: isolate;
}
.portrait-button img { width: 100%; height: 100%; object-position: center 44%; }
.portrait-button::after {
  content: ""; position: absolute; inset: 0; border: 3px solid transparent;
  border-radius: inherit; pointer-events: none; transition: border-color .14s ease;
}
.portrait-button[aria-pressed="true"]::after { border-color: var(--accent); }
.portrait-button:focus-visible { outline-offset: 1px; z-index: 1; }
.portrait-button .pick-marker {
  position: absolute; display: grid; place-items: center;
  right: 7px; top: 7px; z-index: 1;
  width: 28px; height: 28px; border: 2px solid white; border-radius: 50%;
  color: white; background: var(--accent);
  visibility: hidden; opacity: 0; transform: scale(.72);
  transition: opacity .15s ease, transform .15s ease;
}
.portrait-button .pick-marker .icon { width: 16px; height: 16px; }
.portrait-button[aria-pressed="true"] .pick-marker,
.portrait-button[data-answer="true"] .pick-marker { visibility: visible; opacity: 1; transform: none; }
.portrait-button[data-answer="true"]::after { border-color: var(--accent); }
.portrait-button[data-answer="false"] { opacity: .63; }
.portrait-button[data-answer="false"]::after { border-color: transparent; }
.portrait-button[data-answer] { cursor: default; }
@media (hover: hover) {
  .portrait-button:not([data-answer]):hover::after { border-color: var(--accent); }
}
.play-actions {
  position: sticky; z-index: 2; bottom: 0;
  margin-top: 10px; padding: 11px 0 max(8px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(6px, 2vw, 14px); align-items: center;
  background: var(--background);
}
.play-actions .button { min-height: 46px; }
.play-actions .back-button { justify-self: start; }
.play-actions .next-button { justify-self: end; }
.pick-count { font-weight: 650; color: var(--muted); font-size: 14px; text-align: center; }
body[data-view="quiz"] .topbar-inner, body[data-view="challenge"] .topbar-inner { min-height: 54px; }
@media (max-width: 620px) {
  .quiz-view { padding-top: 17px; padding-bottom: 10px; }
  .play-shell { width: min(100% - 24px, 485px); }
  .portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .portrait-button { aspect-ratio: 1.07; border-radius: 9px; }
  .portrait-button .pick-marker { right: 4px; top: 4px; }
  .quiz-head { margin-bottom: 12px; }
  .play-actions { margin-top: 2px; }
  .play-actions .button { padding: 9px 11px; gap: 5px; font-size: 14px; }
  .play-actions .button .icon { width: 16px; height: 16px; }
}
@media (max-width: 365px) {
  .play-actions .next-button .icon { display: none; }
  .play-actions { grid-template-columns: auto 1fr auto; }
}
