:root {
  color-scheme: dark;
  --bg: #171c19;
  --panel: #232924;
  --line: #475046;
  --ink: #f4f3e8;
  --muted: #b4bbae;
  --acid: #dfef85;
  --coral: #ff9874;
  --dark: #1c251c;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --display: 'Avenir Next Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem/1.5 'Avenir Next',
    Inter,
    system-ui,
    -apple-system,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 40px;
}
.site-header,
.site-header nav,
.brand,
.room-head,
.room-links,
.channel-head,
.dialog-head {
  display: flex;
  align-items: center;
}
.site-header {
  height: 84px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 540;
  letter-spacing: -0.045em;
}
.brand b {
  font-weight: 780;
}
.brand-icon {
  position: relative;
  width: 29px;
  height: 21px;
  background: var(--acid);
  color: var(--dark);
  font: 900 16px/16px var(--mono);
  text-align: center;
  letter-spacing: -1px;
  border-radius: 4px;
}
.brand-icon:after,
.bubble-icon:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 5px;
  border-top: 6px solid var(--acid);
  border-right: 7px solid transparent;
}
.site-header nav {
  gap: 19px;
}
.nav-action,
.text-btn,
.lang,
.close {
  border: 0;
  background: none;
  font-weight: 650;
}
.nav-action,
.lang,
.text-btn {
  font-size: 0.875rem;
}
.nav-action,
.text-btn {
  color: var(--muted);
  padding: 6px 0;
}
.nav-action:hover,
.text-btn:hover {
  color: var(--acid);
  text-decoration: underline;
}
.lang {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 13px;
}
.lang:hover {
  border-color: var(--acid);
}
.home-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  gap: 18px;
}
.poster,
.entry,
.room-side,
.channel {
  border-radius: 16px;
  overflow: hidden;
}
.poster {
  position: relative;
  min-height: 480px;
  isolation: isolate;
  padding: 34px 36px 0;
  color: var(--dark);
  background-color: var(--acid);
  background-image: radial-gradient(circle, #5c743a38 0.75px, transparent 0.9px);
  background-size: 5px 5px;
}
.poster:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(122deg, #dfef85 4%, #dfef85bd 45%, transparent 90%);
}
.poster-top {
  font: 700 0.82rem var(--mono);
  display: flex;
  gap: 9px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.player-icon {
  width: 18px;
  height: 14px;
  background:
    linear-gradient(var(--dark) 0 0) 2px 1px/4px 4px,
    linear-gradient(var(--dark) 0 0) 11px 1px/4px 4px,
    linear-gradient(var(--dark) 0 0) 0 8px/8px 5px,
    linear-gradient(var(--dark) 0 0) 10px 8px/8px 5px;
  background-repeat: no-repeat;
}
.poster h1 {
  font: 900 clamp(3.2rem, 6.3vw, 5.5rem)/0.98 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  margin: 18px 0 13px;
  white-space: nowrap;
}
html[lang^='zh'] .poster h1 {
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.poster > p {
  font-size: 1.075rem;
  line-height: 1.48;
  max-width: 380px;
  font-weight: 550;
}
.lineup {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 48%;
  display: flex;
  align-items: end;
  justify-content: center;
}
.lineup:before,
.lineup:after {
  content: '';
  position: absolute;
  left: -12%;
  width: 125%;
  height: 1px;
  background: #6c80416b;
  top: 30%;
  transform: rotate(-1deg);
  box-shadow:
    0 35px #6c80416b,
    0 70px #6c80416b,
    0 105px #6c80416b;
  z-index: -1;
}
.lineup:after {
  display: none;
}
.face {
  display: block;
  aspect-ratio: 1;
  background-image: url('undercover-portraits.png');
  background-size: 400% 400%;
  background-position: var(--x, 0%) var(--y, 0%);
  image-rendering: pixelated;
  flex-shrink: 0;
}
.mugshot {
  display: flex;
  flex-direction: column;
  width: 31%;
  padding: 6px 6px 9px;
  border: 2px solid var(--dark);
  box-shadow: 4px 5px var(--dark);
  border-radius: 4px;
  background: #f7f2d7;
}
.mugshot > .face {
  border: 2px solid var(--dark);
}
.mugshot > span {
  font: 800 clamp(0.7rem, 1.45vw, 1rem)/1 var(--mono);
  text-align: center;
  text-transform: uppercase;
  padding-top: 10px;
  letter-spacing: 0.04em;
}
.first {
  transform: rotate(-11deg) translate(4%, -6%);
  z-index: 1;
}
.second {
  position: relative;
  width: 34%;
  transform: rotate(4deg) translateY(-12%);
  z-index: 3;
  background: #f9b39a;
}
.third {
  transform: rotate(12deg) translate(-6%, -4%);
  z-index: 2;
}
.suspect {
  position: absolute;
  top: 1%;
  left: 68%;
  z-index: 4;
  background: var(--dark);
  border: 2px solid var(--dark);
  color: var(--acid);
  border-radius: 50%;
  width: 45px;
  height: 44px;
  transform: rotate(10deg);
  font: 900 2.1rem/40px var(--display);
  text-align: center;
  font-style: normal;
}
.suspect:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 2px;
  border-top: 11px solid var(--dark);
  border-right: 12px solid transparent;
  transform: rotate(12deg);
}
.entry,
.room-side,
.channel {
  background: var(--panel);
  border: 1px solid var(--line);
}
.entry {
  padding: clamp(22px, 3.1vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.entry h2,
.how h2,
.room-head h1,
.dialog-head h2,
.channel-head h2 {
  font: 700 2.1rem/1.14 var(--display);
  letter-spacing: -0.014em;
}
.lede {
  color: var(--muted);
  margin: 8px 0 24px;
}
.entry-modes {
  margin: 0 0 20px;
  padding: 4px;
  display: flex;
  gap: 4px;
  min-width: 0;
  background: #171c19;
  border: 1px solid #374036;
  border-radius: 10px;
}
.entry-modes label {
  position: relative;
  width: 50%;
  cursor: pointer;
  text-align: center;
}
.entry-modes input {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
}
.entry-modes span {
  display: block;
  padding: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
}
.entry-modes input:checked + span {
  color: var(--ink);
  background: #374136;
  border-color: #586351;
}
.entry-modes input:focus-visible + span {
  outline: 2px solid var(--acid);
}
.field {
  display: block;
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 650;
}
input:not([type='radio']),
select {
  min-width: 0;
  width: 100%;
  height: 46px;
  color: var(--ink);
  border: 1px solid #566050;
  border-radius: 8px;
  background: #191f1b;
  padding: 0 12px;
  outline-offset: 1px;
}
input:focus,
select:focus {
  border-color: var(--acid);
  outline-color: var(--acid);
}
input::placeholder {
  color: #a1a99d;
}
.identity {
  display: flex;
  gap: 9px;
}
.avatar-button {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #646d60;
  background: #343d31;
  border-radius: 8px;
  padding: 4px;
  color: var(--muted);
}
.avatar-button .face {
  width: 34px;
  border-radius: 4px;
}
#joinFields {
  margin-top: 14px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  line-height: 1.2;
  padding: 10px 15px;
  background: #30392f;
  color: var(--ink);
  font-weight: 700;
}
.button:hover:enabled,
.code:hover,
.avatar-button:hover {
  border-color: var(--acid);
}
.primary {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--dark);
}
.primary:hover:enabled {
  background: #edf9a4;
}
.enter {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}
.hint,
.feedback,
.notice {
  font-size: 0.89rem;
}
.hint {
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
}
.feedback,
.notice {
  color: #ffc1a9;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.how {
  margin-top: 33px;
}
.how h2 {
  font-size: 1.5rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--line);
}
.how-grid article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.how h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 650;
}
.how p,
.rules-list {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}
.how p {
  margin-top: 4px;
}
.step-icon {
  position: relative;
  margin: 3px 0;
  display: block;
  flex: none;
  width: 24px;
  height: 22px;
}
.card-icon {
  border: 2px solid #e4cd9f;
  transform: rotate(-7deg);
  border-radius: 3px;
  box-shadow:
    3px 3px var(--bg),
    4px 4px #e4cd9f;
}
.card-icon:after {
  content: '';
  position: absolute;
  inset: 5px;
  border-top: 2px solid #e4cd9f;
  border-bottom: 2px solid #e4cd9f;
}
.bubble-icon {
  width: 25px;
  height: 19px;
  border: 2px solid #b3cfbc;
  border-radius: 4px;
}
.bubble-icon:after {
  border-top-color: #b3cfbc;
}
.vote-icon {
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: 5px;
  font: 700 24px/16px var(--mono);
  text-align: center;
}
.room-head {
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 18px;
}
.room-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}
.kicker,
#phase,
.count,
.code,
.message-name small {
  font: 650 0.81rem var(--mono);
}
.kicker {
  text-transform: uppercase;
  color: var(--acid);
  letter-spacing: 0.08em;
}
.room-links {
  gap: 14px;
}
.code {
  color: var(--ink);
  background: transparent;
  letter-spacing: 0.1em;
  min-height: 37px;
  border: 1px dashed #7c8971;
  border-radius: 6px;
  padding: 5px 10px;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(192px, 0.34fr) 1fr;
  gap: 16px;
  align-items: start;
}
.room-side {
  padding: 16px;
}
.room-side summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 750;
  list-style: none;
}
.room-side summary::-webkit-details-marker {
  display: none;
}
.count,
#phase {
  color: var(--acid);
  background: #333e2c;
  border: 1px solid #55634a;
  border-radius: 20px;
  padding: 4px 9px;
  white-space: nowrap;
}
#roster {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.person .face,
.message .face {
  width: 36px;
  border-radius: 7px;
}
.person > div,
.message > div {
  min-width: 0;
}
.person strong,
.message-name {
  font-size: 0.9rem;
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.person small,
.message-name small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.person.out .face {
  filter: grayscale(1);
}
#sideFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.channel {
  display: flex;
  flex-direction: column;
  height: clamp(460px, calc(100dvh - 225px), 760px);
  min-width: 0;
}
.channel-head,
.stage,
.composer {
  padding: 12px 16px;
}
.channel-head {
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.channel-head h2 {
  font-size: 1.28rem;
}
.stage {
  background: #2c352b;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  max-height: 35%;
  overflow: auto;
  flex: none;
}
.stage p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}
.stage strong {
  line-height: 1.3;
  display: block;
}
.stage-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: end;
}
.stage-actions .button {
  min-height: 38px;
  font-size: 0.87rem;
  padding: 7px 11px;
}
.channel:has(.reveal-lineup) {
  min-height: 26rem;
}
.reveal-lineup {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(6.1rem, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 3px 10px;
  flex: none;
  margin: 0;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line);
  background: #202720;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #738164 transparent;
  scrollbar-width: thin;
}
.short-lineup {
  grid-auto-columns: minmax(0, 1fr);
}
.channel:has(.reveal-lineup) #chatFeed .system:not(.elim) {
  display: none;
}
.result-events {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.result-events summary { color: var(--acid); }
.result-events ol { padding-inline-start: 1.5rem; }
.result-events li { margin-block: .5rem; }
.reveal-lineup:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -3px;
}
.reveal-player {
  --reveal-color: #dce7cd;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  justify-items: center;
  align-items: end;
  min-width: 0;
  text-align: center;
}
.reveal-player[data-role='undercover'] { --reveal-color: var(--coral); }
.reveal-player[data-role='white'] { --reveal-color: #c8d5ee; }
.reveal-word {
  position: relative;
  max-width: 100%;
  padding: 4px 8px;
  margin-bottom: 3px;
  border-radius: 7px;
  background: var(--reveal-color);
  color: var(--dark);
  line-height: 1.12;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.reveal-word::after {
  content: '';
  position: absolute;
  top: 100%;
  left: calc(50% - 4px);
  border: 4px solid transparent;
  border-top-color: var(--reveal-color);
}
.reveal-word span { display: block; margin-top: 2px; font-size: .79rem; }
.reveal-player .face { width: 34px; border-radius: 6px; }
.reveal-name { align-self: start; font-size: .84rem; line-height: 1.15; overflow-wrap: anywhere; }
.reveal-role { color: var(--reveal-color); font-size: .76rem; line-height: 1.15; }
#chatFeed {
  flex: 1;
  min-height: 85px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 16px;
  scrollbar-color: #56624f transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  max-width: 285px;
  font-size: 0.97rem;
}
.chat-empty b {
  font-size: 1.12rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.system {
  align-self: center;
  color: var(--muted);
  font-size: 0.83rem;
  max-width: 92%;
  text-align: center;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.system.result,
.system.elim {
  color: var(--acid);
}
.message {
  display: flex;
  align-items: end;
  gap: 8px;
  align-self: start;
  max-width: min(86%, 530px);
}
.message-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 2px 3px;
}
.message-name small {
  display: inline;
  color: var(--acid);
  font-size: 0.75rem;
}
.message p {
  width: fit-content;
  max-width: 100%;
  background: #373f36;
  border: 1px solid #475044;
  border-radius: 10px 10px 10px 3px;
  padding: 7px 11px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message.mine {
  align-self: end;
  flex-direction: row-reverse;
}
.message.mine p {
  margin-inline-start: auto;
  background: #cfdf91;
  border-color: #cfdf91;
  color: var(--dark);
  border-radius: 10px 10px 3px 10px;
}
.message.mine .message-name {
  justify-content: end;
}
.composer {
  border-top: 1px solid var(--line);
}
#chatForm,
.action-row {
  display: flex;
  gap: 8px;
}
#chatForm input {
  height: 42px;
  flex: 1;
  min-width: 0;
  width: auto;
}
#sendBtn {
  flex: none;
  white-space: nowrap;
  min-width: 4.1em;
}
#composeModes {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
#composeModes button {
  background: none;
  color: var(--muted);
  font-size: 0.81rem;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 4px 9px;
}
#composeModes button[aria-pressed='true'] {
  background: #354134;
  border-color: #64745c;
  color: var(--ink);
}
dialog {
  background: var(--panel);
  color: var(--ink);
  width: min(460px, calc(100% - 30px));
  max-height: 86dvh;
  border: 1px solid #65745e;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 80px #0008;
}
dialog::backdrop {
  background: #0b100dc9;
}
.dialog-head {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 1.6rem;
}
.close {
  font-size: 1.5rem;
  line-height: 1;
  background: #343e33;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.rules-list {
  padding-left: 22px;
}
.rules-list li + li {
  margin-top: 8px;
}
.local-link {
  color: var(--acid);
  font-size: 0.85rem;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.avatar-grid button {
  padding: 4px;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 8px;
}
.avatar-grid button[aria-pressed='true'] {
  border-color: var(--acid);
}
.avatar-grid .face {
  width: 100%;
  border-radius: 3px;
}
.dialog-field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.dialog-field label {
  font-weight: 650;
  font-size: 0.92rem;
}
.dialog-text {
  margin-bottom: 14px;
  color: var(--muted);
}
.secret {
  background: var(--acid);
  color: var(--dark);
  text-align: center;
  padding: 30px 14px;
  border-radius: 10px;
}
.secret b {
  display: block;
  font: 800 2.5rem/1.15 var(--display);
  overflow-wrap: anywhere;
}
.secret span {
  display: block;
  font-size: 1.15rem;
  margin-top: 8px;
}
.choices {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}
.vote-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  cursor: pointer;
}
.vote-choice input {
  accent-color: var(--acid);
}
.vote-choice .face {
  width: 30px;
  border-radius: 4px;
}
.result-list {
  padding-left: 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notice {
  margin: 0 0 10px;
}
@media (max-width: 830px) {
  .shell {
    width: calc(100% - 40px);
  }
  .poster {
    padding: 28px 24px 0;
  }
  .poster h1 {
    font-size: clamp(3.1rem, 6.4vw, 4.1rem);
  }
  .poster > p {
    font-size: 1rem;
  }
  .home-grid {
    gap: 12px;
  }
  .entry {
    padding: 23px;
  }
  .how-grid {
    gap: 16px;
  }
  .room-grid {
    grid-template-columns: 190px 1fr;
  }
}
@media (max-width: 650px) {
  .channel:has(.reveal-lineup) .channel-head { display: none; }
  .channel:has(.reveal-lineup) #chatFeed { gap: 6px; padding-block: 7px; }
  .channel:has(.reveal-lineup) .message-name { line-height: 1.15; margin-bottom: 2px; }
  .channel:has(.reveal-lineup) .message p { padding: 4px 9px; line-height: 1.25; }
  .reveal-lineup { gap: 2px 6px; padding: 8px 7px 7px; }
  .short-lineup .reveal-word { padding-inline: 4px; }
  .short-lineup .reveal-role { overflow-wrap: anywhere; }

  .shell {
    width: calc(100% - 28px);
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .site-header {
    height: 58px;
  }
  .site-header nav {
    gap: 10px;
  }
  .nav-action,
  .lang {
    font-size: 0.81rem;
  }
  .brand {
    gap: 7px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  .poster {
    min-height: 235px;
    padding: 20px 18px 0;
  }
  .poster h1 {
    font-size: clamp(2.8rem, 9.5vw, 4rem);
    margin: 9px 0 7px;
  }
  .poster-top {
    font-size: 0.73rem;
  }
  .poster > p {
    font-size: 0.93rem;
    max-width: 55%;
    position: relative;
    z-index: 5;
  }
  .lineup {
    width: 46%;
    height: 56%;
    left: auto;
    right: 3%;
    bottom: 12px;
  }
  .lineup:before {
    width: 145%;
    left: -25%;
    top: 28%;
    box-shadow:
      0 18px #6c80416b,
      0 36px #6c80416b,
      0 54px #6c80416b;
  }
  .mugshot {
    padding: 3px 3px 5px;
    box-shadow: 2px 3px var(--dark);
  }
  .mugshot > span {
    font-size: clamp(0.4rem, 1.38vw, 0.59rem);
    padding-top: 4px;
    letter-spacing: 0;
  }
  .suspect {
    width: 29px;
    height: 28px;
    top: 16%;
    font: 900 1.25rem/24px var(--display);
  }
  .entry {
    padding: 20px;
  }
  .entry h2 {
    font-size: 1.75rem;
  }
  .lede {
    margin: 5px 0 14px;
  }
  .entry-modes {
    margin-bottom: 12px;
  }
  .how {
    margin-top: 21px;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
    padding-top: 15px;
  }
  .room-head {
    margin: 13px 0 10px;
  }
  .room-head h1 {
    font-size: 1.65rem;
  }
  .room-links {
    gap: 8px;
  }
  .room-links .button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.86rem;
  }
  .code {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 0.75rem;
  }
  .room-links .text-btn {
    font-size: 0.8rem;
  }
  .room-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .room-side,
  .channel {
    width: 100%;
    border-radius: 10px;
  }
  .room-side {
    padding: 6px 10px;
    display: flex;
    gap: 8px;
    align-items: start;
  }
  .room-side details {
    flex: 1;
  }
  .room-side summary {
    justify-content: start;
    gap: 6px;
    font-size: 0.85rem;
    min-height: 30px;
  }
  .room-side summary:after {
    content: '⌄';
    color: var(--muted);
  }
  .count {
    font-size: 0.75rem;
    padding: 1px 6px;
  }
  #roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #sideFooter {
    border: none;
    padding: 0;
    margin: 0;
    display: block;
  }
  #packText {
    display: none;
  }
  .channel {
    height: clamp(330px, calc(100dvh - 209px), 780px);
  }
  .channel-head,
  .stage,
  .composer {
    padding: 8px 10px;
  }
  .channel-head h2 {
    font-size: 1.16rem;
  }
  #phase {
    font-size: 0.73rem;
  }
  .stage {
    gap: 6px;
  }
  .stage p {
    font-size: 0.81rem;
  }
  .stage strong {
    font-size: 0.94rem;
  }
  .stage-actions {
    gap: 4px;
  }
  .stage-actions .button {
    font-size: 0.78rem;
    min-height: 33px;
    padding: 5px 8px;
  }
  #chatFeed {
    padding: 12px 9px;
    gap: 9px;
  }
  .message .face {
    width: 29px;
  }
}
@media (max-width: 370px) {
  .channel:has(.reveal-lineup) { min-height: 30rem; }
  .shell {
    width: calc(100% - 18px);
  }
  .poster {
    min-height: 225px;
  }
  .room-head {
    flex-wrap: wrap;
  }
  .room-links {
    gap: 6px;
  }
  .room-head h1 {
    font-size: 1.4rem;
  }
  .brand {
    font-size: 0.9rem;
  }
}

.local-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}
.local-note a {
  color: var(--acid);
}
.live-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: 12px;
}

/* Balance the two lines of the English title inside the poster. */
html[lang='en'] .poster h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.7vw, 3.4rem);
  text-transform: none;
  text-wrap: balance;
  white-space: normal;
}
@media (max-width: 650px) {
  html[lang='en'] .poster h1 {
    max-width: 14ch;
    font-size: clamp(1.95rem, 7vw, 2.7rem);
  }
}

html[lang='en'] .room-head .kicker {
  text-transform: none;
  letter-spacing: normal;
}

.undercover-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.undercover-links a, .safety-actions + a { color: var(--muted); font-size: .85rem; }
.player-options {
  margin-inline-start: auto;
  min-width: 40px;
  min-height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.author-options {
  background: transparent;
  border: none;
  padding: 0;
  text-align: start;
}
.author-options:hover, .author-options:focus-visible { text-decoration: underline; }
.safety-actions { display: grid; gap: .65rem; margin-bottom: 1rem; }
.report-reference { overflow-wrap: anywhere; font-family: monospace; user-select: all; margin: .75rem 0; }
