@charset "UTF-8";
/* Established visual theme. Shared alignment rules are in layout.css. */
.room-input {
  font-size: 24px;
  letter-spacing: 0.22em;
  text-align: left;
  min-height: 52px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.join-button {
  min-height: 52px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.quiet-link {
  font-size: 12px;
  color: #b2c0c4;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
}
.quiet-link:hover {
  color: #e1b571;
}
.join-code-panel {
  padding: 28px 24px;
  border-top: 2px solid #aa8a57;
  background: #1a2932;
  margin-bottom: 26px;
}
.join-code-panel > strong {
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #e1b571;
  font-variant-numeric: tabular-nums;
}
.join-code-panel > p {
  font-size: 13px;
}
.recap-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid #63756d;
  background: #21322f;
  margin-bottom: 26px;
}
.recap-bar p {
  font-size: 12px;
  margin: 6px 0 0;
}
.match-choice {
  margin: 0;
  font-size: 10px;
}
.match-choice select {
  font-size: 13px;
  min-height: 44px;
  margin-top: 3px;
}
.recap-dialog {
  max-width: 820px;
  max-height: 85dvh;
  width: calc(100% - 32px);
}
.recap-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.recap-dialog pre {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 56dvh;
  overflow: auto;
  font-size: 13px;
  line-height: 1.9;
  background: #11232c;
  padding: 18px;
  color: #ece9db;
}
.player-tools {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #3c5059;
}
.player-tools .text {
  font-size: 11px;
}
.roster-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}
.roster-manage-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1a2932;
  padding: 8px 14px;
  font-size: 12px;
}
.word-bank-note {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .recap-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .roster-manage-grid {
    grid-template-columns: 1fr;
  }
  .player-entry .entry-story h1 {
    font-size: 31px;
  }
  .player-tools {
    justify-content: space-between;
  }
  .join-code-panel {
    padding: 22px 18px;
  }
  .recap-bar .buttons {
    width: 100%;
  }
}
:root {
  color-scheme: dark;
  --bg: #111d25;
  --panel: #1a2932;
  --ink: #ece9db;
  --muted: #b2c0c4;
  --line: #3c5059;
  --amber: #e1b571;
  --green: #c1d2b8;
  --red: #edb29f;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(110deg, #19293245, transparent 60%), var(--bg);
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
h1 {
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  font-weight: 500;
  letter-spacing: 0.025em;
}
p {
  color: var(--muted);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4%;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 23px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 400;
}
.seal {
  display: grid;
  place-content: center;
  width: 43px;
  height: 46px;
  color: var(--amber);
  border: 1px solid var(--amber);
  font-family: "Songti SC", serif;
  font-weight: 400;
  font-size: 25px;
}
.header-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.room-code {
  color: var(--ink);
  letter-spacing: 0.12em;
}
#network {
  white-space: nowrap;
}
.primary,
.secondary,
.text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-size: 14px;
  border-radius: 2px;
}
.primary {
  background: var(--amber);
  color: #19242b;
  border-color: var(--amber);
  font-weight: 600;
}
.primary:hover:not(:disabled) {
  background: #efd09b;
}
.secondary {
  border-color: #64767d;
  background: transparent;
}
.secondary:hover:not(:disabled) {
  background: #2b3d47;
}
.text {
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
}
.text:hover:not(:disabled) {
  color: var(--amber);
}
.danger {
  color: var(--red);
}
.full {
  width: 100%;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 12px;
}
.fine {
  font-size: 12px;
  line-height: 1.85;
}
.muted {
  color: var(--muted);
}
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  max-width: 1350px;
  margin: auto;
  padding: 70px 5%;
  gap: 8%;
}
.entry-story h1 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.65;
  margin: 22px 0;
}
.entry-story h1 span {
  color: var(--amber);
}
.entry-story > p {
  font-size: 15px;
  line-height: 2;
}
.entry-story > .fine {
  font-size: 12px;
}
.channel-art {
  margin: 38px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #9bb1b9;
}
.channel-art b {
  font-weight: 400;
  font-size: 10px;
  color: var(--amber);
  grid-column: 1/-1;
  margin-top: 8px;
}
.entry-access {
  align-self: start;
  border-top: 2px solid #9d855e;
  background: #182731;
  padding: 24px 30px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.tabs button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 12px 0 16px;
  min-height: 44px;
  font-size: 14px;
}
.tabs button[aria-pressed="true"] {
  color: var(--amber);
  border-bottom: 2px solid var(--amber);
  margin-bottom: -1px;
}
form h2 {
  font-size: 23px;
  margin-bottom: 12px;
}
form > p {
  font-size: 13px;
}
label {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #637580;
  background: #101e27;
  color: var(--ink);
  border-radius: 2px;
  padding: 12px;
  min-height: 46px;
  font-size: 16px;
}
input:focus,
select:focus {
  border-color: var(--amber);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 6px 0 16px;
}
.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--amber);
}
form > .fine {
  margin: 15px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}
