.landing { padding-top: 12px; }
.landing .lede { margin-top: 8px; }
.choice-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  background: var(--surface-container);
}
.choice h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; color: var(--primary); }
.choice p { margin: 0; color: var(--on-surface-variant); }
.learn-shell .case-facts {
  flex: 0 0 auto;
  max-width: none;
  text-align: right;
  padding-right: 8px;
}
.learn-shell .case-facts p {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.tutorial-page { padding-bottom: 12px; }
.tutorial-page p {
  margin: 0 0 14px;
  line-height: 1.55;
}
.tutorial-page img.tutorial-shot {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  margin: 18px auto 0;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  background: var(--surface-low);
}
.tutorial-art {
  border: 0;
  background: transparent;
}
.tutorial-art.is-photo {
  display: block;
  width: auto;
  max-width: min(220px, 70%);
  height: auto;
  margin: 20px auto 0;
}
.tutorial-art.is-photo.is-wide {
  max-width: 100%;
}
.tutorial-art.is-sheet {
  width: 168px;
  height: 168px;
  margin: 20px auto 0;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: calc(var(--frame, 0) * 100% / 3) 0;
}
.tutorial-art.is-flip-y { transform: scaleY(-1); }
.tutorial-art.is-flip-x { transform: scaleX(-1); }
.tutorial-page.is-wrap .tutorial-push {
  float: right;
  width: 0;
}
.tutorial-page.is-wrap .tutorial-art {
  float: right;
  clear: right;
  margin: 2px 0 4px 16px;
}
.tutorial-points {
  margin: 8px 0 18px;
}
.tutorial-points dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 12px;
}
.tutorial-points dd {
  margin: 2px 0 0;
  color: var(--on-surface-variant);
  line-height: 1.5;
}
.learn-nav {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: var(--nav-h);
  height: var(--nav-h);
  padding: 0 8px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-foil), transparent) 1;
  background: rgba(23, 19, 5, 0.94);
}
.learn-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  justify-self: center;
}
.learn-step:hover:not(:disabled) { background: rgba(242, 202, 80, 0.08); }
.learn-step:disabled { opacity: 0.28; }
.learn-pos {
  margin: 0;
  text-align: center;
  min-width: 0;
}
.learn-pos strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.learn-pos span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.deal-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 12px;
}

.field { margin: 16px 0; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
}

.avatars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.av {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--surface-highest);
  padding: 0;
  overflow: hidden;
}
.av.is-on { border-color: var(--gold-foil); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35); }
.av.is-taken { opacity: 0.28; cursor: not-allowed; }
.av.is-clash { border-color: var(--gold-foil); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35); }
.face-clash { margin: 8px 0 0; }
.av-swatch { display: block; width: 100%; height: 100%; border-radius: 50%; }
.portrait-offer { max-width: 28rem; margin: 0 auto; padding: 8px 4px 24px; }
.portrait-offer > p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; margin: 0 0 18px; }
.portrait-offer .row { display: flex; flex-wrap: wrap; gap: 10px; }

