:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --white: #fff;
  --ink: #241934;
  --muted: #625971;
  --line: #e4ddec;
  --violet: #5b35d4;
  --violet-dark: #4927b6;
  --lilac: #ece5ff;
  --gold: #ffd365;
  --danger: #9e2448;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #906dff;
  outline-offset: 3px;
}
a { color: inherit; }
p, h1, h2 { margin: 0; }
main { max-width: 1280px; margin-inline: auto; padding: 0 32px 40px; }
.page-header {
  min-height: 88px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--violet);
  border-radius: 10px;
  transform: rotate(-7deg);
}
.brand-mark i {
  width: 16px;
  height: 6px;
  border-radius: 2px 1px 1px 2px;
  background: #fff;
  transform: rotate(-43deg);
  position: relative;
}
.brand-mark i::after {
  content: '';
  position: absolute;
  right: -4px;
  border: 3px solid transparent;
  border-left: 4px solid var(--gold);
  border-right-width: 0;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
#connection { color: var(--muted); font-size: .88rem; }
.button {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 42px;
  padding: 9px 14px;
  font-weight: 750;
  color: var(--ink);
  background: var(--white);
  white-space: nowrap;
}
.button-primary { background: var(--violet); color: var(--white); }
.button-primary:not(:disabled):hover { background: var(--violet-dark); }
.button-quiet, .button-tool { border-color: var(--line); }
.button-quiet:not(:disabled):hover, .button-tool:not(:disabled):hover,
.button-tool[aria-pressed="true"] { background: var(--lilac); border-color: #bda9f4; }
.button:disabled { opacity: .5; }
label { display: block; color: var(--ink); font-size: .93rem; font-weight: 720; }
input, textarea, select {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #cec5db;
  border-radius: 10px;
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
}
input:disabled { color: var(--muted); background: #f8f6fc; }
input::placeholder { color: #746981; opacity: 1; }
.error { font-size: .91rem; line-height: 1.4; color: var(--danger); margin-top: 8px; }
.entry {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(25px, 6vw, 100px);
  padding: clamp(36px, 7vw, 100px) 0 40px;
  min-height: 66vh;
}
.entry h1 {
  font-size: clamp(3.35rem, 7.25vw, 6.9rem);
  line-height: .97;
  font-weight: 880;
  letter-spacing: -.085em;
}
.entry h1 span { color: var(--violet); }
.entry-content > p { max-width: 31ch; color: var(--muted); font-size: 1.17rem; line-height: 1.6; margin: 22px 0 32px; }
.entry form { max-width: 450px; }
.entry-fields { display: flex; gap: 9px; margin-top: 8px; }
.entry-fields input { min-width: 0; }
.entry-fields .button { min-height: 50px; }
.room-visibility { margin-top: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; min-height: 36px; }
.checkbox-label input { appearance: auto; margin: 0; width: 18px; min-height: 18px; accent-color: var(--violet); }
#room-name-field { margin-top: 8px; }
#room-name-field input { margin-top: 6px; }
.optional { color: var(--muted); font-weight: 520; }
.public-lobby { max-width: 450px; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.public-heading, #public-rooms li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
.public-heading h2 { font-size: 1rem; }
.public-heading .button { font-size: .87rem; }
#public-status { padding: 0 12px 12px; color: var(--muted); font-size: .9rem; }
#public-rooms { margin: 0; padding: 0; list-style: none; max-height: 240px; overflow-y: auto; }
#public-rooms li { border-top: 1px solid var(--line); }
#public-rooms li strong { display: block; overflow-wrap: anywhere; }
#public-rooms li span { display: block; color: var(--muted); font-size: .85rem; }
.entry-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 500px);
  aspect-ratio: 1.11;
  background: #e7ddff;
  border: 1px solid #e1d6f8;
  border-radius: 34px;
  margin-inline: auto;
  overflow: hidden;
}
.art-sheet {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1.12;
  transform: rotate(-9deg);
  border-radius: 12px;
  border: 1px solid #e0d6ef;
  box-shadow: 10px 15px 0 #bba4f17a;
  background-color: #fffdf8;
  background-image: radial-gradient(#d9d0eb 1px, transparent 1px);
  background-size: 14px 14px;
}
.art-sheet canvas { width: 100%; height: auto; }
.art-tape {
  position: absolute;
  top: 13%;
  left: 37%;
  width: 25%;
  height: 8%;
  transform: rotate(-13deg);
  background: #ffde80e6;
  border-radius: 3px;
}
.art-swatch {
  position: absolute;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fffdf8;
  box-shadow: 0 3px 6px #33224c22;
}
.art-swatch-lilac { background: #8253f6; right: 7%; bottom: 14%; }
.art-swatch-yellow { background: var(--gold); right: 13%; bottom: 9%; }
body:has(#room:not([hidden])) {
  position: fixed;
  inset-inline: 0;
  top: var(--room-viewport-top, 0px);
  height: var(--room-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body:has(#room:not([hidden])) .page-header {
  width: 100%;
  flex: 0 0 auto;
  min-height: clamp(44px, 8dvh, 74px);
  padding-top: env(safe-area-inset-top);
}
body:has(#room:not([hidden])) main {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.room {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: 4px;
}
.room, .room-grid, .desk, .board-wrap, .room-sidebar { min-width: 0; min-height: 0; }
.room-banner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  margin-bottom: 14px;
  background: #ede7ff;
  border: 1px solid #e3d9fb;
  border-radius: 16px;
}
.eyebrow { color: #5b467e; font-size: .81rem; font-weight: 780; }
.turn-detail { margin-top: 5px; font-size: .9rem; font-weight: 720; overflow-wrap: anywhere; }
.prompt-area { text-align: center; }
.prompt { font-size: clamp(1.1rem, 2.5vw, 1.9rem); font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; }
.prompt.masked { letter-spacing: .095em; }
.clock { display: grid; justify-self: end; justify-items: end; text-align: right; min-width: min(100%, 88px); }
.clock-time { font-size: 1.7rem; line-height: 1.15; font-weight: 850; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 6px; margin-top: 4px; border: 0; border-radius: 9px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: #d9cbed; }
progress::-webkit-progress-value { background: var(--violet); }
progress::-moz-progress-bar { background: var(--violet); }
progress[data-low="true"]::-webkit-progress-value { background: #d13f61; }
progress[data-low="true"]::-moz-progress-bar { background: #d13f61; }
.room-grid {
  position: relative;
  container-type: size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 325px);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}
.desk {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.board-wrap {
  position: relative;
  container-type: size;
  display: grid;
  place-items: center;
  background: #f3eefb;
}
#board {
  display: block;
  width: 100%;
  width: min(100cqw, 160cqh);
  height: auto;
  background: var(--white);
  touch-action: pan-y;
}
#board.can-draw { cursor: crosshair; touch-action: none; }
.board-cover {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: safe center;
  justify-items: center;
  overflow: auto;
  padding: 14px;
  background-color: #fbf9ff;
  background-image: radial-gradient(#e2d6f8 1px, transparent 1px);
  background-size: 17px 17px;
}
.board-card {
  text-align: center;
  width: min(100%, 350px);
  padding: clamp(15px, 4vw, 28px);
  border: 1px solid #e8ddfa;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 5px 5px 0 #ece5fb;
}
.pick-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: safe center;
  justify-items: center;
  padding: 12px;
  overflow-y: auto;
  background: radial-gradient(circle at 18% 20%, #e2d5ff, transparent 55%), #f5f0ff;
}
.pick-card { width: min(100%, 480px); text-align: center; animation: turn-enter 280ms cubic-bezier(.2, .75, .25, 1) both; }
.pick-card h2 { font-size: clamp(1.3rem, 4vw, 2.1rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.pick-card p { margin-top: 5px; color: var(--muted); }
.pick-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; margin-top: 14px; }
.pick-options:empty { display: none; }
.choice-button { min-height: 52px; padding: 9px; border: 1px solid #c9b7f7; border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 790; overflow-wrap: anywhere; transition: transform 140ms, background 140ms; }
.tier-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.35;
}
.tier-label[data-difficulty="easy"] { color: #155f3e; background: #dcf6e7; }
.tier-label[data-difficulty="medium"] { color: #745015; background: #fff0c2; }
.tier-label[data-difficulty="hard"] { color: #832449; background: #fce0ed; }
.choice-button strong, .choice-button small { display: block; margin-top: 5px; }
.choice-button small { color: var(--muted); font-weight: 630; }
.choice-button:not(:disabled):hover { transform: translateY(-2px); background: #e8ddff; }
.choice-button:not(:disabled):active { transform: scale(.97); }
.turn-callout {
  position: absolute;
  inset: 14px 12px auto;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 18px;
  border-radius: 24px;
  background: #321d68;
  color: white;
  box-shadow: 0 5px 14px #2d175727;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: turn-enter 260ms cubic-bezier(.2, .75, .25, 1) both, turn-exit 240ms 1.6s ease-in forwards;
}
@keyframes turn-enter {
  from { opacity: 0; transform: translateY(11px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes turn-exit { to { opacity: 0; transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .pick-card, .turn-callout { animation: none; }
  .choice-button { transition: none; }
}
.board-stamp { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #4b2c00; background: var(--gold); font-size: 1.3rem; transform: rotate(-7deg); }
.board-card h2 { margin-top: 10px; font-size: 1.45rem; letter-spacing: -.04em; }
.board-card p { margin: 6px 0 12px; font-size: .93rem; color: var(--muted); line-height: 1.45; }
.lobby-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.board-card small { color: var(--muted); }
.winners { padding-left: 24px; text-align: left; margin: 8px auto 14px; }
.winners li { padding: 2px 0; overflow-wrap: anywhere; }
.winners strong { float: right; margin-left: 6px; }
.toolbar { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 12px; border-top: 1px solid var(--line); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; }
.line-widths { border-left: 1px solid var(--line); padding-left: 7px; }
.swatch {
  min-width: 32px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 4px;
}
.swatch[aria-pressed="true"] { background: var(--lilac); border-color: #af97f1; }
.swatch:disabled { opacity: .56; }
.swatch span { display: block; border-radius: 50%; background: var(--ink); }
.swatch[data-color] span { width: 18px; height: 18px; border: 1px solid #31194545; background: var(--swatch); }
[data-color="0"] { --swatch: #241934; }
[data-color="1"] { --swatch: #8253f6; }
[data-color="2"] { --swatch: #ec4380; }
[data-color="3"] { --swatch: #ee593b; }
[data-color="4"] { --swatch: #ffb521; }
[data-color="5"] { --swatch: #28a879; }
[data-color="6"] { --swatch: #3187e8; }
[data-color="7"] { --swatch: #fff; }
[data-color="8"] { --swatch: #6f432a; }
[data-color="9"] { --swatch: #13aab0; }
[data-color="10"] { --swatch: #9baf24; }
[data-color="11"] { --swatch: #697287; }
#custom-color {
  width: 42px;
  min-height: 36px;
  height: 36px;
  padding: 4px;
  cursor: pointer;
}
#custom-color:disabled { cursor: default; opacity: .55; }
[data-width="0"] span { width: 4px; height: 4px; }
[data-width="1"] span { width: 8px; height: 8px; }
[data-width="2"] span { width: 13px; height: 13px; }
[data-width="3"] span { width: 17px; height: 17px; }
.toolbar .button { min-height: 34px; padding: 4px 9px; font-size: .88rem; }
.room-sidebar { display: flex; flex-direction: column; gap: 10px; }
.chat-panel, .chat-history, .players-panel { display: flex; flex-direction: column; min-height: 0; }
.chat-panel, .chat-history { flex: 1 1 auto; }
.players-panel { flex: 0 1 auto; max-height: 33%; }
.mobile-chat-bar, .mobile-panel-close, .panel-scrim { display: none; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel-heading { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f0ebf7; }
.panel-heading h2 { font-size: 1rem; font-weight: 820; }
.count { font-size: .84rem; color: var(--muted); }
.players { margin: 0; padding: 8px; list-style: none; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.player { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 7px; border-radius: 9px; }
.player.artist { background: var(--lilac); }
.player.offline { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: .88rem; font-weight: 820; color: #321b60; background: #e7dbff; }
.avatar[data-tone="1"] { background: #ffe6a7; color: #523400; }
.avatar[data-tone="2"] { background: #ccf4e7; color: #164a39; }
.avatar[data-tone="3"] { background: #fce0ee; color: #662042; }
.player-name { font-weight: 720; overflow-wrap: anywhere; display: block; }
.player-details small { display: block; color: var(--muted); font-size: .79rem; }
.player-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.message-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 13px; }
.message-feed p { margin: 0 0 6px; overflow-wrap: anywhere; font-size: .92rem; }
.empty-feed { color: var(--muted); }
.correct-guess { color: #116548; background: #e5faef; padding: 5px 7px; border-radius: 6px; }
.message-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fcfaff;
}
.message-dock input { min-width: 0; }
.notice { position: fixed; z-index: 1; inset: auto auto 18px 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 11px 18px; border-radius: 10px; background: var(--ink); color: var(--white); box-shadow: 0 5px 16px #24193444; font-weight: 700; }
dialog { width: min(550px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 17px; padding: 20px; color: var(--ink); background: var(--white); }
dialog::backdrop { background: #24193482; }
.dialog-header, .dialog-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dialog-header { margin-bottom: 17px; }
.dialog-header h2 { font-size: 1.32rem; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
dialog input, dialog textarea, dialog select { margin-top: 6px; }
textarea { resize: vertical; min-height: 122px; font-family: ui-monospace, monospace; line-height: 1.5; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 54%, calc(100% - 10px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.example { color: var(--muted); margin-top: 5px; font-size: .89rem; }
.example code { color: var(--violet-dark); background: var(--lilac); padding: 2px 4px; border-radius: 4px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dialog-footer { align-items: center; margin-top: 15px; }
.pack-tiers, .pack-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-tiers { margin-bottom: 12px; }
.pack-tiers [aria-pressed="true"] { color: var(--violet-dark); background: var(--lilac); border-color: #bda9f4; }
.pack-presets .button { font-size: .88rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 850px) {
  main, .page-header { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .page-header { min-height: 68px; }
  .room-banner { min-height: 60px; padding: 8px 12px; margin-bottom: 8px; }
}

@media (max-width: 680px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 36px 10px; }
  .entry-art { max-width: 420px; }
  .entry h1 { font-size: clamp(3.35rem, 12vw, 5.2rem); }
  #connection { font-size: .78rem; }
  .header-actions { gap: 8px; }
  .header-actions .button { font-size: .89rem; }
  .brand { font-size: 1.22rem; }
}

[data-room-layout="compact"] .room-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}
[data-room-layout="compact"] .room-banner { gap: 7px; }
[data-room-layout="compact"] .turn-detail { font-size: .79rem; }
[data-room-layout="compact"] .pick-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-room-layout="compact"] .choice-button { padding-inline: 6px; }
[data-room-layout="compact"] .board-card { padding: 12px; }
[data-room-layout="compact"] .board-stamp { width: 30px; height: 30px; }
[data-room-layout="compact"] .toolbar { min-height: 0; gap: 5px; padding: 4px 6px; }
[data-room-layout="compact"] .toolbar:not([data-active="true"]) { display: none; }
[data-room-layout="compact"] #colors {
  flex-basis: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}
[data-room-layout="compact"] #colors .swatch { min-width: 28px; min-height: 40px; flex: 1 0 28px; }
[data-room-layout="compact"] .toolbar .button, [data-room-layout="compact"] #custom-color { min-height: 40px; }
[data-room-layout="compact"] .room-sidebar { position: relative; z-index: 3; }
[data-room-layout="compact"] .chat-panel { overflow: visible; }
[data-room-layout="compact"] :is(.chat-history, .players-panel) { display: none; }
[data-room-layout="compact"] .mobile-chat-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 4px 7px 0;
}
.mobile-panel-actions { display: flex; gap: 4px; }
.mobile-panel-actions .button { min-height: 44px; padding: 5px 8px; font-size: .84rem; }
.mobile-panel-actions [aria-expanded="true"] { background: var(--lilac); border-color: #bda9f4; }
.chat-preview { min-width: 0; }
.chat-preview p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; line-height: 1.25; }
.chat-preview [data-kind="correct"] { color: #116548; background: transparent; padding: 0; }
[data-room-layout="compact"] .message-dock { border: 0; padding: 5px 7px 7px; }
[data-room-layout="compact"] .message-dock :is(input, button) { min-height: 44px; }
[data-room-layout="compact"] .panel-scrim:not([hidden]) {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: 14px;
  background: #24193440;
}
[data-room-layout="compact"] [data-mobile-panel="chat"] .chat-history,
[data-room-layout="compact"] [data-mobile-panel="players"] .players-panel {
  display: flex;
  position: absolute;
  inset: auto 0 calc(100% + 4px);
  height: min(24rem, 52cqh);
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 -8px 26px #24193425;
  animation: turn-enter 190ms ease-out both;
}
[data-room-layout="compact"] .mobile-panel-close { display: block; min-height: 36px; padding: 6px 9px; }
[data-room-layout="compact"] .room .notice { bottom: calc(108px + env(safe-area-inset-bottom)); }
[data-room-layout="compact"] [data-mobile-panel="chat"] .chat-preview { visibility: hidden; }

@media (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
  [data-room-layout="wide"] .room-sidebar { position: relative; }
  [data-room-layout="wide"] .players-panel { display: none; }
  [data-room-layout="wide"] .mobile-chat-bar { display: flex; justify-content: end; padding-inline: 6px; }
  [data-room-layout="wide"] :is(.chat-preview, #chat-toggle) { display: none; }
  [data-room-layout="wide"] [data-mobile-panel="players"] .players-panel {
    display: flex;
    position: absolute;
    z-index: 1;
    inset: 0;
    max-height: none;
  }
  [data-room-layout="wide"] .players-panel .mobile-panel-close { display: block; min-height: 36px; padding: 6px 9px; }
  [data-room-layout="wide"] .toolbar { min-height: 0; padding: 3px 5px; flex-wrap: nowrap; overflow-x: auto; }
  [data-room-layout="wide"] .toolbar .tools { flex: 0 0 auto; flex-wrap: nowrap; }
  [data-room-layout="wide"] .toolbar:not([data-active="true"]) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-room-layout] [data-mobile-panel] :is(.chat-history, .players-panel) { animation: none; }
}
