:root {
  color-scheme: dark;
  --paper: #f8eddc;
  --muted: #c6b5a1;
  --gold: #e8bd79;
  --shadow: #100e0d;
  --wood: #492b1f;
  --edge: #685343;
  --felt: #123932;
  --red: #e4aa9c;
  --body: "Instrument Sans", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  --display: "Instrument Serif", "Songti SC", SimSun, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
  margin: 0;
  color: var(--paper);
  font: 15px/1.45 var(--body);
  background: radial-gradient(ellipse at 53% -12%, #443127 0, #211b17 43%, #141111 86%);
  min-height: 100dvh;
}
.sound-credits { display: block; width: fit-content; margin-top: 12px; color: var(--gold); font-size: .85rem; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
button:focus-visible, input:focus-visible { outline: 2px solid #f3cf8c; outline-offset: 3px; }
input { min-width: 0; }
p, h1, h2, output { margin: 0; }

.app-shell { max-width: 1600px; margin: auto; padding-inline: max(clamp(12px, 3.6vw, 55px), env(safe-area-inset-left)) max(clamp(12px, 3.6vw, 55px), env(safe-area-inset-right)); }
.topbar { display: flex; min-height: 69px; align-items: center; gap: 22px; border-bottom: 1px solid #ffffff15; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #b5874b73; border-radius: 9px; font-size: 21px; color: var(--gold); background: #b4844111; }
.brand-name { font: 700 23px/1 var(--display); letter-spacing: .12em; }
.header-tools { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.quiet, .secondary, .primary {
  min-height: 42px;
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 650;
  transition: background-color .14s, border-color .14s, transform .12s;
}
.quiet:enabled:active, .secondary:enabled:active, .primary:enabled:active { transform: translateY(1px); }
.quiet { color: var(--muted); background: transparent; }
.quiet:enabled:hover { color: var(--paper); background: #e8bd7912; }
.secondary { color: #f2dec1; background: #342820; border-color: #70543d; }
.secondary:enabled:hover { background: #4b3829; border-color: #9b7351; }
.primary { color: #24180e; background: linear-gradient(180deg, #f0ca8d, #dba768); border-color: #efc487; box-shadow: 0 2px 6px #0b08083d, inset 0 1px #fff3; }
.primary:enabled:hover { background: #f6d6a5; }
.danger, .leave:hover { color: var(--red); }
.room-header { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 20px; border-left: 1px solid #ffffff20; }
.room-code { color: var(--muted); white-space: nowrap; }
.room-code strong { color: var(--paper); letter-spacing: .13em; padding-left: 5px; font-variant-numeric: tabular-nums; }
.connection { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.connection::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d8a563; }
.connection.online::before { background: #8db99d; box-shadow: 0 0 8px #82ba9a66; }

.entry {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100dvh - 69px));
  display: grid;
  grid-template-columns: minmax(320px, 410px) 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 100px);
  overflow: hidden;
}
.entry-panel { padding: 48px 0 56px clamp(4px, 5vw, 72px); z-index: 1; }
.entry h1 { font: 800 clamp(40px, 5vw, 69px)/1.1 var(--display); letter-spacing: .08em; }
.entry-detail { color: var(--muted); margin: 15px 0 36px; font-size: clamp(12px, 1.1vw, 15px); }
.entry-detail span { padding-inline: 4px; color: #bea074; }
form label, .invite-content label { display: block; margin-bottom: 8px; color: #ebd8c1; font-weight: 650; }
input:not([type="range"], [type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  color: var(--paper);
  background: #170f0d;
  border: 1px solid #7b66523a;
  border-radius: 6px;
}
input::placeholder { color: #aa9988; }
#create-room { width: 100%; margin-top: 11px; }
.join-fields { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#join-code { text-transform: uppercase; }
#join-code::placeholder { text-transform: none; }
.entry-divider { height: 1px; background: #ffffff18; margin: 25px 0 19px; }
.entry-error { min-height: 1.6em; margin-top: 10px; color: #f2b4a5; }

.entry-art { position: relative; width: 100%; aspect-ratio: 1.08; isolation: isolate; }
.entry-oval, .surface {
  background:
    repeating-linear-gradient(12deg, #8b604520 0 1px, #27130a40 2px 3px, transparent 4px 11px),
    repeating-linear-gradient(3deg, #421e1255 0 15px, #9b66442e 16px 44px),
    linear-gradient(150deg, #754d35 0, #44261b 50%, #2a1914 93%);
  box-shadow: 0 29px 45px #080706ab, 0 4px 0 #100b0a, inset 0 1px 1px #e6a98296, inset 0 -5px 8px #170c099e;
  border: 1px solid #704b37;
}
.entry-oval { position: absolute; left: 0; top: 8%; width: 112%; height: 79%; border-radius: 51%; transform: rotate(-16deg); }
.entry-felt, .felt {
  background:
    radial-gradient(ellipse at 50% 28%, #2f675769, #0b271f33 55%, #061c15a3 100%),
    repeating-linear-gradient(127deg, #bedcba11 0 1px, transparent 1px 4px),
    repeating-linear-gradient(42deg, #07181178 0 1px, transparent 1px 2px),
    var(--felt);
  box-shadow: inset 0 2px 17px #071b15b3, inset 0 -2px 10px #183c3166;
}
.entry-felt { position: absolute; inset: 7%; border-radius: 50%; border: 2px solid #b590576f; }
.entry-felt::before, .felt::before { content: ""; position: absolute; inset: 9%; border-radius: 48%; border: 1px solid #cfb07b3b; pointer-events: none; }
.entry-glow { position: absolute; inset: -11% -18% 2% -12%; background: radial-gradient(ellipse, #efb35c17, transparent 65%); pointer-events: none; mix-blend-mode: screen; }
.fan { position: absolute; left: 57%; top: 43%; transform: translate(-50%, -45%) rotate(-11deg); display: flex; align-items: center; --card-height: clamp(110px, 13vw, 190px); --card-width: calc(var(--card-height) * .68); }
.fan .playing-card { box-shadow: 4px 10px 19px #091a14aa; }
.fan .playing-card:nth-child(1) { transform: translate(13%, 13%) rotate(-17deg); }
.fan .playing-card:nth-child(2) { transform: translate(-5%, -3%) rotate(-2deg); }
.fan .playing-card:nth-child(3) { transform: translate(-24%, 12%) rotate(14deg); }
.entry-chip, .flight.chip, .pot-mark::after {
  border-radius: 50%;
  background: radial-gradient(circle, #852f2c 45%, #eccea8 47% 51%, transparent 53%), repeating-conic-gradient(#e2c6a0 0deg 13deg, #913c34 13deg 45deg);
  box-shadow: 0 4px 0 #57221f, 0 7px 11px #110b08ba, inset 0 0 0 1px #fff5;
}
.entry-chip { position: absolute; width: 9%; aspect-ratio: 1; }
.entry-chip-red { left: 76%; top: 70%; transform: rotate(-13deg); }
.entry-chip-gold { left: 70%; top: 72%; transform: rotate(25deg); filter: hue-rotate(32deg) saturate(.7); }

.game { --table-height: clamp(400px, calc(100dvh - 214px), 710px); padding: 12px 0 max(10px, env(safe-area-inset-bottom)); }
.rotation { display: none; color: #efd6a8; background: #76572a48; border-radius: 6px; padding: 7px 10px; font-size: .82rem; }
.match-line { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.match-meta, .notice { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .82rem; }
.match-meta strong { font-weight: 700; color: var(--paper); }
.match-meta .chip-rules { padding: 1px 7px; border-left: 1px solid #9b7d5a51; }
.notice { color: #efb7a4; text-align: right; }
.table { position: relative; height: var(--table-height); max-width: 1280px; margin: auto; isolation: isolate; }
.surface { position: absolute; inset: 7.5% 8% 11%; border-radius: 49% / 48%; padding: clamp(12px, 1.6vw, 23px); }
.rail { width: 100%; height: 100%; border-radius: 49% / 48%; padding: 5px; background: linear-gradient(165deg, #c5a472ae, #503622 32%, #9a7046 62%, #35251b); box-shadow: 0 0 3px #1c120c; }
.felt { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.felt::before { inset: 6.8% 5%; }
.table-center { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: min(34%, 300px); text-align: center; z-index: 1; color: #e6dccc; }
.table-center .status { font-size: clamp(12px, 1vw, 16px); color: #efe5d5; font-weight: 700; text-shadow: 0 2px 7px #091c16; overflow-wrap: anywhere; }
.table-center .detail { color: #d3c9b9; font-size: clamp(10px, .91vw, 13px); margin-top: 4px; }
.table-center .hero-value { font: 800 clamp(25px, 4vw, 52px)/1 var(--display); margin: 8px 0; color: #f6e6c8; letter-spacing: .02em; overflow-wrap: anywhere; }
.pot-line { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1vw, 10px); margin-bottom: 3px; }
.pot-name { color: #e4d2b3; font-size: clamp(10px, .85vw, 13px); }
.pot-line strong { font: 750 clamp(20px, 2.8vw, 43px)/1 var(--display); color: #f3d5a0; font-variant-numeric: tabular-nums; }
.pot-mark { position: relative; display: block; width: 26px; height: 25px; }
.pot-mark::after { content: ""; display: block; width: 22px; height: 22px; margin: auto; transform: translateY(-2px) rotate(22deg); }
.time-track { height: 4px; width: min(100%, 145px); overflow: hidden; background: #0b1e17; margin: 8px auto 0; border-radius: 4px; }
.time-track i { display: block; height: 100%; background: #e8bc73; width: var(--time, 100%); transform-origin: left; transition: width .2s linear; }
.time-track.danger i { background: #eaa995; }

.seat-layer, .effects { position: absolute; inset: 0; pointer-events: none; }
.seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(124px, 13vw, 175px); z-index: 2; }
.seat-box { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 53px; padding: 6px 9px 6px 7px; border: 1px solid #765c46; background: linear-gradient(150deg, #302720, #1c1714 72%); border-radius: 8px; box-shadow: 0 5px 11px #0d0b0a86, inset 0 1px #ffffff12; }
.seat-box.speaker { border-color: #f5cc88; box-shadow: 0 0 0 2px #e9ac6344, 0 0 26px #f7c77c35; }
.seat-box.winner { border-color: #edd393; box-shadow: 0 0 20px #ecc67b61; }
.seat-box.inactive { border-color: #645646; color: #b7a999; }
.seat-box.offline { border-style: dashed; }
.seat.is-self .seat-box { border-color: #9a7654; background: linear-gradient(160deg, #4a3627, #241c16 80%); }
.seat.is-self .seat-box.speaker { border-color: #f5cc88; }
.avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #e5b5794a;
  border-radius: 6px;
  background: var(--player-portrait) center / cover no-repeat, linear-gradient(150deg, var(--avatar), #1f1915);
  box-shadow: inset 0 0 0 1px #53381755;
}
.avatar-prop { position: relative; z-index: 2; padding: 0; pointer-events: auto; }
.avatar-prop:hover, .avatar-prop[aria-expanded="true"] { border-color: var(--gold); }
.seat-compare-hit {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.seat:has(.rebuy-contract) { z-index: 5; }
.rebuy-contract {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  translate: -50%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 9px;
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 7px 10px;
  border: 1px solid #b79564;
  border-radius: 6px;
  pointer-events: auto;
  color: #fff0d2;
  background: linear-gradient(145deg, #624127, #33231a 76%);
  box-shadow: 0 4px 15px #130e09cf, inset 0 0 0 2px #f2c78b17;
}
.rebuy-seal {
  display: grid;
  place-items: center;
  width: 26px;
  aspect-ratio: 1;
  border: 1px solid #d99576;
  background: #862f22;
  color: #ffe0b5;
  rotate: -8deg;
  font: 700 16px/1 var(--display);
}
.rebuy-text { display: grid; gap: 1px; }
.rebuy-text small { color: #e2c7a7; font-size: .67rem; }
.rebuy-buttons { grid-column: 1 / -1; display: flex; gap: 4px; }
.rebuy-buttons button { min-height: 35px; padding: 4px 8px; font-size: .75rem; }
#game.is-in-match .seat .backs.god-view-cards .playing-card {
  --card-width: clamp(16px, 1.75vw, 24px);
  --card-height: calc(var(--card-width) * 1.26);
  opacity: .84;
}
.god-view-label {
  position: absolute;
  z-index: 1;
  top: calc(100% + 2px);
  left: 50%;
  translate: -50%;
  padding: 0 3px;
  border: 1px solid #95b29b;
  border-radius: 3px;
  color: #d9efdc;
  background: #162e23f0;
  font-size: 9px;
  white-space: nowrap;
}
.seat-text { flex: 1; min-width: 0; }
.seat-top { display: flex; align-items: center; gap: 4px; }
.seat-name { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seat-role { font-size: .63rem; color: #f4cc8d; flex: none; }
.seat-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.seat-stack { color: #f0c995; font-size: .82rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.seat-state { color: #cab9a2; white-space: nowrap; font-size: .65rem; }
.seat.speaking .seat-state { color: #f8d395; }
.seat .reveals, .seat .backs { display: flex; gap: 2px; justify-content: center; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 5px); }
.seat.lower .reveals, .seat.lower .backs { top: auto; bottom: calc(100% + 5px); }
.seat .reveals { --card-width: clamp(17px, 2vw, 28px); --card-height: calc(var(--card-width) * 1.25); }
.seat .reveal-label { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); color: #ffebc1; font-size: 9px; line-height: 1; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.seat .backs .playing-card { --card-width: 13px; --card-height: 16px; }

.hand { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -5%); display: flex; gap: clamp(3px, .65vw, 9px); z-index: 3; --card-width: clamp(31px, 5vw, 72px); --card-height: calc(var(--card-width) * 1.38); }
.playing-card { position: relative; display: inline-block; width: var(--card-width); height: var(--card-height); flex: 0 0 auto; border-radius: max(2px, calc(var(--card-width) * .085)); color: #211a18; background: linear-gradient(145deg, #fffbef, #e5dbc5 100%); border: 1px solid #f4ebda; box-shadow: 0 3px 7px #08090489; overflow: hidden; }
.playing-card.red { color: #a62626; }
.playing-card.back { background: repeating-linear-gradient(43deg, #65524150 0 1px, transparent 1px 4px), repeating-linear-gradient(137deg, #ad825f6b 0 1px, #412c27 1px 4px); border: 1px solid #f0dcc0; }
.playing-card.back::after { content: ""; position: absolute; inset: 12%; border: 1px solid #ebc28578; border-radius: 14%; background: radial-gradient(ellipse at center, #b082568d 0 18%, #482f2296 19% 36%, transparent 38%); }
.corner { position: absolute; left: 6%; top: 4%; display: grid; justify-items: center; z-index: 1; font: bold max(8px, calc(var(--card-height) * .19))/.82 Georgia, serif; }
.corner.bottom { top: auto; left: auto; right: 6%; bottom: 4%; transform: rotate(180deg); }
.corner small { font-size: .75em; margin-top: .15em; }
.pips { position: absolute; inset: 9% 20%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); align-items: center; justify-items: center; font: max(7px, calc(var(--card-height) * .17))/1 Georgia, serif; }
.pips .pip:nth-child(n) { text-shadow: 0 0 .2px currentColor; }
.pips.single { font-size: calc(var(--card-height) * .46); }
.court { position: absolute; inset: 0; display: grid; place-items: center; font: calc(var(--card-height) * .82)/1 "Segoe UI Symbol", "Noto Sans Symbols 2", serif; }
.playing-card.mini .corner.bottom, .playing-card.mini .pips, .playing-card.mini .court { display: none; }
.playing-card.mini .corner { left: 0; top: 11%; width: 100%; font-size: max(8px, calc(var(--card-height) * .39)); line-height: .8; }
.playing-card.mini .corner small { margin-top: .05em; }

.actions { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 1px auto 0; max-width: 1090px; }
.action-copy { color: var(--muted); font-size: .88rem; text-align: center; }
.action-copy strong { color: #f5dbb4; }
.actions button { min-width: 86px; }
.actions .fold { margin-inline-start: clamp(12px, 4vw, 48px); color: #e6b4aa; border-color: #765048; background: #442520; }
.actions .amount { margin-left: 5px; font-variant-numeric: tabular-nums; }
.effects { overflow: visible; z-index: 5; }
.flight { position: absolute; left: 0; top: 0; width: 20px; height: 27px; will-change: transform, opacity; }
.flight.playing-card { --card-width: 20px; --card-height: 27px; }
.flight.chip { width: 19px; height: 19px; }
.dealing .hand .back:not(.landed), .dealing .backs .back:not(.landed) { opacity: 0; }
.hit { animation: hit .5s ease-out; }
@keyframes hit { 0%, 28% { filter: brightness(1.4); } 100% { filter: brightness(1); } }
.revealing .reveals, .revealing .hand { animation: reveal .6s both; transform-origin: center; }
@keyframes reveal { from { opacity: 0; scale: .8 1; } 35% { opacity: .1; scale: .32 1; } 100% { opacity: 1; scale: 1; } }

dialog { color: var(--paper); width: min(calc(100% - 26px), 458px); max-height: calc(100dvh - 16px); padding: 21px; border: 1px solid #937354; border-radius: 12px; background: linear-gradient(156deg, #3a2b23, #211814 84%); box-shadow: 0 22px 100px #100905c7; }
dialog::backdrop { background: #100b0bb4; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font: 750 22px/1.2 var(--display); }
.dialog-head .quiet { margin: -6px -8px -6px 0; }
.choices { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-width: 0; white-space: normal; text-align: left; }
.choice small { color: #e4be86; flex: none; }
.choice[aria-pressed="true"] { border-color: #eac486; background: #6e5136; }
.dialog-confirm { margin-top: 15px; width: 100%; }
.rules-list { color: #dacbb9; margin: 0; padding: 0 0 0 20px; }
.rules-list li + li { margin-top: 9px; }
.sound-option { display: flex; gap: 9px; align-items: center; margin-bottom: 13px; }
#music { color: var(--gold); font-size: 1.1rem; }
#music-dialog { overflow: auto; }
.music-current { display: grid; gap: 4px; margin-block: 4px 12px; }
#music-track { overflow-wrap: anywhere; }
#music-status { color: var(--muted); font-size: .86rem; }
#music-enable { margin-bottom: 10px; }
.music-controls { min-width: 0; display: grid; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; }
.music-field { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; align-items: center; }
.music-field select { min-width: 0; }
.music-transport { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.music-error { color: #ffb99e; margin: 0 0 10px; }
.music-error:empty { display: none; }
.music-personal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid #93735466; padding-top: 10px; }
.music-personal label { display: flex; align-items: center; gap: 7px; }
output { margin-left: auto; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
input[type="checkbox"] { accent-color: var(--gold); }
.invite-content p { margin-bottom: 13px; color: #d5c7b6; }
.invite-content label, .invite-content strong { font-weight: 700; }
.invite-content p:last-of-type { margin: 12px 0 0; }
.invite-content #copy-status { color: var(--gold); min-height: 1.4em; margin-top: 5px; }
#leave-note { color: #d8c1af; margin-bottom: 14px; }

@media (max-width: 840px) and (orientation: portrait) {
  .header-tools { gap: 1px; }
  .header-tools .quiet { padding-inline: 8px; }
  .topbar { gap: 3px 9px; flex-wrap: wrap; }
  .entry { display: block; overflow: visible; min-height: 0; }
  .entry-panel { max-width: 440px; margin: auto; padding: 32px 0 12px; }
  .entry-art { max-width: 430px; margin: auto; height: 240px; overflow: hidden; }
  .entry-oval { width: 96%; height: 76%; left: 2%; }
  .fan { --card-height: 97px; }
  .game { --table-height: 340px; }
  .rotation { display: block; }
  .room-header { padding-left: 2px; border-left: none; }
  .connection { font-size: 0; }
  .brand-name { font-size: 16px; }
  .brand { gap: 5px; }
  .brand-mark { display: none; }
  .table { min-width: 590px; }
  .game:has(.rotation) { overflow-x: auto; }
  .actions { justify-content: flex-start; }
}

@media (max-height: 590px) and (orientation: landscape) {
  .app-shell { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .topbar { min-height: 44px; gap: 10px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 23px; height: 23px; font-size: 15px; }
  .brand { gap: 7px; }
  .room-header { padding-left: 9px; gap: 7px; }
  .room-code { font-size: .77rem; }
  .room-code strong { padding-left: 3px; }
  .header-tools .quiet { min-height: 34px; font-size: .77rem; padding: 5px 7px; }
  .entry { min-height: calc(100dvh - 44px); gap: 16px; grid-template-columns: minmax(265px, 39%) 1fr; }
  .entry-panel { padding-block: 15px 18px; }
  .entry h1 { font-size: clamp(31px, 5vw, 52px); }
  .entry-detail { margin: 6px 0 12px; }
  .entry-divider { margin: 8px 0 6px; }
  .entry button, .entry input { min-height: 34px; }
  .entry-form label, .entry label { margin-bottom: 4px; }
  .entry-art { height: min(86%, 410px); }
  .game { --table-height: max(181px, calc(100dvh - 123px - env(safe-area-inset-bottom))); padding-top: 2px; }
  .match-line { min-height: 24px; }
  .match-meta, .notice { font-size: .69rem; gap: 6px; }
  .surface { inset: 7% 8% 7%; padding: 8px; }
  .rail { padding: 3px; }
  .seat { width: clamp(90px, 15vw, 127px); }
  .seat-box { min-height: 35px; gap: 5px; padding: 3px 4px; border-radius: 6px; }
  .avatar { flex-basis: 21px; width: 21px; height: 22px; font-size: 14px; }
  .seat-name, .seat-stack { font-size: .70rem; line-height: 1.2; }
  .seat-role, .seat-state { font-size: .59rem; line-height: 1.2; }
  .seat .backs { top: calc(100% + 2px); }
  .seat.lower .backs { bottom: calc(100% + 2px); }
  .seat .backs .playing-card { --card-width: 9px; --card-height: 12px; }
  .seat .reveals { --card-width: 16px; }
  .hand { top: 63%; --card-width: clamp(29px, 5vw, 48px); --card-height: min(16.5vh, calc(var(--card-width) * 1.26)); }
  .table-center { top: 43%; }
  .table-center .hero-value { margin: 3px 0; font-size: clamp(19px, 4vw, 29px); }
  .table-center .detail { margin-top: 2px; }
  .pot-mark { transform: scale(.7); width: 20px; height: 15px; }
  .pot-line strong { font-size: clamp(17px, 3.2vw, 26px); }
  .time-track { margin-top: 4px; height: 3px; }
  .actions { min-height: 43px; gap: 5px; }
  .actions button { min-width: 65px; min-height: 39px; font-size: .80rem; padding: 6px 8px; }
  .actions .fold { margin-inline-start: 10px; }
  .action-copy { font-size: .72rem; }
  dialog { padding: 13px; }
  .dialog-head { margin-bottom: 8px; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices button { padding: 5px 6px; font-size: .75rem; }
  .dialog-confirm { margin-top: 9px; }
}

#game.is-in-match {
  --desk-paper: #f5ebdc;
  --desk-muted: #c9bfab;
  --desk-accent: #f1c988;
  --desk-line: #8c765844;
  --dock-edge: #766049;
  --table-height: clamp(340px, calc(100dvh - 260px), 660px);
  position: relative;
  display: grid;
  align-content: start;
  margin-inline: auto;
  max-width: 1390px;
  padding-block: 8px max(8px, env(safe-area-inset-bottom));
}

#game.is-in-match .match-line {
  min-height: 29px;
  padding-inline: clamp(0px, 2vw, 28px);
  align-items: start;
}
#game.is-in-match .match-meta { line-height: 1.35; }
#game.is-in-match .match-meta strong { color: var(--desk-paper); font-weight: 720; }
#game.is-in-match .match-meta .chip-rules { color: var(--desk-muted); }
#game.is-in-match .notice { color: #f4bdae; line-height: 1.35; }

#game.is-in-match .table {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
}
#game.is-in-match .table::before {
  content: "";
  position: absolute;
  inset: 2% 3% 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #a4773933, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
#game.is-in-match .surface {
  inset: 5% 7% 10%;
  padding: clamp(11px, 1.4vw, 21px);
  border-color: #765037;
  border-radius: 48% / 47%;
  background:
    radial-gradient(ellipse at 49% 4%, #c8864d50, transparent 52%),
    repeating-linear-gradient(8deg, #33160c52 0 2px, #9a5e3420 3px 7px, #1d0d0b46 8px 10px, #7b48221a 13px 19px),
    linear-gradient(162deg, #5f3a29 0%, #3a2118 54%, #4c2e20 100%);
  box-shadow: 0 clamp(10px, 2vw, 27px) clamp(18px, 4vw, 52px) #090705a6,
    0 3px 0 #150d09, inset 0 1px 1px #ffda9c7d, inset 0 -3px 5px #1a0e09df;
}
#game.is-in-match .rail {
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(165deg, #c7a371ba, #54341e 41%, #9a713f 70%, #34251c);
}
#game.is-in-match .felt {
  background:
    radial-gradient(ellipse at 50% 36%, #295c47a1 0, #173d31 54%, #0b251f 92%),
    repeating-linear-gradient(129deg, #c5dfbc2e 0 1px, #13332766 1px 3px);
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 35px #071b15bb, inset 0 1px 3px #050d0a;
}
#game.is-in-match .felt::before { inset: 7% 6%; border-color: #d8ba8247; }

#game.is-in-match .table-center {
  z-index: 1;
  top: 44%;
  width: max-content;
  max-width: min(48%, 520px);
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--desk-paper);
}
#game.is-in-match .table-center .status { font: 700 clamp(14px, 1.45vw, 21px)/1.18 var(--body); color: #fbf0df; }
#game.is-in-match .table-center .detail { margin-top: 0; color: #deceaf; }
#game.is-in-match .table-center .hero-value { margin: 5px 0; }
#game.is-in-match .hud-pot,
#game.is-in-match .hud-turn { min-width: 0; }
#game.is-in-match .hud-pot .pot-line,
#game.is-in-match .hud-pot.pot-line { position: relative; margin-bottom: 0; white-space: nowrap; }
#game.is-in-match .hud-pot .pot-line.hit::after {
  content: "";
  position: absolute;
  inset: -3px -9px -4px;
  border: 1px solid #f3c778;
  border-radius: 48%;
  pointer-events: none;
  animation: pot-ring .46s ease-out both;
}
@keyframes pot-ring { from { scale: .78 .72; opacity: .9; } to { scale: 1.29 1.34; opacity: 0; } }
#game.is-in-match .hud-pot .pot-mark { filter: saturate(.72); }
#game.is-in-match .hud-pot .pot-name { color: #dfc89f; }
#game.is-in-match .hud-pot strong { font: 700 clamp(29px, 4vw, 52px)/1 var(--display); letter-spacing: -.02em; color: #fae0af; font-variant-numeric: tabular-nums; }
#game.is-in-match .hud-turn .status { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px; }
#game.is-in-match .hud-turn #seconds { color: #ead0a4; white-space: nowrap; font-size: .76em; font-variant-numeric: tabular-nums; }
#game.is-in-match .hud-turn .time-track { width: min(100%, 157px); height: 3px; margin: 6px auto 0; background: #0b201a; }
#game.is-in-match .hud-turn .time-track i { border-radius: inherit; background: #e6b974; }
#game.is-in-match .hud-turn .time-track.danger i { background: #f1a38c; }
#game.is-in-match .hud-latest {
  color: #d9c9ae;
  text-shadow: 0 1px 4px #0b201b;
  font-size: clamp(11px, .94vw, 14px);
  max-width: min(46vw, 500px);
  min-height: 1.25em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#game.is-in-match .hud-latest:empty { visibility: hidden; }
#game.is-in-match .hud-result-preview, #game.is-in-match .result-summary {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 3px;
  text-align: center;
  width: max-content;
  max-width: 100%;
  padding: clamp(7px, 1.35vw, 15px) clamp(12px, 2.3vw, 31px);
  border-block: 1px solid #d8b27556;
  background: radial-gradient(ellipse, #0c2219d9 20%, transparent 87%);
}
#game.is-in-match[data-phase="finished"] .result-summary { border-block-color: #f2c58186; }
#game.is-in-match[data-phase="finished"] .hero-value { color: #ffe2af; }

#game.is-in-match .seat {
  --seat-pad: clamp(6px, .8vw, 11px);
  top: clamp(24px, var(--y), calc(100% - 27px));
  width: clamp(126px, 13.1vw, 173px);
}
#game.is-in-match .seat-box {
  min-height: 54px;
  gap: clamp(6px, .8vw, 10px);
  padding: 5px var(--seat-pad);
  border-radius: 11px;
  border-color: #b297714f;
  background:
    radial-gradient(ellipse at top left, #92765823, transparent 67%),
    linear-gradient(177deg, #2b261f, #191816 80%);
  box-shadow: 0 4px 9px #08080868, inset 0 1px #f4d4a018;
  transition: border-color .16s ease, box-shadow .16s ease;
}
#game.is-in-match .avatar {
  border-color: #d9b47f53;
  border-radius: 50%;
  aspect-ratio: 1;
  background: var(--player-portrait) center / cover no-repeat, radial-gradient(circle at 38% 28%, var(--avatar) 10%, #211f1b 87%);
  box-shadow: inset 0 0 0 2px #0b0a092b;
  color: #f8e3bd;
}
#game.is-in-match .avatar-prop:hover, #game.is-in-match .avatar-prop[aria-expanded="true"] { border-color: var(--gold); }
#game.is-in-match .seat-name { color: #f1e8db; font-size: clamp(12px, 1vw, 15px); }
#game.is-in-match .seat-role { color: #eabf78; }
#game.is-in-match .seat-bottom { gap: 4px; }
#game.is-in-match .seat-stack { color: #ecd2a6; font-size: clamp(12px, 1.14vw, 16px); }
#game.is-in-match .seat-state { color: #d0c2ab; }
#game.is-in-match .seat-box.speaker {
  border-color: #f3c77c;
  box-shadow: 0 0 0 1px #edb97146, 0 0 22px #edb97135, 0 4px 10px #0708059e;
}
#game.is-in-match .seat-box.speaker .seat-state { font-weight: 700; color: #ffe0a7; }
#game.is-in-match .seat-box.winner { border-color: #e9bc69; box-shadow: 0 0 20px #e9bc6952, 0 4px 10px #0708057f; }
#game.is-in-match .seat-box.inactive { border-color: #9a856245; background: linear-gradient(165deg, #25211e, #1c1917); }
#game.is-in-match .seat-box.inactive .avatar { opacity: .68; }
#game.is-in-match .seat-box.inactive .seat-state { color: #dac9b7; }
#game.is-in-match .seat-box.offline { border-color: #c4a47789; }
#game.is-in-match .seat .backs .playing-card { --card-width: clamp(10px, 1.25vw, 17px); --card-height: calc(var(--card-width) * 1.26); }
#game.is-in-match .seat .reveal-label { text-shadow: 0 1px 3px #070d08; }
#game.is-in-match .seat.is-self { bottom: -1px; top: auto; width: clamp(145px, 17.5vw, 215px); transform: translateX(-50%); }
#game.is-in-match .seat.is-self .seat-box {
  min-height: 50px;
  border-color: var(--dock-edge);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(176deg, #493529, #28201a 83%);
  padding-inline: clamp(10px, 1.4vw, 19px);
}
#game.is-in-match .seat.is-self .seat-box.speaker { border-color: #e9bd75; }
#game.is-in-match .hand {
  top: auto;
  bottom: 56px;
  transform: translateX(-50%);
  gap: clamp(5px, 1vw, 12px);
  --card-width: min(clamp(37px, 5.6vw, 78px), calc(var(--table-height) * .17));
  --card-height: calc(var(--card-width) * 1.36);
}

#game.is-in-match .seat-selectable {
  pointer-events: auto;
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 11px;
  text-align: left;
  background: transparent;
  color: inherit;
}
#game.is-in-match .seat-selectable .seat-box { border-color: #83bb9f; box-shadow: 0 0 0 1px #83bb9f42, 0 0 12px #4fb78442; }
#game.is-in-match .seat-selectable:hover .seat-box { border-color: #d8ebd8; background: linear-gradient(161deg, #304739, #222b22); }
#game.is-in-match .seat-compare-hit:focus-visible { outline: 2px solid #ffe2a6; outline-offset: 3px; }
#game.is-in-match .seat-selectable.is-selected .seat-box {
  border-color: #f3d393;
  background: linear-gradient(166deg, #4c3925, #2f261d);
  box-shadow: 0 0 0 2px #f0c37c42, 0 0 25px #f0bc7464;
}

#game.is-in-match .actions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-content: stretch;
  gap: 0;
  width: min(100%, 800px);
  min-height: 57px;
  margin: 0 auto;
  border: 1px solid var(--dock-edge);
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 50% 0%, #64442b45, transparent 72%),
    linear-gradient(177deg, #2a211b 0%, #1d1815 100%);
  box-shadow: 0 9px 25px #08070580, inset 0 1px #e9bf7e1a;
}
#game.is-in-match .action-main {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vw, 13px);
  min-height: 57px;
  padding: 6px 12px;
}
#game.is-in-match .action-main button { min-width: clamp(64px, 8.5vw, 117px); min-height: 41px; }
#game.is-in-match .action-main [data-action="call"] { min-width: clamp(88px, 13vw, 162px); }
#game.is-in-match .action-main [data-action="compare"]:enabled { border-color: #859f85; background: linear-gradient(178deg, #384b3b, #27372d); }
#game.is-in-match .action-main [data-action="compare"]:enabled:hover { background: #455c47; }
#game.is-in-match .action-main .fold { margin-inline-start: clamp(9px, 3vw, 30px); color: #f3c9ba; }
#game.is-in-match .action-main .amount { margin-left: clamp(3px, .7vw, 8px); }
#game.is-in-match .action-standby, #game.is-in-match .action-main .action-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px 7px;
  color: var(--desk-muted);
  font-size: clamp(11px, 1.15vw, 15px);
  line-height: 1.3;
  text-align: center;
}
#game.is-in-match .action-standby strong, #game.is-in-match .action-main .action-copy strong { color: var(--desk-paper); }

#game.is-in-match .action-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px clamp(5px, 1.6vw, 15px);
  align-items: center;
  padding: 8px clamp(8px, 2vw, 18px) 11px;
  background: linear-gradient(175deg, #392b23, #241d18);
  border-top: 1px solid #a3845a4d;
  border-radius: 0 0 10px 10px;
}
#game.is-in-match .choice-heading {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 9px;
  min-width: 0;
  min-height: 19px;
  line-height: 1.18;
}
#game.is-in-match .choice-title { font: 750 clamp(12px, 1.4vw, 17px)/1.18 var(--body); color: #f4dfbe; }
#game.is-in-match .choice-help { font: 400 clamp(10px, 1vw, 13px)/1.2 var(--body); color: #d1bd9e; }
#game.is-in-match .raise-options { grid-column: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; gap: clamp(3px, .7vw, 6px); }
#game.is-in-match .raise-option {
  display: grid;
  justify-content: center;
  place-items: center;
  border: 1px solid #99805c7d;
  border-radius: 7px;
  padding: 4px 6px;
  min-width: 0;
  min-height: 38px;
  overflow-wrap: normal;
  background: #2c241e;
  color: #f8ead2;
  font: 700 clamp(11px, 1.15vw, 15px)/1.12 var(--body);
  font-variant-numeric: tabular-nums;
}
#game.is-in-match .raise-option small, #game.is-in-match .raise-option .raise-cost { font-size: .81em; color: #ddc293; }
#game.is-in-match .raise-option:enabled:hover { background: #493b2b; }
#game.is-in-match .raise-option[aria-pressed="true"] { background: #6e5030; border-color: #eac486; box-shadow: inset 0 1px #fff2; }
#game.is-in-match .choice-footer { grid-column: 2; display: flex; align-items: center; gap: 6px; min-width: 0; }
#game.is-in-match .choice-footer > :not(button) { color: #f0d5ae; text-align: right; font-size: clamp(10px, 1vw, 13px); line-height: 1.2; }
#game.is-in-match .choice-footer strong { color: #f9dda5; font-variant-numeric: tabular-nums; }
#game.is-in-match .choice-list-trigger, #game.is-in-match .action-cancel, #game.is-in-match .action-confirm {
  min-width: 0;
  min-height: 38px;
  padding: 5px clamp(7px, 1vw, 13px);
  font-size: clamp(11px, 1.05vw, 14px);
}
#game.is-in-match .choice-list-trigger { color: #d1e0d2; border-color: #82998092; background: #2b3b2ed6; }
#game.is-in-match .choice-list-trigger:enabled:hover { background: #455747; }
#game.is-in-match .choice-heading .choice-list-trigger { margin-left: auto; min-height: 30px; }
#game.is-in-match .action-cancel { color: #e8d7c2; }
#game.is-in-match .actions[data-choice-open="compare"] .choice-heading { grid-column: 1; }

#game.is-in-match .bet-chip {
  --chip-size: clamp(17px, 2.7vw, 35px);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--chip-size);
  height: var(--chip-size);
  translate: -50% -50%;
}
#game.is-in-match .bet-chip > .chip {
  --chip-body: #a33c38;
  --chip-edge: #52241c;
  --chip-inlay: #f0c694;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, #ffe7b933, transparent 64%),
    radial-gradient(circle, var(--chip-body) 0 29%, var(--chip-inlay) 31% 40%, transparent 42%),
    repeating-conic-gradient(var(--chip-inlay) 0 14deg, var(--chip-body) 14deg 50deg);
  box-shadow: 0 2px 0 var(--chip-edge), 0 4px 7px #0f0b0790, inset 0 0 0 1px #fbdabc94;
  translate: calc(var(--stack-index) * 1.15px) calc(var(--stack-index) * -2px);
  rotate: calc(var(--stack-index) * 13deg);
}
#game.is-in-match .bet-chip > .chip:nth-child(3n+2) { --chip-body: #54765c; --chip-edge: #263c2d; --chip-inlay: #eee0b9; }
#game.is-in-match .bet-chip > .chip:nth-child(3n+3) { --chip-body: #9e7337; --chip-edge: #47301c; --chip-inlay: #f6deb0; }
#game.is-in-match .pot-impact, #game.is-in-match .compare-impact {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  left: 50%;
  top: 31%;
  translate: -50% -50%;
  width: max-content;
  max-width: min(64%, 435px);
  padding: 6px 12px;
  color: #fff1d5;
  font: 720 clamp(10px, 1.15vw, 15px)/1.2 var(--body);
  text-align: center;
  text-wrap: balance;
  border: 1px solid #c39c65e3;
  border-radius: 7px;
  background: linear-gradient(165deg, #534027, #231b14 87%);
  box-shadow: 0 4px 15px #0808058a, 0 0 15px #d2a66c43;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  animation: impact-tag .28s cubic-bezier(.19,.56,.34,1) both;
}
#game.is-in-match .pot-impact { top: 29%; translate: -50% calc(-100% - 11px); }
#game.is-in-match .compare-impact { translate: -50% calc(-100% - 17px); }
@keyframes impact-tag { from { opacity: .22; scale: .76; } 66% { opacity: 1; scale: 1.06; } to { opacity: 1; scale: 1; } }
#game.is-in-match .pot-impact strong, #game.is-in-match .compare-impact strong { color: #ffe0a4; }
#game.is-in-match .seat .seat-box.compare-lead { border-color: #e5ae69; box-shadow: 0 0 0 2px #e5ae6950, 0 0 23px #e5ae694d; }
#game.is-in-match .seat .seat-box.compare-opponent { border-color: #8bd0b2; box-shadow: 0 0 0 2px #8bd0b241, 0 0 20px #79ba9c54; }
#game.is-in-match .seat .seat-box.compare-winner { border-color: #fff0ba; box-shadow: 0 0 0 2px #fada9047, 0 0 23px #efc16d91; }
#game.is-in-match .seat .seat-box.compare-loser { border-color: #ef9f89; box-shadow: 0 0 0 1px #ef9f8955, 0 0 17px #dd715448; }

@media (max-height: 590px) and (orientation: landscape) {
  #game.is-in-match {
    --table-height: max(172px, calc(100dvh - 176px - env(safe-area-inset-bottom)));
    padding-block: 2px max(4px, env(safe-area-inset-bottom));
  }
  #game.is-in-match .match-line { min-height: 22px; padding-inline: 0; }
  #game.is-in-match .surface { inset: 6.5% 7% 8.5%; padding: 7px; }
  #game.is-in-match .rail { padding: 2px; }
  #game.is-in-match .table-center {
    top: 44%;
    grid-template-columns: auto minmax(0, auto);
    gap: 4px clamp(6px, 1.5vw, 13px);
    max-width: 58%;
    align-items: center;
  }
  #game.is-in-match .table-center .status { font-size: clamp(11px, 1.9vw, 15px); }
  #game.is-in-match .hud-pot strong { font-size: clamp(19px, 4vw, 29px); }
  #game.is-in-match .hud-pot .pot-mark { transform: scale(.65); width: 13px; }
  #game.is-in-match .hud-turn .time-track { height: 2px; margin-top: 4px; }
  #game.is-in-match .hud-turn .status { gap: 0 3px; }
  #game.is-in-match .hud-turn #seconds { font-size: .82em; }
  #game.is-in-match .hud-latest {
    grid-column: 1 / -1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 0;
    font-size: 11px;
    line-height: 1.15;
    margin: 0;
  }
  #game.is-in-match .hud-result-preview, #game.is-in-match .result-summary { grid-column: 1 / -1; }
  #game.is-in-match .seat { top: clamp(19px, var(--y), calc(100% - 20px)); width: clamp(82px, 15vw, 124px); }
  #game.is-in-match .seat-box {
    min-height: 34px;
    padding: 3px 4px;
    border-radius: 7px;
    gap: 4px;
  }
  #game.is-in-match .avatar { flex: 0 0 20px; width: 20px; height: 20px; font-size: 12px; }
  #game.is-in-match .seat-name, #game.is-in-match .seat-stack { font-size: 11px; line-height: 1.16; }
  #game.is-in-match .seat-role, #game.is-in-match .seat-state { font-size: 9px; line-height: 1.16; }
  #game.is-in-match .seat .reveal-label { font-size: 8px; }
  #game.is-in-match .seat .backs .playing-card { --card-width: 9px; }
  #game.is-in-match .seat .backs, #game.is-in-match .seat .reveals { top: calc(100% + 2px); }
  #game.is-in-match .seat.lower .backs, #game.is-in-match .seat.lower .reveals { top: auto; bottom: calc(100% + 2px); }
  #game.is-in-match .seat.is-self { top: auto; bottom: -1px; width: clamp(112px, 21vw, 170px); }
  #game.is-in-match .seat.is-self .seat-box { min-height: 34px; padding-inline: 7px; border-radius: 8px 8px 0 0; }
  #game.is-in-match .hand {
    top: auto;
    bottom: 37px;
    --card-width: min(clamp(27px, 5vw, 46px), calc(var(--table-height) * .174));
    --card-height: calc(var(--card-width) * 1.28);
    gap: 4px;
  }
  #game.is-in-match .actions { min-height: 43px; border-radius: 8px; }
  #game.is-in-match .action-main { min-height: 43px; padding: 3px 6px; gap: 5px; }
  #game.is-in-match .action-main button { min-width: 61px; min-height: 36px; padding: 4px 7px; }
  #game.is-in-match .action-main [data-action="call"] { min-width: 81px; }
  #game.is-in-match .action-main .fold { margin-inline-start: 8px; }
  #game.is-in-match .action-choice { gap: 3px 7px; padding: 3px 7px 5px; border-radius: 0 0 7px 7px; }
  #game.is-in-match .choice-heading { min-height: 14px; line-height: 1.1; }
  #game.is-in-match .choice-title { font-size: 11px; }
  #game.is-in-match .choice-help { font-size: 10px; }
  #game.is-in-match .choice-heading .choice-list-trigger { min-height: 24px; }
  #game.is-in-match .raise-option { min-height: 35px; padding: 2px 5px; line-height: 1.04; }
  #game.is-in-match .choice-footer { gap: 4px; }
  #game.is-in-match .choice-list-trigger, #game.is-in-match .action-cancel, #game.is-in-match .action-confirm { min-height: 35px; padding: 3px 6px; }
  #game.is-in-match .pot-impact, #game.is-in-match .compare-impact { top: 24%; font-size: 10px; padding: 4px 6px; }
}

@media (max-width: 840px) and (orientation: portrait) {
  #game.is-in-match { --table-height: 333px; }
  #game.is-in-match .rotation { margin-bottom: 4px; }
  #game.is-in-match .table { min-width: 560px; }
  #game.is-in-match .actions { width: 560px; margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
