:root {
  color-scheme: dark;
  font-family: "Microsoft JhengHei","PingFang TC",system-ui,sans-serif;
  --gold:#f0cb83; --pale:#fbf4df; --night:#16131e;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
html,body { width:100%; height:100%; margin:0; overflow:hidden; background:#160d19; color:var(--pale) }
/* Telegram can leave visible page background beyond the smaller game surface. */
html,body,#game { touch-action:manipulation }
html.account-open,html.account-open body { touch-action:auto }
button,input { font:inherit }
button { color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent }
button:disabled { cursor:default }
button:focus-visible,input:focus-visible { outline:3px solid #ffe9a6; outline-offset:3px }
.game {
  position:fixed; inset:0; isolation:isolate; display:grid; place-items:center; overflow:clip; container-type:size;
  width:100%; width:100dvw; height:100%; height:100dvh; padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  background:#2b1021 url('/assets/game_bg_gorgeous.jpg') center / cover;
}
.game::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse at 50% 47%,transparent 36%,#17061655 75%,#090511bd);
}
@media (orientation:portrait) {
  .game {
    inset:0 auto auto 100%; transform-origin:0 0; transform:rotate(90deg);
    width:100vh; width:100dvh; height:100vw; height:100dvw;
    padding:env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px) env(safe-area-inset-top,0px)
  }
}
.arena {
  position:relative; width:min(100%,200dvh,1800px); height:min(100%,72vw,950px);
  container-type:size; isolation:isolate; touch-action:none; user-select:none; -webkit-user-select:none;
}
#game > :is(#arena,#mj-arena):not([hidden]) {
  touch-action:manipulation;
  touch-action:pinch-zoom;
}
.felt {
  position:absolute; z-index:-1; inset:10% 2% 13%;
  background:url('/assets/table_gorgeous.png') center / 100% 100% no-repeat;
  filter:drop-shadow(0 2.4cqh 2cqh #0c050b8a);
}
.utility {
  position:absolute; z-index:6; inset-block-start:max(8px,env(safe-area-inset-top)); inset-inline-end:max(9px,env(safe-area-inset-right));
  display:flex; align-items:center; gap:5px;
}
.instrument,.pill {
  display:inline-flex; align-items:center; justify-content:center; border:1px solid #e0c59972; border-radius:99px;
  background:linear-gradient(155deg,#302d37f7,#171722f7); box-shadow:inset 0 1px #ffffff12,0 3px 9px #0005;
  min-height:40px; font-weight:700;
}
.instrument { width:39px; height:39px; background:#211721ad; font-size:1.04rem; padding:0 }
.instrument[aria-pressed="true"] { color:var(--gold); border-color:#edca86 }
.expand-icon i { position:relative; width:15px; height:15px; background:
 linear-gradient(currentColor,currentColor) left top / 6px 2px,linear-gradient(currentColor,currentColor) left top / 2px 6px,
 linear-gradient(currentColor,currentColor) right top / 6px 2px,linear-gradient(currentColor,currentColor) right top / 2px 6px,
 linear-gradient(currentColor,currentColor) left bottom / 6px 2px,linear-gradient(currentColor,currentColor) left bottom / 2px 6px,
 linear-gradient(currentColor,currentColor) right bottom / 6px 2px,linear-gradient(currentColor,currentColor) right bottom / 2px 6px;
 background-repeat:no-repeat }
.pill { padding:6px clamp(12px,2cqw,25px); line-height:1.15; white-space:nowrap }
.pill.gold { color:#251a09; background:linear-gradient(170deg,#ffeab4,#dbac61); border-color:#fff0bc; box-shadow:inset 0 1px #fff8,0 2px 10px #1e140d80 }
.pill:hover:enabled,.instrument:hover:enabled { filter:brightness(1.16) }
.pill:disabled { opacity:.48 }
.table-center {
  position:absolute; z-index:1; top:46%; left:50%; width:55%; transform:translate(-50%,-50%); display:grid; justify-items:center;
  align-content:center; gap:clamp(3px,.75cqh,8px); text-align:center; pointer-events:none;
}
.deck {
  width:clamp(18px,3.2cqw,48px); aspect-ratio:2/2.7; border:1px solid #d7bb8f; border-radius:4px;
  background:repeating-linear-gradient(48deg,#41304b 0 3px,#59475d 3px 4px,#372f43 4px 7px);
  box-shadow:1px 2px 0 #c0b8b2,1px 3px 0 #443b3e,2px 5px 0 #d1c7b9,3px 6px 0 #443c44,3px 7px 0 #aaa19b,4px 9px 6px #092035a8;
  display:grid; place-items:center; transform:rotate(-13deg); color:#f7dcab; position:relative; overflow:hidden;
}
.deck span { display:grid; border:1px solid #c6a8787a; place-items:center; width:79%; height:80%; border-radius:2px; font:clamp(11px,1.5cqw,21px) Georgia,serif }
.deck::after { content:""; position:absolute; inset:-30% -100%; background:linear-gradient(105deg,transparent 40%,#ffefb14d 49%,transparent 59%); animation:glint 6s ease-in-out infinite }
@keyframes glint { 0%,58% { transform:translateX(-55%) } 82%,100% { transform:translateX(55%) } }
.arena.has-hand .deck { position:absolute; left:50%; top:-15%; transform:translate(-50%,-90%) rotate(-13deg); width:clamp(13px,2.2cqw,29px); opacity:.9 }
.hint { margin-top:clamp(6px,1.7cqh,18px); text-shadow:0 2px 7px #071827bc; display:grid; gap:5px; }
.hint strong { font-size:clamp(.91rem,1.65cqw,1.5rem); font-weight:750; letter-spacing:.07em }
.hint small,.stage,.winner { font-size:clamp(.73rem,1.05cqw,.97rem); line-height:1.4; color:#ebecd9 }
.stage { color:#eaeddf; text-shadow:0 1px 4px #06213c }
.pot,.winner { padding:3px 9px; border-radius:50px; color:#ffdf9e; background:#091727ad; border:1px solid #b6a77979 }
.pot { display:flex; align-items:center; justify-content:center; gap:5px; font:700 clamp(.78rem,1.23cqw,1.05rem) system-ui; letter-spacing:.025em }
.coin,.flying-chip { display:block; border-radius:50%; width:14px; height:14px; background:repeating-conic-gradient(#eedcaa 0 13deg,#a45134 13deg 52deg); border:1px solid #eacfa1; box-shadow:0 2px #633425 }
.coin::after,.flying-chip::after { content:""; display:block; position:absolute; inset:20%; border:1px solid #ffdc94; background:#bf7742; border-radius:50% }
.coin { position:relative }
.board { display:flex; align-items:center; justify-content:center; gap:clamp(3px,.45cqw,8px) }
.board:empty { display:none }
.card {
  display:inline-block; flex:none; width:clamp(25px,5.75cqw,81px); aspect-ratio:104 / 144; border-radius:6%; position:relative;
  background:linear-gradient(135deg,#fffdf3,#ebe4d6); border:1px solid #faf2dc;
  box-shadow:0 2px 5px #0316268a; overflow:hidden;
}
.card.face::before { content:""; position:absolute; inset:0; background-image:url('/assets/card-faces.png'); background-size:1300% 400%; background-position:var(--face-x) var(--face-y); background-repeat:no-repeat }
.card.back,.flying-card { border:1px solid #e4c897; background:repeating-linear-gradient(48deg,#352b44 0 2px,#544158 2px 3px,#392d46 3px 5px) }
.card.back::after,.flying-card::after { content:"♠"; position:absolute; inset:10%; border:1px solid #c8aa798a; display:grid; place-items:center; color:#e4ca99; font:clamp(8px,1cqw,15px) Georgia,serif }
.seats,.table-effects { position:absolute; inset:0; pointer-events:none }
.seats { z-index:2 }
.seat {
  --x:50%; --y:83%; --disc:clamp(39px,6.4cqw,87px); --progress:100%;
  position:absolute; left:var(--x); top:var(--y); width:clamp(86px,11.5cqw,154px);
  transform:translate(-50%,-50%); display:grid; justify-items:center; align-content:center;
}
.seat[data-position="1"] { --x:24%; --y:79% }
.seat[data-position="2"] { --x:7.7%; --y:58% }
.seat[data-position="3"] { --x:12.5%; --y:30% }
.seat[data-position="4"] { --x:34%; --y:17% }
.seat[data-position="5"] { --x:66%; --y:17% }
.seat[data-position="6"] { --x:87.5%; --y:30% }
.seat[data-position="7"] { --x:92.3%; --y:58% }
.seat[data-position="8"] { --x:76%; --y:79% }
.sit {
  pointer-events:auto; position:relative; border:1px solid #d1b181a8; width:var(--disc); height:var(--disc); border-radius:50%;
  color:#f5dfb7; background:radial-gradient(at 48% 32%,#503a40ee,#241f2aef 68%);
  box-shadow:inset 0 0 0 3px #31202ad6,inset 0 0 0 4px #ad927264,0 4px 8px #100a175e;
  font:300 clamp(1.15rem,2.5cqw,2.2rem)/1 system-ui; padding:0;
}
.sit:hover:enabled { color:#fff4d4; border-color:#ffe4ae; background:#51404a }
.sit.reserved { font:700 clamp(.7rem,1.3cqw,1.02rem) system-ui; border-color:#ffcf7b }
.sit:disabled { opacity:.55 }
.avatar {
  width:var(--disc); height:var(--disc); border-radius:50%; position:relative; isolation:isolate; z-index:0; display:grid; place-items:center;
  border:2px solid #b79f7c; background:radial-gradient(at 45% 25%,#67515a,#2d2430 75%); box-shadow:0 3px 9px #100818aa;
}
.seat.mine .avatar { border-color:#edd197 }
.seat.acting .avatar::before { content:""; position:absolute; inset:-6px; border-radius:50%; background:conic-gradient(#ffd775 0 var(--progress),#332a3066 var(--progress)); mask:radial-gradient(transparent 63%,#000 65%); -webkit-mask:radial-gradient(transparent 63%,#000 65%) }
.player-initial { font-size:clamp(.8rem,2.1cqw,1.65rem); font-weight:700; color:#f6deba }
.seat-media { position:absolute; inset:1px; border-radius:50%; overflow:hidden; pointer-events:none; }
.seat-media video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.seat-media audio { display:none }
.seat.mine .seat-media video { transform:scaleX(-1) }
.seat-badge {
  position:relative; max-width:100%; min-width:72%; display:grid; justify-items:center; padding:3px 8px 4px;
  margin-top:-4px; border-radius:9px; background:linear-gradient(#302632f5,#181823f7); border:1px solid #a58b675e;
  font-size:clamp(.67rem,1.05cqw,.94rem); line-height:1.22; text-align:center;
}
.seat-name,.last-action { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.seat-stack { color:#f0cb83; font:700 clamp(.66rem,1.05cqw,.94rem)/1.15 system-ui; font-variant-numeric:tabular-nums }
.last-action {
  position:absolute; bottom:calc(100% + 2px); left:50%; transform:translateX(-50%); color:#fff0c2; background:#231b25e0;
  border-radius:99px; padding:2px 6px; max-width:130%; font-size:clamp(.64rem,.9cqw,.8rem); white-space:nowrap;
}
.dealer {
  position:absolute; left:calc(50% + var(--disc) * .30); top:1px; border-radius:50%; padding:.12em .36em; color:#2b2016; border:1px solid #efdaaa;
  background:#e2bd7e; font:bold clamp(.62rem,.8cqw,.8rem) system-ui; z-index:2;
}
.seat-cards { position:absolute; display:flex; left:calc(50% + var(--disc) * .42); top:29%; transform:rotate(6deg); z-index:2; }
.seat-cards .card { width:clamp(10px,1.8cqw,26px) }
.seat-cards .card+.card { margin-left:-21%; transform:rotate(8deg) }
.seat[data-position="6"] .seat-cards,.seat[data-position="7"] .seat-cards,.seat[data-position="8"] .seat-cards { left:auto; right:calc(50% + var(--disc) * .35) }
.seat.mine .seat-cards,.seat.revealed .seat-cards { left:auto; right:calc(50% + var(--disc) * .40); top:8%; transform:rotate(-6deg) }
.seat.mine .seat-cards .card { width:clamp(25px,4.1cqw,59px) }
.seat.revealed .seat-cards .card { width:clamp(17px,2.6cqw,35px) }
.seat.folded .seat-cards { opacity:.53 }
.seat.win .avatar { border-color:#ffe385; box-shadow:0 0 16px #fed46a8c }
.seat-clock { position:absolute; right:calc(50% + var(--disc) * .30); top:0; background:#28212b; color:#ffe8bc; border:1px solid #b99b6e; border-radius:20px; padding:2px 4px; font:700 .67rem system-ui }
.action-dock { position:absolute; z-index:5; left:50%; bottom:1.2%; transform:translateX(-50%); max-width:96%; }
.action-buttons { display:flex; justify-content:center; gap:clamp(5px,1cqw,11px) }
.raise-form { position:absolute; bottom:calc(100% + 6px); right:0; display:grid; grid-template-columns:auto minmax(45px,1fr) auto auto; width:min(335px,93cqw); align-items:center; gap:4px; padding:8px; border-radius:12px; border:1px solid #baa073; background:#211b26f5; box-shadow:0 5px 15px #08070a99 }
.raise-form label,.raise-form .pill { font-size:.78rem }
.raise-form input[type=number] { min-width:0; width:100%; height:35px; color:white; background:#111019; border:1px solid #82775f; border-radius:5px; padding:3px 5px; font-size:1rem }
.raise-form .pill { padding:5px 9px; min-height:35px }
.raise-form input[type=range] { grid-column:1/-1; width:100%; margin:0; accent-color:#efc880 }
.table-effects { z-index:4; overflow:hidden }
.flying-chip,.flying-card { position:absolute; top:0; left:0; pointer-events:none; will-change:transform; }
.flying-chip { width:clamp(12px,1.8cqw,26px); height:clamp(12px,1.8cqw,26px); box-shadow:0 2px #633425,0 3px #d4ae73,1px 5px 4px #1b0d1666 }
.flying-card { width:clamp(16px,3.2cqw,45px); aspect-ratio:104/144; border-radius:5%; box-shadow:0 3px 6px #07162b88 }
.game-effect { position:absolute; pointer-events:none; object-fit:contain; z-index:3 }
.glow-seat { inset:-65% -55%; width:210%; height:210% }
.pot { position:relative }
.glow-pot { left:50%; top:50%; width:16cqw; height:13cqh; transform:translate(-50%,-50%) }
.glow-rank { left:50%; top:31%; transform:translate(-50%,-50%); width:36%; height:22% }
.glow-card { inset:-20%; width:140%; height:140% }
.toast { position:absolute; bottom:max(6px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:8; background:#201824f5; color:#fff0ce; border:1px solid #ccac7b; border-radius:9px; padding:8px 12px; font-size:.87rem; text-align:center; width:max-content; max-width:90%; box-shadow:0 3px 14px #06040a77; pointer-events:none }
.game:has(.action-buttons button:not([hidden])) .toast { bottom:max(53px,13cqh) }

@container (max-height:480px) {
  .arena { width:100%; height:100% }
  .seat { --disc:clamp(27px,9.6cqh,43px); width:clamp(60px,9.4cqw,98px); }
  .seat-name,.seat-stack { font-size:clamp(.59rem,2.8cqh,.76rem) }
  .seat-badge { padding:1px 5px 2px; border-radius:7px }
  .seat.mine .seat-cards .card { width:clamp(24px,3.5cqw,42px) }
  .seat[data-position="0"] { --y:80% }
  .last-action { bottom:auto; top:calc(100% + 1px); font-size:.58rem }
  .seat[data-position="0"] .last-action { display:none }
  .card { width:clamp(25px,4.9cqw,53px) }
  .instrument { width:34px; height:34px; min-height:34px }
  .pill { min-height:34px; font-size:.82rem }
  .hint small,.stage,.winner { font-size:.68rem }
  .utility { inset-block-start:max(4px,env(safe-area-inset-top)) }
  .toast { font-size:.76rem }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important }
}

.telegram-photo { position:absolute; inset:1px; width:calc(100% - 2px); height:calc(100% - 2px); border-radius:50%; object-fit:cover }
.seat-media video.waiting-picture { opacity:0 }
.mic-icon::before,.seat-mic-off { background: url('/assets/table-mic.png') center/contain no-repeat }
.mic-icon::before { content:""; width:18px; height:23px }
.mic-icon[aria-pressed=true] { background:#752b37; border-color:#ef9c9f }
.mic-icon[aria-pressed=true]::before,.seat-mic-off { background-image:url('/assets/table-mic-off.png') }
.seat-mic-off { position:absolute; z-index:2; bottom:1px; right:0; width:24%; height:28%; background-color:#6e2036; border-radius:4px }
.house-dealer { position:absolute; z-index:0; left:50%; top:0; height:27.5%; width:auto; transform:translateX(-50%); pointer-events:none }
.house-dealer { transform-origin:center 96% }
.table-stakes { position:absolute; left:50%; top:34%; transform:translateX(-50%); color:#b2d9ed75; font:bold clamp(13px,2.1cqw,30px) Georgia,serif; letter-spacing:.03em; pointer-events:none }
.arena:has(#board .card) .table-stakes { visibility:hidden }
.board-line { display:flex; align-items:center; justify-content:center; gap:.7cqw }
.has-hand .table-center { top:50%; width:60%; }
.has-hand .table-center .pot { position:absolute; left:50%; bottom:calc(100% + 1.8cqh); transform:translateX(-50%); min-width:16cqw; height:clamp(18px,4.5cqh,34px); background:#0a1c2df0; border:0; padding:1px 2cqw; font:700 clamp(14px,1.9cqw,28px) Georgia,serif }
.table-center .pot .coin { position:absolute; left:-.5cqw; width:clamp(20px,3.4cqw,43px); height:clamp(18px,3.0cqw,40px) }
.has-hand .stage { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
.has-hand #winner { position:absolute; left:50%; top:calc(100% + 2.2cqh); transform:translateX(-50%); width:max-content; max-width:95%; font-size:clamp(12px,1.5cqw,20px) }
.has-hand .deck { opacity:0; top:-13cqh }
.deck { background:transparent url('/assets/table-deck.png') center/contain no-repeat; border:0; box-shadow:none; width:6cqw; aspect-ratio:1 }
.deck::after,.deck span { display:none }
.sit,.sit:hover:enabled { background:transparent url('/assets/table-sit.png') center/100% 100% no-repeat; border:0; box-shadow:none; font-size:0; color:#fff }
.sit::after { content:'坐下'; font:700 clamp(11px,1.65cqw,23px)/1 system-ui; position:absolute; inset:56% 0 auto; text-shadow:0 1px 2px #000 }
.sit.reserved::after { content:'回座' }
.sit.reserved { font-size:0 }
.avatar { border-color:#c7c8d7; background:#28243a }
.seat-badge { min-width:80%; padding:.15em .45em; margin-top:-.25em; border:0; border-radius:30px; background:linear-gradient(90deg,#090e20a3,#081520f2 65%,#10182aba) }
.seat-stack { color:#fff; font:700 clamp(12px,1.65cqw,22px)/1 Georgia,serif }
.seat .card { border-color:#fff; border-radius:4%; }
.hand-rank { position:absolute; pointer-events:none; z-index:5; width:clamp(25px,5.6cqw,83px); height:4cqw; object-fit:contain; left:53%; top:52% }
.hand-equity { position:absolute; z-index:3; left:90%; top:29%; background:#102544e8; color:#fff; padding:.15em .5em; border-radius:.6em; white-space:nowrap; font:bold clamp(11px,1.85cqw,24px) Georgia,serif }
.best-chance { position:absolute; z-index:4; left:145%; top:11%; width:clamp(24px,4.5cqw,60px); aspect-ratio:1 }
.seat:is([data-position="5"],[data-position="6"],[data-position="7"],[data-position="8"]) :is(.hand-equity,.best-chance) { left:auto; right:90% }
.seat:is([data-position="5"],[data-position="6"],[data-position="7"],[data-position="8"]) .best-chance { right:145% }
.draw-hint { align-self:center; display:grid; align-content:center; justify-items:center; gap:2px; padding:.35em; background:#123459df; color:#fff; border:2px dashed #98bdd098; border-radius:4px; font:700 clamp(10px,1.32cqw,19px)/1.1 system-ui; width:6.9cqw; min-height:8.1cqw }
.draw-hint small { font-size:.78em }
.draw-hint b { color:#ffdf72 }
.draw-hint span { font-size:.73em; color:#192335; background:#fff; border-radius:2px; padding:2px; text-align:center }
.draw-hint .draw-outs { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; padding:0; gap:2px; background:none }
.draw-outs i { display:grid; justify-items:center; min-width:1.1em; padding:1px 2px; border-radius:2px; background:white; font:800 1.4em/1 system-ui; box-shadow:0 1px 2px #07162b }
.draw-outs small { font-size:.46em }
.best-chance { background:url('/assets/table-best-word.png') center/66% 66% no-repeat,radial-gradient(#ff9f2b,#d1430c 72%,#ac250a); aspect-ratio:1; clip-path:polygon(50% 0%,60% 9%,73% 5%,79% 18%,91% 19%,91% 32%,100% 42%,93% 52%,99% 64%,87% 72%,87% 85%,74% 87%,66% 98%,54% 93%,43% 100%,34% 91%,19% 93%,17% 79%,6% 74%,10% 61%,0% 51%,8% 41%,4% 29%,17% 23%,21% 10%,34% 12%) }
.seat:has(.best-chance:not([hidden])) .seat-cards::before { content:''; position:absolute; inset:-9% -10%; z-index:-1; pointer-events:none; background:url('/assets/table-best-light.png') center/100% 100% no-repeat }
.seat.acting .avatar::after { content:''; position:absolute; inset:1px; border-radius:50%; pointer-events:none; background:conic-gradient(from 0deg,#2cd9af80 calc(100% - var(--progress)),transparent 0); }
.face.made-card { box-shadow:0 0 0 2px #ec5cf8,0 0 .8cqw .24cqw #e041ed }
.board .card.face { transform-style:preserve-3d; overflow:visible }
.board .card.face::before { backface-visibility:hidden }
.board .card.face::after { content:''; position:absolute; inset:-1px; transform:rotateY(180deg) translateZ(1px); border-radius:5%; background:url('/assets/fx-action-card-back.png') center/100% 100% no-repeat; backface-visibility:hidden }
#showdown-caption { position:absolute; bottom:calc(100% + 7cqh); left:50%; transform:translateX(-50%); white-space:nowrap; font:bold clamp(14px,2.4cqw,32px) Georgia,serif; color:#ffe3a4; text-shadow:0 2px 2px #40180a,0 0 9px #a64d1c; animation:reveal-caption .25s ease-out }
@keyframes reveal-caption { from { opacity:0; letter-spacing:.4em } }
#show-cards { background:linear-gradient(#93c42c,#4b7110); border-color:#b4d953; border-radius:8px; color:white; font-size:clamp(13px,2.1cqw,24px) }
.arena { width:min(100cqw,185cqh,1800px); height:min(100cqh,55cqw,1050px) }
.felt { inset:12% -3% 4% }
.seat { --disc:clamp(31px,7.4cqw,107px); width:clamp(60px,12.2cqw,175px); --x:39%; --y:89% }
.seat[data-position="0"] { --x:39%; --y:89% }
.seat[data-position="1"] { --x:11%; --y:74% }
.seat[data-position="2"] { --x:7.4%; --y:53% }
.seat[data-position="3"] { --x:11%; --y:31% }
.seat[data-position="4"] { --x:30%; --y:13% }
.seat[data-position="5"] { --x:72.5%; --y:13% }
.seat[data-position="6"] { --x:92%; --y:31% }
.seat[data-position="7"] { --x:94%; --y:53% }
.seat[data-position="8"] { --x:90%; --y:75% }
.seat[data-position="0"]:not(.mine) { --x:46% }
.board-line:has(.card) { justify-content:flex-start; width:43cqw }
.board { gap:.65cqw }
.board .card { width:7.9cqw; aspect-ratio: .82; transform:skew(-3deg) }
.seat-cards .card { width:2.7cqw }
.seat.mine .seat-cards { left:calc(50% + var(--disc) * .65); right:auto; top:-4%; transform:none }
.seat.mine .seat-cards .card { width:8.4cqw; aspect-ratio:.72 }
.seat.mine .seat-cards .card+.card { margin-left:-4.3cqw; transform:rotate(3deg) }
.seat.mine .hand-rank { left:calc(50% + var(--disc) * .75 + 2.2cqw); top:78% }
.seat.revealed:not(.mine) .seat-cards { inset:-1% auto auto 50%; transform:translateX(-50%) }
.seat.revealed:not(.mine) .seat-cards .card { width:5.25cqw; aspect-ratio:.72 }
.seat.revealed:not(.mine) .hand-rank { left:50%; top:43%; transform:translateX(-50%) }
.seat-name,.seat-stack { font-size:clamp(10px,1.5cqw,23px) }
.seat.mine .hand-equity { left:auto; right:85% }
.seat.mine .best-chance { left:auto; right:143% }
.has-hand #winner:not([hidden]) { clip-path:inset(50%); width:1px; height:1px; overflow:hidden }

