/* Riddle Night styles. Reuses the photobooth design tokens + base component classes
   from client/ui/app.css, plus the fashion sheet (pack cards, totals, breakdown rows —
   linked in index.html), and adds only what's riddle-specific: the candle-lit riddle
   card, the answer reveal pair, and the pack dials. */

.start-tagline { color: var(--ink-soft); font-size: 15px; text-align: center; max-width: 36ch; }
.presence-text { color: var(--ink-soft); font-size: 14px; }

/* ============ PACK dials (rounds + timer) ============ */
.rd-pack .pack-grid { max-width: 560px; }
.rd-dial {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 560px;
}
.rd-dial-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 56px; text-align: right;
}
.rd-chip {
  padding: 8px 16px;
  background: var(--paper-raised);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.rd-chip:hover { transform: translateY(-1px); }
.rd-chip.is-picked { border-color: var(--ink); }
.rd-chip--timer { display: inline-flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 14px; border-radius: var(--r-card); }
.rd-chip--timer b { font-size: 13px; }
.rd-chip--timer span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); }

/* ============ RIDDLE (the round) ============ */
.scene.rd-round { gap: var(--s2); }
.rd-head { display: flex; align-items: center; gap: var(--s2); }
.rd-diff { font-size: 12px; color: var(--pink); letter-spacing: 2px; }
.rd-timer {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft); min-width: 46px;
}
.rd-timer.is-urgent { color: var(--pink); animation: rd-pulse 1s ease-in-out infinite; }
@keyframes rd-pulse { 50% { opacity: 0.4; } }

.rd-art {
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  letter-spacing: 6px;
  animation: rd-pop 460ms cubic-bezier(.2,1.2,.4,1) both;
}
.rd-art--sm { font-size: 34px; letter-spacing: 4px; }
.rd-img {
  width: min(62vw, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  animation: rd-pop 460ms cubic-bezier(.2,1.2,.4,1) both;
}
.rd-img--sm { width: min(38vw, 140px); }
@keyframes rd-pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }

.rd-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 3vw, 22px);
  line-height: 1.5; letter-spacing: -0.01em;
  text-align: center; margin: 0; max-width: 52ch;
  padding: var(--s2) var(--s3);
  background: var(--paper-raised);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.rd-text--sm { font-size: 15px; font-weight: 600; padding: var(--s1) var(--s2); max-width: 60ch; color: var(--ink-soft); }

.rd-hint-btn {
  border: 1px dashed var(--line);
  background: none;
  color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 14px; border-radius: 999px;
}
.rd-hint-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.rd-hint-btn.is-hidden { display: none; }
.rd-hint {
  font-size: 14px; color: var(--ink);
  padding: 8px 16px;
  background: var(--pink-tint);
  border-radius: var(--r-card);
  max-width: 46ch; text-align: center;
  animation: rd-pop 320ms ease both;
}
.rd-hint.is-hidden { display: none; }

.rd-answer { width: 100%; max-width: 520px; }
.rd-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper-raised);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  font-family: inherit; font-size: 16px; line-height: 1.45;
  resize: vertical; min-height: 64px;
}
.rd-input:focus { outline: none; border-color: var(--ink); }
.rd-status { color: var(--ink-soft); font-size: 14px; text-align: center; min-height: 20px; }

/* ============ REVEAL ============ */
.scene.rd-reveal { gap: var(--s2); }
.rd-reveal-shell { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 100%; }

.rd-answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); width: 100%; max-width: 620px; }
.rd-answer-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: var(--s2);
  background: var(--paper-raised);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  animation: rd-pop 420ms cubic-bezier(.2,1,.4,1) both;
}
.rd-answer-card[data-color="pink"] { border-color: var(--pink-tint); }
.rd-answer-card[data-color="blue"] { border-color: var(--blue-tint); }
.rd-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-answer-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.rd-answer-text { font-size: 14.5px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.rd-verdict {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}
.rd-verdict.is-right { color: #0a7d4d; border-color: #bfe6d2; background: #eafaf1; }
.rd-verdict.is-half { color: #b8860b; border-color: #ecdcae; background: #fdf6e0; }
.rd-verdict.is-wrong { color: #c0392b; border-color: #f2c9c2; background: #fdf0ee; }
.rd-mark-btn {
  align-self: flex-start;
  border: 1px dashed var(--line);
  background: none;
  color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 12px; border-radius: 999px;
}
.rd-mark-btn:hover { color: #0a7d4d; border-color: #0a7d4d; }

.rd-truth {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; max-width: 560px;
  padding: var(--s2) var(--s3);
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  animation: rd-pop 460ms cubic-bezier(.2,1.1,.4,1) both;
}
.rd-truth-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 3px 12px; border-radius: 999px;
}
.rd-truth-answer { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-align: center; margin: 0; }
.rd-truth-ex { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; text-align: center; margin: 0; }
.rd-banter { color: var(--ink-soft); font-size: 14px; font-style: italic; text-align: center; margin: 0; max-width: 52ch; }

/* ============ RESULT ============ */
.rd-result { gap: var(--s1); }
.rd-crown {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 8vw, 72px); line-height: 1; letter-spacing: -0.03em;
  text-align: center; margin: 0;
}
.rd-crown[data-color="pink"] { color: var(--pink); }
.rd-crown[data-color="blue"] { color: var(--blue); }
.rd-result-headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 3vw, 22px); text-align: center; color: var(--ink-soft); margin: 0; }
.rd-breakdown .breakdown-q { font-size: 13.5px; }

/* ============ responsive ============ */
@media (max-width: 560px) {
  .rd-answers { grid-template-columns: 1fr; }
  .rd-dial-label { min-width: 0; text-align: left; width: 100%; }
}