.suspect-list,
.place-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.suspect-list > li,
.place-list > li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.suspect-banner,
.place-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-left: 3px solid var(--gold-foil);
  border-radius: var(--radius-xl);
  background: var(--surface-container);
}
.place-open {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  font: inherit;
}
.suspect-list li.is-you .suspect-banner { border-left-color: #97b0ff; }
.suspect-list li.is-open .suspect-banner,
.place-list li.is-open .place-banner { border-color: var(--gold-foil); }
.place-list li.is-found .place-banner { border-left-color: var(--oxblood, #7a1f2b); }
.place-copy { min-width: 0; flex: 1 1 auto; }
.place-kind { color: var(--primary); font-size: 13px; margin-top: 2px; }
.place-note,
.place-meta {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-surface-variant);
}
.place-sheet { margin-top: 8px; }
.clue-place {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-foil);
}
.suspect-face { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; }
.suspect-copy { min-width: 0; flex: 1 1 auto; }
.suspect-copy strong { display: inline-block; word-break: break-word; }
.suspect-role { color: var(--primary); font-size: 13px; margin-top: 2px; }
.suspect-stake {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-surface-variant);
}
.suspect-stake-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-parchment);
}
.suspect-stake-lead .muted { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.you-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(151, 176, 255, 0.45);
  color: #bfcdff;
  border-radius: 4px;
  vertical-align: middle;
}
.seat-list { list-style: none; padding: 0; margin: 16px 0; }
.seat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--outline-variant);
}
.seat-dot { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; }
.share {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 8px 0;
}
.share-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.share-link {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 13px;
  word-break: break-all;
  color: var(--on-surface-variant);
}
.share-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface-container);
  color: var(--gold-foil);
}
.share-copy:hover { border-color: var(--gold-foil); }
.share-copy.is-copied { background: rgba(212, 175, 55, 0.16); }
.share-copy-status {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-foil);
}
.phase-tag { color: var(--primary); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.kit {
  background: var(--parchment);
  color: var(--on-parchment);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin: 16px 0;
}
.kit h3 { font-family: var(--font-display); margin: 0 0 8px; }
.kit dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }
.kit dd { margin: 2px 0 0; }
.kit .field label,
.kit .field-label,
.kit .check-row {
  color: var(--on-parchment);
}
.kit .field input,
.kit .field select,
.kit .field textarea,
.kit.suspect-sheet textarea {
  background: #fff8e4;
  color: var(--on-parchment);
  border-color: rgba(36, 26, 0, 0.35);
}
.kit .field select option {
  background: #fff8e4;
  color: var(--on-parchment);
}
.kit .tone {
  background: #fff8e4;
  color: var(--on-parchment);
  border-color: rgba(36, 26, 0, 0.35);
}
.kit .tone strong {
  color: var(--on-parchment);
}
.kit .tone span {
  color: rgba(36, 26, 0, 0.72);
}
.msg-log { list-style: none; padding: 0; }
.msg-log li {
  background: var(--surface-container);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  margin: 8px 0;
}
.msg-log .benoit, .msg-log .clue {
  background: var(--parchment);
  color: var(--on-parchment);
}
.banner { margin: 12px 0; }
.err { color: var(--error); }

