/* Layout: a top-down courtroom board beside a transcript-style dialogue box.
   Wood and brass for the room, stamped labels for exhibits, ink-blue for the
   prosecution or plaintiff and oxblood for the defense. */
:root {
  --paper: #edf0f3;
  --surface: #ffffff;
  --ink: #1b2533;
  --muted: #5b6676;
  --line: #d3d9e1;
  --brass: #8f6b1c;
  --brass-soft: #f3ead6;
  --pros: #2e5a88;
  --def: #8a3b3b;
  --sticker: #f7e27a;
  --sticker-ink: #2a2410;
  --floor: #e2ddd3;
  --carpet: #c9cfd8;
  --wood: #8a6a43;
  --wood-dark: #6b5132;
  --yes: #8a3b3b;
  --no: #2f6b4f;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10161f; --surface: #18212d; --ink: #e6e9ee; --muted: #98a3b3; --line: #2b3544;
    --brass: #d4b060; --brass-soft: #2a2516; --pros: #86aedb; --def: #e09287;
    --sticker: #d9c35c; --sticker-ink: #1d190a;
    --floor: #1d2530; --carpet: #26303d; --wood: #6e5536; --wood-dark: #554129;
    --yes: #e09287; --no: #7cc3a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10161f; --surface: #18212d; --ink: #e6e9ee; --muted: #98a3b3; --line: #2b3544;
  --brass: #d4b060; --brass-soft: #2a2516; --pros: #86aedb; --def: #e09287;
  --sticker: #d9c35c; --sticker-ink: #1d190a;
  --floor: #1d2530; --carpet: #26303d; --wood: #6e5536; --wood-dark: #554129;
  --yes: #e09287; --no: #7cc3a0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 1.5rem 4rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.wrap.wide { max-width: 70rem; padding-block: 1rem 2rem; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 700 clamp(2.2rem, 7vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -0.01em; }
h2 { font: 700 1.45rem/1.2 var(--font-display); }
h3 { font-size: 1rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow {
  font: 500 0.72rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
}
.docket { font: 0.8rem var(--font-mono); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  font: 600 0.95rem/1.2 var(--font-body);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
}
.btn:hover:not([disabled]) { background: var(--brass); border-color: var(--brass); }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not([disabled]) { border-color: var(--brass); color: var(--brass); background: transparent; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brass); font: 600 0.9rem var(--font-body); cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.back { align-self: flex-start; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.tip { background: var(--brass-soft); border-color: transparent; }

/* Home */
.hero { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1rem 1.5rem; border-bottom: 3px double var(--brass); }
.hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); }
.lede { font-size: 1.1rem; max-width: 36rem; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.how > div { display: flex; flex-direction: column; gap: 0.3rem; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cases { display: grid; gap: 1rem; }
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 4px 0 0 var(--ink);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.case-card h3 { font: 700 1.6rem/1.15 var(--font-display); }
.caption { font-style: italic; color: var(--muted); }
.case-meta, .case-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.case-foot { margin-top: 0.5rem; }
.tag { font: 600 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.2rem 0.5rem; border-radius: 3px; border: 1px solid currentColor; }
.tag-criminal { color: var(--def); }
.tag-civil { color: var(--pros); }
.jurors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.juror-card { display: flex; gap: 0.75rem; align-items: flex-start; }
.juror-card > div { min-width: 0; }
.tok-chip {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font: 600 0.72rem var(--font-mono);
  background: var(--carpet);
  color: var(--ink);
  border: 2px solid var(--muted);
}

/* Guide */
.page-head { display: flex; flex-direction: column; gap: 0.5rem; }
.flow { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.glossary { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.term dt { font-weight: 700; }
.term dd { margin: 0.15rem 0 0; color: var(--muted); }

/* Trial layout */
.trial { display: flex; flex-direction: column; gap: 0.75rem; }
.trial-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; }
.speed-btn { font-weight: 500; color: var(--muted); }
.speed-btn:hover { color: var(--brass); }
.trial-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 860px) {
  .trial-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .dialog { position: sticky; top: calc(1rem + env(safe-area-inset-top, 0px)); }
}
.board-wrap { position: relative; min-width: 0; }
.board { display: block; width: 100%; max-height: 72vh; margin: 0 auto; }

/* Board drawing */
.floor { fill: var(--floor); stroke: var(--line); }
.well { fill: var(--carpet); opacity: 0.6; }
.wood { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 2; }
.desk { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 1.5; opacity: 0.85; }
.box { fill: none; stroke: var(--wood); stroke-width: 3; }
.rail { stroke: var(--wood); stroke-width: 4; stroke-linecap: round; fill: none; }
.bench-seat { fill: var(--wood); opacity: 0.55; }
.lbl { font: 600 7.5px var(--font-mono); letter-spacing: 0.12em; fill: var(--muted); text-anchor: middle; }

.tok { transition: transform 0.8s cubic-bezier(.4, .1, .2, 1); }
.tok .disc { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.tok .ring { fill: none; stroke: var(--brass); stroke-width: 3; opacity: 0; }
.tok .ini { font: 600 8.5px var(--font-mono); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.k-judge .disc { fill: var(--ink); stroke: var(--brass); }
.k-judge .ini { fill: var(--paper); }
.k-pros .disc { stroke: var(--pros); stroke-width: 3; }
.k-def .disc { stroke: var(--def); stroke-width: 3; }
.k-party .disc { stroke-dasharray: 3 2; }
.k-wit .disc { fill: var(--brass-soft); }
.k-you .disc { fill: var(--brass); stroke: var(--brass); }
.k-you .ini { fill: var(--surface); font-size: 7.5px; }
.tok.speaking .ring { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { stroke-width: 6; opacity: 0.45; } }

.tok-chip.k-judge { background: var(--ink); color: var(--paper); border-color: var(--brass); }
.tok-chip.k-pros { border-color: var(--pros); }
.tok-chip.k-def { border-color: var(--def); }
.tok-chip.k-wit { background: var(--brass-soft); }
.tok-chip.k-you { background: var(--brass); border-color: var(--brass); color: var(--surface); font-size: 0.62rem; }

.objection-banner {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%) scale(0.6) rotate(-6deg);
  font: 700 clamp(1.8rem, 7vw, 3rem)/1 var(--font-display);
  color: var(--surface);
  background: var(--def);
  padding: 0.4em 0.7em;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.objection-banner.show { animation: objection 1.6s ease both; }
@keyframes objection {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
}

/* Dialogue */
.dialog { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.phase { display: flex; justify-content: space-between; gap: 1rem; font: 600 0.78rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass); }
.phase .muted { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.speech-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 11rem;
}
.speech-box.guide { background: var(--brass-soft); border-color: transparent; border-top-color: var(--brass); }
.speech-box.objecting { border-top-color: var(--def); }
.who { display: flex; align-items: center; gap: 0.6rem; }
.who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.line { font-size: 1.12rem; line-height: 1.55; }
.note-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.card-title { font-size: 0.85rem; color: var(--muted); flex: 1 1 12rem; min-width: 0; }
.note-btn { background: var(--brass); border-color: var(--brass); color: var(--surface); }
.noted { font: 600 0.8rem var(--font-mono); color: var(--no); }
.ask { display: flex; flex-direction: column; gap: 0.5rem; }
.ask-btn { text-align: left; font-weight: 500; }
.dialog-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dialog-nav .btn:last-child { margin-left: auto; }
.notebook { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.notebook ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.notebook li { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.notebook li span { min-width: 0; }

.exhibit { margin: 0.6rem 0 0; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.sticker { position: absolute; top: -0.6rem; left: 0.9rem; background: var(--sticker); color: var(--sticker-ink); font: 600 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.6rem; transform: rotate(-2deg); border-radius: 2px; }
.exhibit figcaption { font-weight: 700; }
.exhibit pre { margin: 0; font: 0.82rem/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }

/* Jury room */
.room { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.table-svg { display: block; width: 100%; max-width: 32rem; margin: 0 auto; overflow: visible; }
.tabletop { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 3; }
.seat .disc { fill: var(--surface); stroke: var(--muted); stroke-width: 3; }
.seat .ring { fill: none; stroke: transparent; stroke-width: 3; }
.seat .ini { font: 600 8.5px var(--font-mono); text-anchor: middle; fill: var(--ink); }
.seat-name { font: 600 12px var(--font-body); text-anchor: middle; fill: var(--ink); }
.seat-mood { font: 500 9.5px var(--font-mono); text-anchor: middle; fill: var(--muted); }
.seat.m-yes .disc { stroke: var(--yes); fill: var(--yes); }
.seat.m-yes .ini { fill: var(--surface); }
.seat.m-lean-yes .disc { stroke: var(--yes); }
.seat.m-no .disc { stroke: var(--no); fill: var(--no); }
.seat.m-no .ini { fill: var(--surface); }
.seat.m-lean-no .disc { stroke: var(--no); }
.seat.m-yes .seat-mood, .seat.m-lean-yes .seat-mood { fill: var(--yes); }
.seat.m-no .seat-mood, .seat.m-lean-no .seat-mood { fill: var(--no); }
.seat.m-you .disc { fill: var(--brass); stroke: var(--brass); }
.seat.m-you .ini { fill: var(--surface); font-size: 7.5px; }
.seat.pickable { cursor: pointer; }
.seat.pickable .ring { stroke: var(--line); stroke-dasharray: 3 3; }
.seat.targeted .ring { stroke: var(--brass); stroke-dasharray: none; }

.log {
  list-style: none; margin: 0; padding: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 0.6rem;
  max-height: 22rem; overflow-y: auto;
}
.log .msg { display: flex; flex-direction: column; max-width: 90%; }
.log .msg b { font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.log .msg.mine { align-self: flex-end; text-align: right; }
.log .msg.mine span { background: var(--brass-soft); }
.log .msg span { background: var(--paper); padding: 0.45rem 0.75rem; border-radius: 8px; }
.log .sys { font-size: 0.85rem; color: var(--muted); font-style: italic; text-align: center; padding: 0.25rem 1rem; }
.log .sys.warn { color: var(--def); font-style: normal; }
.log .sys.tally { color: var(--ink); font: 600 0.85rem var(--font-mono); font-style: normal; }

.hand { display: grid; gap: 0.5rem; }
.fact {
  text-align: left;
  font: 500 0.92rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.fact:hover { border-left-color: var(--brass); }
.fact.selected { border-color: var(--brass); border-left-color: var(--brass); background: var(--brass-soft); }
.fact-tags { font: 0.7rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.targets { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.chip-btn { font: 600 0.82rem var(--font-body); padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-btn.on { background: var(--brass); border-color: var(--brass); color: var(--surface); }
.chip-btn[disabled] { opacity: 0.4; cursor: default; }
.vote-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 8px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
.vote-btns .btn { padding: 1rem; font: 700 1.15rem var(--font-display); }

/* Verdict */
.verdict h1 { font-size: clamp(2.6rem, 10vw, 4.5rem); }
.votes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.5rem; }
.vote-card { font: 0.85rem var(--font-mono); padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); display: flex; flex-direction: column; animation: flip 0.4s ease both; }
.vote-card b { font: 600 0.72rem var(--font-mono); text-transform: uppercase; color: var(--muted); }
@keyframes flip { from { opacity: 0.15; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.report { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.report li { display: flex; flex-direction: column; padding-left: 0.9rem; border-left: 4px solid var(--line); }
.report li.ok { border-left-color: var(--no); }
.report li.miss { border-left-color: var(--yes); }
.nav { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }

/* Home: three ways to play */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.mode {
  text-align: left; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  font: inherit;
}
.mode b { font: 700 1.5rem/1.15 var(--font-display); }
.mode:hover { border-color: var(--brass); }

/* Hosting */
.code-inline { font-family: var(--font-mono); letter-spacing: 0.12em; color: var(--ink); }
.lobby-code { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding-block: 1rem; }
.code { font: 700 clamp(3.5rem, 16vw, 7rem)/1 var(--font-mono); letter-spacing: 0.18em; color: var(--ink); }
.link-text { font-family: var(--font-mono); overflow-wrap: anywhere; }
.lobby-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; }
.lobby-seat { display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.lobby-seat > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lobby-seat.human { border-color: var(--brass); background: var(--brass-soft); }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.status-list li { display: flex; flex-direction: column; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 6px; background: var(--surface); }
.status-list li.done { border-left-color: var(--no); }
.status-list li.away { opacity: 0.55; }
.status-list span { font-size: 0.82rem; color: var(--muted); }
.warn-panel { border-top: 4px solid var(--def); }
.tally { font: 600 1rem var(--font-mono); }
.tok-chip.k-human, .k-human .disc { border-color: var(--brass); }
.k-human .disc { fill: var(--brass-soft); stroke: var(--brass); stroke-width: 3; }
.tok.away { opacity: 0.4; }
.seat.m-human .disc { fill: var(--brass-soft); stroke: var(--brass); }

/* Phones */
.join-form label { font-weight: 600; }
.join-form input {
  font: 1rem var(--font-body); padding: 0.75rem 0.85rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); min-width: 0;
}
.join-form .code-input { font: 700 1.8rem var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; }
.error-text { color: var(--def); font-weight: 600; }
.phone-top { display: flex; gap: 0.6rem; align-items: center; }
.phone-top > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.reconnect { background: var(--brass-soft); padding: 0.6rem 0.9rem; border-radius: 6px; font-weight: 600; }
.plain { margin: 0; padding-left: 1.2rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fact-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.fact-list li span { flex: 1 1 12rem; min-width: 0; }
.mood-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mood-list li { display: flex; flex-direction: column; padding: 0.35rem 0.65rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.8rem; background: var(--surface); }
.mood-list li span { font-family: var(--font-mono); font-size: 0.72rem; }
.mood-list .m-yes span, .mood-list .m-lean-yes span { color: var(--yes); }
.mood-list .m-no span, .mood-list .m-lean-no span { color: var(--no); }
.log.short { max-height: 14rem; }
.fore-tools { border-top: 4px solid var(--brass); }

.portrait { flex: none; display: inline-flex; align-items: flex-end; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; background: var(--carpet); border: 2px solid var(--muted); }
.portrait .portrait-svg { width: 100%; height: auto; display: block; }
.portrait.k-judge { border-color: var(--brass); }
.portrait.k-pros { border-color: var(--pros); }
.portrait.k-def { border-color: var(--def); }
.portrait.k-wit { background: var(--brass-soft); }
.small-portrait { width: 3rem; height: 3rem; }
.lobby-seat .small-portrait { width: 2.4rem; height: 2.4rem; align-items: center; }
.tok .face, .seat .face { pointer-events: none; }

.off-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.off-btn { border-color: var(--def); color: var(--def); }
.off-panel { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.ask-btn.on { border-color: var(--brass); background: var(--brass-soft); }
.flag-result { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.75rem 1rem; border-radius: 6px; margin-top: 0.5rem; }
.flag-result.ok { background: var(--brass-soft); border-left: 4px solid var(--no); }
.flag-result.miss { background: var(--paper); border-left: 4px solid var(--def); }
.fact.bonus { border-left-color: var(--no); }

.bubble rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.bubble text { font: 600 8.5px var(--font-body); fill: var(--ink); text-anchor: middle; }
.bubble { animation: pop 0.25s ease both; pointer-events: none; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.log .msg.human span:last-child { border-left: 3px solid var(--brass); }
.log .msg .meta { font: 500 0.7rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); font-style: italic; }
.log .msg.counter span:last-child { border: 1px dashed var(--def); }
.log .sys.rebuttal { color: var(--no); font-style: normal; font-weight: 600; }
.counter-box { border: 1px dashed var(--def); border-radius: 6px; padding: 0.6rem 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.fact .rebuts { font: 600 0.72rem var(--font-body); color: var(--no); }

.fact-timers { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.fact-list li > span { display: flex; flex-direction: column; gap: 0.3rem; }
.fact-list .fact-timer { display: block; flex: none; height: 4px; border-radius: 2px; background: var(--brass); width: var(--from); animation-name: drain; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes drain { from { width: var(--from); } to { width: 0%; } }

@media (prefers-reduced-motion: reduce) {
  .fact-timer { animation: none; }
  .bubble { animation: none; }
  .tok { transition: none; }
  .tok.speaking .ring, .vote-card, .objection-banner.show { animation: none; }
  .objection-banner.show { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg); }
}
