/* Player game — question and feedback (PDF pp. 22–24). */

/* Question (p.22) */
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.q-counter { font-weight: 700; font-size: 1rem; }
.timer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.timer { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--danger-strong); }
.timer-hint { color: var(--muted); font-size: 0.92rem; text-align: right; }
.q-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 6.6vw, 1.9rem); line-height: 1.18; letter-spacing: -0.015em; }
.options { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.option {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 64px; padding: 12px 16px; border-radius: var(--r-lg);
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast), opacity var(--t-med);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.option:hover:not(:disabled) { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.option:active:not(:disabled) { transform: scale(0.985); }
.opt-key {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 700;
  transition: background var(--t-fast), color var(--t-fast);
}
.opt-key svg { width: 18px; height: 18px; }
.opt-body { display: grid; gap: 2px; min-width: 0; }
.opt-tag { font-size: 0.85rem; font-weight: 700; }
.option.is-selected { border-color: var(--blue); background: var(--blue-soft); animation: pop 300ms var(--ease); }
.option.is-selected .opt-key { background: var(--blue); color: #fff; }
.option:disabled { cursor: default; color: inherit; }
.options.is-locked .option:not(.is-selected) { opacity: 0.55; }
.submit-status { min-height: 1.4em; color: var(--muted); font-size: 0.95rem; font-weight: 600; text-align: center; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.player-bar .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-bar .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar small { color: var(--muted); display: block; font-size: 0.9rem; }
.player-bar .score { text-align: right; flex: none; }
.player-bar .score strong { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Feedback (pp.23–24) */
.verdict {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); border: 2px solid;
  animation: pop 380ms var(--ease) both;
}
.verdict .v-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.verdict .v-icon svg { width: 24px; height: 24px; }
.verdict h2 { font-size: 1.9rem; }
.verdict p { font-size: 0.98rem; margin-top: 2px; }
.verdict.correct { background: var(--success-bg); border-color: var(--success-strong); color: var(--success); }
.verdict.correct .v-icon { background: var(--success-strong); }
.verdict.incorrect, .verdict.timeout { background: var(--danger-bg); border-color: var(--danger-strong); color: var(--danger); }
.verdict.incorrect .v-icon, .verdict.timeout .v-icon { background: var(--danger-strong); }
.fb-question { font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.option.fb { min-height: 56px; padding: 10px 14px; }
.option.fb.is-dim { background: var(--surface-dim); border-color: var(--line); color: var(--muted); }
.option.fb.is-correct { background: var(--success-bg); border-color: var(--success-strong); color: var(--navy); }
.option.fb.is-correct .opt-key { background: var(--success-strong); color: #fff; }
.option.fb.is-correct .opt-tag { color: var(--success); }
.option.fb.is-wrong { background: var(--danger-bg); border-color: var(--danger-strong); color: var(--navy); }
.option.fb.is-wrong .opt-key { background: var(--danger-strong); color: #fff; }
.option.fb.is-wrong .opt-tag { color: var(--danger); }
.why { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 6px; }
.why h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.14em; color: var(--blue); font-weight: 700; }
.why p { font-size: 1.05rem; line-height: 1.45; }
.fb-foot { display: grid; gap: 12px; }
.fb-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fb-rank { display: flex; align-items: baseline; gap: 12px; }
.fb-rank .big { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-total { font-weight: 700; color: var(--muted); }
.next-in { color: var(--muted); font-size: 0.95rem; }
.points-pop { display: inline-block; animation: points-up 700ms var(--ease) both; }
@keyframes points-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
