.dots li.part { background: var(--accent); border-color: var(--accent); animation: pop 0.35s ease-out; }

.prompt { text-align: center; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 18px; }
.round-no {
  display: block;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}

/* --- the line(s) --- */
.quote {
  position: relative;
  margin: 0 auto;
  max-width: 560px;
  padding: 18px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}
.quote::before {
  content: "“";
  display: block; height: 26px; margin-bottom: 4px;
  font-family: var(--display); font-size: 64px; line-height: 0.9; color: var(--accent);
}
.quote p { margin: 0; font-size: clamp(19px, 5vw, 24px); font-style: italic; font-weight: 500; line-height: 1.4; }

.convo { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 10px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.bubble p { margin: 4px 0 0; font-size: 17px; line-height: 1.4; font-style: italic; }
.bubble.s0 { justify-self: start; background: #1a2a3d; border-bottom-left-radius: 4px; }
.bubble.s1 { justify-self: end; background: #2a2620; border-bottom-right-radius: 4px; text-align: right; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.bubble.s0 .who { color: var(--steel); }
.bubble.s1 .who { color: var(--accent); flex-direction: row-reverse; }
.who .sp-icon { width: 20px; height: 20px; }

/* --- guess slots --- */
.slots { display: grid; gap: 10px; max-width: 560px; margin: 18px auto 0; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.slot.s1 { border-left: 3px solid var(--accent); }
.slots .slot.s0:not(:only-child) { border-left: 3px solid var(--steel); }
.slot-label { font-family: var(--display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.slot-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.slot .choose { min-height: 40px; }
.slot.pop { animation: pop 0.35s ease-out; }
.slot.shake { animation: shake 0.4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.was { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.verdict-mark { font-weight: 800; font-size: 18px; }
.verdict-mark.good { color: var(--win); }
.verdict-mark.bad { color: var(--loss); }
.dev-hint { font-size: 12px; color: var(--accent); border: 1px dashed var(--accent); border-radius: 6px; padding: 2px 6px; }

.sp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--panel-2); font-weight: 600; font-size: 14px; }
.sp-chip.right { box-shadow: inset 0 0 0 1px var(--win); }
.sp-chip.wrong { box-shadow: inset 0 0 0 1px var(--loss); text-decoration: line-through; text-decoration-color: var(--loss); }
.sp-icon { width: 26px; height: 26px; flex: none; }
.sp-badge {
  display: inline-grid; place-items: center; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.02em; color: #0e1620;
}
.sp-hidden-king { background: linear-gradient(135deg, #f0c25a, #b07a1c); }
.sp-arch-mother { background: linear-gradient(135deg, #8fd0ff, #3a6fb0); }
.sp-soul-urn { background: linear-gradient(135deg, #c8a8ff, #6b4bb8); }
#picker-list li .sp-icon { width: 36px; height: 36px; font-size: 14px; }
#picker-list li em.fits { color: var(--win); font-weight: 700; }

.after { text-align: center; margin-top: 18px; }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* --- scoreboard --- */
.ws-board ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: left; }
.ws-board li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ws-board li:last-child { border-bottom: 0; padding-bottom: 0; }
.row-head { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; padding-top: 2px; }
.row-head em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.row-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.win .row-dot { background: var(--win); }
.part .row-dot { background: var(--accent); }
.loss .row-dot { background: var(--loss); }
.b-quote { margin: 0 0 6px; font-style: italic; color: var(--text); font-size: 14px; line-height: 1.35; }
.pv-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-line b { font-style: normal; color: var(--muted); }
.b-slots { display: grid; gap: 6px; }
.b-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.b-label { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--text); width: 12px; }
.b-slot .sp-chip { font-size: 13px; }
.b-yours { color: var(--loss); }
.b-pct { color: var(--steel); font-weight: 600; }

@media (max-width: 480px) {
  .prompt { font-size: 26px; }
  .bubble { max-width: 92%; }
  .bubble p { font-size: 16px; }
  .slot { padding-left: 12px; }
  .ws-board li { grid-template-columns: 34px minmax(0, 1fr); }
}

/* --- fit to the window: the line(s) give way first; a long conversation scrolls inside its box --- */
/* a single line never scrolls: the box grows wider and taller, and game.js steps the text down if it still won't fit */
body.fit main { max-width: 920px; }
body.fit .quote { max-width: min(100%, 860px); }
/* a long conversation is the one thing that may scroll inside its box, on small phones */
body.fit #stage > .convo { flex-shrink: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body.fit .quote { padding: clamp(10px, 2cqh, 18px) 22px clamp(12px, 2.6cqh, 26px); }
body.fit .quote p { font-size: clamp(18px, 7cqh, 26px); } /* game.js steps it down if the round won't fit */
body.fit .convo { gap: clamp(4px, 1.1cqh, 10px); padding-right: 2px; }
body.fit .bubble { padding: clamp(6px, 1.2cqh, 10px) 14px clamp(7px, 1.4cqh, 12px); }
body.fit .bubble p { font-size: clamp(13.5px, 2.8cqh, 17px); line-height: 1.3; }
body.fit .slots { margin-top: clamp(8px, 1.8cqh, 18px); gap: clamp(6px, 1.2cqh, 10px); }
body.fit .slot { padding-top: clamp(5px, 1cqh, 10px); padding-bottom: clamp(5px, 1cqh, 10px); }
body.fit .after { margin-top: clamp(8px, 1.8cqh, 18px); }
body.fit .hint { margin-top: clamp(6px, 1.6cqh, 16px); }
/* speaker tag runs inline at the start of each bubble instead of taking its own line */
body.fit .bubble .who { display: inline-flex; vertical-align: 1px; margin-right: 7px; }
body.fit .bubble p { display: inline; margin: 0; }
/* the two speaker slots of a conversation side by side */
body.fit .slots:has(.slot.s1) { grid-template-columns: 1fr 1fr; }
body.fit .slots:has(.slot.s1) .slot { padding-left: 12px; padding-right: 10px; }
body.fit .slots:has(.slot.s1) .slot-body { flex: 1; }
@media (max-width: 560px) {
  body.fit .slots:has(.slot.s1) .spk { display: none; }
  body.fit .slots:has(.slot.s1) .slot { gap: 8px; }
}
@media (max-height: 820px) {
  body.fit #stage > .hint { display: none; }
}
/* after a guess the bubbles already name the real speaker, so the slot doesn't repeat it */
body.fit .slots:has(.slot.s1) .was { display: none; }
.credit-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.credit-note a { color: var(--steel); }

