.quiz { width: min(100% - 48px, 1280px); margin: 0 auto; padding: calc(var(--bar) + 24px) 0 32px; display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; min-height: 100svh; align-items: start; }
.quiz[hidden] { display: none; }
.quiz__card { background: var(--surface); border-radius: var(--r); overflow: hidden; animation: rise .45s cubic-bezier(.2,.9,.25,1); }
.quiz__card.is-swap { animation: none; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.quiz__media { aspect-ratio: 16 / 6.4; background: var(--surface-2); position: relative; overflow: hidden; }
.quiz__media img { width: 100%; height: 100%; object-fit: cover; }
.quiz__word { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow: hidden;
  background: radial-gradient(90% 140% at 15% 0%, #33373c 0%, var(--surface-2) 55%, #26292c 100%); }
.quiz__word span { position: relative; font: 400 clamp(56px, 9vw, 136px)/1 var(--font-display); letter-spacing: -.05em; color: var(--ink); }
.quiz__word span::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -14px; height: 6px; border-radius: 3px; background: var(--accent); }
.quiz__body { padding: 28px; display: grid; gap: 18px; justify-items: start; }
.quiz__q { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.25 var(--font-display); letter-spacing: -.02em; max-width: 34ch; }
.options { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { min-height: 56px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left;
  font: 500 17px/1.2 var(--font-text); cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: transform .15s cubic-bezier(.2,.8,.2,1), background-color .2s, border-color .2s; }
.opt:hover:not([disabled]) { transform: translateY(-2px); border-color: rgba(239,240,241,.4); }
.opt:active:not([disabled]) { transform: translateY(0) scale(.98); }
.opt kbd { font: 500 12px/1 var(--font-text); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.opt[disabled] { cursor: default; }
.opt.is-right { background: var(--good); border-color: var(--good); color: #0f2a1d; animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.opt.is-right kbd { color: inherit; border-color: rgba(0,0,0,.25); }
.opt.is-wrong { background: #3a2422; border-color: var(--bad); color: #ffd6d1; animation: shake .35s; }
.opt.is-dim { opacity: .45; }
@keyframes pop { 50% { transform: scale(1.04); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.reveal { width: 100%; display: grid; gap: 12px; justify-items: start; padding-top: 6px; border-top: 1px solid var(--line); animation: rise .35s; }
.reveal[hidden] { display: none; }
.reveal__head { margin: 10px 0 0; font: 400 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.reveal__head b { font-weight: 500; color: var(--accent); }
.reveal__fact { margin: 0; font-size: 17px; line-height: 1.55; max-width: 60ch; }

.quiz__side { display: grid; gap: 16px; position: sticky; top: calc(var(--bar) + 24px); }
.quiz__map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--ocean); }
.quiz__map .mapbox { position: absolute; inset: 0; }
.quiz__map .wm { cursor: grab; }
.quiz__where { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--bg); font: 500 15px/1.2 var(--font-text); animation: rise .3s; }
.trip { background: var(--surface); border-radius: var(--r); padding: 20px; min-height: 172px; }
.trip__k { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.trip__stamps { display: flex; flex-wrap: wrap; gap: 10px; }

/* stamps */
.stamp { --c: var(--accent); width: 104px; height: 104px; display: grid; place-items: center; text-align: center; padding: 10px;
  border: 2px solid var(--c); color: var(--c); border-radius: 50%; transform: rotate(var(--rot, -6deg));
  font: 500 11px/1.15 var(--font-text); position: relative; }
.stamp::before { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--c); border-radius: inherit; opacity: .7; }
.stamp b { display: block; font: 500 13px/1.1 var(--font-display); letter-spacing: -.01em; margin: 4px 0; }
.stamp--rect { border-radius: 10px; width: 120px; height: 92px; }
.stamp--ink { --c: var(--ink); }
.stamp--good { --c: var(--good); }
.stamp--mid { --c: var(--mid); }
.stamp.is-new { animation: thump .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes thump { from { transform: rotate(var(--rot)) scale(1.8); opacity: 0; } }
.trip .stamp { width: 76px; height: 76px; font-size: 9.5px; padding: 6px; }
.trip .stamp b { font-size: 11px; margin: 2px 0; }
.trip .stamp--rect { width: 88px; height: 68px; }

.end { width: min(100%, 960px); display: grid; gap: 32px; }
.end__head { display: grid; gap: 12px; justify-items: start; }
.end__head p { margin: 0; font-size: 18px; }
.end__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.book { background: #efe6d2; color: #2a2620; border-radius: var(--r); padding: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 18px; justify-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); position: relative; }
.book::after { content: ""; position: absolute; top: 16px; bottom: 16px; left: 50%; width: 1px; background: rgba(42,38,32,.12); }
.book .stamp { --c: #c2381a; }
.book .stamp--ink { --c: #2a2620; }
.book .stamp--good { --c: #1d7a52; }
.book .stamp--mid { --c: #8a5a00; }
.book__empty { grid-column: 1 / -1; align-self: center; font-size: 17px; }

@media (max-width: 960px) {
  .quiz { grid-template-columns: 1fr; width: min(100% - 24px, 720px); padding-top: calc(var(--bar) + 12px); gap: 12px; }
  .quiz__side { position: static; grid-template-columns: 1fr; }
  .quiz__map { aspect-ratio: 16 / 9; }
  .trip { display: none; }
  .quiz__media { aspect-ratio: 16 / 9; }
  .quiz__body { padding: 20px; gap: 14px; }
  .options { grid-template-columns: 1fr; }
  .opt kbd { display: none; }
  .book { padding: 20px; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .book .stamp { width: 96px; height: 96px; }
  .book .stamp--rect { width: 108px; height: 84px; }
  .book::after { display: none; }
  .end__actions .btn { flex: 1; }
}
