:root {
  color-scheme:dark;
  --bg:#171918;
  --surface:#20241f;
  --panel:#292e27;
  --gold:#ddbb7b;
  --cream:#f3ecd9;
  --muted:#b9beaf;
  --line:#42483c;
  --red:#a84743;
  --error:#ffc0ae;
  --sans:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  --serif:Georgia,"Songti SC","SimSun",serif;
  --shadow:0 20px 60px #090b0960
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font:15px/1.6 var(--sans);
  overflow-x:hidden
}
button,input,select {
  font:inherit
}
button,input,select,a {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer;
  color:inherit
}
button:disabled {
  cursor:default;
  opacity:.42
}
button,a,input,select,summary {
  outline-offset:4px
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid var(--gold)
}
::selection {
  background:var(--gold);
  color:var(--bg)
}
* {
  scrollbar-width:thin;
  scrollbar-color:#71674e #1b1f19
}
a {
  color:inherit;
  text-underline-offset:5px
}
input {
  caret-color:var(--gold)
}
input,select {
  border-radius:5px;
  min-width:0
}
input[type=number] {
  font-variant-numeric:tabular-nums
}
input::placeholder {
  color:#aab09f;
  opacity:1
}
input[readonly] {
  color:#c9cfbd
}
input[type=range] {
  accent-color:var(--gold);
  cursor:pointer
}
button svg,summary svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
[hidden] {
  display:none!important
}
.shell {
  max-width:1400px;
  margin:auto;
  padding:26px 42px 0
}
.masthead {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:83px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  gap:13px;
  align-items:center;
  text-decoration:none
}
.brand img {
  width:46px;
  height:46px
}
.brand-copy {
  display:flex;
  flex-direction:column;
  gap:4px
}
.brand-name {
  font:500 29px/1.2 var(--serif);
  letter-spacing:.11em
}
.brand-tagline {
  color:var(--muted);
  font-size:12px;
  letter-spacing:.16em
}
.header-note {
  font-size:13px;
  color:var(--muted)
}
.header-actions {
  display:flex;
  align-items:center;
  gap:11px
}
.icon-button {
  width:44px;
  height:44px;
  flex-shrink:0;
  display:inline-grid;
  place-items:center;
  border:1px solid #565e4d;
  border-radius:5px;
  background:transparent;
  padding:0
}
.icon-button:hover {
  background:#343a2e
}
.room-code-button {
  display:flex;
  gap:9px;
  align-items:baseline;
  border:0;
  background:transparent;
  min-height:44px;
  padding:5px 10px;
  color:var(--muted);
  font-size:13px
}
.room-code-button strong {
  font:24px var(--serif);
  letter-spacing:.13em;
  color:var(--gold)
}
.text-button {
  min-height:44px;
  border:0;
  background:transparent;
  color:var(--gold);
  padding:0 8px;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px
}
.text-button:hover {
  text-decoration:underline;
  text-underline-offset:5px
}
.button {
  min-height:49px;
  padding:10px 22px;
  border:1px solid #657056;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:15px;
  background:transparent
}
.primary {
  background:var(--gold);
  border-color:var(--gold);
  color:#26291f
}
.secondary {
  background:#30372a;
  border-color:#5a644c;
  color:var(--cream)
}
.button:not(:disabled):hover,.action-button:not(:disabled):hover {
  filter:brightness(1.1)
}
.button:not(:disabled):active,.action-button:not(:disabled):active {
  transform:translateY(1px)
}
.full-width {
  width:100%
}
.entry-view {
  display:block;
  max-width:520px;
  margin:56px auto 32px
}
.entry-panel {
  background:var(--surface);
  border-radius:12px;
  padding:32px 40px;
  box-shadow:var(--shadow)
}
.entry-tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  margin-bottom:26px;
  gap:30px
}
.entry-tabs button {
  position:relative;
  min-height:51px;
  padding:0 0 15px;
  border:0;
  background:none;
  font:23px var(--serif);
  color:var(--muted)
}
.entry-tabs button[aria-selected=true] {
  color:var(--cream)
}
.entry-tabs button[aria-selected=true]:after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:var(--gold)
}
.field {
  display:block;
  color:var(--muted);
  font-size:13px;
  margin:0 0 17px
}
.field input,.field select {
  display:block;
  width:100%;
  height:47px;
  background:#282e25;
  border:1px solid #606852;
  color:var(--cream);
  padding:0 12px;
  margin-top:7px;
  font-size:15px
}
.nickname-field input {
  height:52px
}
.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.field-hint,.sheet-hint {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  margin:0 0 18px
}
.entry-instruction {
  font-size:13px;
  color:var(--muted);
  margin:7px 0 21px;
  line-height:1.85
}
.create-settings {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:18px
}
.create-settings summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  list-style:none;
  min-height:77px;
  padding:12px 0;
  font-size:14px
}
.create-settings summary::-webkit-details-marker {
  display:none
}
.create-settings summary small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:4px
}
.create-settings[open] summary svg {
  transform:rotate(180deg)
}
.create-settings .config-fields {
  padding:10px 0 1px
}
.config-fields {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
.config-fields:disabled .field {
  opacity:.8
}
.form-error {
  font-size:13px;
  line-height:1.65;
  color:var(--error);
  margin:0 0 14px
}
.form-error:empty {
  display:none
}
.entry-submit {
  width:100%;
  justify-content:space-between;
  height:52px
}
.entry-submit span {
  font-size:24px;
  line-height:1
}
.entry-footnote {
  font-size:12px;
  margin:13px 0 0;
  text-align:center;
  color:var(--muted)
}
.code-input {
  letter-spacing:.15em;
  text-transform:uppercase;
  font-size:21px!important
}
.resume-panel {
  padding-bottom:23px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line)
}
.resume-panel p {
  font-size:14px;
  margin:0 0 10px
}
.resume-panel .button {
  width:100%
}
.page-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:520px;
  margin:0 auto;
  border-top:1px solid var(--line);
  padding:18px 0 24px;
  color:var(--muted);
  font-size:12px
}
.room-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:40px;
  padding-top:21px
}
.table-section {
  min-width:0
}
.game-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:35px;
  color:var(--muted);
  font-size:13px
}
.game-line strong {
  font-weight:400;
  color:var(--cream)
}
.game-divider {
  margin:0 10px;
  color:#7e8573
}
.hand-label {
  color:var(--gold);
  white-space:nowrap
}
.table-details-button {
  display:none
}
.tournament-line {
  display:flex;
  justify-content:space-between;
  color:var(--gold);
  font-size:12px;
  padding:3px 0 8px
}
.table-stage {
  height:520px;
  position:relative;
  isolation:isolate;
  margin:8px auto 0;
  max-width:940px;
  --seat-width:126px
}
.table-stage.dense {
  height:560px
}
.felt {
  position:absolute;
  inset:42px 45px 30px;
  border-radius:100px;
  background:linear-gradient(130deg,#30372c,#242b21 58%,#22291f);
  border:1px solid #5d624e;
  box-shadow:inset 0 0 0 10px #1b211a,inset 0 0 0 11px #77734e,0 18px 40px #0b0e0b66;
  z-index:-1
}
.felt:after {
  content:"";
  position:absolute;
  inset:26px;
  border:1px solid #52604755;
  border-radius:78px
}
.table-wordmark {
  position:absolute;
  left:30%;
  right:30%;
  top:21%;
  text-align:center;
  font:13px var(--serif);
  letter-spacing:.35em;
  color:#b0aa8c;
  pointer-events:none
}
.dense .table-wordmark {
  top:17%
}
.table-center {
  position:absolute;
  top:31%;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  width:100%;
  pointer-events:none;
  z-index:1
}
.dense .table-center {
  top:27%
}
.pot-label {
  font-size:12px;
  color:#c9c0a6;
  letter-spacing:.18em
}
.pot {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:49px/1.2 var(--serif);
  color:var(--gold);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  white-space:nowrap
}
.pot small {
  font:12px var(--sans);
  margin-left:7px;
  color:#c9c0a6;
  letter-spacing:0
}
.board {
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:13px;
  min-height:78px
}
.card {
  position:relative;
  display:block;
  width:55px;
  height:78px;
  background:var(--cream);
  border-radius:5px;
  box-shadow:0 5px 10px #13171355;
  color:#272e29;
  text-align:left;
  padding:5px 6px;
  font:26px/1 var(--serif);
  flex-shrink:0
}
.card small {
  display:block;
  font:15px/1 var(--serif);
  margin-top:2px
}
.card .suit {
  position:absolute;
  right:6px;
  bottom:6px;
  font:29px/1 var(--serif)
}
.card.red {
  color:var(--red)
}
.card.back {
  background:#293226;
  border:1px solid #646d53;
  box-shadow:none
}
.card.back:after {
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid #536144;
  border-radius:2px
}
.card.empty {
  opacity:.65
}
.round-label {
  font-size:12px;
  color:#c5c5ad;
  margin:11px auto 0;
  max-width:250px;
  line-height:1.6
}
.seat {
  position:absolute;
  width:var(--seat-width);
  transform:translate(-50%,-50%);
  background:#2c3229;
  border:1px solid #58614b;
  border-radius:6px;
  padding:8px 11px;
  z-index:3;
  line-height:1.45
}
.seat.is-self {
  background:#373e2d;
  border-color:#b99d67;
  --seat-width:144px;
  text-align:center
}
.seat.is-actor {
  border-color:var(--gold);
  background:#3e422f
}
.seat.is-folded {
  opacity:.55
}
.seat.is-out {
  opacity:.57
}
.seat .who {
  display:flex;
  gap:5px;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  font-size:13px
}
.seat.is-self .who {
  justify-content:center
}
.seat-name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0
}
.seat-tag {
  font-size:12px;
  color:#e5d6b0;
  flex-shrink:0
}
.seat .chips {
  font:25px/1.25 var(--serif);
  font-variant-numeric:tabular-nums;
  letter-spacing:.015em;
  margin-top:2px
}
.seat.is-self .chips {
  color:var(--gold)
}
.seat-state {
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#bbc2ab;
  margin-top:3px
}
.seat.is-actor .seat-state {
  color:#ecce94
}
.dealer {
  position:absolute;
  top:-10px;
  right:-8px;
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:var(--cream);
  color:#292d24;
  font:14px var(--serif);
  border:2px solid #20251e
}
.offline-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#bda17b;
  margin-right:4px;
  vertical-align:middle
}
.seat-hand {
  position:absolute;
  display:flex;
  justify-content:center;
  gap:3px;
  top:calc(100% + 5px);
  left:50%;
  transform:translateX(-50%)
}
.seat-hand .card {
  width:27px;
  height:35px;
  padding:3px;
  font-size:14px;
  border-radius:3px
}
.seat-hand .card small {
  font-size:11px;
  margin:1px 0 0
}
.seat-hand .card .suit {
  display:none
}
.own-cards {
  display:flex;
  position:absolute;
  left:50%;
  top:73%;
  transform:translateX(-50%);
  gap:6px;
  z-index:4
}
.dense .own-cards {
  top:78%
}
.own-cards .card {
  width:50px;
  height:70px;
  font-size:25px
}
.own-cards .card:first-child {
  transform:rotate(-6deg) translateY(2px)
}
.own-cards .card:last-child {
  transform:rotate(6deg) translateY(2px)
}
.own-cards.is-folded {
  opacity:.4;
  filter:grayscale(.8)
}
.hand-caption {
  text-align:center;
  font-size:12px;
  color:var(--muted);
  min-height:22px;
  margin:6px 0 0
}
.result-panel {
  padding:17px 20px;
  margin-top:14px;
  border:1px solid #756a49;
  border-radius:6px;
  background:#2d3225;
  text-align:center
}
.result-title {
  color:var(--gold);
  font:20px/1.6 var(--serif);
  overflow-wrap:anywhere
}
.result-panel p {
  font-size:13px;
  color:#d4d6c5;
  margin:7px 0 0
}
.pot-breakdown {
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
  margin-top:7px
}
.pot-breakdown:empty {
  display:none
}
.notice {
  font-size:13px;
  padding:12px 0;
  color:var(--gold);
  text-align:center
}
.controls {
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid var(--line);
  padding-bottom:10px
}
.turn-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:29px;
  margin-bottom:11px;
  font-size:13px
}
.turn-line strong {
  font-weight:400;
  font-size:14px
}
.turn-timer {
  color:var(--gold);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  min-width:42px;
  text-align:right
}
.turn-timer.urgent {
  color:#ffc3a7
}
.timer-track {
  height:2px;
  margin:-4px 0 12px;
  background:#353d2e;
  overflow:hidden
}
.timer-track span {
  height:100%;
  background:var(--gold);
  display:block;
  width:100%;
  transform-origin:left center;
  transition:transform .2s linear
}
.actions {
  display:grid;
  grid-template-columns:1fr 1.25fr 1.25fr;
  gap:9px
}
.action-button {
  min-height:55px;
  border-radius:5px;
  border:1px solid #616d50;
  background:transparent;
  font-size:15px;
  padding:8px 6px;
  line-height:1.5
}
.action-button.secondary {
  background:#323a2a
}
.action-button.primary {
  background:var(--gold);
  border-color:var(--gold);
  color:#25291f
}
.action-button small {
  font:19px var(--serif);
  padding-left:7px;
  white-space:nowrap
}
.lobby-controls p {
  font-size:13px;
  color:var(--muted);
  margin:0 0 12px
}
.start-actions {
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px
}
.start-actions .button {
  min-height:54px
}
.between-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  font-size:13px;
  color:var(--muted);
  flex-wrap:wrap
}
.between-controls>.button {
  min-height:44px
}
.control-footnote {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#b2b9a6;
  font-size:12px;
  margin-top:12px
}
.control-footnote i {
  display:inline-block;
  width:5px;
  height:5px;
  background:#a5b588;
  border-radius:50%;
  margin-right:6px;
  vertical-align:middle
}
.control-footnote .offline i {
  background:#c3a078
}
.raise-editor {
  border-bottom:1px solid var(--line);
  padding:2px 0 13px;
  margin-bottom:12px
}
.raise-heading {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px
}
.raise-number {
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  color:var(--muted);
  font-size:12px
}
.raise-number input {
  width:115px;
  height:44px;
  border:1px solid #70795e;
  background:#282f23;
  padding:5px 10px;
  color:var(--gold);
  font:24px var(--serif)
}
.compact {
  border:0
}
.raise-editor>input[type=range] {
  width:100%;
  height:32px;
  margin:9px 0
}
.raise-presets {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px
}
.raise-presets button {
  min-height:44px;
  border:1px solid #555e46;
  border-radius:4px;
  background:#293122;
  font-size:12px;
  color:#d2d7c1
}
.raise-editor>p {
  font-size:12px;
  color:var(--muted);
  margin:8px 0 0
}
.raise-editor>.form-error {
  color:var(--error)
}
.sidebar {
  border-left:1px solid var(--line);
  padding-left:27px
}
.buy-in-field {
  margin-top:20px
}
.buy-in-field .field-hint {
  margin:8px 0 16px
}
.rebuy-form {
  max-width:440px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line)
}
.rebuy-actions {
  display:flex;
  gap:12px;
  margin-top:12px
}
.rebuy-actions .button {
  flex:1
}
.sidebar h2 {
  font:25px var(--serif);
  letter-spacing:.04em;
  margin:4px 0 16px
}
.room-description {
  font-size:13px;
  color:var(--muted);
  line-height:1.9;
  margin:0 0 24px
}
.detail {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #3c4535;
  padding:11px 0;
  font-size:13px;
  color:var(--muted)
}
.detail strong {
  font-weight:400;
  color:var(--cream);
  text-align:right
}
.side-invite {
  width:100%;
  margin-top:22px
}
.side-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin:9px 0 0
}
.section-label {
  font-size:14px;
  color:var(--gold);
  font-weight:400;
  margin:29px 0 14px
}
.log-list {
  list-style:none;
  margin:0;
  padding:0;
  max-height:250px;
  overflow-y:auto
}
.log-list li {
  border-bottom:1px solid #383f32;
  font-size:13px;
  color:#bdc4ae;
  line-height:1.8;
  padding:9px 0;
  overflow-wrap:anywhere
}
.log-list li:first-child {
  color:var(--cream)
}
.empty-log {
  font-size:13px;
  color:var(--muted);
  line-height:1.8
}
.ranking-list {
  list-style:none;
  padding:0;
  margin:0
}
.ranking-list li {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  padding:8px 0;
  border-bottom:1px solid #3b4333
}
.ranking-list span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0
}
.ranking-list strong {
  font-weight:400;
  color:var(--gold);
  white-space:nowrap
}
.ranking-list .ranking-chips {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  text-align: right;
}
.connection-banner {
  display:flex;
  align-items:center;
  gap:9px;
  background:#333326;
  padding:6px 13px;
  margin-top:16px;
  color:#e5d5b0;
  font-size:13px;
  border-radius:5px
}
.connection-banner .text-button {
  margin-left:auto;
  flex-shrink:0
}
.connection-dot {
  width:7px;
  height:7px;
  background:var(--gold);
  border-radius:50%;
  flex-shrink:0
}
.room-view+.page-footer {
  margin-top:24px
}
.sheet {
  padding:0;
  border:1px solid #535d46;
  background:#21281d;
  color:var(--cream);
  border-radius:12px;
  width:min(480px,calc(100% - 28px));
  max-height:90vh;
  max-height:90dvh;
  box-shadow:0 24px 70px #0008
}
.sheet::backdrop {
  background:#070b08c9
}
.sheet-inner {
  padding:26px
}
.sheet-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:0 0 20px
}
.sheet-head h2 {
  font:27px var(--serif);
  font-weight:400;
  margin:0
}
.sheet-head .icon-button {
  border:0
}
.sheet-hint {
  margin-bottom:24px
}
.invite-code {
  font:42px var(--serif);
  letter-spacing:.2em;
  color:var(--gold);
  padding:3px 0 28px;
  text-align:center;
  overflow-wrap:anywhere
}
.dialog-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.toast {
  position:fixed;
  bottom:max(24px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 30px);
  z-index:20;
  background:var(--cream);
  color:#262d20;
  padding:13px 20px;
  border-radius:6px;
  box-shadow:0 10px 30px #0006;
  font-size:14px
}
.noscript {
  position:fixed;
  inset:auto 12px 12px;
  margin:0;
  padding:20px;
  background:var(--cream);
  color:var(--bg);
  z-index:30
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(min-width:1200px) {
  .table-stage {
    height:550px;
    --seat-width:133px
  }
  .table-stage.dense {
    height:580px
  }
  .table-center {
    top:30%
  }
  .dense .table-center {
    top:28%
  }
  .seat {
    padding:9px 13px
  }
  .seat.is-self {
    --seat-width:153px
  }
  .own-cards {
    top:74%
  }
  .dense .own-cards {
    top:79%
  }
  .board .card {
    width:60px;
    height:84px;
    font-size:28px
  }
  .board .card .suit {
    font-size:31px
  }
  .sidebar {
    padding-left:30px
  }
  .room-layout {
    gap:45px
  }
}
@media(max-width:1050px) {
  .shell {
    padding:22px 26px 0
  }
  .room-layout {
    grid-template-columns:minmax(0,1fr) 234px;
    gap:24px
  }
  .sidebar {
    padding-left:21px
  }
  .table-stage {
    --seat-width:111px;
    height:500px
  }
  .table-stage.dense {
    height:550px
  }
  .seat {
    padding:8px
  }
  .seat.is-self {
    --seat-width:130px
  }
  .seat .chips {
    font-size:23px
  }
  .board .card {
    width:47px;
    height:68px;
    font-size:24px
  }
  .board {
    gap:6px
  }
  .board .card .suit {
    font-size:26px
  }
  .game-line {
    font-size:12px;
    gap:5px
  }
  .game-divider {
    margin:0 7px
  }
  .pot {
    font-size:43px
  }
  .own-cards .card {
    width:47px;
    height:65px
  }
  .own-cards {
    top:75%
  }
  .dense .own-cards {
    top:79%
  }
}
@media(max-width:850px) {
  .room-layout {
    grid-template-columns:minmax(0,1fr);
    gap:0;
    padding-top:15px
  }
  .sidebar {
    display:none
  }
  .table-section {
    max-width:740px;
    width:100%;
    margin:auto
  }
  .table-stage {
    --seat-width:123px;
    height:515px
  }
  .table-stage.dense {
    height:560px
  }
  .seat.is-self {
    --seat-width:145px
  }
  .board .card {
    width:55px;
    height:77px
  }
  .table-details-button {
    display:inline-flex;
    font-size:13px
  }
  .hand-label {
    display:none
  }
  .game-line {
    font-size:13px
  }
  .table-center {
    top:30%
  }
  .dense .table-center {
    top:27%
  }
  .own-cards {
    top:74%
  }
  .dense .own-cards {
    top:79%
  }
}
@media(max-width:700px) {
  .entry-view {
    margin:32px auto 24px
  }
  .entry-panel {
    padding:23px 24px
  }
  .entry-tabs {
    gap:30px;
    margin-bottom:23px
  }
  .entry-tabs button {
    font-size:23px
  }
  .header-note {
    font-size:12px
  }
  .page-footer {
    justify-content:center
  }
  .room-view:not([hidden])+.page-footer {
    display:none
  }
  .controls {
    position:relative;
    bottom:auto;
    z-index:6;
    background:#171918;
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
    box-shadow:none
  }
  .room-layout {
    padding-bottom:0
  }
  .result-panel {
    padding:14px
  }
  .controls:has(.raise-editor:not([hidden])) {
    max-height:78vh;
    overflow-y:auto
  }
  .table-section {
    padding-bottom:0
  }
  .connection-banner {
    margin-top:12px
  }
  .table-wordmark {
    font-size:12px
  }
}
@media(max-width:480px) {
  .shell {
    padding:17px 14px 0
  }
  .masthead {
    gap:8px;
    min-height:65px;
    padding-bottom:16px
  }
  .brand {
    gap:8px
  }
  .brand img {
    width:37px;
    height:37px
  }
  .brand-name {
    font-size:23px;
    letter-spacing:.055em
  }
  .brand-tagline {
    font-size:12px;
    letter-spacing:.045em
  }
  .header-note {
    font-size:12px;
    max-width:60px;
    text-align:right;
    line-height:1.8
  }
  .header-actions {
    gap:4px
  }
  .header-actions .icon-button {
    width:40px;
    min-width:40px;
    height:44px;
    border:0
  }
  .header-actions .icon-button svg {
    width:21px
  }
  .room-code-button {
    display:flex;
    flex-direction:column;
    gap:0;
    align-items:center;
    justify-content:center;
    padding:0 4px;
    font-size:12px;
    line-height:1.35
  }
  .room-code-button strong {
    font-size:17px;
    letter-spacing:.055em
  }
  .entry-view {
    margin:24px auto
  }
  .entry-panel {
    padding:21px 20px
  }
  .entry-tabs button {
    font-size:22px
  }
  .field-row {
    gap:11px
  }
  .field {
    font-size:13px
  }
  .field input,.field select {
    font-size:16px
  }
  .field-hint {
    font-size:12px
  }
  .game-line {
    font-size:12px;
    gap:0
  }
  .game-divider {
    margin:0 6px
  }
  .table-details-button {
    font-size:12px;
    padding:0 0 0 7px;
    min-height:38px
  }
  .table-details-button svg {
    width:16px
  }
  .table-stage {
    height:446px;
    margin-top:0;
    --seat-width:90px
  }
  .table-stage.dense {
    height:530px
  }
  .felt {
    inset:31px 18px 21px;
    border-radius:74px;
    box-shadow:inset 0 0 0 7px #1b211a,inset 0 0 0 8px #77734e,0 15px 30px #0b0e0b55
  }
  .felt:after {
    inset:20px;
    border-radius:55px
  }
  .seat {
    padding:6px 7px;
    border-radius:5px
  }
  .seat.is-self {
    --seat-width:122px
  }
  .seat .who {
    font-size:13px;
    gap:3px
  }
  .seat .chips {
    font-size:22px
  }
  .seat-state {
    font-size:12px;
    margin-top:2px;
    letter-spacing:-.015em
  }
  .seat-tag {
    font-size:12px
  }
  .seat .dealer {
    width:20px;
    height:20px;
    font-size:12px;
    right:-6px;
    top:-8px
  }
  .table-wordmark {
    top:20.5%;
    font-size:12px;
    letter-spacing:.18em;
    left:25%;
    right:25%
  }
  .dense .table-wordmark {
    top:16.8%
  }
  .table-center {
    top:30%
  }
  .dense .table-center {
    top:25.8%
  }
  .pot-label {
    font-size:12px;
    line-height:1.45
  }
  .pot {
    font-size:38px;
    line-height:1.15
  }
  .pot small {
    font-size:12px;
    margin-left:5px
  }
  .board {
    gap:4px;
    margin-top:10px;
    min-height:57px
  }
  .board .card {
    width:39px;
    height:57px;
    font-size:21px;
    padding:4px;
    border-radius:4px
  }
  .board .card small {
    font-size:12px;
    margin-top:1px
  }
  .board .card .suit {
    font-size:23px;
    bottom:4px;
    right:4px
  }
  .round-label {
    font-size:12px;
    margin-top:8px;
    max-width:170px
  }
  .own-cards {
    top:71.5%;
    gap:4px
  }
  .dense .own-cards {
    top:78%;
  }
  .own-cards .card {
    width:44px;
    height:62px;
    padding:4px;
    font-size:23px
  }
  .own-cards .card .suit {
    font-size:25px;
    bottom:4px;
    right:4px
  }
  .own-cards .card small {
    font-size:13px
  }
  .hand-caption {
    font-size:12px;
    margin-top:4px
  }
  .controls {
    margin-top:9px;
    padding-top:12px
  }
  .turn-line {
    font-size:13px;
    margin-bottom:10px;
    gap:7px
  }
  .turn-line strong {
    font-size:13px;
    line-height:1.65
  }
  .turn-timer {
    font-size:13px
  }
  .actions {
    gap:6px
  }
  .action-button {
    min-height:52px;
    font-size:14px
  }
  .action-button small {
    font-size:17px;
    padding-left:4px
  }
  .control-footnote {
    font-size:12px;
    gap:7px;
    margin-top:10px
  }
  .lobby-controls p {
    font-size:13px;
    margin-bottom:10px
  }
  .start-actions .button {
    min-height:51px;
    font-size:14px
  }
  .raise-presets {
    gap:5px
  }
  .raise-presets button {
    padding:5px 2px
  }
  .sheet-inner {
    padding:22px
  }
  .sheet-head {
    margin-bottom:17px
  }
  .sheet-head h2 {
    font-size:25px
  }
  .sheet-hint {
    font-size:13px
  }
  .sheet {
    max-height:92dvh
  }
  .connection-banner {
    font-size:12px;
    padding:4px 9px;
    gap:7px
  }
  .connection-banner .text-button {
    font-size:12px;
    padding:0 3px
  }
  .toast {
    font-size:13px
  }
  .result-title {
    font-size:20px
  }
  .between-controls {
    font-size:12px
  }
  .tournament-line {
    font-size:12px
  }
  .seat-hand {
    top:calc(100% + 3px)
  }
  .seat-hand .card {
    width:24px;
    height:32px;
    font-size:13px;
    padding:2px
  }
  .seat-hand .card small {
    font-size:11px
  }
}
@media(max-width:360px) {
  .shell {
    padding-left:10px;
    padding-right:10px
  }
  .brand-name {
    font-size:21px
  }
  .brand img {
    width:33px;
    height:33px
  }
  .brand-tagline {
    font-size:12px;
    letter-spacing:0
  }
  .header-actions {
    gap:0
  }
  .header-actions .icon-button {
    width:36px;
    min-width:36px
  }
  .room-code-button strong {
    font-size:15px
  }
  .table-stage {
    --seat-width:83px
  }
  .seat .who {
    font-size:12px
  }
  .seat .chips {
    font-size:21px
  }
  .seat-state {
    font-size:12px
  }
  .board .card {
    width:37px;
    height:54px
  }
  .board {
    gap:3px
  }
  .entry-panel {
    padding:20px 17px
  }
  .field-row {
    gap:8px
  }
}
@media(prefers-reduced-motion:no-preference) {
  button {
    transition:background-color .15s,border-color .15s,filter .15s
  }
  .card.dealt {
    animation:deal-in .45s cubic-bezier(.16,1,.3,1) both
  }
  .card.dealt:nth-child(2) {
    animation-delay:.05s
  }
  .card.dealt:nth-child(3) {
    animation-delay:.1s
  }
  @keyframes deal-in {
    from {
      transform:translateY(-7px);
      filter:brightness(.8)
    }
    to {
      transform:translateY(0);
      filter:brightness(1)
    }
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.empty-seat {
  background:#222a20;
  border-style:dashed;
  border-color:#4c5941;
  color:#abb69f
}
.empty-seat .who {
  font-size:12px
}
.empty-chair {
  font:20px/1.4 var(--serif);
  margin-top:2px;
  color:#a8b49b
}
.empty-seat .seat-state {
  color:#a8b49b
}
.seat-revealed {
  display:flex;
  justify-content:center;
  gap:4px;
  margin-top:3px;
  height:20px
}
.revealed-card {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:27px;
  padding:0 3px;
  border-radius:2px;
  background:var(--cream);
  color:#272e29;
  font:14px/20px var(--serif)
}
.revealed-card.red {
  color:var(--red)
}
.start-actions.single-action {
  grid-template-columns:1fr
}
.own-cards,.dense .own-cards {
  top:auto;
  bottom:calc(9% + 50px)
}
.dense .own-cards {
  bottom:calc(6% + 50px)
}
.table-options {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:36px;
  font-size:12px;
  color:var(--gold);
}
.table-options .text-button { flex:none; margin-left:auto; min-height:36px; padding:4px 0 4px 10px; }
.table-options #pendingBlinds { line-height:1.5; }
.show-cards-controls { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:7px 12px; margin-top:10px; }
.show-cards-controls .button { min-height:40px; padding:7px 17px; font-size:13px; }
.show-cards-controls > span { color:var(--muted); font-size:12px; }
.table-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.sound-toggle { min-height:44px; flex:none; }
.sound-preferences { margin:12px 0 20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.sound-preferences label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:14px; }
.sound-preferences label span { color:var(--muted); font-size:12px; }
.sound-volume-row { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; }
.sound-volume-row input { flex:1; min-width:0; min-height:44px; accent-color:var(--gold); }
.table-tools .table-options { flex:1; min-width:0; }
.chat-open-button { flex:none; min-height:44px; gap:6px; }
.chat-unread { min-width:20px; padding:0 5px; border-radius:10px; background:var(--gold); color:var(--bg); font-size:12px; line-height:20px; text-align:center; }
.room-side { min-width:0; padding-left:27px; border-left:1px solid var(--line); }
.room-side .sidebar { padding-left:0; border-left:0; margin-top:30px; }
.chat-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.chat-heading h2 { font:23px/1.4 var(--serif); margin:4px 0; }
.chat-heading .text-button { min-height:44px; padding:6px 0 6px 12px; flex:none; }
.chat-empty { color:var(--muted); font-size:13px; line-height:1.8; margin:16px 0; }
.chat-messages { list-style:none; margin:12px 0; padding:0 7px 0 0; max-height:300px; min-height:40px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#747b65 var(--surface); }
.chat-messages:empty { min-height:0; margin:0; }
.chat-message { margin:0 0 18px; }
.chat-message:last-child { margin-bottom:0; }
.chat-message-heading { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:12px; line-height:1.6; color:var(--muted); }
.chat-message-name { overflow-wrap:anywhere; }
.chat-message.is-own .chat-message-name { color:var(--gold); }
.chat-message-time { flex:none; font-size:11px; font-variant-numeric:tabular-nums; }
.chat-message-text { margin:4px 0 0; font-size:14px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-form { border-top:1px solid var(--line); padding-top:14px; }
.chat-form label { display:block; color:var(--cream); font-size:13px; margin-bottom:8px; }
.chat-form textarea { display:block; width:100%; max-height:160px; min-height:76px; resize:vertical; padding:10px 12px; border:1px solid #68735a; border-radius:5px; background:var(--surface); color:var(--cream); font:16px/1.6 var(--sans); caret-color:var(--gold); }
.chat-form textarea::placeholder { color:var(--muted); }
.chat-form textarea:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.chat-send-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }
.chat-send-row > span { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.chat-send-row > .is-over-limit { color:var(--error); }
.chat-send-row .button { min-width:76px; min-height:44px; padding:8px 14px; font-size:14px; }
.chat-input-hint,.chat-status { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.7; }
.chat-new-messages { width:100%; min-height:44px; justify-content:center; margin:4px 0 10px; }
@media (min-width:1200px) { .room-side { padding-left:30px; } }
@media (min-width:851px) and (max-width:1050px) { .room-side { padding-left:21px; } }
@media (max-width:850px) {
  .room-side { border-left:0; padding-left:0; max-width:740px; width:100%; margin:18px auto 0; }
  .room-chat { border-top:1px solid var(--line); padding:12px 0 24px; }
  .chat-messages { max-height:260px; }
}
.remaining-board-section { margin-top:14px; padding-top:14px; border-top:1px solid #756a49; }
.remaining-board-section .button { min-height:44px; padding:8px 16px; font-size:13px; }
.remaining-board-cards { display:flex; justify-content:center; gap:14px; margin-top:14px; }
.remaining-street { display:flex; flex-direction:column; gap:7px; }
.remaining-street-label { font-size:12px; color:#d4d6c5; }
.remaining-street-cards { display:flex; gap:5px; }
.remaining-street-cards .card { width:43px; height:62px; padding:4px 5px; font-size:21px; }
.remaining-street-cards .card small { font-size:12px; }
.remaining-street-cards .card .suit { right:5px; bottom:5px; font-size:23px; }
.remaining-board-section p { font-size:12px; line-height:1.6; margin-top:12px; }
.pre-action-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:38px; font-size:13px; color:#c4cbb7; }
.pre-action-heading .text-button { min-height:38px; padding:4px 0 4px 12px; }
.pre-action-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.pre-action-buttons button { min-height:52px; border:1px solid #687553; border-radius:5px; color:#e1e4d5; background:#232b20; padding:8px 5px; font-size:14px; line-height:1.5; }
.pre-action-buttons button[aria-pressed="true"] { background:#e4c68b; border-color:#e4c68b; color:#222a1e; }
.pre-action-buttons button small { display:block; font:16px/1.25 var(--serif); font-variant-numeric:tabular-nums; }
.pre-action-controls p { font-size:12px; line-height:1.6; color:#c3cbb5; margin:9px 0 0; min-height:20px; }
.settings-blinds { margin:-5px 0 14px; padding-left:0; }
@media (max-width:600px) {
  .pre-action-buttons { gap:6px; }
  .show-cards-controls { gap:5px 10px; }
  .show-cards-controls > span { font-size:11px; }
}