html.is-shell, body.is-shell {
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
}
body.is-shell .app {
  padding: 0;
  max-width: none;
  height: 100%;
}
.shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--background);
}
.shell .topbar {
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  height: auto;
  min-height: var(--nav-h);
  padding-top: 8px;
  padding-bottom: 8px;
}
.you-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.you-copy { min-width: 0; }
.case-facts {
  flex: 1 1 140px;
  max-width: 46%;
  min-width: 0;
  text-align: right;
  padding: 0 10px 0 8px;
}
.case-facts p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--on-surface-variant);
}
.case-facts p + p { margin-top: 2px; }
@media (max-width: 420px) {
  .case-facts { max-width: 42%; }
  .case-facts p { font-size: 10px; }
}
.header-face, .you-id .guest-face.header-face {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
}
.you-role {
  margin: 1px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--on-surface-variant);
  line-height: 1.2;
}
.phase-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--surface-container);
  border-bottom: 1px solid var(--outline-variant);
  min-height: 34px;
}
.phase-bar.is-call {
  background: color-mix(in srgb, var(--gold-foil) 16%, var(--surface-container));
  border-bottom-color: var(--gold-foil);
}
.phase-bar.is-over {
  background: color-mix(in srgb, var(--oxblood, #6b1d2a) 22%, var(--surface-container));
}
.phase-bar.is-spent .phase-label { color: var(--primary); }
.phase-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 0;
  flex: 1 1 auto;
}
.phase-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--primary);
  flex: 0 0 auto;
}
.phase-call { flex: 0 0 auto; padding: 4px 10px; font-size: 12px; }
.err.is-note { color: var(--primary); }
.accuse-hint { margin: 8px 0 0; font-size: 13px; }
.accuse-clock {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 0 14px;
  padding: 12px 14px 14px;
  background:
    linear-gradient(180deg, #2e2714 0%, #16110a 55%, #0c0904 100%);
  border: 2px solid var(--gold-foil);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(242, 202, 80, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.accuse-clock-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--parchment);
}
.accuse-clock-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--on-surface-variant);
}
.accuse-clock .btn { margin-top: 10px; }
.led-face {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  background: #050301;
  border-radius: 6px;
  box-shadow: inset 0 2px 10px #000, inset 0 0 0 1px #1a1408;
}
.led-digit {
  position: relative;
  width: 30px;
  height: 52px;
  flex: 0 0 30px;
}
.led-seg {
  position: absolute;
  background: #2a1d06;
  opacity: 0.18;
}
.led-seg.is-on {
  opacity: 1;
  background: #ffd45a;
  box-shadow: 0 0 6px rgba(255, 212, 90, 0.85);
}
.led-a, .led-d, .led-g {
  left: 5px;
  right: 5px;
  height: 5px;
}
.led-a { top: 0; }
.led-g { top: 21px; }
.led-d { bottom: 0; }
.led-b, .led-c, .led-e, .led-f {
  width: 5px;
}
.led-b { top: 4px; right: 0; height: 18px; }
.led-c { bottom: 4px; right: 0; height: 18px; }
.led-f { top: 4px; left: 0; height: 18px; }
.led-e { bottom: 4px; left: 0; height: 18px; }
.led-colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 8px;
  height: 48px;
}
.led-colon i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(242, 202, 80, 0.75);
  animation: led-blink 1s steps(1) infinite;
}
@keyframes led-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}
.accuse-clock.is-urgent {
  border-color: var(--oxblood);
}
.accuse-clock.is-urgent .led-seg.is-on,
.accuse-clock.is-urgent .led-colon i {
  background: #ff6b5a;
  box-shadow: 0 0 10px rgba(255, 107, 90, 0.8);
}
.accuse-clock.is-urgent .led-colon i { animation-duration: 0.45s; }
.accuse-clock-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #120e02;
  border: 1px solid var(--gold-foil);
  border-radius: 8px;
}
.accuse-clock-slim .led-face { padding: 6px 10px; gap: 6px; }
.accuse-clock-slim .led-digit { width: 18px; height: 32px; flex-basis: 18px; }
.accuse-clock-slim .led-a, .accuse-clock-slim .led-d, .accuse-clock-slim .led-g { height: 4px; left: 3px; right: 3px; }
.accuse-clock-slim .led-g { top: 14px; }
.accuse-clock-slim .led-b, .accuse-clock-slim .led-c,
.accuse-clock-slim .led-e, .accuse-clock-slim .led-f { width: 4px; height: 12px; }
.accuse-clock-slim .led-colon { height: 32px; gap: 6px; }
.accuse-clock-slim .btn { display: none; }
@media (max-width: 380px) {
  .led-digit { width: 24px; height: 42px; flex-basis: 24px; }
}
.pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px var(--margin) 16px;
}
.dock {
  flex: 0 0 auto;
  z-index: 40;
  overflow: visible;
  background: var(--surface-low);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  min-height: var(--nav-h);
  height: var(--nav-h);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-foil), transparent) 1;
  background: rgba(23, 19, 5, 0.94);
}
.tabs button {
  background: none;
  border: 0;
  color: var(--on-surface-variant);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0 4px;
  white-space: normal;
  line-height: 1.15;
}
.pip {
  color: var(--gold-foil);
  font-weight: 700;
  margin-left: 1px;
}
.tabs button.is-on { color: var(--gold-foil); }
.tabs button.is-on::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--gold-foil);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 10px var(--margin);
  background: var(--surface-low);
}
.composer-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.composer input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  font-size: 16px;
}
.mention-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface-container);
  border: 1px solid var(--gold-foil);
  border-radius: var(--radius);
  max-height: 180px;
  overflow-y: auto;
  z-index: 80;
}
.mention-list[hidden] { display: none; }
.mention-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  font-size: 14px;
}
.mention-item span { opacity: 0.6; font-size: 12px; }
.mention-item.is-on, .mention-item:hover { background: rgba(212, 175, 55, 0.16); }
.composer-hint { margin: 8px var(--margin); }
.primer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px var(--margin) 0;
  background: var(--surface-low);
}
.primer-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-right: 2px;
}
.primer-row select {
  min-width: 11em;
  max-width: 100%;
  flex: 1 1 12em;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-foil);
  background: var(--surface);
  color: var(--on-surface);
  font: inherit;
  font-size: 14px;
}
#chat-line-who { flex: 0 1 10em; min-width: 8em; }
#chat-line-place { flex: 1 1 12em; }
.chat-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.bubble-row.is-mine { justify-content: flex-end; }
.chat-face { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; }
.face-link {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  line-height: 0;
  cursor: pointer;
}
.note-adds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.note-adds button {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  border-radius: 4px;
}
.note-adds button:hover { border-color: var(--gold-foil); color: var(--primary); }
#file-talk { white-space: nowrap; }
.bubble {
  max-width: calc(88% - 44px);
  padding: 10px 12px;
  border-radius: 12px 12px 12px 0;
}
.bubble.is-mine { align-self: flex-end; border-radius: 12px 12px 0 12px; }
.bubble .who { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; opacity: 0.75; }
.bubble p { margin: 0; }
.typing-dots { display: flex; gap: 5px; align-items: center; min-height: 1.2em; padding: 2px 0; }
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-parchment);
  opacity: 0.35;
  animation: typing-bounce 1.1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.3; }
  35% { transform: translateY(-4px); opacity: 0.85; }
}
.bubble-parchment { background: var(--parchment); color: var(--on-parchment); }
.bubble-guest { background: var(--surface-high); color: var(--on-surface); }
.bubble-row.is-system { display: block; max-width: 100%; }
.system-note { max-width: 100%; padding: 2px 2px 8px; }
.system-note .who {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.72;
  margin-bottom: 8px;
}
.system-note p {
  margin: 0 0 8px;
  color: #c9bda3;
  font-size: 15px;
  line-height: 1.55;
}
.system-still, .lobby-still {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 8px 0 12px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
}
.system-still.is-portrait {
  width: min(240px, 72%);
  aspect-ratio: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #000;
  margin-left: auto;
  margin-right: auto;
}
.scorecard .score-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--parchment);
}
.controls-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--parchment);
}
.controls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}
.controls-table th,
.controls-table td {
  border: 1px solid var(--outline-variant);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.controls-table th {
  width: 7.5rem;
  color: var(--gold-foil);
  font-weight: 600;
  white-space: nowrap;
}
.score-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.score-table th, .score-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
  white-space: nowrap;
}
.score-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.score-table tbody th {
  font-weight: 600;
  color: var(--parchment);
}
.score-note {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--on-surface-variant);
}
.score-awards {
  list-style: none;
  padding: 10px 0 0;
  margin: 8px 0 0;
}
.score-awards li { margin: 4px 0; color: var(--parchment); }
.power-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.power-btn:hover { border-color: var(--error); color: var(--error); }
.power-btn svg { width: 20px; height: 20px; display: block; }
.chan-strip {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  background: var(--surface-low);
  border-bottom: 1px solid var(--outline-variant);
  scrollbar-width: thin;
}
.chan-strip[hidden] { display: none !important; }
.chan-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chan-tab-open {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 10px 12px 10px 16px;
}
.chan-tab-x {
  background: none;
  border: 0;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1;
  padding: 8px 10px 8px 4px;
  opacity: 0.7;
}
.chan-tab-x:hover { color: var(--gold-foil); opacity: 1; }
.chan-tab.is-on { color: var(--gold-foil); background: rgba(212, 175, 55, 0.08); }
.composer.is-ended {
  justify-content: flex-start;
}
.suspect-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.suspect-open {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.whisper-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; }
.suspect-list .suspect-sheet,
.suspect-list .accuse-sheet,
.place-list .place-sheet {
  width: 100%;
  margin: 8px 0 4px;
  box-sizing: border-box;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 14px;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--gold-foil); }