details form {
  margin-top: 16px;
}
.footer {
  padding: 24px 4%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.dashboard {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4% 50px;
}
.dashboard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 8px 0 28px;
}
.dashboard-title h1 {
  font-size: 36px;
  margin-bottom: 12px;
}
.dashboard-title p {
  font-size: 13px;
  margin-bottom: 0;
}
.projection-bar {
  border: 1px solid #64746c;
  background: #1d302e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.projection-bar strong {
  font-size: 14px;
  font-weight: 500;
}
.projection-bar p {
  font-size: 12px;
  margin: 5px 0 0;
}
.projection-bar a {
  white-space: nowrap;
}
.projection-bar .buttons {
  gap: 8px;
}
.projection-bar .secondary {
  font-size: 12px;
}
.notice,
.practice-banner {
  padding: 12px 4%;
  background: #443328;
  color: #efcfac;
  border-bottom: 1px solid #8d6b43;
  font-size: 13px;
  line-height: 1.8;
}
.practice-banner {
  background: #303329;
  color: #cfd5b6;
}
.notice[hidden] {
  display: none;
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.group-panel {
  min-width: 0;
  border-top: 2px solid #9b855f;
  background: #1a2932;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.group-letter {
  font-size: 39px;
  font-weight: 300;
  line-height: 1;
  color: var(--amber);
}
.group-heading .eyebrow {
  font-size: 9px;
  margin: 0 0 7px;
}
.group-heading h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.group-clock {
  margin-left: auto;
  font-size: 27px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.group-status {
  font-size: 13px;
  min-height: 23px;
  margin-bottom: 16px;
}
.seat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.seat {
  padding: 10px 5px;
  background: #14242e;
  border: 1px solid var(--line);
  text-align: center;
  min-width: 0;
}
.seat b {
  display: block;
  font-size: 19px;
  font-weight: 400;
}
.seat span {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat small {
  font-size: 9px;
  color: var(--muted);
}
.seat.speaking {
  border-color: var(--amber);
  background: #3b3429;
  color: #f0d1a0;
}
.seat.away {
  border-style: dashed;
  border-color: #a8826d;
}
.seat.voted {
  border-color: #7e9a83;
  background: #24382d;
}
.seat.voted b::after {
  content: " ✓";
  font-size: 10px;
}
.seat.out {
  opacity: 0.6;
}
.seat.out b,
.seat.out span {
  text-decoration: line-through;
}
.group-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.group-controls .secondary {
  font-size: 12px;
  flex: 1;
}
.group-controls .text {
  font-size: 11px;
}
.report {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.report h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}
.report .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.tallies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--muted);
}
.tallies b {
  color: var(--ink);
  font-weight: 500;
  margin-left: 8px;
}
.report > .fine {
  font-size: 10px;
  margin: 14px 0 0;
}
.invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.invite-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #1b2b34;
}
.invite-grid code {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.invite-grid button {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.invites {
  margin-bottom: 30px;
}
.invites h3 {
  font-size: 20px;
  margin: 24px 0 14px;
}
.rules {
  margin-top: 28px;
}
.rules ol {
  font-size: 13px;
  color: var(--muted);
  padding-left: 22px;
  line-height: 1.9;
}
.rules li {
  margin-bottom: 10px;
}
.player-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
.player-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.player-heading > .eyebrow {
  grid-column: 1/-1;
  margin-bottom: 8px;
}
.player-heading h1 {
  font-size: 29px;
  margin: 0;
}
.player-heading h1 small {
  display: block;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 5px;
}
.player-clock {
  text-align: right;
}
.player-clock span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.player-clock strong {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.word-envelope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.word-envelope h2 {
  font-family: "Songti SC", serif;
  font-size: 29px;
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.word-envelope p {
  font-size: 11px;
  margin: 0;
}
.word-envelope button {
  flex-shrink: 0;
}
.word-envelope .eyebrow {
  font-size: 9px;
}
.action-block {
  padding: 28px 0;
}
.action-block h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.action-block > p {
  font-size: 13px;
  line-height: 1.9;
}
.action-block > .primary {
  margin-top: 10px;
}
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 12px;
}
.vote-option {
  min-height: 76px;
  padding: 10px;
  background: #1a2c36;
  color: var(--ink);
  border: 1px solid #506570;
  text-align: left;
  border-radius: 2px;
}
.vote-option b {
  display: block;
  font-size: 18px;
  font-weight: 500;
}
.vote-option span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.vote-option.selected {
  border-color: var(--amber);
  background: #39342b;
  color: var(--amber);
}
.vote-option.selected span {
  color: #efcfaa;
}
.vote-option:disabled {
  opacity: 0.7;
}
.vote-option.selected:disabled {
  opacity: 1;
}
.waiting {
  padding: 45px 0 25px;
}
.waiting h2 {
  font-size: 25px;
  font-weight: 500;
}
.waiting p {
  font-size: 14px;
}
.transmission-mark {
  display: block;
  font-size: 58px;
  color: var(--amber);
  font-weight: 300;
  margin-bottom: 18px;
}
.roster .seat-grid {
  margin-top: 12px;
}
.finale {
  padding: 26px 0;
}
.finale h2 {
  font-family: "Songti SC", serif;
  font-size: 32px;
  color: var(--amber);
}
.finale p {
  font-size: 14px;
}
.role-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.role-list > span {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #1c2e36;
  gap: 10px;
}
.role-list b {
  color: var(--amber);
  font-weight: 500;
  white-space: nowrap;
}
.wall {
  padding: 24px 2.2% 16px;
}
.wall-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
.wall-title h1 {
  font-size: 38px;
  margin-bottom: 10px;
}
.wall-title p {
  font-size: 14px;
  margin-bottom: 0;
}
.wall-privacy {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  color: var(--amber);
  white-space: nowrap;
}
.wall-privacy b {
  display: block;
  font-size: 21px;
  font-weight: 500;
}
.wall-privacy span {
  font-size: 11px;
  color: var(--muted);
}
.wall-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.wall-grid .group-panel {
  padding: 18px 15px;
}
.wall-grid .group-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.wall-grid .group-heading .group-letter {
  font-size: 35px;
}
.wall-grid h2 {
  font-size: 20px;
}
.wall-grid .group-clock {
  font-size: 28px;
  margin-left: 0;
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.wall-grid .group-status {
  min-height: 43px;
  font-size: 12px;
}
.wall-grid .seat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wall-grid .seat small {
  font-size: 10px;
}
.wall-grid .seat {
  padding: 8px 4px;
}
.wall-grid .report h3 {
  font-size: 16px;
}
.wall-grid .tallies {
  gap: 8px 12px;
}
.legend {
  margin: 20px 0 0;
  font-size: 11px;
}
#last-sync {
  margin: 8px 0 0;
}
.urgent {
  color: var(--red) !important;
}
.loading {
  max-width: 720px;
  margin: 12vh auto;
  padding: 30px;
}
.loading h1 {
  font-size: 30px;
}
.loading p {
  line-height: 1.9;
}
dialog {
  border: 1px solid #6d7d84;
  background: #1a2b35;
  color: var(--ink);
  border-radius: 3px;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 28px;
}
dialog::backdrop {
  background: #08141bd9;
}
dialog h2 {
  font-size: 24px;
}
dialog p {
  font-size: 14px;
}
dialog .buttons {
  justify-content: flex-end;
  margin-top: 25px;
}
dialog textarea {
  margin-bottom: 20px;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: calc(100% - 32px);
  background: #25382c;
  color: #e3e9d8;
  border: 1px solid #829a7c;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  font-size: 13px;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #49342d;
  color: #f3d6c2;
  border-color: #a67d68;
}
@media (min-width: 1700px) {
  .wall-grid .seat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .wall-grid .seat {
    padding: 15px 4px;
  }
  .wall-grid .group-panel {
    padding: 22px;
  }
  .wall-grid .group-heading {
    min-height: 130px;
  }
  .wall-grid .seat-grid {
    gap: 7px;
  }
  .wall-grid .seat b {
    font-size: 23px;
  }
  .wall-grid .group-status {
    font-size: 14px;
  }
  .wall-grid .group-clock {
    font-size: 36px;
  }
  .wall {
    padding-top: 30px;
  }
  .wall-title {
    margin-bottom: 36px;
  }
}
@media (max-width: 1100px) {
  .projection-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .wall-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .entry {
    gap: 5%;
    padding: 50px 4%;
  }
  .entry-story h1 {
    font-size: 34px;
  }
  .entry-access {
    padding: 20px;
  }
  .header-meta {
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .masthead {
    padding: 18px 20px;
    align-items: flex-start;
    gap: 15px;
  }
  .brand {
    font-size: 18px;
    gap: 10px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 0.07em;
  }
  .seal {
    width: 32px;
    height: 36px;
    font-size: 22px;
  }
  .header-meta {
    font-size: 9px;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 150px;
  }
  .header-meta .text {
    font-size: 11px;
    padding: 3px 8px;
  }
  .header-meta .secondary {
    font-size: 11px;
    padding: 8px 10px;
  }
  .entry {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 20px;
  }
  .entry-story h1 {
    font-size: 31px;
    line-height: 1.6;
    margin: 15px 0;
  }
  .entry-story > p {
    font-size: 13px;
  }
  .entry-story .eyebrow {
    font-size: 8px;
  }
  .channel-art {
    display: none;
  }
  .entry-story > .fine {
    font-size: 11px;
    margin-bottom: 0;
  }
  .entry-access {
    padding: 22px;
  }
  .tabs {
    margin-bottom: 23px;
  }
  form h2 {
    font-size: 21px;
  }
  .dashboard {
    padding: 25px 20px;
  }
  .dashboard-title {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .dashboard-title h1 {
    font-size: 29px;
  }
  .projection-bar {
    padding: 16px;
  }
  .projection-bar .buttons {
    width: 100%;
  }
  .projection-bar .secondary {
    flex: 1;
    font-size: 11px;
    padding: 9px 12px;
  }
  .projection-bar .text {
    font-size: 11px;
  }
  .groups-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .group-panel {
    padding: 20px 16px;
  }
  .group-heading h2 {
    font-size: 21px;
  }
  .group-clock {
    font-size: 25px;
  }
  .group-controls {
    gap: 4px;
  }
  .group-controls .text {
    font-size: 10px;
  }
  .invite-grid {
    grid-template-columns: 1fr;
  }
  .invite-grid > div {
    gap: 10px;
  }
  .invite-grid code {
    font-size: 11px;
  }
  .player-shell {
    padding: 25px 20px;
  }
  .player-heading h1 {
    font-size: 25px;
  }
  .player-clock strong {
    font-size: 29px;
  }
  .word-envelope {
    gap: 15px;
    padding: 24px 0;
    align-items: flex-start;
  }
  .word-envelope h2 {
    font-size: 25px;
  }
  .word-envelope .eyebrow {
    font-size: 8px;
  }
  .word-envelope p {
    font-size: 10px;
  }
  .word-envelope button {
    font-size: 12px;
    padding: 11px 12px;
    margin-top: 25px;
  }
  .action-block h2 {
    font-size: 23px;
  }
  .vote-grid {
    gap: 8px;
  }
  .vote-option {
    padding: 10px;
    min-height: 76px;
  }
  .role-list {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 22px 20px;
    font-size: 9px;
    flex-direction: column;
    gap: 7px;
  }
  .wall-title {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .wall-title h1 {
    font-size: 29px;
  }
  .wall-privacy {
    padding-left: 0;
    border-left: 0;
  }
  .wall-privacy b {
    font-size: 14px;
  }
  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wall-grid .group-heading h2 {
    font-size: 17px;
  }
  .wall-grid .group-panel {
    padding: 15px 12px;
  }
  .wall-grid .group-letter {
    font-size: 28px;
  }
  .wall-grid .group-heading .eyebrow {
    font-size: 7px;
  }
  .wall-grid .group-clock {
    font-size: 25px;
  }
  .wall-grid .group-status {
    font-size: 11px;
    min-height: 40px;
  }
  .wall-grid .seat b {
    font-size: 16px;
  }
  .wall {
    padding: 24px 16px;
  }
  .notice,
  .practice-banner {
    padding: 10px 20px;
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .wall-grid {
    grid-template-columns: 1fr;
  }
  .word-envelope {
    flex-direction: column;
  }
  .word-envelope button {
    margin-top: 0;
    width: 100%;
  }
  .seat-grid {
    gap: 5px;
  }
  .seat span {
    font-size: 10px;
  }
  .header-meta {
    max-width: 110px;
  }
  .vote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.group-switch {
  padding: 20px 0;
  border-top: 1px solid var(--line, #b5ad99);
}
.group-switch summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding: 10px 0;
}
.switch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.switch-options button {
  min-height: 48px;
  flex: 1 1 180px;
}
.restart-action .fine {
  overflow-wrap: anywhere;
}
.player-shell .recap-bar {
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}
.player-shell .recap-bar .buttons {
  flex-wrap: wrap;
}
.match-choice {
  min-width: 0;
}
