:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #2b231c;
  background: #f7f5ed;
  --paper: #fbf7ee;
  --line: #ded2bd;
  --muted: #756958;
  --brown: #553322;
  --gold: #ad7737;
  --mono: "Consolas", "SFMono-Regular", monospace;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: radial-gradient(ellipse at 48% 20%, #fffff9, #efede2 83%); min-height: 100svh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid #a35c22; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
.masthead { background: #fbf8ef; border-bottom: 1px solid #d9ccb6; box-shadow: 0 2px 9px #5f412a09; }
.mast-inner, .shell {
  width: min(1720px, calc(100% - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right) + 16px)));
  margin-inline: auto;
}
.shell { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.in-room .mast-inner, .in-room .shell { width: calc(100% - max(28px, env(safe-area-inset-left) + env(safe-area-inset-right) + 16px)); }
.in-room .shell { padding-top: 11px; }
.in-room .page-heading { display: none; }
.in-room .layout { display: block; }
.in-room .mast-inner { min-height: 54px; }
.in-room .brand-mark { width: 34px; height: 34px; }
.in-room .brand-text small { display: none; }
.in-room .brand-text strong { font-size: 17px; }
.in-room #room-panel { display: none; }
.in-room.room-panel-open #room-panel {
  display: grid; position: fixed; inset: 60px max(14px, env(safe-area-inset-right)) auto auto; z-index: 12;
  width: min(340px, calc(100% - 28px)); max-height: calc(100dvh - 72px); overflow: auto;
  gap: 8px; padding: 8px; border: 1px solid #c9bda2; border-radius: 10px;
  background: #f7f3e8; box-shadow: 0 12px 36px #332d2460;
}
.utilities #sound-toggle, .utilities #room-toggle { justify-content: center; white-space: nowrap; }
.mast-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: linear-gradient(145deg,#77492f,#482a1e); color: #ffe4ad; font: 27px Georgia, serif; border: 1px solid #4d2f20; border-radius: 9px; box-shadow: inset 0 0 0 3px #c1925845, 0 2px 3px #53311f30; }
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: .1em; }
.brand-text small { font: 9px var(--mono); color: var(--muted); letter-spacing: .19em; }
.utilities { display: flex; gap: 18px; align-items: center; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b2793d; box-shadow: 0 0 0 3px #b2793d22; }
.connection.live .signal { background: #467451; box-shadow: 0 0 0 3px #46745123; }
.profile-button { display: flex; align-items: center; gap: 8px; background: #f4ede0; border: 1px solid #ded1bb; color: #4d3e2c; border-radius: 7px; min-height: 36px; padding: 0 12px; font-size: 13px; }
.profile-button:hover { background: #eee1ce; }
.profile-icon { color: #885c37; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 25px 0 19px; }
.eyebrow { display: flex; gap: 8px; align-items: center; font: 11px var(--mono); font-weight: 700; color: #7e5738; letter-spacing: .2em; margin-bottom: 7px; }
.eyebrow-rule { width: 19px; height: 1px; background: #a6723d; }
h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(37px, 4.8vw, 60px); line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: #a46735; margin-left: 5px; }
.hero-meta { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; padding-bottom: 5px; white-space: nowrap; }
.hero-meta-dot { width: 4px; height: 4px; background: #ac7641; border-radius: 50%; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(234px, 18vw, 275px); align-items: start; gap: 20px; }
.console, .side-card { border: 1px solid #cfbaa0; background: var(--paper); border-radius: 12px; box-shadow: 0 5px 16px #5c3b2011, 0 2px 0 #deceb6; }
.console { overflow: hidden; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 17px; background: linear-gradient(#faf2e1,#f1e5d0); border-bottom: 1px solid #bd9b71; }
.table-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table-symbol { font: 24px Georgia, serif; color: #70472c; background: #e9d7b9; border: 1px solid #cdb28c; border-radius: 6px; display: grid; place-items: center; width: 36px; height: 36px; flex: none; }
.table-identity strong, .table-identity small { display: block; }
.table-identity strong { font-size: 19px; }
.table-identity small { color: #675642; font-size: 14px; margin-top: 2px; }
.table-meters { display: flex; gap: 6px; }
.meter { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; min-height: 31px; padding: 3px 9px; background: #eadfc9; border: 1px solid #dbccb1; box-shadow: inset 0 1px 2px #6c4a2422; border-radius: 5px; white-space: nowrap; }
.meter span { font-size: 13px; color: #746047; }
.meter strong { font: 700 16px var(--mono); }
.phase-meter strong { font-family: inherit; font-size: 15px; min-width: 37px; }

.table-stage {
  position: relative;
  isolation: isolate;
  height: clamp(510px, 48vw, 770px);
  background: radial-gradient(ellipse at 50% 38%, #d3c8b0 12%, #ada28d 88%);
  color: #293e34;
  container-type: size;
  overflow: hidden;
}
.in-room .table-stage { height: clamp(445px, calc(100svh - 224px), 1080px); }
/* The table is an empty photographic surface. All game objects render above it. */
.table-art {
  position: absolute; inset: 2% 1.1% 2%;
  background: url("/assets/stitched-poker-table.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 8px #2b20135c);
  pointer-events: none;
}
.table-capacity { position: absolute; z-index: 2; bottom: 11px; right: 18px; font: 700 13px var(--mono); letter-spacing: .06em; color: #514630; }
.deck {
  position: absolute; z-index: 2; left: 37.5%; top: 15%;
  display: grid; place-items: center; width: clamp(22px, min(4.6cqw, 6cqh), 46px); aspect-ratio: .78;
  transform: translate(-50%, -50%) rotate(-12deg);
  color: #f8dfa4; border: 1px solid #d1ad69; border-radius: 5px;
  background: repeating-linear-gradient(45deg, #376452 0 2px, #264a3c 2px 5px);
  box-shadow: inset 0 0 0 2px #ceaf77, 0 2px #edc992, 0 4px #825c37, 0 7px 5px #140d07ab;
}
.deck.is-dealing { box-shadow: inset 0 0 0 2px #f9df9b, 0 2px #edc992, 0 4px #825c37, 0 0 15px #fbda8aac; }
.table-core { position: absolute; z-index: 2; left: 50%; top: 34%; transform: translateX(-50%); display: grid; justify-items: center; }
.pot-row { position: relative; display: flex; align-items: center; min-height: 47px; }
.pot { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 14px 4px 10px; background: #122d23f5; border: 1px solid #c09958; border-radius: 9px; box-shadow: 0 3px 8px #071b13a6; }
.pot.is-settled { visibility: hidden; }
.pot > div { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
#pot-label { color: #f0ddb6; font-size: clamp(12px, 2.4cqh, 17px); }
#pot-value { color: #fff5db; font: 800 clamp(18px, 4.3cqh, 34px) var(--mono); }
.pot-chips, .reserve-chips, .wager-chips, .flight-chips {
  --chip-size: clamp(20px, 5.1cqh, 36px);
  --chip-depth: calc(var(--chip-size) * .48);
  --chip-pitch: clamp(2px, .47cqh, 4px);
  display: inline-flex; align-items: end; justify-content: center; min-height: var(--chip-depth);
}
.pot-chips { min-width: var(--chip-size); }
.pot-chips:empty::before { content: ""; width: 17px; height: 9px; border: 1px dashed #d1ad75; border-radius: 50%; }
.chip-pile {
  position: relative; flex: none; width: var(--chip-size);
  height: calc(var(--chip-depth) + (var(--layers) - 1) * var(--chip-pitch));
  --chip-color: #c44b42; --chip-edge: #74302c;
  filter: drop-shadow(0 2px 2px #0d130baa);
}
.chip-pile + .chip-pile { margin-left: calc(var(--chip-size) * -.23); }
.chip-pile:nth-child(2n) { transform: translateY(3px); }
.chip-pile.green { --chip-color: #6dbaa0; --chip-edge: #3b715e; }
.chip-pile.ink { --chip-color: #4789bd; --chip-edge: #254e78; }
.chip-pile.violet { --chip-color: #a45d9a; --chip-edge: #633852; }
.chip-pile.ebony { --chip-color: #48536c; --chip-edge: #222838; }
.chip-pile.ivory { --chip-color: #e1c99c; --chip-edge: #8b755c; }
.chip-pile i {
  position: absolute; inset: auto 0 calc(var(--level) * var(--chip-pitch));
  width: 100%; height: var(--chip-depth); border-radius: 50%; border: 1px solid #241c18a6;
  background: repeating-linear-gradient(90deg, var(--chip-edge) 0 15%, #e5d4b7 15% 23%, var(--chip-edge) 23% 35%);
  box-shadow: 0 1px 1px #12100db3;
}
.chip-pile i::before {
  content: ""; position: absolute; inset: -1px -1px 22%; border-radius: 50%;
  border: 1px solid #f5e2bdc4;
  background: radial-gradient(ellipse, var(--chip-color) 0 38%, #eddec0 39% 43%, transparent 45%),
    repeating-conic-gradient(from 8deg, var(--chip-color) 0deg 46deg, #fff1d9 46deg 60deg);
}
.board { display: flex; gap: clamp(4px, 1cqw, 9px); margin-top: 11px; }
.card-slot { width: clamp(37px, min(8.2cqw, 13.5cqh), 108px); aspect-ratio: .72; flex: none; }
.card-slot.flipping > .card { visibility: hidden; }
.card {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  border: 1px solid #dcc9a9; border-radius: 6px; background: linear-gradient(150deg, #fffaed, #ebddc5);
  color: #29221d; box-shadow: inset 0 0 0 2px #fef8e9, 0 2px #b5a68e, 0 5px 7px #4a55366e;
  font-family: Georgia, "Segoe UI Symbol", serif;
}
.card.red { color: #a23225; }
.card.empty { border: 1px dashed #79846c9c; color: #dac58b; box-shadow: inset 0 0 8px #071c12a1; background: #0a2a1e83; }
.card.back { border-color: #9b8754; background: repeating-linear-gradient(45deg, #41685b 0 2px, #38584d 2px 5px); color: #f3e5bc; box-shadow: inset 0 0 0 2px #e3c68e, inset 0 0 0 3px #426258, 0 2px #7f8769, 0 4px 5px #47533681; }
.card-corner { position: absolute; top: 5%; left: 8%; text-align: center; display: grid; line-height: .88; font-size: clamp(10px, min(2.2cqw, 3.2cqh), 23px); font-weight: 700; }
.card-corner small { font-size: .76em; }.card-corner.bottom { top: auto; left: auto; bottom: 5%; right: 8%; transform: rotate(180deg); }
.card-glyph { font-size: clamp(19px, min(4.5cqw, 7cqh), 48px); }
.card.face .card-glyph { background: #c8944924; border: 1px solid #aa743c80; border-radius: 39%; line-height: 1.12; padding-inline: 2px; }
.phase-track { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e6dbbf; margin-top: 10px; white-space: nowrap; }
.phase-step { display: flex; gap: 5px; align-items: center; }.phase-step::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7b8770; }
.phase-step.active { color: #ffe4a2; font-weight: 800; }.phase-step.active::before { background: #f6bb64; box-shadow: 0 0 0 3px #ffd18d41; }
.phase-step.done::before { background: #cda768; }.phase-divider { width: 9px; border-top: 1px solid #6c7e6388; }

.seats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.seat { --x: 50%; --y: 91%; --card-edge: 32px; --bet-edge: max(87px, 14.6cqh); position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(112px, min(17cqw, 30cqh), 220px); height: 52px; }
.seat.pos-1 { --x: 19%; --y: 77%; }.seat.pos-2 { --x: 15%; --y: 25%; }
.seat.pos-3 { --x: 50%; --y: 12%; }.seat.pos-4 { --x: 85%; --y: 25%; }.seat.pos-5 { --x: 81%; --y: 77%; }
.seat .placard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; min-height: 49px; padding: 5px 8px; background: linear-gradient(#fffcf1, #ece7d1); color: #29332a; box-shadow: inset 0 0 0 1px #fff3dc, 0 4px 8px #62513e73; border: 1px solid #b38558; border-radius: 7px; }
.seat.is-me .placard { background: linear-gradient(#fff0c9, #e1bc7f); border-color: #d49e56; }
.seat.is-turn .placard { outline: 2px solid #2a6c52; box-shadow: 0 0 0 4px #f6f7e68f, 0 3px 9px #3e644f68; }
.seat.is-winner .placard {
  color: #3d2509; border-color: #b67d2e; background: linear-gradient(#fff4ce, #ebbf68);
  outline: 2px solid #ffdf91; box-shadow: 0 0 0 4px #ffcb6577, 0 0 24px #ffd376b0;
}
.seat.is-awarding .placard { animation: winner-glow .58s ease-out; }
@keyframes winner-glow {
  0% { box-shadow: 0 0 0 0 #ffe5aef3, 0 0 6px #ffdb80b0; }
  52% { box-shadow: 0 0 0 12px #ffd07188, 0 0 39px #ffd376b0; }
}
.seat.is-winner .seat-wager { background: #ffe5a0; color: #4d2e0d; border-color: #fff0bb; box-shadow: 0 4px 12px #121b0fd9; }
.seat.is-winner .seat-action { color: #563412; font-weight: 900; }
.seat.is-winner .seat-cards .card { border-color: #e3b867; box-shadow: 0 0 10px #ffda74a1, 0 3px #8b652f; }
.seat-clock {
  --remaining: 100%; --clock-ink: #246249; --clock-track: #e2ead9;
  position: absolute; z-index: 1; left: calc(100% + 7px); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: clamp(36px, 7cqh, 56px); aspect-ratio: 1; border-radius: 50%;
  color: var(--clock-ink); background: conic-gradient(var(--clock-ink) var(--remaining), var(--clock-track) 0);
  box-shadow: 0 2px 6px #41534580; font: 800 clamp(13px, 2.7cqh, 21px) var(--mono); font-variant-numeric: tabular-nums;
}
.seat-clock span { display: grid; place-items: center; width: calc(100% - 6px); aspect-ratio: 1; border-radius: 50%; background: #fffdf3; }
.seat:is(.pos-4, .pos-5) .seat-clock { left: auto; right: calc(100% + 7px); }
.seat-clock.is-urgent { --clock-ink: #9a312a; --clock-track: #f0d2c5; }
.seat.is-folded .placard { opacity: .69; }
.avatar { width: clamp(19px, 3.3cqw, 30px); aspect-ratio: 1; font: 700 clamp(11px, 1.9cqw, 17px) var(--serif); display: grid; place-items: center; border: 1px solid #4b2d1d66; box-shadow: inset 0 0 0 2px #fff4dc40; color: #fff5df; background: #7d442e; border-radius: 5px; overflow: hidden; }
.pos-1 .avatar { background: #49624c; }.pos-2 .avatar { background: #806033; }.pos-3 .avatar { background: #4c5363; }.pos-4 .avatar { background: #7a3b4b; }.pos-5 .avatar { background: #596353; }
.seat-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.seat-name { display: flex; min-width: 0; overflow: hidden; white-space: nowrap; font-size: clamp(14px, 2.7cqh, 20px); line-height: 1.18; }
.seat-name-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seat-name-tail { flex: none; }
.seat-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hand-strength { flex: none; padding: 2px 5px; border: 1px solid #8c7651; border-radius: 4px; background: #315344; color: #fff1c7; font-size: clamp(11px, 2.25cqh, 15px); line-height: 1.2; white-space: nowrap; }
.seat-count { display: flex; align-items: center; gap: 4px; }
.seat-stack { font: 750 clamp(14px, 3cqh, 22px) var(--mono); color: #613d21; line-height: 1.1; }
.seat-count.offline::after { content: "离线"; color: #78422a; font: 9px system-ui; position: absolute; left: 1px; bottom: -14px; transform: translateY(50%); background: #f7e6cc; border-radius: 3px; padding: 0 3px; }
.reserve-chips {
  position: absolute; left: calc(100% + 10px); bottom: 4px; min-width: var(--chip-size);
}
.seat:is(.pos-0, .pos-3, .pos-4, .pos-5) .reserve-chips { left: auto; right: calc(100% + 10px); }
.seat-role { position: absolute; font: 700 11px var(--mono); border-radius: 4px; padding: 2px 4px; border: 1px solid #b58456; background: #eed3a5; color: #6a3c21; right: -2px; top: -10px; white-space: nowrap; }
.seat-role:empty { display: none; }
.seat-cards, .seat-wager { position: absolute; left: 50%; transform: translateX(-50%); }
.seat-cards { bottom: calc(50% + var(--card-edge)); display: flex; gap: 4px; }
.seat-wager { bottom: calc(50% + var(--bet-edge)); display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 24px; min-height: 29px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; }
.seat-wager.has-wager { background: #261810f5; color: #fff0d1; border-color: #bb8d5c9c; }
.wager-chips { --chip-size: clamp(16px, 3.7cqh, 29px); }
.wager-chips:empty { display: none; }
.wager-chips .chip-pile:nth-child(n + 4) { display: none; }
.seat-action { color: #ffe2af; font-size: clamp(12px, 2.4cqh, 16px); }.seat.is-folded .seat-action { color: #e3c8ab; }
.wager-amount:empty { display: none; }
.wager-feedback { animation: wager-label 1.8s both; }
@keyframes wager-label { 0% { opacity: .4; } 10%, 82% { opacity: 1; } 100% { opacity: 0; } }
.wager-amount { font: 800 clamp(14px, 2.9cqh, 21px) var(--mono); }
.seat.pos-0 { --bet-edge: max(102px, 17cqh); }
.seat:is(.pos-2, .pos-3, .pos-4) .seat-cards { bottom: auto; top: calc(50% + var(--card-edge)); }
.seat:is(.pos-2, .pos-3, .pos-4) .seat-wager { bottom: auto; top: calc(50% + var(--bet-edge)); }
.seat-cards .card-slot { width: clamp(24px, min(4.1cqw, 7cqh), 56px); }
.seat-cards .card, .flight-card .card { border-radius: 4px; }
.seat-cards .card-corner { font-size: clamp(7px, 1.05cqw, 11px); }.seat-cards .card-glyph { font-size: clamp(12px, 2cqw, 20px); }
.seat.is-me .card-slot { width: clamp(35px, min(6.3cqw, 8.6cqh), 72px); }
.seat.is-me .card-corner { font-size: clamp(9px, 1.5cqw, 14px); }.seat.is-me .card-glyph { font-size: clamp(17px, 3cqw, 26px); }
.seat.is-folded .seat-cards { opacity: .58; }
.vacant { display: grid; place-items: center; min-width: 50px; min-height: 24px; font-size: 13px; color: #f8eacb; background: #15392bd6; border: 1px dashed #879271; border-radius: 5px; }
.table-motion { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.flight { position: absolute; }
.flight-card { display: grid; place-items: stretch; }
.flight-chips { border-radius: 50%; filter: drop-shadow(0 4px 3px #110805aa); }
.flight-chips { --chip-size: clamp(22px, 5.3cqh, 40px); }
.flight-award { filter: drop-shadow(0 2px 5px #241408) drop-shadow(0 0 9px #ffd585); }
.flip-card { transform-style: preserve-3d; translate: -50% -50%; }
.flip-card > div { position: absolute; inset: 0; backface-visibility: hidden; }
.flip-front { transform: rotateY(180deg); }
.flight.flip-card .card-corner { font-size: clamp(8px, 1.4cqw, 14px); }
.flight.flip-card .card-glyph { font-size: clamp(13px, 2.8cqw, 27px); }
.result {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%);
  width: max-content; min-width: min(40cqw, 260px); max-width: min(58cqw, 690px);
  max-height: min(29cqh, 198px); overflow: auto; padding: 9px 18px 11px;
  border: 1px solid #e2b871; border-radius: 10px; background: linear-gradient(#2f2817, #1c281d);
  color: #fff4d6; box-shadow: 0 6px 19px #050d09c9, inset 0 0 0 2px #78552e;
  animation: result-arrival .46s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes result-arrival {
  from { opacity: .18; transform: translate(-50%, 7px) scale(.93); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.result-heading { text-align: center; color: #f3c879; font-size: clamp(12px, 2.4cqh, 17px); font-weight: 800; margin-bottom: 5px; }
.result-awards { display: flex; flex-wrap: wrap; gap: 7px 16px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.result-awards li { display: grid; grid-template-columns: minmax(0, auto) auto; gap: 2px 14px; align-items: center; min-width: 0; max-width: 100%; }
.result-awards b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(16px, 3.6cqh, 32px); line-height: 1.08; }
.result-awards span { color: #eee0bc; grid-column: 1 / -1; font-size: clamp(12px, 2.4cqh, 16px); }
.result-awards strong { font: 800 clamp(18px, 3.8cqh, 34px) var(--mono); color: #ffd077; white-space: nowrap; }
.result-awards .local-award b { color: #ffe6a5; }
.result-rail { display: none; }

.control-panel { padding: 12px 16px 14px; background: linear-gradient(#f5ebd9,#f9f2e5); border-top: 1px solid #be9c74; }
.turn-status { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 22px; font-size: 16px; font-weight: 750; color: #555447; }
.turn-status.active { color: #275740; }.turn-status.active .signal { background: #377757; box-shadow: 0 0 0 3px #3a775d30; }
.turn-status .signal { flex: none; }
.rotate-hint { display: none; }
.controls { min-height: 42px; display: flex; gap: 8px; align-items: stretch; }
.button { min-height: 42px; padding: 8px 12px; border-radius: 6px; border: 1px solid #d6c4a9; background: linear-gradient(#fcf6e9,#eee1cc); color: #4f3726; font-size: 17px; font-weight: 750; white-space: nowrap; box-shadow: inset 0 1px #fff9ec, 0 1px 1px #5a3b2010; }
.button:hover:not(:disabled) { border-color: #ad865d; background: #f0e1c8; }
.button.primary { color: #fff2dc; background: linear-gradient(#3e705c,#285142); border-color: #284b3e; box-shadow: inset 0 1px #d3a07073, 0 2px 2px #562f2419; }
.button.primary:hover:not(:disabled) { background: #366754; }
.button.fold { color: #873e35; }.button.all-in { color: #754b31; }
.controls > .button { flex: 1; }.controls > .button.start { flex: 0 1 185px; }
.controls .note { align-self: center; font-size: 13px; color: var(--muted); }

:is(.controls, .wager-form) .button {
  --face-top: #714627; --face-bottom: #4d2d1c; --button-edge: #412419; --button-trim: #c79c62;
  --button-face: linear-gradient(180deg, #ffffff12, transparent 43%, #1a0b0818),
    repeating-linear-gradient(113deg, #ffffff08 0 1px, transparent 1px 4px), linear-gradient(var(--face-top), var(--face-bottom));
  color: #fff2d7; border: 1px solid var(--button-edge); border-bottom-width: 3px; border-radius: 7px;
  background: var(--button-face); box-shadow: inset 0 0 0 1px var(--button-trim), inset 0 3px 4px #ffedd23b, 0 2px 4px #3f291d23;
  text-shadow: 0 1px 1px #20170ee0;
}
:is(.controls, .wager-form) .button:hover:not(:disabled) { background: var(--button-face); border-color: var(--button-edge); filter: brightness(1.16); }
:is(.controls, .wager-form) .button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 5px #20170ea8, inset 0 0 0 1px var(--button-trim); }
:is(.controls, .wager-form) .button.primary { --face-top: #326452; --face-bottom: #153f30; --button-edge: #132e22; --button-trim: #b0a16b; }
.controls .button.fold { --face-top: #794336; --face-bottom: #4c2924; --button-trim: #bd8762; }
.controls .button.wager-open { --face-top: #957441; --face-bottom: #694723; --button-trim: #e9c27d; }
.controls .button.all-in { --face-top: #4d4639; --face-bottom: #322b22; --button-trim: #b39b76; }

.side { display: grid; gap: 15px; }
.side-card { padding: 15px; }
.side-title { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.side-title h2 { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.side-icon { display: grid; place-items: center; border: 1px solid #deccb0; background: #f0e4ce; color: #7b4f2d; border-radius: 5px; width: 27px; height: 27px; font: 19px Georgia, serif; }
.room-description { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 12px 0; }
.room-actions { display: grid; gap: 8px; }.room-actions .button > span { margin-right: 6px; font-weight: 400; }
.join-form { display: flex; gap: 6px; }.join-form input { flex: 1; width: 0; text-transform: uppercase; letter-spacing: .09em; font-family: var(--mono); }
input:not([type="range"]) { min-height: 40px; color: #432f22; border: 1px solid #d7c5aa; border-radius: 6px; background: #fffaf0; padding: 7px 9px; box-shadow: inset 0 1px 2px #6d452013; }
input::placeholder { color: #7e705e; opacity: 1; }
.room-code { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); margin: 12px 0 9px; padding: 8px 10px; background: #f2e6d2; border: 1px solid #dfc8aa; border-radius: 6px; font-size: 12px; }
.room-code strong { font-family: var(--mono); font-size: 20px; color: #583822; letter-spacing: .13em; }
.leave { border: 0; padding: 8px 3px 2px; color: #804335; background: transparent; font-size: 12px; justify-self: start; }.leave:hover { text-decoration: underline; }
.history-indicator { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #c99452; box-shadow: 0 0 0 3px #c9945226; }
.history { max-height: 285px; overflow: auto; scrollbar-color: #ba9b76 transparent; scrollbar-width: thin; }
.history:focus-visible { outline-offset: 1px; }
.record { min-height: 37px; display: flex; align-items: center; gap: 6px; padding: 7px 1px; font-size: 12px; color: var(--muted); border-bottom: 1px solid #e8ddcb; }.record:last-child { border: 0; }.record strong { color: #493526; font-size: 12px; overflow-wrap: anywhere; }.record span:last-child { margin-left: auto; font: 700 13px var(--mono); color: #67422a; }.record.street { font-size: 11px; color: #8a5b35; letter-spacing: .06em; }.record.win { color: #7a4a24; }.record.win strong { color: #784116; }
.history-empty { color: var(--muted); padding-top: 12px; font-size: 13px; line-height: 1.6; }
.rules-link { justify-self: start; color: #67462e; font-size: 12px; background: none; border: 0; padding: 6px 8px; }.rules-link:hover { text-decoration: underline; }

dialog { border: 1px solid #be9469; border-radius: 11px; background: var(--paper); color: inherit; padding: 0; width: min(420px, calc(100% - 32px)); box-shadow: 0 12px 60px #2111087d; }
dialog::backdrop { background: #23150db3; }
.dialog-content { position: relative; display: grid; gap: 11px; padding: 24px; }.dialog-content h2 { font: 800 23px var(--serif); padding-right: 25px; }.dialog-content h3 { font-size: 14px; }.dialog-content p { font-size: 14px; line-height: 1.75; }.dialog-content label { font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); }.dialog-close { position: absolute; inset: 10px 10px auto auto; width: 32px; height: 32px; border: 0; background: #f0e4d0; color: #603c25; border-radius: 5px; font-size: 22px; }.dialog-close:hover { background: #e9d6bc; }

#wager-dialog { width: min(484px, calc(100% - 24px)); max-height: calc(100dvh - 20px); background: #f4ebd8; }
.wager-form { position: relative; display: grid; gap: 11px; padding: 19px; }
.wager-form h2 { padding-right: 35px; font: 800 23px var(--serif); }
.wager-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px; }
.wager-entry label { font-weight: 750; }
#wager-limits, #wager-base, #wager-cost { color: #634931; font-size: 13px; }
#bet-number { grid-column: 1 / -1; width: 100%; min-height: 49px; font: 800 27px var(--mono); appearance: textfield; }
#bet-number::-webkit-inner-spin-button { appearance: none; }
#wager-base { margin-bottom: 5px; }
.wager-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wager-shortcuts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wager-shortcuts .button { padding: 4px; min-height: 40px; font-size: 15px; }
.wager-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 9px; padding-top: 3px; }
.wager-confirm { margin-left: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); z-index: 20; border-radius: 6px; background: #392417; color: #fff0d8; border: 1px solid #997146; box-shadow: 0 4px 12px #15080257; padding: 9px 15px; font-size: 14px; }

@media (min-width: 1021px) {
  .in-room .control-panel { display: grid; grid-template-columns: minmax(165px, 1fr) minmax(0, 4fr); align-items: center; gap: 8px 16px; }
  .in-room .turn-status { margin-bottom: 0; }
  .in-room .controls > .start { min-width: 125px; }
}

@media (max-width: 1020px) {
  .layout { gap: 12px; grid-template-columns: minmax(0, 1fr) 219px; }
  .side-card { padding: 12px; }
  .controls { flex-wrap: wrap; }
  .phase-track { display: none; }
}

@media (min-width: 541px) and (max-width: 1020px) and (min-height: 571px) {
  .seat.pos-0 .reserve-chips { bottom: -10px; }
}

@media (max-width: 840px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .in-room.room-panel-open #room-panel { grid-template-columns: minmax(0, 1fr); }
  .page-heading { padding: 16px 0 12px; }
  .table-stage, .in-room .table-stage { height: clamp(440px, 67vw, 570px); }
  .console-head { padding: 8px 10px; }.control-panel { padding: 9px 10px 11px; }
}

@media (max-width: 540px) {
  .mast-inner, .shell, .in-room .mast-inner, .in-room .shell { width: calc(100% - 14px); }
  .mast-inner, .in-room .mast-inner { min-height: 49px; }
  .mast-inner { gap: 6px; }
  .in-room .shell { padding-top: 5px; }
  .utilities { gap: 5px; min-width: 0; }.profile-button { padding-inline: 6px; font-size: 11px; min-height: 32px; }
  #profile-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 21vw; }
  .in-room .profile-icon, .in-room .connection span { display: none; }
  .connection { gap: 5px; padding-inline: 3px; }
  .brand-mark, .in-room .brand-mark { width: 29px; height: 29px; font-size: 20px; }
  .brand-text strong, .in-room .brand-text strong { font-size: 13px; white-space: nowrap; }.brand-text small { font-size: 7px; }.brand { gap: 5px; }
  .page-heading { gap: 8px; padding: 12px 0 9px; }.eyebrow { font-size: 9px; margin-bottom: 4px; } h1 { font-size: 31px; }
  .hero-meta { display: grid; justify-items: end; gap: 1px; font-size: 10px; }.hero-meta-dot { display: none; }
  .table-meters { gap: 4px; }.table-identity { gap: 5px; }.table-symbol { width: 28px; height: 28px; font-size: 18px; }
  .table-identity strong { font-size: 13px; }.table-identity small { font-size: 10px; }
  .meter { padding: 3px 5px; gap: 3px; }.meter span { font-size: 10px; }.meter strong { font-size: 11px; }.phase-meter strong { font-size: 10px; min-width: 25px; }.clock-meter { display: none; }
  .table-stage, .in-room .table-stage { height: clamp(415px, 106vw, 465px); }
  .table-art { inset: 50% auto auto 50%; width: 97cqh; height: 99cqw; transform: translate(-50%, -50%) rotate(90deg); }
  .table-core { top: 34.5%; }
  .deck { left: 36%; top: 8%; width: 22px; }
  .board .card-slot { width: clamp(32px, 13.4cqw, 58px); }
  .pot { gap: 6px; min-height: 37px; }.phase-track { display: none; }
  .result { max-width: 71cqw; max-height: 81px; padding: 6px 8px; }
  .result-awards li { gap: 1px 6px; }.result-awards b { font-size: 17px; }.result-awards strong { font-size: 20px; }
  .seat { --card-edge: 23px; --bet-edge: 59px; width: clamp(75px, 24cqw, 108px); height: 39px; }
  .seat.pos-0 { --y: 91%; --bet-edge: 77px; }
  .seat.pos-1 { --x: 17.5%; --y: 86%; }.seat.pos-2 { --x: 17.5%; --y: 22%; }
  .seat.pos-3 { --x: 54%; --y: 12%; }.seat.pos-4 { --x: 82.5%; --y: 22%; }.seat.pos-5 { --x: 82.5%; --y: 86%; }
  .seat:is(.pos-2, .pos-4) .seat-wager { top: calc(50% - 44px); }
  .seat-cards .card-slot { width: 24px; }.seat.is-me .card-slot { width: clamp(33px, 8cqw, 41px); }
  .seat-clock { width: 31px; font-size: 12px; left: calc(100% + 4px); }
  .seat:is(.pos-1, .pos-5) .seat-clock { left: 50%; right: auto; top: calc(50% + 21px); transform: translateX(-50%); }
  .seat:is(.pos-2, .pos-3) .seat-clock { left: calc(50% + 45px); top: calc(50% + 22px); transform: translateX(-50%); }
  .seat.pos-3 .seat-clock { left: calc(50% + 40px); width: 28px; }
  .seat.pos-4 .seat-clock { right: calc(50% + 45px); top: calc(50% + 22px); transform: translateX(50%); }
  .seat .placard { min-height: 34px; padding: 3px 4px; gap: 4px; }
  .seat-name { font-size: 12px; }.seat-stack { font-size: 14px; }
  .reserve-chips { --chip-size: 16px; --chip-pitch: 2.2px; left: calc(100% + 4px); bottom: 0; }
  .seat:is(.pos-0, .pos-3, .pos-4, .pos-5) .reserve-chips { right: calc(100% + 4px); }
  .seat.pos-0 .reserve-chips { bottom: 48px; }
  .seat.pos-2 .reserve-chips { left: auto; right: calc(100% - 2px); }
  .seat.pos-4 .reserve-chips { right: auto; left: calc(100% - 2px); }
  .reserve-chips .chip-pile:nth-child(n + 3), .wager-chips .chip-pile:nth-child(n + 3) { display: none; }
  .wager-chips { --chip-size: 13px; --chip-pitch: 1.8px; }
  .seat-action { font-size: 11px; }.seat-role { font-size: 9px; }.seat-wager { min-height: 23px; gap: 3px; padding-inline: 3px; }.wager-amount { font-size: 13px; }
  .table-capacity { bottom: 12px; right: 16px; }
  .side { grid-template-columns: minmax(0, 1fr); }.side-card { padding: 13px; }
  .controls { gap: 5px; }.controls > .button { padding: 5px 6px; font-size: 14px; min-height: 42px; }
}
@media (max-width: 540px) and (orientation: portrait) {
  .in-room .rotate-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; text-align: center; }
}
@media (max-width: 360px) {
  .console-head { gap: 4px; }.table-identity small { white-space: nowrap; }
  .in-room .connection { display: none; }
  .in-room #profile-name { max-width: 15vw; }
  .wager-chips .chip-pile:nth-child(n + 2) { display: none; }
}
@media (orientation: landscape) and (max-height: 570px) and (max-width: 1100px) {
  .mast-inner, .in-room .mast-inner { min-height: 38px; }
  .in-room .brand-mark, .brand-mark { width: 25px; height: 25px; font-size: 18px; }
  .brand-text small { display: none; }
  .in-room .brand-text strong { font-size: 14px; }
  .utilities { gap: 6px; }.profile-button { min-height: 29px; padding: 3px 7px; font-size: 12px; }
  .in-room .shell { padding-top: 4px; }
  .in-room .console { display: grid; grid-template-columns: minmax(0, 1fr) clamp(143px, 23vw, 206px); }
  .in-room .console-head { grid-column: 1 / -1; padding: 3px 8px; gap: 4px; }
  .in-room .table-symbol { width: 25px; height: 25px; font-size: 16px; }
  .in-room .table-identity { gap: 5px; }.in-room .table-identity small { display: none; }.in-room .table-identity strong { font-size: 13px; }
  .in-room .meter { min-height: 24px; padding: 2px 5px; gap: 4px; }
  .in-room .meter strong { font-size: 11px; }
  .in-room .table-stage { height: max(224px, calc(100svh - 85px - env(safe-area-inset-bottom))); }
  .in-room .control-panel { padding: 7px; min-width: 0; overflow: auto; max-height: max(224px, calc(100svh - 85px - env(safe-area-inset-bottom))); border-top: 0; border-left: 1px solid #ceb796; }
  .in-room .turn-status { font-size: 14px; margin-bottom: 8px; }
  .in-room .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .in-room .controls .note, .in-room .controls .start { grid-column: 1 / -1; }
  .in-room .controls > .button { min-height: 40px; padding: 5px 3px; font-size: 14px; }
  .in-room.room-panel-open #room-panel { inset-block-start: 40px; max-height: calc(100dvh - 48px); }
  .in-room .table-art { inset: 2% 1% 3%; }
  .in-room .deck { left: 36%; top: 10%; width: 24px; }
  .in-room .table-core { top: 30%; }
  .in-room .pot-row { min-height: 30px; }.in-room .pot { min-height: 29px; padding: 1px 8px 1px 5px; }.in-room #pot-label { font-size: 12px; }.in-room #pot-value { font-size: 19px; }
  .in-room .phase-track { display: none; }
  .in-room .board { margin-top: 6px; }.in-room .board .card-slot { width: clamp(26px, min(8cqw, 12.3cqh), 50px); }
  .in-room .card-corner { font-size: 9px; }.in-room .card-glyph { font-size: 17px; }
  .in-room .seat { --card-edge: 22px; --bet-edge: max(51px, 18cqh); width: clamp(72px, 17.4cqw, 112px); height: 32px; }
  .in-room .seat.pos-0 { --y: 92%; --bet-edge: max(57px, 20cqh); }
  .in-room .seat.pos-1 { --x: 17%; --y: 79%; }.in-room .seat.pos-2 { --x: 14%; --y: 26%; }
  .in-room .seat.pos-3 { --x: 50%; --y: 11%; }.in-room .seat.pos-4 { --x: 86%; --y: 26%; }.in-room .seat.pos-5 { --x: 83%; --y: 79%; }
  .in-room .seat:is(.pos-2, .pos-4) .seat-wager { top: calc(50% - 43px); }
  .in-room .seat.pos-3 .seat-wager { top: calc(50% + 11px); left: calc(100% + 42px); }
  .in-room .placard { min-height: 29px; padding: 2px 4px; gap: 4px; }
  .in-room .seat-role { font-size: 9px; }.in-room .seat-name { font-size: 13px; }.in-room .seat-stack { font-size: 14px; }.in-room .avatar { width: 19px; }
  .in-room .seat-clock { width: 27px; font-size: 11px; }
  .in-room .seat-clock span { width: calc(100% - 5px); }
  .in-room .seat-cards .card-slot { width: clamp(18px, 6.9cqh, 25px); }.in-room .seat.is-me .card-slot { width: clamp(23px, 8.5cqh, 33px); }
  .in-room .seat-cards .card-corner { font-size: 7px; }.in-room .seat-cards .card-glyph { font-size: 12px; }
  .in-room .seat-wager { min-height: 20px; padding: 0 4px; gap: 3px; }.in-room .seat-action { font-size: 11px; }.in-room .wager-amount { font-size: 13px; }
  .in-room .reserve-chips { --chip-size: 20px; --chip-pitch: 2.2px; left: calc(100% + 6px); bottom: 0; }
  .in-room .seat:is(.pos-2, .pos-4) .reserve-chips { bottom: 7px; }
  .in-room .seat:is(.pos-0, .pos-3, .pos-4, .pos-5) .reserve-chips { left: auto; right: calc(100% + 6px); }
  .in-room .reserve-chips .chip-pile:nth-child(n + 4), .in-room .wager-chips .chip-pile:nth-child(n + 3) { display: none; }
  .in-room .wager-chips { --chip-size: 14px; --chip-pitch: 2px; }
  .in-room .vacant { min-height: 19px; }.in-room .table-capacity { right: 8px; bottom: 7px; font-size: 9px; }
  .in-room .pot.is-settled { visibility: visible; }
  .in-room .result-rail:has(.result:not([hidden])) { display: block; margin-bottom: 8px; }
  .in-room .result-rail .result { position: relative; left: auto; width: 100%; min-width: 0; max-width: none; max-height: 152px; padding: 6px 8px 8px; transform: none; animation: result-rail-arrival .38s ease-out both; }
  .in-room .result-heading { margin-bottom: 5px; }
  .in-room .result-awards { display: grid; }
  .in-room .result-awards li { grid-template-columns: minmax(0, 1fr); gap: 1px; text-align: center; }
  .in-room .result-awards b { font-size: 17px; }.in-room .result-awards strong { font-size: 23px; }
}

.seat.is-winner .seat-wager.has-wager {
  top: 50%; bottom: auto; left: calc(100% + 8px); transform: translateY(-50%);
}
.seat.is-winner:is(.pos-4, .pos-5) .seat-wager.has-wager { left: auto; right: calc(100% + 8px); }
@media (max-width: 840px) {
  .seat.is-winner .seat-action { display: none; }
  .seat.is-winner .seat-wager.has-wager { padding-inline: 4px; }
}
@media (orientation: landscape) and (max-height: 570px) and (min-width: 541px) {
  #wager-dialog { width: min(626px, calc(100% - 24px)); }
  .wager-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px 14px; padding: 13px 17px; }
  .wager-form h2, .wager-entry { grid-column: 1 / -1; }
  #bet-number { min-height: 42px; }
}
@keyframes result-rail-arrival { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.table-rules { display: flex; }
.rules-toggle { background: linear-gradient(#f6ebd3, #ecd8b5); }
.rules-popover {
  position: fixed; z-index: 18; overflow: auto; padding: 11px 13px;
  border: 1px solid #ad8450; border-radius: 8px; background: #fff6e3; color: #362b21;
  box-shadow: 0 9px 25px #1a120d55; font-size: 13px;
}
.rules-popover > strong { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 7px; font-size: 16px; color: #294837; }
.rules-popover > strong span { color: #765537; font-size: 12px; }
.rules-popover ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rules-popover li { display: grid; grid-template-columns: 4.1em minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid #ebd8b9; line-height: 1.45; }
.rules-popover p { color: #674e3a; margin-top: 7px; font-size: 12px; line-height: 1.5; }
.room-toggle-short { display: none; }
.chat-unread { padding: 1px 4px; border-radius: 10px; min-width: 15px; color: #fff1d8; background: #89513b; font: 700 10px var(--mono); }
.chat-panel {
  position: fixed; inset: 60px max(14px, env(safe-area-inset-right)) auto auto; z-index: 14;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0;
  width: min(354px, calc(100% - 24px)); height: min(470px, calc(100dvh - 72px));
  color: #352a21; background: #fff7e7; border: 1px solid #ba8f62; border-radius: 10px;
  box-shadow: 0 10px 30px #2d201c59; overflow: hidden;
}
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; color: #fff3d5; background: #315344; border-bottom: 1px solid #bc9460; }
.chat-head h2 { font-size: 16px; }
.chat-head button { width: 29px; height: 29px; padding: 0; font-size: 21px; color: inherit; border: 1px solid #b9a576; border-radius: 5px; background: #234135; }
.chat-messages { overflow: auto; overscroll-behavior: contain; padding: 10px; }
.chat-messages:empty::before { content: '暂无聊天消息'; display: block; color: var(--muted); font-size: 13px; padding: 4px; }
.chat-message { margin: 0 13% 8px 0; padding: 6px 8px; border-radius: 6px; border: 1px solid #e3cfad; background: #f3e5ce; }
.chat-message.is-own { margin-inline: 13% 0; border-color: #d1d1ae; background: #e6e7cf; }
.chat-message header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 3px; color: #644730; font-size: 12px; }
.chat-message header b, .chat-message p { overflow-wrap: anywhere; }
.chat-message time { flex: none; font: 11px var(--mono); }
.chat-message p { white-space: pre-wrap; font-size: 14px; }
.chat-feedback { padding: 2px 10px 4px; color: #87382c; font-size: 12px; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px; border-top: 1px solid #dec6a3; background: #f4e8d1; }
.chat-form input { min-width: 0; font-size: 16px; }
.chat-form .button { min-height: 40px; padding: 4px 9px; font-size: 14px; }
.chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 540px), (orientation: landscape) and (max-height: 570px) and (max-width: 1100px) {
  .seat.is-me .placard:has(.hand-strength:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .seat.is-me .placard:has(.hand-strength:not([hidden])) .avatar { display: none; }
  .seat-name-row { gap: 3px; }
  .hand-strength { padding: 1px 2px; font-size: 10px; }
}
@media (max-width: 420px) {
  #room-toggle > span:first-child { display: none; }
  #room-toggle .room-toggle-short { display: inline; }
  .table-identity div { min-width: 0; }
  .table-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 360px) { .phase-meter span { display: none; } }
@media (orientation: landscape) and (max-height: 570px) {
  .chat-panel { top: 41px; height: calc(100dvh - 48px); }
}
@media (prefers-reduced-motion: reduce) { *, *::after, *::before { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