.rel-name { color: var(--primary); }
.wait-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 10, 2, 0.72);
  backdrop-filter: blur(8px);
}
.wait-card {
  max-width: 360px;
  text-align: center;
  background: var(--parchment);
  color: var(--on-parchment);
  border-radius: var(--radius-xl);
  padding: 24px 22px 28px;
}
.wait-card h2 { font-family: var(--font-display); margin: 4px 0 8px; }
.wait-card > p { margin: 0 0 10px; }
.wait-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
}
.wait-steps li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(36, 26, 0, 0.45);
}
.wait-steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(36, 26, 0, 0.28);
}
.wait-steps li.is-done { color: rgba(36, 26, 0, 0.55); }
.wait-steps li.is-done::before {
  background: var(--gold-foil);
  border-color: var(--gold-foil);
}
.wait-steps li.is-on {
  color: var(--on-parchment);
  font-weight: 600;
}
.wait-steps li.is-on::before {
  background: var(--oxblood);
  border-color: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.18);
}
.wait-pulse {
  width: 48px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--oxblood), transparent);
  background-size: 200% 100%;
  animation: wait-slide 1.4s linear infinite;
}
@keyframes wait-slide {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.suspect-sheet textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 26, 0, 0.35);
  background: #fff8e4;
  color: var(--on-parchment);
  font: inherit;
}
.suspect-actions { margin-top: 12px; }
.scene-card { margin-top: 0; }
.evidence-list { list-style: none; padding: 0; }
.clue-card { margin-bottom: 12px; }
.empty { padding: 24px 8px; }
.end-link { font-size: 13px; }
.av-swatch { object-fit: cover; }
.guest-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 600% 500%;
  /* % position is (box - image); for a 6×5 sheet that is col/5 and row/4 */
  background-position: calc(var(--col, 0) * 100% / 5) calc(var(--row, 0) * 100% / 4);
}
.seat-dot.guest-face { width: 36px; height: 36px; flex: 0 0 auto; }
.guest-face.suspect-face,
.suspect-list .guest-face {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}
.benoit-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: calc(var(--frame, 0) * 100% / 3) 0;
}
.chat-face.benoit-face,
.chat-face.guest-face { width: 36px; height: 36px; }
.you-id .guest-face.header-face {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
