/* Who Said It? - the quote is the hero: a printed-page card with a big serif quotation mark. */
.qz { --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
.qz-dots { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 14px; }
.qz-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  border: 2px solid var(--line); color: var(--muted); background: var(--card); transition: background .2s, border-color .2s; }
.qz-dot.current { border-color: var(--accent); color: var(--accent); }
.qz-dot.right { background: var(--good); border-color: var(--good); color: #fff; }
.qz-dot.wrong { background: var(--bad); border-color: var(--bad); color: #fff; }

.qz-card { position: relative; margin: 0 0 16px; padding: 30px 22px 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.qz-card::before { content: "\201C"; position: absolute; top: -18px; left: 10px; font: 700 6.5rem/1 var(--serif, Georgia, serif);
  color: var(--accent); opacity: .18; pointer-events: none; }
.qz-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); transition: background .3s; }
.qz-card.good::after { background: var(--good); }
.qz-card.bad::after { background: var(--bad); }
.qz-quote { margin: 0; font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(1.15rem, 4.6vw, 1.42rem); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.qz-quote p { margin: 0; }
.qz-reveal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed var(--line); animation: qz-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.qz-who { font-weight: 800; font-size: 1.05rem; }
.qz-src { color: var(--muted); font-size: .92rem; }
.qz-learn { margin-left: auto; font-size: .92rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.qz-card.good .qz-quote, .qz-card.bad .qz-quote { animation: qz-settle .5s ease-out both; }

.qz-choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .qz-choices { grid-template-columns: 1fr 1fr; } }
.qz-choice { appearance: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; text-align: left; min-height: 56px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
  transition: border-color .15s, transform .1s, background .2s, opacity .2s; }
.qz-choice:hover:not(:disabled) { border-color: var(--accent); }
.qz-choice:active:not(:disabled) { transform: scale(.98); }
.qz-choice:disabled { cursor: default; }
.qz-key { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem;
  font-weight: 700; color: var(--muted); background: var(--tint); }
.qz-name { font-weight: 700; line-height: 1.25; }
.qz-years { font-size: .8rem; color: var(--muted); }
.qz-choice.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--card)); animation: qz-pop .35s ease-out; }
.qz-choice.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--card)); animation: qz-shake .35s ease-out; }
.qz-choice.right .qz-key { background: var(--good); color: #fff; }
.qz-choice.wrong .qz-key { background: var(--bad); color: #fff; }
.qz-choice.dim { opacity: .5; }
.qz-live { min-height: 1.5em; margin: 12px 0 0; text-align: center; font-weight: 600; }
.qz-next { display: flex; justify-content: center; margin-top: 6px; }
.qz-next .btn { min-width: 200px; animation: qz-rise .3s ease-out both; }

.result .big { font-variant-numeric: tabular-nums; color: var(--accent); }
.qz-verdict { margin: 0; font-weight: 600; }
.qz-line { font-size: 1.3rem; letter-spacing: .05em; margin: 8px 0; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.qz-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.result h3 { margin: 22px 0 8px; font-size: 1rem; text-align: left; }
.qz-recap { list-style: none; padding: 0; margin: 0; text-align: left; }
.qz-recap li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.qz-recap q { font-family: Georgia, "Times New Roman", serif; display: block; }
.qz-recap small { display: block; color: var(--muted); margin-top: 3px; }
.qz-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; }
.qz-recap .right .qz-mark { background: var(--good); }
.qz-recap .wrong .qz-mark { background: var(--bad); }

.qz-archive { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qz-archive a { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qz-archive a:hover { border-color: var(--accent); }
.qz-archive small { color: var(--muted); }
.qz-archive .done { margin-left: auto; color: var(--good); font-weight: 600; }

@keyframes qz-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes qz-pop { 50% { transform: scale(1.03); } }
@keyframes qz-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes qz-settle { from { opacity: .75; } to { opacity: 1; } }
