:root {
  color-scheme: light;
  --ink: #302d26;
  --muted: #777268;
  --line: #cfc9ba;
  --green: #38694e;
  --serif: "Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",Georgia,serif;
  --sans: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  --mono: "SFMono-Regular","Courier New",monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background-color: #faf9f5; background-image: radial-gradient(#ccc8bb 0.79px, transparent .9px); background-size: 15px 15px; }
button,input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #49745c; outline-offset: 4px; }
button { border: 0; }
button svg,.nav-link svg,.tool-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbol-defs { position:absolute; width:0; height:0; overflow:hidden; }
[hidden] { display:none !important; }
.app { height: 100vh; height: 100dvh; min-height: 590px; display: flex; flex-direction: column; }
.topbar { height: 65px; flex: none; background: #faf9f4; border-bottom: 1px solid #d1ccc0; box-shadow: 0 2px 0 #fff9; }
.top-inner,.room-heading,.control-row { width: min(calc(100% - 80px),1730px); margin-inline: auto; }
.top-inner { display:flex; align-items:center; gap: 23px; height:100%; }
.brand { display:inline-flex; gap: 10px; align-items:center; text-decoration:none; color: var(--ink); }
.brand img { width:36px; height:36px; filter:drop-shadow(0 1px 1px #43322624); }
.brand strong { font-family:var(--serif); font-weight: 900; letter-spacing: .1em; font-size: 19px; line-height: 1.29; display:block; }
.brand small { font-family:var(--mono); letter-spacing: .165em; font-size:8px; font-weight:bold; display:block; margin-top:2px; }
.nav-rule { width:1px; height:23px; background:#d7d3c8; flex:none; }
.nav-link,.account,.icon-button { display:inline-flex; align-items:center; justify-content:center; background:transparent; gap:8px; }
.nav-link { font-size:13px; color:#676257; padding:8px 3px; font-weight:600; }
.nav-link:hover,.account:hover { color:#8b4836; }
.top-right { margin-left:auto; display:flex; align-items:center; gap:11px; }
.demo-indicator { margin-right:7px; display:flex; align-items:center; gap:8px; color:#626557; font-size:12px; font-weight:550; letter-spacing:.04em; }
.lamp { display:inline-block; width:7px; height:7px; border-radius:50%; background:#528d59; box-shadow:0 0 0 3px #6d96651d,inset 0 1px 1px #d6ebba; flex:none; }
.icon-button { width:32px; height:32px; border-radius:5px; color:#625d54; }
.icon-button:hover { background:#eae6dc; }
.top-right .nav-rule { margin:0 4px; }
.account { gap:8px; padding:0; }
.account img { width:30px; height:30px; border:2px solid #fff; outline:1px solid #b5afa1; border-radius:8px; }
.account strong { max-width:14ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.account svg { width:14px; height:14px; }
main { flex:1; min-height:0; display:flex; flex-direction:column; padding-bottom:15px; }
.room-heading { display:flex; align-items:center; justify-content:space-between; flex:none; padding:18px 0 6px; }
.room-title { display:flex; align-items:center; gap:12px; }
h1,h2,p { margin:0; }
h1 { font-family:var(--serif); font-size:clamp(24px,1.9vw,32px); letter-spacing:.075em; line-height:1.25; font-weight:900; }
.table-no { font: bold 10px var(--mono); letter-spacing:.09em; color:#7f7868; border:1px solid #c9c2b3; border-radius:3px; padding:3px 5px 2px; background:#f5f2e9; }
.title-wrap p { font-size:11px; letter-spacing:.08em; color:#756e61; margin-top:5px; }
.title-wrap p span { padding:0 8px; }
#table-size { font-weight:inherit; }
.invite-url { width:100%; margin:0 0 13px; padding:9px; color:var(--ink); background:#fffdf7; border:1px solid #b6ad9c; border-radius:5px; font:13px var(--mono),var(--sans); }
.room-menu { display:flex; align-items:center; gap:19px; }
.hand-number { font-size:12px; color:#756e61; }
.hand-number b { margin-left:5px; font:600 13px var(--mono); color:#514a3d; }
.small-control,.tool-control,.presets button,.number-control,.enamel { background:linear-gradient(#fffefa,#efebe3); border:1px solid #afa898; border-radius:6px; box-shadow:inset 0 0 0 1.5px #fff9,0 2px 0 #b4ad9e,0 3px 4px #4a3c2a0a; }
.small-control { height:32px; display:inline-flex; align-items:center; gap:7px; padding:0 13px; font-weight:650; font-size:12px; }
.small-control:hover,.tool-control:hover,.presets button:hover { background:linear-gradient(#fffefa,#e8e2d5); }
.small-control:active,.tool-control:active,.presets button:active,.play-button:active:not(:disabled),.enamel:active { transform:translateY(2px); box-shadow:inset 0 1px 3px #473b2930; }
.arena { position:relative; flex:1; min-height:0; width:min(100%,1810px); margin: 0 auto; overflow:hidden; }
.scene { position:absolute; top:0; left:0; width:1440px; height:650px; transform-origin:0 0; }
.scene .table-shell { position:absolute; left:7.35%; right:7.35%; top:8.8%; bottom:12.3%; }
.table-imprint { position:absolute; top:45.5%; left:24.5%; display:flex; flex-direction:column; align-items:center; color:#928974; opacity:.34; transform:translate(-50%,-50%) rotate(-7deg); text-shadow:0 1px #fff; pointer-events:none; }
.table-imprint span { font:39px Georgia,serif; line-height:1; }
.table-imprint b { font:900 12px Georgia,serif; letter-spacing:2px; margin-top:2px; }
.table-imprint i { border-block:1px solid; height:4px; width:37px; margin-top:5px; }
.chassis { background:linear-gradient(130deg,#fcfaf2,#e9e5da 53%,#f8f6ef); border:1px solid #bdb5a7; box-shadow:inset 0 0 0 2px #fffdf6,inset 0 0 0 3px #e3ded0,0 2px 0 0 #b6b0a2,0 5px 8px #493f2d12; }
.chassis::before,.chassis::after { content:""; position:absolute; inset:5px; pointer-events:none; background:var(--screws); }
.chassis { --screws: radial-gradient(circle at 2px 2px,#9d9686 .65px,#dedace 1.3px,#aba798 2px,transparent 2.5px) 0 0/5px 5px no-repeat,radial-gradient(circle at 2px 2px,#9d9686 .65px,#dedace 1.3px,#aba798 2px,transparent 2.5px) 100% 0/5px 5px no-repeat; }
.chassis::after { transform:rotate(180deg); }
.dealer { position:absolute; width:236px; top:1%; left:50%; transform:translateX(-50%); pointer-events:none; }
.dealer-dashboard { width:84%; margin:auto; position:relative; padding:6px 11px 7px; display:grid; grid-template-columns:1fr 1fr; gap:10px; border-radius:9px 9px 4px 4px; z-index:1; }
.dealer-dashboard small { font:bold 9px var(--mono),var(--sans); color:#776e60; display:block; letter-spacing:.1em; height:13px; }
.street-info small b { letter-spacing:.12em; margin-left:4px; }
.street-info strong { display:block; border:1px solid #bcb4a4; box-shadow:inset 0 1px 2px #7c715d21,0 1px #fff; background:#e9e3d6; border-radius:3px; padding:1px 6px; font-size:15px; letter-spacing:.1em; line-height:19px; }
.pot-counter { border-left:1px solid #ddd7c9; padding-left:9px; margin-left:-2px; }
.drums,.digit-tray { display:flex; overflow:hidden; background:#ede9de; border:1px solid #b3ac9f; border-radius:3px; box-shadow:0 1px #fff,inset 0 1px 2px #7c715d55; }
.drum,.digit { background:linear-gradient(#e3ded2,#fffefb 24%,#fffef9 63%,#ebe6da); box-shadow:inset 1px 0 #d9d4c895,inset -1px 0 #fff9; text-align:center; flex:1; }
.drum { font:bold 14px/21px var(--mono); }
.drum.dim { color:#c3baab; }
.dealer-machine { display:block; width:100%; height:auto; margin-top:-1px; filter:drop-shadow(1px 4px 3px #4c413333); }
.pot { position:absolute; top:34%; left:50%; transform:translate(-50%,-50%); width:106px; display:grid; justify-items:center; }
.pot img { display:block; width:96px; height:100px; object-fit:contain; filter:drop-shadow(1px 3px 2px #52411d28); }
.pot-plate { margin-top:-8px; display:flex; align-items:center; justify-content:center; gap:7px; padding:2px 9px; position:relative; border-radius:6px; background:linear-gradient(#fffdf5,#eee7d8); border:1px solid #a3803b; box-shadow:inset 0 0 0 2px #e3c587,0 2px 0 #bbaf95,0 3px 4px #6a54222b; }
.pot-plate span { font-size:10px; font-weight:bold; color:#7a6b50; }
.pot-plate b { font:bold 18px/21px var(--mono); }
.board { position:absolute; left:50%; top:44.6%; transform:translateX(-50%); display:flex; gap:6px; }
.playing-card,.card-slot { width:99px; height:138px; border-radius:6px; position:relative; flex:none; }
.playing-card { display:block; filter:drop-shadow(0 3px 1.5px #51452f32); }
.card-image { width:100%; height:100%; display:block; }
.card-slot { border:1px dashed #b9b19f; box-shadow:inset 0 0 0 3px #d3cbbc3d; background:#ddd6c32b; }
.seat,.empty-seat { position:absolute; width:122px; display:flex; align-items:center; flex-direction:column; transform:translateX(-50%); }
.seat { isolation:isolate; }
.seat-face { display:flex; flex-direction:column; align-items:center; border:none; background:none; padding:0; width:100%; position:relative; color:#28251f; }
.portrait,.empty-frame { position:relative; z-index:2; width:76px; height:76px; padding:5px; border-radius:24px; background:linear-gradient(120deg,#fffdf8,#d6d1c5 30%,#fffefa 46%,#cbc5b6 81%,#f8f5eb); border:1px solid #aaa497; box-shadow:inset 0 0 0 2px #fbfaf6,inset 0 0 0 3px #c2bbac,0 2px 0 #a8a192,0 4px 5px #493a2429; }
.portrait img { width:100%; height:100%; display:block; border-radius:18px; object-fit:cover; box-shadow:0 0 0 1px #c9c3b5; }
.seat-face:hover .portrait { box-shadow:inset 0 0 0 2px #fff9,inset 0 0 0 3px #c2bbac,0 2px 0 #a8a192,0 0 0 2px #bda675; }
.seat-plaque { position:relative; width:115px; margin-top:-11px; padding:12px 5px 5px; background:linear-gradient(120deg,#faf8f0,#ede9dd 67%,#fcfaf5); border:1px solid #b9b1a1; border-radius:8px; box-shadow:inset 0 0 0 2px #fffcf7,inset 0 0 0 3px #e2dccc,0 2px 0 #b3ab9a,0 5px 5px #63553d20; }
.seat-name { min-height:18px; display:flex; justify-content:center; align-items:center; gap:5px; margin-bottom:3px; border:1px solid #c9c3b8; box-shadow:inset 0 1px 2px #81735e18,0 1px #fff; background:#faf8f3; border-radius:3px; font-size:13px; line-height:18px; font-weight:750; letter-spacing:.05em; }
.seat-name.latin { font-family:var(--mono); font-weight:bold; font-size:13px; letter-spacing:-.03em; }
.player-nick { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.seat-name .badge { flex:none; }
.digit { height:18px; font: bold 14px/18px var(--mono); }
.status-pin { position:absolute; right:-7px; bottom:-4px; width:15px; height:15px; border-radius:50%; border:2px solid #f6f4e9; background:#bfb9a9; box-shadow:0 0 0 1px #b7b1a4; display:grid; place-items:center; }
.status-pin::before { content:""; width:5px; height:5px; border-radius:50%; border:1px solid #fff9; }
.seat.in-hand .status-pin { background:#579065; box-shadow:0 0 0 1px #97b08b,0 0 5px #5ea86675; }
.seat.current .portrait { outline:2px solid #568567; outline-offset:1px; }
.seat.current .status-pin { background:#43825b; }
.badge { font:700 9px/15px var(--sans); padding:0 4px; color:#fbf7e8; background:#59705b; border-radius:3px; letter-spacing:0; }
.seat-tag {
  --tag-paper:#fffdf6; --tag-border:#cec5b3;
  position:absolute; z-index:3; left:68%; top:0; display:flex; align-items:center; gap:6px;
  padding:3px 9px; white-space:nowrap; border:1px solid var(--tag-border); border-radius:30px;
  background:var(--tag-paper); color:#494337; box-shadow:inset 0 1px #ffffff85,0 2px 4px #52432b24;
  font:650 12px/16px var(--sans); font-variant-numeric:tabular-nums; pointer-events:none;
}
.seat-tag:after {
  content:""; position:absolute; left:11px; bottom:-4px; width:6px; height:6px;
  background:var(--tag-paper); border-radius:0 0 5px 5px; border-bottom:1px solid var(--tag-border);
}
.seat-tag[data-status="folded"] { --tag-paper:#eeece6; --tag-border:#cec9be; color:#67645d; }
.seat-tag[data-status="acting"] { --tag-paper:#e6f1e4; --tag-border:#94b29a; color:#2f6142; }
.seat-tag[data-status="allin"] { --tag-paper:#faebc8; --tag-border:#bd9657; color:#744b1f; }
.seat-tag[data-status="winner"] { --tag-paper:#fae8ab; --tag-border:#b18a3d; color:#6b4816; }
.turn-dots { width:14px; height:4px; background:radial-gradient(circle closest-side,currentColor 80%,transparent) left center/5px 4px repeat-x; }
@media(prefers-reduced-motion:no-preference) {
  .turn-dots { animation:turn-pulse 1.6s ease-in-out infinite; }
  @keyframes turn-pulse { 50% { opacity:.4; } }
}
.seat-back { position:absolute; width:55px; height:79px; background:url('./assets/game/card-back.webp') center/100% 100% no-repeat; filter:drop-shadow(0 2px 1px #4c3c2429); pointer-events:none; top:28px; left:3px; transform:rotate(-11deg); z-index:-1; }
.seat-back.second { transform:translate(9px,1px) rotate(2deg); }
.seat[data-id="zhiwei"] .seat-back { top:65px; left:0; }
.seat[data-id="etshan"] .seat-back { top:25px; left:-34px; }
.seat[data-id="chris"] .seat-back { top:-16px; left:-6px; }
.seat[data-id="logic"] { left:25%; top:3%; }
.seat[data-id="zhiwei"] { left:75%; top:3%; }
.seat[data-id="liang"] { left:91.3%; top:29%; }
.seat[data-id="etshan"] { left:91.3%; top:58%; }
.seat[data-id="bian"] { left:8.7%; top:58%; }
.empty-seat { left:8.7%; top:29%; }
.heads-up .empty-seat { left:25%; top:3%; }
.seat[data-id="chris"] { left:28%; bottom:2.2%; }
.seat[data-id="hero"] { left:50%; bottom:1.4%; }
.seat[data-id="huxi"] { left:72%; bottom:2.2%; }
.seat[data-id="liang"] .seat-tag,.seat[data-id="etshan"] .seat-tag { left:auto; right:49%; }
.seat[data-id="liang"] .seat-tag:after,.seat[data-id="etshan"] .seat-tag:after { left:auto; right:12px; }
.seat-position {
  position:absolute; z-index:3; top:28px; right:calc(50% + 30px);
  display:grid; place-items:center; height:21px; padding:0 5px; white-space:nowrap;
  border:1px solid; border-radius:12px;
  box-shadow:inset 0 0 0 1px #fff9,0 1px 0 #988e7b,0 2px 3px #57442929;
  font:750 12px/1 var(--sans);
}
.seat-position[data-position="small"] { color:#304f62; border-color:#8b9fa9; background:linear-gradient(#f2f7f8,#d6e4e9); }
.seat-position[data-position="big"] { color:#71402e; border-color:#b4917f; background:linear-gradient(#fff5e8,#efd9c9); }
.seat-position[data-position="dealer"] {
  top:10px; right:auto; left:14px; width:17px; height:17px; padding:0;
  color:#302b23; border-color:#aaa290; background:#fffdf5; font:900 11px/1 Georgia,serif;
}
.seat:is([data-id="etshan"],[data-id="liang"]) .seat-position {
  top:28px; left:calc(50% + 30px); right:auto;
}
.reseat .seat-position { top:auto; bottom:calc(100% + 4px); left:auto; right:50%; transform:translateX(50%); }
.hole-cards { position:absolute; bottom:calc(100% - 24px); display:flex; justify-content:center; z-index:-1; width:140px; pointer-events:none; }
.hole-cards .playing-card { width:56px; height:78px; transform:rotate(-8deg); }
.hole-cards .playing-card + .playing-card { margin-left:-6px; transform:rotate(7deg); }
.hole-cards.folded { opacity:.55; }
.empty-frame { display:grid; place-items:center; width:70px; height:69px; margin-bottom:-6px; border-radius:22px; color:#b1a996; }
.empty-frame:before { position:absolute; content:""; inset:5px; border:1px dashed #c7c0ae; border-radius:16px; background:#f9f7ee; }
.empty-frame svg { position:relative; width:25px; height:25px; stroke:currentColor; fill:none; stroke-width:1.3; stroke-linecap:round; }
.empty-seat .enamel { position:relative; z-index:2; height:30px; width:105px; color:#f9fff4; font-size:14px; letter-spacing:.15em; font-weight:bold; border:3px double #eae8d9; outline:1px solid #9b9d89; background:linear-gradient(#679671,#417c56); box-shadow:inset 0 -2px #396849,0 2px 0 #aaa390,0 4px 5px #4f432a22; }
.hand-feedback { position:absolute; top:67%; left:50%; transform:translateX(-50%); max-width:50%; font-size:12px; font-weight:650; text-align:center; border-radius:12px; padding:3px 12px; color:#71582f; border:1px solid #c8b78e; background:#faf5e7f2; z-index:4; }
.control-row { display:grid; grid-template-columns:minmax(140px,1fr) minmax(475px,760px) minmax(150px,1fr); gap:clamp(16px,2.6vw,53px); align-items:end; flex:none; padding-top:5px; }
.side-tools { width:132px; max-width:100%; display:grid; gap:8px; padding-bottom:2px; }
.tool-control { display:flex; align-items:center; justify-content:center; gap:9px; height:35px; font-size:13px; font-weight:650; letter-spacing:.06em; }
.actions { border-radius:9px; padding:10px 15px 12px; position:relative; min-width:0; }
.raise-controls { display:flex; align-items:center; gap:9px; padding-bottom:10px; }
.raise-controls label { color:#706958; font-size:11px; font-weight:bold; flex:none; }
.number-control { display:flex; width:99px; height:26px; border-radius:4px; overflow:hidden; align-items:stretch; box-shadow:inset 0 1px 2px #53412a30,0 1px white; }
.number-control button { background:#ece7dc; font-size:13px; font-weight:bold; width:21px; flex:none; padding:0; }
.number-control input { width:0; flex:1; text-align:center; background:linear-gradient(#e7e1d4,#fffdf5 43%,#ede7db); border:0; border-inline:1px solid #c9c0ac; outline-offset:-2px; font:700 15px var(--mono); appearance:textfield; -moz-appearance:textfield; }
.number-control input::-webkit-inner-spin-button { -webkit-appearance:none; }
#bet-slider { flex:1; min-width:20px; height:19px; margin:0 1px; border:1px solid #c5bdad; border-radius:4px; appearance:none; background:repeating-linear-gradient(90deg,transparent 0 6px,#a89e8d 6px 7px) center 4px/calc(100% - 12px) 4px no-repeat,linear-gradient(#d2c9b6,#c5ba9e) center 12px/calc(100% - 10px) 2px no-repeat,linear-gradient(#e6e1d4,#f8f5ed); box-shadow:inset 0 1px 2px #493b201a,0 1px white; cursor:pointer; }
#bet-slider::-webkit-slider-thumb { appearance:none; width:16px; height:24px; border:1px solid #a39883; border-radius:4px; background:repeating-linear-gradient(90deg,#c2b9a5 0 1px,transparent 1px 3px) center/7px 10px no-repeat,linear-gradient(90deg,#e0d9ca,#fffdf5,#d7ceba); box-shadow:0 1px 2px #66543b35; }
#bet-slider::-moz-range-thumb { width:14px; height:21px; border:1px solid #a39883; background:#e9e2d2; border-radius:4px; }
.presets { display:flex; gap:5px; }
.presets button { padding:0 8px; height:23px; font-size:11px; line-height:17px; font-weight:bold; color:#5c5447; border-radius:4px; }
.action-buttons { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.play-button { position:relative; min-height:38px; border-radius:6px; border:1px solid var(--btn-edge); background:linear-gradient(var(--btn-top),var(--btn-bottom)); color:var(--btn-ink); box-shadow:inset 0 0 0 2px #ffffff59,inset 0 -3px 0 #423b2c1c,0 2px 0 var(--btn-edge),0 3px 0 1px #fff9; font-size:15px; font-weight:750; letter-spacing:.08em; }
.play-button:hover:enabled { filter:brightness(1.045); }
.play-button:disabled,.raise-controls :disabled { opacity:.52; }
.play-button kbd { position:absolute; right:8px; top:50%; transform:translateY(-50%); display:inline-block; border:1px solid currentColor; font:10px/13px var(--mono); width:14px; padding:0; opacity:.47; border-radius:3px; }
.fold { --btn-top:#f3ded4; --btn-bottom:#e8cec4; --btn-ink:#7d453b; --btn-edge:#b39a8d; }
.check { --btn-top:#faf7e9; --btn-bottom:#ebe2cb; --btn-ink:#5b4d33; --btn-edge:#b3a78d; }
.raise { --btn-top:#648770; --btn-bottom:#456d54; --btn-ink:#fffbee; --btn-edge:#425d48; }
.all-in { --btn-top:#e6e3d7; --btn-bottom:#d5d0c2; --btn-ink:#534b40; --btn-edge:#aaa18e; }
.action-overlay { position:absolute; inset:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:#f6f3e9f5; border:1px solid #cfc6b4; border-radius:5px; z-index:2; font-size:12px; }
.hand-menu { display:flex; align-items:center; gap:8px; }
.action-overlay strong { font-size:13px; }
.action-overlay button,.modal-primary { background:linear-gradient(#547b5f,#3c654b); color:#fffdf0; border:1px solid #405f47; box-shadow:inset 0 0 0 1px #ffffff35,0 2px #314d39; border-radius:5px; font-weight:bold; padding:6px 19px; }
.table-status { width:fit-content; justify-self:end; min-width:164px; padding-bottom:2px; }
.roster-link { display:flex; align-items:center; gap:7px; margin:0 0 9px; padding:0; background:transparent; font-size:11px; color:#706858; }
.roster-link svg { width:12px; height:12px; }
.roster-link b { font:700 13px var(--mono); color:#3f3c31; }
.avatar-strip { display:flex; margin-left:3px; }
.avatar-strip img { width:24px; height:25px; object-fit:cover; border:2px solid #fffcf2; outline:1px solid #bfb49c; border-radius:6px; margin-left:-3px; }
.turn-status { display:flex; align-items:center; gap:9px; padding:7px 12px; background:#faf8f0; border:1px solid #c9c2b3; border-radius:5px; box-shadow:inset 0 0 0 2px white,0 2px 0 #ddd6c8; font-size:12px; font-weight:650; }
.turn-status.waiting .lamp { background:#b39b61; }
dialog { width:min(430px,calc(100% - 30px)); max-height:85dvh; padding:18px 23px 25px; color:var(--ink); background:radial-gradient(circle,#dfd8c8 .65px,transparent .8px) 0 0/11px 11px,#fbf8ee; border:1px solid #afa28d; border-radius:12px; box-shadow:inset 0 0 0 3px #fffdf8,inset 0 0 0 4px #ded5c3,0 14px 60px #28221636; }
dialog::backdrop { background:#322d214f; backdrop-filter:blur(3px); }
.dialog-top { display:flex; align-items:center; justify-content:space-between; margin:-3px -3px 7px 0; }
.dialog-kicker { color:#8a7860; font:bold 9px var(--mono); letter-spacing:.18em; }
dialog h2 { font:900 25px/1.4 var(--serif); letter-spacing:.07em; margin-bottom:15px; }
dialog p { font-size:13px; line-height:1.8; margin:7px 0 15px; color:#645d50; }
.detail-list { padding:4px 12px; margin:12px 0 19px; border:1px solid #d6cdbb; border-radius:7px; background:#f6f2e8; }
.detail-list>div { display:flex; align-items:center; justify-content:space-between; padding:9px 0; font-size:13px; gap:10px; }
.detail-list>div+div,.roster-item+.roster-item { border-top:1px solid #e0d8c9; }
.detail-list span { color:#716957; }
.modal-primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:35px; }
.modal-primary svg { width:16px; height:16px; }
.modal-footer { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:16px; }
.modal-footer .small-control { height:35px; }
.history-drawer { border-top:1px solid #d9ceba; padding:12px 0 3px; }
.history-drawer summary { cursor:pointer; font-size:13px; font-weight:bold; }
.history-list { margin:11px 0; padding:0; list-style:none; font-size:13px; line-height:1.75; }
.history-list li { border-left:1px solid #c6b99d; padding:3px 0 3px 15px; margin-left:3px; position:relative; }
.history-list li:before { content:""; width:5px; height:5px; border:1px solid #b2a07d; background:#f5f0e3; border-radius:50%; position:absolute; left:-4px; top:12px; }
.roster-item { display:flex; align-items:center; gap:10px; padding:7px 0; font-size:13px; }
.roster-item img,.profile-face { width:32px; height:32px; border-radius:9px; border:2px solid #fffaf0; outline:1px solid #c6bba6; }
.roster-item small { color:#827867; margin-left:auto; }
.roster-item b { width:40px; text-align:right; font-family:var(--mono); }
.profile-head { display:flex; align-items:center; gap:12px; }
.profile-face { width:54px; height:54px; border-radius:15px; }
img[data-player-avatar] { object-fit:cover; }
.roster-item strong,.profile-head strong { min-width:0; overflow-wrap:anywhere; }
.profile-head strong { font-size:18px; }
.toast { position:fixed; left:50%; bottom:130px; transform:translateX(-50%); padding:10px 17px; color:#fffdf1; background:#413f33f5; border:1px solid #6a6553; border-radius:7px; font-size:13px; box-shadow:0 4px 18px #382f2624; z-index:5; }
@media(min-width:1700px) { .control-row { grid-template-columns:1fr minmax(700px,860px) 1fr; } .room-heading { padding-top:22px; } main { padding-bottom:22px; } }
@media(max-height:780px) and (min-width:801px) { .topbar { height:52px; } .room-heading { padding-top:10px; } main { padding-bottom:10px; } }
@media(max-width:1100px) { .top-inner,.room-heading,.control-row { width:calc(100% - 36px); } .control-row { grid-template-columns:110px minmax(380px,1fr) 135px; gap:14px; } .table-status { min-width:135px; } .avatar-strip img:nth-child(n+4) { display:none; } .side-tools { width:110px; } .play-button kbd { right:5px; } }
@media(max-width:800px) { .app { height:auto; min-height:100svh; } .topbar { height:54px; } .top-inner { gap:11px; } .top-right { gap:3px; } .top-inner,.room-heading,.control-row { width:calc(100% - 24px); } .top-right .nav-rule,.account strong,.account svg,.hand-number,.nav-rule,.demo-indicator { display:none; } .brand img { width:30px; height:30px; } .brand strong { font-size:16px; } .brand small { font-size:7px; } .nav-link { font-size:11px; } .nav-link svg { width:14px; } .room-heading { padding-top:14px; } h1 { font-size:21px; } .title-wrap p { font-size:10px; } .arena { flex:none; height:58vw; } .control-row { grid-template-columns:1fr 1fr; gap:12px; } .actions { grid-column:1/-1; grid-row:1; } .side-tools { width:auto; display:flex; gap:6px; } .tool-control { font-size:10px; gap:3px; padding:0 6px; } .side-tools svg { width:13px; } .table-status { min-width:0; } .roster-link { display:none; } .turn-status { font-size:10px; } }
@media(max-width:500px) { .raise-controls { gap:5px; } .raise-controls label { display:none; } .number-control { width:75px; } .presets button { padding:0 5px; } .action-buttons { gap:4px; } .play-button { font-size:13px; } .play-button kbd { display:none; } .room-title { gap:5px; } .small-control { padding:0 7px; } .top-right #fullscreen { display:none; } }
.lobby-card { padding:15px; border:1px solid #c6bba6; border-radius:7px; background:linear-gradient(110deg,#f9f6edcc,#eee8dbaa),url('./assets/table-felt.webp') center/cover; }
.lobby-card h3 { margin:9px 0 3px; font:900 21px var(--serif); }
.lobby-card p { margin:0; }
#copy-result { font-size:12px; color:#467250; margin-top:9px; }
#copy-result textarea { width:100%; height:4em; }
.reseat { padding:8px 12px; font-weight:bold; }
.dealer { top:0; width:214px; }
.dealer-dashboard { width:91%; }
.pot { top:35.7%; }
.board { top:46%; }
.wager { position:absolute; display:grid; justify-items:center; transform:translate(-50%,-50%); pointer-events:none; }
.wager img { display:block; width:25px; height:auto; filter:drop-shadow(0 2px 2px #5845252b); }
.wager.stack img { width:55px; }
.wager b { position:relative; margin-top:-1px; padding:0 6px; border-radius:4px; background:#fdfaf1; border:1px solid #c4bba7; box-shadow:0 2px 2px #51422920; font:700 13px/17px var(--mono); }
.wager[data-wager="logic"] { left:30%; top:27%; }
.wager[data-wager="zhiwei"] { left:70%; top:29%; }
.wager[data-wager="liang"] { left:80%; top:45%; }
.wager[data-wager="etshan"] { left:79%; top:67%; }
.wager[data-wager="huxi"] { left:66%; top:75%; }
.wager[data-wager="hero"] { left:58%; top:76%; }
.wager[data-wager="chris"] { left:36%; top:76%; }
.wager[data-wager="bian"] { left:25%; top:67%; }
.wager[data-wager="bian"].stack img { width:73px; }
.seat[data-id="logic"] .hole-cards,.seat[data-id="zhiwei"] .hole-cards { bottom:auto; top:65%; left:-40px; }
.seat[data-id="liang"] .hole-cards,.seat[data-id="etshan"] .hole-cards { left:-82px; bottom:10%; }
.seat[data-id="bian"] .hole-cards { right:-82px; bottom:10%; }
@media(min-width:601px) and (max-width:800px) { .app { height:100dvh; min-height:685px; } .arena { flex:1; height:auto; } .demo-indicator { display:flex; font-size:10px; } .top-right .nav-rule { display:block; } }
.seat:not(.in-hand) .seat-back { opacity:.68; }
@media(min-width:601px) and (max-width:1100px) { .table-imprint { left:21%; top:43%; } }
