/* deadly-quiz — наследует sf-* от ../spyfall/style.css. Здесь только dq-* */

/* Color theme: тёмно-розовый + неон-зелёный + чёрный */
:root {
  --dq-pink: oklch(60% 0.25 350);
  --dq-neon: oklch(85% 0.30 145);
  --dq-blood: oklch(55% 0.25 25);
  --dq-dark: oklch(20% 0.03 350);
}

/* ─── Round bar ─── */
.dq-round-bar {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.dq-round-bar strong {
  color: var(--dq-pink);
  font-size: 18px;
}

/* ─── Question card ─── */
.dq-question-card {
  background: linear-gradient(135deg, oklch(95% 0.04 350), oklch(88% 0.10 350));
  border: 2.5px solid var(--dq-pink);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 20px;
  text-align: center;
}
html[data-theme="dark"] .dq-question-card {
  background: linear-gradient(135deg, oklch(25% 0.08 350), oklch(20% 0.04 350));
  color: white;
}
.dq-question-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* ─── Choices grid ─── */
.dq-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dq-choice {
  padding: 16px 14px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
  color: var(--ink);
  font-family: var(--font-sans);
}
.dq-choice:hover { border-color: var(--dq-pink); transform: translateY(-2px); }
.dq-choice.picked { border-color: var(--dq-pink); background: oklch(95% 0.08 350); }
html[data-theme="dark"] .dq-choice.picked { background: oklch(30% 0.10 350); }
.dq-choice.correct { border-color: var(--dq-neon); background: oklch(92% 0.12 145); color: oklch(20% 0.10 145); }
html[data-theme="dark"] .dq-choice.correct { background: oklch(30% 0.15 145); color: white; }
.dq-choice.wrong-pick { border-color: var(--dq-blood); background: oklch(90% 0.10 25); color: oklch(25% 0.10 25); }
html[data-theme="dark"] .dq-choice.wrong-pick { background: oklch(28% 0.12 25); color: white; }
.dq-choice-num {
  display: inline-block;
  width: 24px; height: 24px; line-height: 24px;
  text-align: center;
  margin-right: 8px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* ─── At-risk display ─── */
.dq-at-risk-list {
  text-align: center;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 14px;
}
.dq-at-risk-list .dq-risk-label {
  color: var(--dq-blood);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.dq-at-risk-list .dq-risk-empty {
  color: var(--dq-neon);
  font-weight: 700;
}

/* ─── Killing Floor banner ─── */
.dq-kf-banner {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--dq-blood), var(--dq-pink));
  color: white;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px oklch(55% 0.25 350 / 0.3);
}

.dq-kf-content {
  text-align: center;
}

/* Wheel */
.dq-wheel-spin-btn {
  font-family: var(--font-display);
  font-size: 22px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--dq-pink), var(--dq-blood));
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin: 24px auto;
  display: block;
  font-weight: 900;
  box-shadow: 0 6px 20px oklch(55% 0.25 350 / 0.4);
}
.dq-wheel-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dq-wheel-result {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  margin-top: 16px;
}
.dq-wheel-result.life { color: var(--dq-neon); }
.dq-wheel-result.death { color: var(--dq-blood); }

/* Math */
.dq-math-problem {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 24px 0;
}
.dq-math-input {
  font-family: var(--font-mono);
  font-size: 24px;
  width: 120px;
  padding: 12px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  text-align: center;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  margin-right: 8px;
}
.dq-math-input:focus { border-color: var(--dq-pink); }
.dq-math-progress {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}
.dq-math-timer {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--dq-blood);
  margin-bottom: 12px;
  font-weight: 700;
}

/* Memory */
.dq-memory-sequence {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  font-size: 36px;
}
.dq-memory-builder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}
.dq-memory-btn {
  font-size: 28px;
  padding: 8px 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.dq-memory-builder .dq-memory-btn:hover { border-color: var(--dq-pink); }
.dq-memory-current {
  font-size: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 16px;
}

/* Mind Meld */
.dq-mindmeld-cat {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0;
}
.dq-mindmeld-input {
  font-family: var(--font-sans);
  font-size: 18px;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  text-align: center;
}
.dq-mindmeld-input:focus { border-color: var(--dq-pink); }

/* Greed */
.dq-greed-info {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 20px;
}

/* ─── Killed list ─── */
.dq-killed-list {
  text-align: center;
  margin: 20px 0;
}
.dq-killed-row {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 6px 0;
  color: var(--dq-blood);
  font-weight: 700;
}
.dq-killed-row::before { content: "💀 "; }
.dq-survived-row {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--dq-neon);
  margin: 4px 0;
}
.dq-survived-row::before { content: "✓ "; }

/* ─── Sudden Death ─── */
.dq-sudden-info {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}
.dq-keys {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.dq-key-btn {
  font-size: 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.dq-key-btn:hover { border-color: var(--dq-pink); }
.dq-key-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Final Round ─── */
.dq-final-bar {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.dq-final-track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.dq-final-runner-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
  font-size: 12px;
  font-family: var(--font-mono);
}
.dq-final-runner-name {
  min-width: 100px;
  font-weight: 600;
  font-family: var(--font-sans);
}
.dq-final-runner-name.ghost { opacity: 0.6; font-style: italic; }
.dq-final-runner-name.eaten { color: var(--dq-blood); text-decoration: line-through; }
.dq-final-cells {
  display: flex;
  gap: 2px;
}
.dq-final-cell {
  width: 14px; height: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
}
.dq-final-cell.runner { background: var(--dq-pink); border-color: var(--dq-pink); }
.dq-final-cell.runner.ghost { background: oklch(70% 0.10 250); }
.dq-final-cell.darkness { background: var(--dq-dark); border-color: black; }
.dq-final-cell.exit { background: var(--dq-neon); border-color: var(--dq-neon); }

.dq-final-question {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}
.dq-final-cat {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: lowercase;
}
.dq-final-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.dq-final-option {
  padding: 12px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}
.dq-final-option.picked { border-color: var(--dq-pink); background: oklch(94% 0.08 350); }
html[data-theme="dark"] .dq-final-option.picked { background: oklch(28% 0.10 350); }

/* ─── Finish banner ─── */
.dq-result-banner {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 18px;
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--dq-pink), var(--dq-blood));
  color: white;
  box-shadow: 0 12px 36px oklch(55% 0.25 350 / 0.3);
}
.dq-result-banner.no-winner {
  background: linear-gradient(135deg, var(--dq-dark), oklch(35% 0.05 350));
}
.dq-final-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.dq-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
}
.dq-score-row.winner { border-color: var(--dq-neon); background: oklch(94% 0.08 145); }
html[data-theme="dark"] .dq-score-row.winner { background: oklch(28% 0.10 145); }
.dq-score-row.dead { opacity: 0.5; }
.dq-score-amount { font-family: var(--font-mono); font-weight: 700; }

/* ─── Host-only controls ─── */
.dq-host-only {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .dq-question-text { font-size: 18px; }
  .dq-choices { grid-template-columns: 1fr; }
  .dq-final-options { grid-template-columns: 1fr; }
  .dq-result-banner { font-size: 26px; padding: 22px; }
  .dq-kf-banner { font-size: 20px; }
}
