.quiz-card, .result-card, .test-picker { scroll-margin-top: 170px; }
.quiz-card { overflow: hidden; }
.swipe-help { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: #bfb1b8; font: 700 .875rem/1.4 Arial, sans-serif; }
.swipe-help .no { color: #ff8da2; }
.swipe-help .yes { color: #7ce5ab; text-align: right; }
.swipe-help .maybe { grid-column: 1 / -1; text-align: center; color: #efc778; }
.swipe-stage { display: grid; place-items: center; min-height: 285px; padding: 18px 0; }
.swipe-card { position: relative; width: min(100%, 650px); min-height: 230px; padding: 60px 34px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #281820, #151115); border: 1px solid #694052; border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); touch-action: pinch-zoom; user-select: none; cursor: grab; transition: transform .28s ease, opacity .28s ease; }
.swipe-card.dragging { cursor: grabbing; transition: none; }
.swipe-card h2 { font: 600 clamp(1.5rem, 3vw, 2.375rem)/1.25 Impact,"Arial Narrow", sans-serif; color: #fff; margin: 0; text-align: center; overflow-wrap: anywhere; }
.swipe-card p { text-align: center; color: #c5b6bf; margin: 18px 0 0; font-size: .875rem; }
.swipe-stamp { position: absolute; padding: 6px 9px; border: 2px solid; border-radius: 4px; background: #20151b; font: 800 1.125rem/1.25 Arial, sans-serif; letter-spacing: .04em; opacity: 0; pointer-events: none; }
.stamp-no { left: 18px; top: 16px; color: #ff8da2; transform: rotate(-7deg); }
.stamp-yes { right: 18px; top: 16px; color: #7ce5ab; transform: rotate(7deg); }
.stamp-maybe { left: 50%; bottom: 16px; color: #efc778; transform: translateX(-50%); font-size: .875rem; }
.swipe-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7.4rem, 1.4fr) minmax(0, 1fr); gap: 8px; max-width: 470px; margin: 12px auto 0; }
.swipe-button { min-width: 0; min-height: 82px; padding: 12px 3px; border-radius: 8px; background: #171217; border: 1px solid currentColor; cursor: pointer; font: 700 .875rem/1.3 Arial, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: background .16s, transform .16s; }
.swipe-button .answer-icon { font-size: 1.625rem; line-height: 1; }
.swipe-button.no { color: #ff8da2; }
.swipe-button.yes { color: #7ce5ab; }
.swipe-button.maybe { color: #efc778; }
.swipe-button[aria-pressed="true"] { background: #34222c; border-width: 2px; }
.swipe-button[aria-disabled="true"] { opacity: .65; cursor: default; }
.swipe-button:hover { background: #251820; }
.swipe-button:focus-visible, .swipe-card:focus-visible, .quiz-card .btn:focus-visible, .quiz-card .text-button:focus-visible { outline: 3px solid #f7f2ed; outline-offset: 3px; }
.previous-answer, .scoring-note { color: #bfb1b8; font-size: .875rem; }
.previous-answer { text-align: center; margin: 16px 0 0; }
.previous-answer:empty { display: none; }
.quiz-card .quiz-actions { justify-content: flex-start; margin-top: 22px; }
.quiz-card .btn { background: #171217; color: #f7f2ed; font-size: .875rem; cursor: pointer; }
.quiz-card .btn:disabled { cursor: not-allowed; }
.quiz-card .text-button, .quiz-top { font-size: .875rem; }
@media (max-width: 540px) { .swipe-stage { min-height: 250px; padding: 16px 0; } .swipe-card { min-height: 215px; padding: 56px 16px; } .quiz-card .quiz-header { padding-bottom: 16px; margin-bottom: 18px; gap: 12px; } .quiz-card .progress { margin-bottom: 22px; } }
@media (max-width: 360px) { .swipe-buttons { grid-template-columns: 1fr 1fr; } .swipe-button.maybe { grid-column: 1 / -1; grid-row: 2; min-height: 68px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .swipe-card, .swipe-button, .progress span { transition: none; } }

.score-track { display: flex; }
.score-track .score-open { background: #d2a24e; }
.score-detail { color: #c5b6bf; font-size: .875rem; margin: 8px 0 0; }
.role-card .percent { position: static; display: block; margin-bottom: 10px; }
.role-card h3 { margin-right: 0; }
.role-card .score-detail { margin-top: 12px; }
