.quiz { max-width: 560px; margin: 0 auto; }
.quiz-head { position: relative; background: var(--bg); padding: 8px 0 12px; z-index: 3; }
.quiz-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.quiz-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.quiz-count { margin-top: 6px; min-height: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.step[hidden] { display: none; }
.step h2 { font-size: 19px; margin-bottom: 14px; }
.vhead { margin: -4px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vnum { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vname { font-size: 26px; font-weight: 800; line-height: 1.2; margin-top: 2px; word-break: break-word; }
.vname span { font-size: 15px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.vhead + h2 { font-size: 17px; }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { margin: 0; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 13px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--input); color: var(--text); font-size: 15px; text-align: center; user-select: none;
}
.choice span small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.tz-choices { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tz-choices .choice span { padding: 9px 8px; }
.tz-other[hidden] { display: none; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); }
.fields.two, .troops.two { grid-template-columns: 1fr 1fr; }
.troops.two .u label { white-space: normal; overflow: visible; }
.smithy-levels[hidden] { display: none; }
.paste-box { margin-bottom: 12px; }
.paste-box summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.paste-box textarea { margin-top: 8px; }
.quiz-nav {
  position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center;
  padding: 12px 0; background: var(--bg); margin-top: 8px;
}
.quiz-nav .btn { padding: 11px 18px; }
.quiz-nav .btn[hidden] { display: none; }
.quiz input[type=number], .quiz input[type=text], .quiz select { font-size: 16px; } /* no zoom on iOS */
.update-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
