/* Quoted */
.gm-quoted { max-width: 680px; margin: 0 auto; }

.qt-pips { list-style: none; display: flex; gap: 8px; margin: 0 0 22px; padding: 0; scroll-margin-top: 16px; }
.qt-pip { flex: 1 1 0; height: 34px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--faint);
  border-radius: 5px; font-weight: 800; font-size: 15px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.qt-pip.now { border: 2px solid var(--ink); color: var(--ink); }
.qt-pip.hit { border: 2px solid var(--cite); background: var(--cite); color: #fff; }
.qt-pip.miss { border: 2px solid var(--ink); color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--paper) 0 5px, var(--rail) 5px 10px); }

.qt-k { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.qt-k span { color: var(--ink); }

.qt-quote { margin: 0 0 22px; padding: 20px 22px 22px 26px; border-left: 6px solid var(--ink); background: var(--wash); border-radius: 0 10px 10px 0; }
.qt-quote p { margin: 0; font-size: clamp(20px, 3.4vw, 25px); line-height: 1.38; font-weight: 600; letter-spacing: -.005em; text-wrap: pretty; }
.qt-mark { color: var(--cite); font-weight: 800; }
.qt-quote.fresh { animation: qt-in .4s var(--ease); }

.qt-ask { margin: 0 0 10px; font-size: 18px; font-weight: 800; }

.qt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qt-opt { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; text-align: left;
  min-height: 88px; padding: 10px 12px 10px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink);
  font: inherit; cursor: pointer; transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.qt-opt:hover:not([disabled]) { background: var(--wash); transform: translateY(-1px); box-shadow: 3px 3px 0 var(--ink); }
.qt-opt:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }
.qt-opt[disabled] { cursor: default; }
.qt-key { position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 700; color: var(--quiet); }
.qt-face { width: 56px; height: 68px; border-radius: 4px; object-fit: cover; object-position: 50% 20%; background: var(--rail); display: block; }
.qt-mono { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--quiet); border: 1px solid var(--faint); }
.qt-who { display: flex; flex-direction: column; min-width: 0; gap: 1px; padding-right: 10px; }
.qt-name { font-size: 17px; line-height: 1.2; font-weight: 800; }
.qt-role { font-size: 14px; line-height: 1.25; color: #333; }
.qt-party { font-size: 13px; color: var(--quiet); font-weight: 600; }
.qt-tag:empty { display: none; }
.qt-tag { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; }

.qt-opt.right { border-color: var(--cite); background: #EEF2FC; box-shadow: inset 0 0 0 1px var(--cite); }
.qt-opt.right .qt-tag { background: var(--cite); color: #fff; }
.qt-opt.right .qt-tag::before { content: "✓ "; }
.qt-opt.wrong { background: repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--wash) 7px 14px); }
.qt-opt.wrong .qt-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.qt-opt.wrong .qt-tag { background: var(--ink); color: #fff; }
.qt-opt.wrong .qt-tag::before { content: "× "; }
.qt-opt.off { border-color: var(--faint); opacity: .55; }
.qt-opt.right .qt-key, .qt-opt.wrong .qt-key, .qt-opt.off .qt-key { visibility: hidden; }
.qt-opt.pop { animation: qt-pop .45s var(--ease); }
.qt-opt.shake { animation: qt-shake .35s; }

.qt-reveal:empty { display: none; }
.qt-reveal { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.qt-reveal.fresh { animation: qt-in .35s var(--ease); }
.qt-verdict { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.qt-verdict span { font-weight: 600; }
.qt-verdict.ok { color: var(--cite); }
.qt-verdict.ok span { color: var(--ink); }
.qt-src { border: 1px solid var(--faint); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
.qt-src p { margin: 0; }
.qt-src-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin-bottom: 2px !important; }
.qt-src-o { font-size: 15px; }
.qt-said { font-size: 15px; color: #333; margin-top: 2px !important; }
.qt-link { margin-top: 6px !important; font-size: 15px; overflow-wrap: anywhere; }
.qt-link a { color: var(--cite); font-weight: 600; }
.qt-cr { margin-top: 8px !important; font-size: 12px; color: var(--quiet); }
.qt-next { display: flex; justify-content: center; margin-top: 18px; }
.qt-next .gm-btn { min-width: 200px; }

.qt-final { text-align: center; margin-bottom: 14px; }
.qt-final .qt-k { justify-content: center; margin-bottom: 0; }
.qt-big { margin: 0; font-size: clamp(44px, 10vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.qt-sum { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.qt-sum.fresh li { animation: qt-in .4s var(--ease) both; }
.qt-sum.fresh li:nth-child(2) { animation-delay: .05s; }
.qt-sum.fresh li:nth-child(3) { animation-delay: .1s; }
.qt-sum.fresh li:nth-child(4) { animation-delay: .15s; }
.qt-sum.fresh li:nth-child(5) { animation-delay: .2s; }
.qt-sum li { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rail); }
.qt-sum-m { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-weight: 800; margin-top: 2px; }
.qt-sum .hit .qt-sum-m { background: var(--cite); color: #fff; }
.qt-sum .miss .qt-sum-m { border: 2px solid var(--ink); background: repeating-linear-gradient(135deg, var(--paper) 0 4px, var(--rail) 4px 8px); }
.qt-sum-f { width: 44px; height: 54px; border-radius: 4px; object-fit: cover; object-position: 50% 20%; background: var(--rail); display: block; }
.qt-sum-f.qt-mono { font-size: 15px; }
.qt-sum p { margin: 0; }
.qt-sum-q { font-weight: 600; line-height: 1.35; }
.qt-sum-w { font-size: 14px; color: #333; margin-top: 4px !important; }
.qt-sum-s { font-size: 13px; color: var(--quiet); margin-top: 2px !important; }
.qt-sum-s a { color: var(--cite); }

.qt-dlg .qt-row { display: flex; gap: 6px; margin-bottom: 14px; }
.qt-dlg .qt-row span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-weight: 800; }
.qt-dlg .qt-row .hit { background: var(--cite); color: #fff; }
.qt-dlg .qt-row .miss { border: 2px solid var(--ink); background: repeating-linear-gradient(135deg, var(--paper) 0 4px, var(--rail) 4px 8px); }

@keyframes qt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes qt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes qt-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 600px) {
  .qt-opts { grid-template-columns: 1fr; gap: 8px; }
  .qt-opt { min-height: 76px; grid-template-columns: 48px minmax(0, 1fr); }
  .qt-face { width: 48px; height: 58px; }
  .qt-quote { padding: 16px 16px 18px 18px; border-left-width: 5px; }
  .qt-pip { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-quote.fresh, .qt-reveal.fresh, .qt-opt.pop, .qt-opt.shake, .qt-sum.fresh li { animation: none; }
  .qt-opt { transition: none; }
  .qt-opt:hover:not([disabled]) { transform: none; }
}
