/* Tape金手链 · 无荷官牌桌 */
:root { --bg:#0b0e13; --panel:#141a22; --panel2:#0e1319; --line:#273040; --text:#ece7d8; --muted:#8b94a3; --gold:#e2b13c; --gold2:#f5d77a; --red:#e0524f; --green:#3ec27a; --felt1:#1f6f48; --felt2:#0e3f28; --felt3:#082619; --rim:#3b2a15; }
* { box-sizing:border-box; }
html, body { margin:0; background:radial-gradient(1200px 600px at 50% -10%, #1b2431 0%, var(--bg) 60%); color:var(--text); font:15px/1.5 -apple-system,"PingFang SC","Helvetica Neue",Arial,sans-serif; }
a { color:var(--gold); }
.hidden, [hidden] { display:none !important; } /* the hidden attribute wins over any display rule (the language blocks rely on it) */
.mono { font-family:ui-monospace,Menlo,monospace; font-size:12px; word-break:break-all; }
.muted { color:var(--muted); font-size:13px; }
.num { font-variant-numeric:tabular-nums; }

/* top bar */
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:10px; padding:10px 16px; background:#0b0e13cc; backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.logomark { height:26px; width:26px; vertical-align:-7px; margin-right:8px; }
.brand { font-weight:800; letter-spacing:1px; font-size:18px; white-space:nowrap; } .brand b { color:var(--gold); }
.pill { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:#ffffff0d; border:1px solid var(--line); font-size:12px; color:var(--muted); white-space:nowrap; }
.pill.on { border-color:var(--gold); color:var(--gold); }
.pill.lottery { border-color:#f07c9c73; color:#ffc2d1; background:#f07c9c17; text-decoration:none; } .pill.lottery:hover { border-color:#ffa8bf; color:#ffe0e8; } /* 喵喵彩票, the sister site */
.pill .dot { width:8px; height:8px; border-radius:50%; background:var(--muted); } .pill.live .dot { background:var(--green); box-shadow:0 0 8px var(--green); }
.spacer { flex:1; }
.btn { background:linear-gradient(180deg,var(--gold2),var(--gold)); color:#1a1200; border:0; border-radius:10px; padding:9px 16px; font-weight:700; cursor:pointer; font-size:14px; box-shadow:0 2px 0 #8a6a1a, 0 6px 16px #0006; transition:transform .08s, filter .15s; }
.btn:hover { filter:brightness(1.06); } .btn:active { transform:translateY(1px); }
.btn:disabled { background:#3a3f48; color:#8b94a3; box-shadow:none; cursor:not-allowed; }
.btn.ghost { background:#ffffff0a; color:var(--text); border:1px solid var(--line); box-shadow:none; }
.btn.ghost:hover { border-color:var(--gold); color:var(--gold); }
.btn.danger { background:linear-gradient(180deg,#ff7b78,var(--red)); color:#fff; box-shadow:0 2px 0 #8a2a28, 0 6px 16px #0006; }
.btn.sm { padding:5px 10px; font-size:12px; border-radius:8px; }

main { max-width:1180px; margin:0 auto; padding:16px; }
.card { background:linear-gradient(180deg,#161d27,var(--panel)); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:14px; box-shadow:0 10px 30px #0005; }
.card h2 { margin:0 0 10px; font-size:16px; letter-spacing:.5px; }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:8px 0; }
.msg { color:var(--gold); min-height:1.2em; margin:6px 0 0; }
.facts { display:flex; flex-wrap:wrap; gap:8px 22px; color:var(--muted); font-size:13px; } .facts b { color:var(--text); font-weight:600; }
.countdown { font-size:26px; font-weight:800; color:var(--gold); font-variant-numeric:tabular-nums; }
.steps { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:12px; color:var(--muted); margin:6px 0; } .steps span::before { content:"○ "; } .steps span.ok { color:var(--green); } .steps span.ok::before { content:"✓ "; }
.roster { list-style:none; padding:0; margin:8px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.roster li { display:flex; align-items:center; gap:6px; background:var(--panel2); border:1px solid var(--line); border-radius:8px; padding:3px 8px 3px 4px; font-family:ui-monospace,Menlo,monospace; font-size:12px; }
.roster li.me { border-color:var(--gold); }
.ident { width:18px; height:18px; border-radius:5px; overflow:hidden; flex:none; } .ident svg { width:100%; height:100%; display:block; image-rendering:pixelated; }
#chain.compact .full { display:none; }

/* game */
#game { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px; align-items:start; }
.hud { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:8px 12px; background:var(--panel2); border:1px solid var(--line); border-radius:12px; font-size:13px; color:var(--muted); }
.hud b { color:var(--text); font-weight:600; }
#hudpre, #standBtn { display:none; } /* phones only: the chain card is below the table there */
.phasebar { display:none !important; } /* the protocol's phases are detail: players see the hand, not the machinery */
.phasebar .step { padding:2px 8px; border-radius:6px; font-size:11px; color:#5b6473; background:#ffffff06; }
.phasebar .step.on { color:#1a1200; background:var(--gold); font-weight:700; }
.phasebar .step.done { color:var(--green); }
.stage { position:relative; width:100%; aspect-ratio:16 / 10; min-height:440px; }
.table { position:absolute; inset:14% 7% 12% 7%; border-radius:50% / 50%; background:radial-gradient(ellipse at 50% 40%, var(--felt1) 0%, var(--felt2) 55%, var(--felt3) 100%); box-shadow:0 0 0 9px var(--rim), 0 0 0 11px #c9a24a55, inset 0 0 60px #0007, 0 30px 60px #000a; }
.table::before { content:""; position:absolute; inset:7%; border:1px dashed #ffffff22; border-radius:50% / 50%; }
.table .logo { position:absolute; left:50%; top:26%; transform:translate(-50%,-50%); color:#ffffff14; font-weight:900; letter-spacing:4px; font-size:22px; pointer-events:none; }
.center { position:absolute; left:20%; right:20%; top:0; bottom:0; display:flex; flex-direction:column; justify-content:center; align-items:stretch; text-align:center; pointer-events:none; } /* centred without translate(-50%,-50%): half pixels blur the cards' text */
#board { display:flex; justify-content:center; gap:8px; min-height:64px; }
.slot { width:44px; height:62px; border-radius:6px; border:1px dashed #ffffff22; }
@media (min-width:641px) { body.ingame #board .pcard, body.ingame #board .slot { width:54px; height:76px; border-radius:7px; } body.ingame .seat .hole .pcard.small { width:40px; height:56px; } body.ingame .pcard.big { width:72px; height:100px; border-radius:9px; } } /* wide screens: bigger cards */
#pot { margin-top:8px; color:var(--gold2); font-weight:700; font-size:15px; display:inline-flex; align-items:center; gap:8px; padding:4px 12px; border-radius:999px; background:#00000045; }
.chips { position:relative; width:22px; height:16px; }
.chips i { position:absolute; left:0; width:22px; height:8px; border-radius:50%; background:radial-gradient(circle at 50% 50%, #f3c85a 0 30%, #b8862c 31% 60%, #f3c85a 61% 100%); border:1px solid #6b4d12; }
.chips i:nth-child(1) { bottom:0; } .chips i:nth-child(2) { bottom:4px; } .chips i:nth-child(3) { bottom:8px; }
#banner { position:absolute; left:50%; top:74%; transform:translate(-50%,-50%); padding:8px 18px; border-radius:12px; background:#000000aa; border:1px solid var(--gold); color:var(--gold2); font-weight:700; white-space:nowrap; animation:pop .3s ease-out; box-shadow:0 8px 30px #000a; }
#banner small { display:block; color:var(--muted); font-weight:500; font-size:12px; }
#banner.me { background:linear-gradient(180deg,#3a2d10f0,#17120af0); border-color:var(--gold2); color:#fff3c4; box-shadow:0 0 34px #e2b13c99, 0 8px 30px #000a; font-size:1.12em; animation:popBig .45s cubic-bezier(.2,.9,.3,1.25); } #banner.me small { color:#e7c982; }
@keyframes popBig { from { transform:translate(-50%,-50%) scale(.6); opacity:0; } to { transform:translate(-50%,-50%) scale(1); opacity:1; } }
@keyframes pop { from { transform:translate(-50%,-50%) scale(.85); opacity:0; } to { transform:translate(-50%,-50%) scale(1); opacity:1; } }

.seat { position:absolute; width:140px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; transition:opacity .3s; }
.seat .avatar { position:relative; width:48px; height:48px; border-radius:50%; overflow:visible; border:2px solid #2b3441; background:#0b0e13; box-shadow:0 4px 14px #0008; }
.seat .avatar svg { width:100%; height:100%; display:block; image-rendering:pixelated; clip-path:circle(50%); } /* round without clipping the avatar box: the turn ring sits outside it */
.seat .ring { position:absolute; inset:-7px; border-radius:50%; background:conic-gradient(var(--gold) calc(var(--p, 0) * 100%), transparent 0); -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask:radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); display:none; }
.seat.toact .ring { display:block; } .seat.toact.urgent .ring { background:conic-gradient(var(--red) calc(var(--p, 0) * 100%), transparent 0); }
.seat.toact .avatar { border-color:var(--gold); box-shadow:0 0 0 3px #e2b13c44, 0 0 24px #e2b13c88; }
.seat .secs { position:absolute; inset:0; z-index:1; display:none; align-items:center; justify-content:center; border-radius:50%; background:#000000a6; color:#fff; font:800 15px/1 -apple-system,"PingFang SC",sans-serif; text-shadow:0 1px 3px #000; } /* the seconds the player to act has left */
.seat.toact .secs { display:flex; } .seat.toact.urgent .secs { color:#ff9a9a; } .seat.toact .secs::after { content:"s"; font-size:10px; margin:3px 0 0 1px; }
.tag.k-turn { background:var(--gold); color:#1a1200; font-variant-numeric:tabular-nums; } .tag.k-turn.urgent { background:var(--red); color:#fff; animation:turnPulse 1s ease-in-out infinite; } @keyframes turnPulse { 50% { transform:scale(1.14); } } /* my own countdown */
.seat .who { font-size:12px; color:var(--muted); font-family:ui-monospace,Menlo,monospace; display:flex; gap:4px; align-items:center; justify-content:center; flex-wrap:wrap; white-space:nowrap; }
.seat.me .who { color:var(--gold); }
.badge { display:inline-block; min-width:18px; padding:0 4px; border-radius:4px; background:#fff; color:#1a1200; font-size:10px; font-weight:800; line-height:16px; font-family:-apple-system,sans-serif; } .badge.d { background:var(--gold); } .badge.b { background:#8ab4ff; }
.seat .stack { font-weight:800; color:#fff; font-size:15px; text-shadow:0 1px 2px #000; }
.seat .hole { display:flex; gap:3px; min-height:50px; }
.seat .plate { position:relative; z-index:3; margin-top:2px; min-width:86px; max-width:100%; padding:3px 10px 4px; border-radius:10px; background:linear-gradient(180deg,#1d2530,#0f141b); border:1px solid #ffffff1c; box-shadow:0 4px 12px #0009; display:flex; flex-direction:column; align-items:center; }
.seat .plate .who { min-height:16px; }
.seat .plate .stack { line-height:1.15; }
.tag { display:inline-block; padding:0 7px; border-radius:6px; font:700 11px/16px -apple-system,"PingFang SC",sans-serif; letter-spacing:.5px; white-space:nowrap; }
.tag.k-fold { background:#2a313c; color:#8b94a3; } .tag.k-sitout { background:#2a313c; color:#c9d1dc; } .tag.k-check { background:#2b3645; color:#d5dce7; } .tag.k-call { background:#1f4a33; color:#a6ecc2; }
.tag.k-bet, .tag.k-raise { background:var(--gold); color:#1a1200; } .tag.k-allin { background:#c0392b; color:#fff; }
.tag.k-hand { background:#3a2d10; color:var(--gold2); } .tag.k-win { background:var(--green); color:#062414; } .tag.k-ready { background:#1f4a33; color:#a6ecc2; } .tag.k-wait { background:#2a313c; color:#8b94a3; }
.seat .stack.up { color:var(--green); animation:stackUp .9s ease-out; } @keyframes stackUp { 0% { transform:scale(1.45); } 100% { transform:scale(1); } }
.seat.empty .avatar { display:flex; align-items:center; justify-content:center; border:2px dashed #ffffff2e; background:#ffffff06; color:#ffffff40; font-size:22px; box-shadow:none; } .seat.empty .avatar svg { width:58%; height:58%; image-rendering:auto; }
.seat.empty .plate { background:transparent; border-color:transparent; box-shadow:none; } .seat.empty .who { color:#ffffff40; font-family:inherit; }
.seat.empty.sit { cursor:pointer; } .seat.empty.sit .avatar { border-color:var(--gold); color:var(--gold); background:#e2b13c14; } .seat.empty.sit .who { color:var(--gold2); }
.dbtn { position:absolute; transform:translate(-50%,-50%); width:22px; height:22px; border-radius:50%; background:#f4f1e8; color:#1a1200; font:800 12px/22px -apple-system,sans-serif; text-align:center; box-shadow:0 2px 6px #0009, inset 0 -2px 0 #0002; }
.seat.folded { opacity:.42; filter:grayscale(.6); } .seat.out { opacity:.3; } .seat.sitout { opacity:.5; filter:grayscale(.7); } /* 暂离: seated, not dealt in */
.seat.winner .avatar { border-color:var(--green); box-shadow:0 0 0 3px #3ec27a44, 0 0 26px #3ec27a99; }
.seat.winner .stack { color:var(--green); }
.seat.winner .plate { border-color:#3ec27a88; box-shadow:0 0 18px #3ec27a55, 0 4px 12px #0009; }
.betchip { position:absolute; transform:translate(-50%,-50%); display:inline-flex; align-items:center; gap:5px; padding:2px 8px 2px 4px; border-radius:999px; background:#000000a0; color:var(--gold2); font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; animation:pop .25s ease-out; }
.betchip i { width:12px; height:12px; border-radius:50%; background:radial-gradient(circle, #f3c85a 0 30%, #b8862c 31% 60%, #f3c85a 61% 100%); border:1px solid #6b4d12; }

/* cards */
/* cards as poker apps draw them: a big rank with a small suit in the corner, a big suit across from it, all sized by the card's own
   width (container units), so every size reads at a glance; four colours: ♠ black, ♥ red, ♦ blue, ♣ green never mix up, even small */
.pcard { position:relative; width:44px; height:62px; border-radius:6px; background:linear-gradient(165deg,#fff 55%,#edf0f4); color:var(--suit,#17181c); box-shadow:0 2px 6px #0008, inset 0 0 0 1px #0000001c; flex:none; overflow:hidden; container-type:inline-size; }
.pcard.s-s { --suit:#17181c; } .pcard.s-h { --suit:#e0243f; } .pcard.s-d { --suit:#1d68d6; } .pcard.s-c { --suit:#13874b; }
.pcard .rk { position:absolute; left:8%; top:3%; font:700 50cqw/1 'Barlow Condensed','Arial Narrow','Helvetica Neue',Arial,sans-serif; letter-spacing:-.02em; }
.pcard .su { position:absolute; left:9%; top:45%; width:27%; fill:currentColor; }
.pcard .sb { position:absolute; right:6%; bottom:6%; width:54%; fill:currentColor; }
.pcard.small { width:36px; height:50px; border-radius:5px; }
.pcard.big { width:66px; height:92px; border-radius:8px; }
.pcard.back { background:repeating-linear-gradient(45deg,#2b4a9c 0 4px,#233d80 4px 8px); border:2px solid #f3e2a8; box-shadow:0 2px 6px #0008; }
.pcard.back::after { content:""; position:absolute; left:50%; top:50%; width:64%; height:64%; transform:translate(-50%,-50%); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f3e2a8'%3E%3Cellipse cx='5.2' cy='10.2' rx='2.3' ry='2.9' transform='rotate(-20 5.2 10.2)'/%3E%3Cellipse cx='9.3' cy='6.3' rx='2.4' ry='3.1' transform='rotate(-7 9.3 6.3)'/%3E%3Cellipse cx='14.7' cy='6.3' rx='2.4' ry='3.1' transform='rotate(7 14.7 6.3)'/%3E%3Cellipse cx='18.8' cy='10.2' rx='2.3' ry='2.9' transform='rotate(20 18.8 10.2)'/%3E%3Cpath d='M12 11c-3.2 0-6.8 2.9-6.8 6.1 0 2.1 1.7 3.3 3.7 3 1.2-.2 2-.7 3.1-.7s1.9.5 3.1.7c2 .3 3.7-.9 3.7-3 0-3.2-3.6-6.1-6.8-6.1z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; opacity:.85; } /* a cat's paw on every card back */
.pcard.deal { animation:dealIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dealIn { from { transform:translateY(-16px) scale(.6) rotate(-8deg); opacity:0; } to { transform:none; opacity:1; } }
.pcard.reveal { animation:flipIn .45s ease-out both; } @keyframes flipIn { from { transform:rotateY(90deg); } to { transform:none; } }
.pcard.dim { opacity:.55; }
.pcard.hi { box-shadow:0 0 0 2px var(--gold2), 0 0 16px #f5d77acc; transform:translateY(-4px); } .pcard.lo { opacity:.38; filter:grayscale(.6); }

/* my hand + actions: one dock, so the cards are always next to the buttons */
#dock { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin-top:10px; }
.mine { display:flex; align-items:center; gap:12px; min-height:92px; } #mycards { display:flex; gap:6px; }
.mine .hint { color:var(--muted); font-size:12px; max-width:160px; }
.mystack { display:none; font-weight:800; color:#fff; font-size:15px; text-shadow:0 1px 2px #000; white-space:nowrap; } /* phones: my stack on my plate (the seat itself is hidden there) */
.myplate { display:flex; flex-direction:column; align-items:center; gap:3px; } .myplate:empty { display:none; }
.myhand { display:inline-block; padding:1px 9px; border-radius:999px; background:#00000070; border:1px solid #f5d77a55; color:var(--gold2); font-size:12px; font-weight:700; white-space:nowrap; }
#prebar { display:flex; gap:6px; flex:1; min-width:300px; }
#prebar .pre { flex:1; min-height:44px; padding:6px 8px; border-radius:10px; border:1px solid var(--line); background:#121820; color:var(--muted); font:600 14px/1.2 -apple-system,"PingFang SC",sans-serif; cursor:pointer; white-space:nowrap; }
#prebar .pre::before { content:""; display:inline-block; width:12px; height:12px; margin-right:6px; vertical-align:-1px; border:1.5px solid currentColor; border-radius:3px; }
#prebar .pre.on { border-color:var(--gold); color:var(--gold2); background:#2a2412; } #prebar .pre.on::before { background:var(--gold); border-color:var(--gold); box-shadow:inset 0 0 0 2px #2a2412; }
#actionbar { position:relative; flex:1; min-width:320px; padding:12px 14px 14px; background:linear-gradient(180deg,#1a222d,#121820); border:1px solid var(--line); border-radius:14px; box-shadow:0 12px 30px #0007; animation:barIn .2s ease-out; }
@keyframes barIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.felttxt { display:none; }
#timerbar { position:absolute; left:0; top:0; height:4px; border-radius:14px 14px 0 0; background:var(--gold); transition:width .25s linear; } #timerbar.urgent { background:var(--red); }
.acts { display:flex; gap:8px; align-items:center; }
.acts .btn { flex:1; padding:12px 16px; font-size:15px; white-space:nowrap; }
#raisepanel { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
#raisepanel .sizer { display:flex; align-items:center; gap:6px; flex:1; min-width:240px; }
#raisepanel input[type=range] { flex:1; accent-color:var(--gold); }
#raisepanel input[type=number] { width:90px; padding:8px; border-radius:8px; border:1px solid var(--line); background:#0b0e13; color:var(--text); font-weight:700; font-size:14px; }
#raisepanel .step { padding:6px 12px; font-size:17px; line-height:1; }
.presets { display:flex; gap:4px; } .presets .btn { padding:6px 9px; font-size:12px; }
.kbd { color:var(--muted); font-size:11px; margin-top:6px; } .kbd b { display:inline-block; padding:0 5px; border:1px solid var(--line); border-radius:4px; font-family:ui-monospace,Menlo,monospace; color:var(--text); }

/* side panel */
.side { display:flex; flex-direction:column; gap:10px; }
.tabs { display:flex; gap:4px; } .tabs .tab { flex:1; padding:6px; border-radius:8px; background:#ffffff06; border:1px solid var(--line); color:var(--muted); font-size:12px; cursor:pointer; text-align:center; } .tabs .tab.on { color:var(--gold); border-color:var(--gold); }
.panel { background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:10px 12px; min-height:200px; max-height:520px; overflow:auto; font-size:12px; }
#log div { padding:3px 0; border-bottom:1px dashed #ffffff0a; color:var(--muted); } #log div b { color:var(--text); font-weight:500; } #log div time { color:#5b6473; margin-right:6px; font-family:ui-monospace,Menlo,monospace; }
#log div.warn { color:var(--red); }
#log div.tech { display:none; } #log.showtech div.tech { display:block; opacity:.75; }
.techtoggle { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); cursor:pointer; }
details.techbox { margin-top:8px; } details.techbox summary { cursor:pointer; color:var(--muted); font-size:12px; } details.techbox p { margin:6px 0 0; }
.places { margin:0; padding-left:18px; } .places li { padding:3px 0; } .places li.first { color:var(--gold); font-weight:700; }
.last .p { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px dashed #ffffff0a; } .last .p .who { width:78px; font-family:ui-monospace,Menlo,monospace; color:var(--muted); } .last .p.won .who { color:var(--green); }
.last .brd { display:flex; gap:4px; margin:6px 0; }

#tables .p { display:flex; gap:12px; align-items:center; padding:7px 0; border-bottom:1px dashed #ffffff0a; } #tables .p a { font-weight:800; font-family:ui-monospace,Menlo,monospace; text-decoration:none; }
footer { max-width:1180px; margin:0 auto; padding:10px 16px 30px; color:var(--muted); font-size:12px; }

@media (max-width:640px) {
  .topbar { flex-wrap:wrap; gap:6px 8px; padding:8px 12px; position:static; } /* two rows; scrolls away so the table gets the screen */
  .topbar .spacer { flex-basis:100%; height:0; }
  #transportText, #gas { display:none; } /* the dot says connected; a low gas balance shows up as a button in the settle row */
  .brand { font-size:16px; } .logomark { height:22px; width:22px; margin-right:6px; vertical-align:-6px; }
  .pill { padding:3px 8px; font-size:11px; gap:4px; } .btn.sm { padding:5px 9px; }
  main { padding:8px; display:flex; flex-direction:column; } .card { padding:10px 12px; border-radius:12px; margin-bottom:8px; }
  #chain.compact { order:2; } /* once the table is up the chain card goes under it; its status is mirrored in the HUD, its ready button in the dock */
  #chain.compact #settlemsg:empty { display:none; }
  .hud #hudpre { display:inline; color:var(--gold); font-weight:700; }
  .countdown { font-size:18px; }
  .facts { gap:6px 14px; }
  #chain.compact .facts { display:none; } /* while playing the HUD shows the blinds and seats */
  .hud { gap:4px 10px; font-size:12px; padding:6px 10px; } .hud .phasebar { display:none; } /* the protocol phases are detail; "waiting for…" still shows */
  .stage { height:400px; min-height:0; }
  .table { inset:9% 9% 13% 9%; }
  .table .logo { font-size:12px; letter-spacing:2px; } .table .logo img { height:30px !important; }
  .seat { width:88px; } .seat .avatar { width:38px; height:38px; } .seat .who { font-size:11px; } .seat .stack { font-size:14px; }
  .seat .hole { min-height:36px; } .seat .hole .pcard.small { width:26px; height:36px; }
  .seat.me { display:none; } /* my stack and cards live in the dock */
  #board { gap:4px; min-height:42px; } #board .pcard, #board .slot { width:30px; height:42px; border-radius:4px; } /* 5 cards stay clear of the seats at 9 and 3 o'clock on a 375px screen */
  #pot { font-size:13px; padding:3px 10px; }
  #dock { position:sticky; bottom:0; margin-top:6px; padding:6px 8px 8px; gap:6px; align-items:stretch; background:#0b0e13f2; border-top:1px solid var(--line); border-radius:12px 12px 0 0; }
  .mine { width:100%; min-height:0; gap:10px; justify-content:flex-start; } .mine .hint { max-width:none; font-size:13px; }
  .mystack { display:block; }
  #actionbar { flex-basis:100%; min-width:0; padding:10px 8px 10px; border-radius:12px; }
  .acts { gap:6px; } .acts > .btn { flex:1; padding:13px 8px; font-size:16px; min-height:46px; }
  #prebar { flex-basis:100%; min-width:0; }
  #raisepanel .presets { width:100%; gap:6px; } #raisepanel .presets .btn { flex:1; white-space:nowrap; padding:10px 2px; font-size:13px; }
  #raisepanel .sizer { width:100%; min-width:0; }
  #raisepanel input[type=range] { flex:1; min-width:80px; height:32px; -webkit-appearance:none; appearance:none; background:transparent; }
  #raisepanel input[type=range]::-webkit-slider-runnable-track { height:6px; border-radius:3px; background:#ffffff22; }
  #raisepanel input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; border-radius:50%; background:var(--gold); border:2px solid #1a1200; margin-top:-11px; box-shadow:0 2px 6px #0008; }
  #raisepanel input[type=range]::-moz-range-track { height:6px; border-radius:3px; background:#ffffff22; }
  #raisepanel input[type=range]::-moz-range-thumb { width:28px; height:28px; border-radius:50%; background:var(--gold); border:2px solid #1a1200; }
  #raisepanel input[type=number] { width:72px; font-size:16px; padding:9px 6px; }
  #raisepanel .step { min-width:40px; padding:9px 0; }
  .kbd { display:none; } /* no keyboard on a phone */
  .panel { max-height:300px; }
  input[type=number], input[type=text] { font-size:16px; } /* iOS zooms into smaller inputs */
}
@media (max-width:900px) {
  #game { grid-template-columns:1fr; }
  .stage { aspect-ratio:auto; height:520px; }
  .table { inset:10% 3% 12% 3%; }
  .seat { width:104px; } .seat .avatar { width:40px; height:40px; } .seat .hole .pcard.small { width:30px; height:42px; }
  .pcard.big { width:54px; height:76px; }
  #dock { position:sticky; bottom:6px; z-index:15; background:#0b0e13e6; padding:6px; border-radius:14px; }
  .phasebar { margin-left:0; width:100%; overflow:auto; }
}

/* ---- a game on any screen: one screen like a poker app. The table fills the middle, my cards and the buttons sit at the bottom at a
   fixed height and the page never scrolls; the table card, log, last hand and places open in a drawer from the menu button
   (a sheet from the bottom on phones, a panel from the right on wider screens) ---- */
#moreBtn, .sheetbar, #sheetBackdrop, #sitCta, #backBtn { display:none; }
#gas { display:none !important; } /* this page's key's BNB is machinery: a low tank shows up as a button in the table card */
.mine #standBtn, .mine #sitCta, .mine #backBtn { margin-left:auto; flex:none; }
.iconbtn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:34px; padding:0; position:relative; }
#moreBtn .alertdot { display:none; position:absolute; top:4px; right:4px; width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 8px var(--gold); }
#moreBtn.alert .alertdot { display:block; }
.seat.waitseat.folded { opacity:.6; } /* before the first hand: sitters not ready yet */
#fx { position:absolute; inset:0; pointer-events:none; z-index:40; }
.fxchips { position:absolute; width:22px; height:18px; } .fxchips i { position:absolute; left:0; width:22px; height:8px; border-radius:50%; background:radial-gradient(circle at 50% 50%, #f3c85a 0 30%, #b8862c 31% 60%, #f3c85a 61% 100%); border:1px solid #6b4d12; }
.fxchips i:nth-child(1) { bottom:0; } .fxchips i:nth-child(2) { bottom:4px; } .fxchips i:nth-child(3) { bottom:8px; }
.fxcard { position:absolute; width:24px; height:34px; border-radius:4px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f3e2a8'%3E%3Cellipse cx='5.2' cy='10.2' rx='2.3' ry='2.9' transform='rotate(-20 5.2 10.2)'/%3E%3Cellipse cx='9.3' cy='6.3' rx='2.4' ry='3.1' transform='rotate(-7 9.3 6.3)'/%3E%3Cellipse cx='14.7' cy='6.3' rx='2.4' ry='3.1' transform='rotate(7 14.7 6.3)'/%3E%3Cellipse cx='18.8' cy='10.2' rx='2.3' ry='2.9' transform='rotate(20 18.8 10.2)'/%3E%3Cpath d='M12 11c-3.2 0-6.8 2.9-6.8 6.1 0 2.1 1.7 3.3 3.7 3 1.2-.2 2-.7 3.1-.7s1.9.5 3.1.7c2 .3 3.7-.9 3.7-3 0-3.2-3.6-6.1-6.8-6.1z'/%3E%3C/g%3E%3C/svg%3E") center/60% no-repeat, repeating-linear-gradient(45deg,#2b4a9c 0 4px,#233d80 4px 8px); border:2px solid #f3e2a8; box-shadow:0 2px 6px #0008; }
.fxplus { position:absolute; font:800 24px/1 -apple-system,"PingFang SC",sans-serif; color:#5fe39a; text-shadow:0 2px 8px #000, 0 0 12px #3ec27a88; white-space:nowrap; }
.fxplus.me { font-size:34px; color:var(--gold2); text-shadow:0 0 20px #e2b13c, 0 3px 10px #000; }

body.ingame { height:100vh; height:100dvh; overflow:hidden; display:flex; flex-direction:column; overscroll-behavior:none; }
body.ingame .topbar { flex:none; position:static; }
body.ingame #moreBtn, body.ingame #sitCta, body.ingame #standBtn, body.ingame #backBtn { display:inline-flex; } /* in a game the table card is in the menu: its sit and stand-up buttons are at the bottom */
body.ingame .mine #standBtn, body.ingame .mine #sitCta, body.ingame .mine #backBtn { min-height:44px; padding:0 22px; font-size:16px; align-items:center; }
body.ingame main { flex:1; min-height:0; width:100%; max-width:none; margin:0; padding:0; display:flex; flex-direction:column; }
body.ingame #chain, body.ingame .side, body.ingame footer { display:none; }
body.ingame #game { flex:1; min-height:0; display:flex; flex-direction:column; align-items:stretch; gap:0; }
body.ingame .hud { display:none; } /* the felt says the hand and the blinds; top-up and leave are in the menu */
body.ingame .felttxt { display:block; margin-top:6px; font-size:12px; color:#ffffff70; letter-spacing:.5px; white-space:nowrap; } body.ingame .felttxt .st { display:block; margin-top:2px; color:#ffffffb8; font-size:13px; letter-spacing:0; }
body.ingame .tablecol { flex:1; min-height:0; display:flex; flex-direction:column; width:100%; max-width:1180px; margin:0 auto; }
body.ingame .stage { flex:1; min-height:0; height:auto; aspect-ratio:auto; }
body.ingame .seat.me { display:none; } /* my cards and plate are at the bottom */
body.ingame #dock { flex:none; position:relative; margin:0; padding:8px 12px 12px; display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:12px; }
body.ingame .mine { grid-column:2; grid-row:1; justify-content:center; align-items:center; gap:14px; min-height:92px; }
body.ingame #prebar, body.ingame #actionbar { grid-column:3; grid-row:1; justify-self:end; width:100%; max-width:560px; min-width:0; }
body.ingame #actionbar { padding:10px; } body.ingame .kbd { display:none; }
body.ingame #raisepanel { position:absolute; left:0; right:0; bottom:calc(100% + 8px); z-index:30; margin:0; padding:10px; flex-direction:column; align-items:stretch; gap:10px; border-radius:14px; background:#121820f7; border:1px solid var(--line); box-shadow:0 -12px 30px #000b; } /* over the table, so my turn does not resize anything */
body.ingame #raisepanel .presets { width:100%; } body.ingame #raisepanel .presets .btn { flex:1; }
body.ingame.seated .stage { margin-bottom:-92px; } body.ingame.seated #dock { background:transparent; } /* my cards and plate sit on the table's bottom edge, where my own seat would be */
body.ingame.seated #actionbar.hidden { display:block !important; visibility:hidden; } /* the button row keeps its room: the table never jumps */
body.ingame.seated .mine #standBtn { position:absolute; right:12px; bottom:14px; min-height:40px; padding:0 18px; font-size:15px; } /* before hand 1: stand up, off to the side where a thumb does not hit it by chance */
.seat.off { opacity:.45; filter:grayscale(.8); } /* the page of this seat closed: away */
.seat.empty.ghost .avatar { border-style:solid; border-color:#ffffff14; color:#ffffff1f; } .seat.empty.ghost .who { color:#ffffff38; } /* the chair of someone who left, held until a receipt frees it */
body.ingame .mine #mycards { gap:0; } body.ingame .mine #mycards .pcard.big:first-child { rotate:-4deg; translate:6px 2px; } body.ingame .mine #mycards .pcard.big:nth-child(2) { rotate:4deg; translate:-6px 2px; }
body.ingame .mystack { display:block; text-align:center; } body.ingame .mystack .nm { display:block; font-size:11px; font-weight:600; color:var(--gold); } body.ingame .mystack b { font-size:18px; }
body.ingame.seated .myplate { padding:4px 14px 6px; min-width:100px; border-radius:12px; background:linear-gradient(180deg,#1d2530,#0f141b); border:1px solid #ffffff22; box-shadow:0 4px 14px #000a; }
body.ingame .mine.folded #mycards .pcard { opacity:.4; filter:grayscale(.8); } /* I folded: my cards go grey */
body.ingame .mine.win .myplate { border-color:var(--gold2); box-shadow:0 0 28px #e2b13ccc, 0 4px 14px #000a; }
/* the drawer: from the right on wider screens */
body.ingame.sheet-open #sheetBackdrop { display:block; position:fixed; inset:0; z-index:50; background:#000a; }
body.ingame.sheet-open .sheetbar { display:flex; align-items:center; gap:6px; position:fixed; top:0; right:0; width:min(440px, 100vw); z-index:62; padding:10px 10px 8px; background:var(--panel); border-left:1px solid var(--line); }
.sheetbar .seg { flex:1; display:flex; gap:4px; padding:3px; border-radius:10px; background:var(--panel2); border:1px solid var(--line); min-width:0; }
.sheetbar .seg button { flex:1; min-width:0; min-height:34px; border:0; border-radius:8px; background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:700; white-space:nowrap; cursor:pointer; }
.sheetbar .seg button.on { background:var(--gold); color:#1a1200; }
.sheetbar #sheetSound { flex:none; padding:5px 8px; }
body.ingame.sheet-open[data-sheet="table"] #chain, body.ingame.sheet-open:not([data-sheet="table"]) .side { display:flex; flex-direction:column; position:fixed; right:0; bottom:0; top:55px; width:min(440px, 100vw); z-index:61; margin:0; border-radius:0; border:1px solid var(--line); border-top:0; background:var(--panel); overflow-y:auto; overscroll-behavior:contain; }
body.ingame.sheet-open[data-sheet="table"] #chain { padding:12px 14px 20px; }
body.ingame.sheet-open #chain .full { display:block; }
body.ingame.sheet-open #chain .facts, body.ingame.sheet-open #chain.compact .facts { display:flex; }
body.ingame.sheet-open .side { padding:10px; gap:8px; }
body.ingame.sheet-open .side .tabs { display:none; }
body.ingame.sheet-open .side .panel { max-height:none; flex:1; min-height:0; overflow-y:auto; }
@media (max-width:640px) {
  body.ingame { touch-action:manipulation; }
  body.ingame .topbar { flex-wrap:nowrap; gap:6px; padding:6px 8px; }
  body.ingame .topbar .spacer { flex:1; flex-basis:auto; height:auto; }
  body.ingame .brandtxt, body.ingame #gas, body.ingame #wallet, body.ingame #sound, body.ingame #langBtn { display:none; }
  body.ingame .logomark { margin-right:0; }
  body.ingame #tchip { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  body.ingame .topbar .btn { flex:none; white-space:nowrap; }
  body.ingame .felttxt { font-size:11px; } body.ingame .felttxt .st { font-size:12px; }
  body.ingame .table { inset:7% 8% 9% 8%; }
  body.ingame .seat { width:96px; } body.ingame .seat .avatar { width:40px; height:40px; } body.ingame .seat .who { font-size:10px; gap:3px; } /* after the 900px rules, which would win otherwise */
  body.ingame .seat .hole { position:absolute; top:-4px; left:calc(50% - 2px); min-height:0; gap:2px; z-index:2; } body.ingame .seat.r .hole { left:auto; right:calc(50% - 2px); } /* cards over the avatar's inner half, clear of the board */
  body.ingame .seat .hole .pcard.small { width:26px; height:36px; }
  body.ingame .seat .hole.backs { top:10px; left:calc(50% + 9px); gap:0; } body.ingame .seat.r .hole.backs { left:auto; right:calc(50% + 9px); } /* still in the hand: a small pair at the avatar's corner, the face stays in sight */
  body.ingame .seat .hole.backs .pcard.small { width:14px; height:20px; border-width:1px; border-radius:3px; box-shadow:0 1px 3px #0009; } body.ingame .seat .hole.backs .pcard.small + .pcard { margin-left:-6px; rotate:10deg; }
  body.ingame .seat .plate { min-width:78px; margin-top:-9px; padding:2px 8px 3px; } body.ingame .seat .plate .stack { font-size:14px; }
  body.ingame #board .pcard, body.ingame #board .slot { width:28px; height:40px; } /* five of them stay clear of the cards at 3 and 9 o'clock on a 360px phone */
  body.ingame.bigboard #board { gap:5px; min-height:56px; } body.ingame.bigboard #board .pcard, body.ingame.bigboard #board .slot { width:40px; height:56px; border-radius:5px; } /* no chair at 3 or 9 o'clock (six at a table): the board takes the width */
  body.ingame .table .logo { display:none; } /* the top seat's name and cards reach it on a narrow table; the top bar carries the mark */
  body.ingame #dock { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; padding:6px 8px 8px; border-radius:14px 14px 0 0; border-top:1px solid var(--line); }
  body.ingame.seated #dock { border-top:0; }
  body.ingame .mine { width:100%; min-height:0; justify-content:flex-start; } body.ingame.seated .mine { justify-content:center; gap:12px; min-height:80px; }
  body.ingame #prebar, body.ingame #actionbar { flex-basis:100%; max-width:none; min-height:70px; } body.ingame #actionbar { padding:8px; } body.ingame #prebar { align-items:center; }
  body.ingame.seated.pre #actionbar.hidden { display:none !important; } /* the pre-actions take the row while others act */
  body.ingame.seated .stage { margin-bottom:-80px; }
  body.ingame.seated .mine #standBtn { bottom:10px; right:10px; }
  body.ingame .acts > .btn { min-height:52px; font-size:17px; } body.ingame .acts [data-act=allin] { display:none; } /* all in is a preset in the raise panel */
  body.ingame #raisepanel { display:none; } body.ingame #actionbar.raising #raisepanel { display:flex; } /* the raise button opens it; tapping the table closes it */
  body.ingame.seated #raisepanel { bottom:calc(100% + 94px); } /* above my cards, which stay in sight while I size the raise */
  body.ingame #banner { top:60%; font-size:14px; padding:7px 14px; } /* between the board and the lower seats */
  body.ingame .pcard.big { width:48px; height:68px; }
  body.ingame.seated .myplate { padding:4px 12px 5px; min-width:92px; } body.ingame .mystack b { font-size:17px; }
  /* the drawer: a sheet from the bottom */
  body.ingame.sheet-open .sheetbar { left:0; width:auto; top:14vh; top:14dvh; border-radius:16px 16px 0 0; border:1px solid var(--line); border-bottom:0; }
  body.ingame.sheet-open[data-sheet="table"] #chain, body.ingame.sheet-open:not([data-sheet="table"]) .side { left:0; width:auto; top:calc(14dvh + 55px); }
  body.ingame.sheet-open .side { gap:0; }
}
