/* Casino presentation. Existing action handlers, timing and amounts are retained. */
:root { --casino-panel: rgba(20, 11, 31, .94); --casino-line: rgba(205, 151, 215, .42); --casino-pink: #e53591; --casino-gold: #f0ca76; }
::selection { background: #923a78; color: #fff; }
button:focus-visible, input:focus-visible { outline: 3px solid #88ecea; outline-offset: 4px; }
#hud .hud-l { left: 28px; top: 24px; padding: 14px 18px; border-radius: 12px; background: var(--casino-panel); box-shadow: 0 10px 30px #08040a66; }
#hud .log { left: 28px; top: 116px; width: 250px; padding: 12px 18px; border-radius: 12px; background: rgba(18, 10, 27, .84); font-size: 14px; line-height: 25px; }
#hud .hud-r { right: 28px; padding: 8px 10px 8px 18px; border-radius: 12px; background: var(--casino-panel); }
#hud .bank { color: var(--casino-gold); font-variant-numeric: tabular-nums; }
#hud .ib { width: 42px; height: 42px; border: 1px solid var(--casino-line); border-radius: 9px; background: #21142e; }
#acts { right: 28px; bottom: 28px; width: 484px; height: 206px; }
#acts .whl { inset: auto 0 0; height: 78px; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 10px; filter: none; }
#acts .wd { position: relative; inset: auto; clip-path: none !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #a375b2; border-radius: 12px; background: #2c1d3b; box-shadow: 0 9px 22px #08040a55; transition: background .15s, transform .15s; }
#acts .wd > * { position: static; transform: none; }
#acts .wd .ic { display: none; }
#acts .wd span { font: 800 20px/26px var(--ui); letter-spacing: .01em; color: #fff4fc; }
#acts .wd em { font: 600 18px/22px var(--num); color: var(--casino-gold); opacity: 1; }
#acts .wd.fold { order: 0; }
#acts .wd.call { order: 1; background: #203b40; border-color: #68b4b1; }
#acts .wd.rse { order: 2; background: #ad226b; border-color: #f886c5; }
#acts .wd.rse em { color: #fff4fc; }
#acts .wd:hover { transform: translateY(-2px); background: #53305f; }
#acts .wd.call:hover { background: #2c5a5c; }
#acts .wd.rse:hover { background: #ce2c83; }
#acts .wd:focus-visible { outline: 3px solid #88ecea; outline-offset: 3px; }
#acts .wd:active { transform: translateY(1px); }
#acts .wd:disabled { background: #241d2b; border-color: #55465f; box-shadow: none; }
#acts .wd:disabled > * { color: #b9aabd; opacity: .75; }
#acts .rs { right: 0; bottom: 90px; width: 100%; margin: 0; box-sizing: border-box; padding: 12px 16px; border-radius: 12px; background: var(--casino-panel); text-shadow: none; }
#acts .rs-h small { color: #e5d4e8; font-size: 14px; }
#acts .rs output { font-size: 24px; line-height: 28px; color: var(--casino-gold); }
#acts .rr { margin-top: 3px; gap: 12px; }
#acts .rr .st { height: 28px; width: 30px; border-radius: 7px; border: 1px solid var(--casino-line); background: #33203f; }
#acts .rr input { height: 30px; min-width: 0; }
#acts .rr input::-webkit-slider-runnable-track { height: 5px; background: #aa84b3; }
#acts .rr input::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7.5px; background: #f46ab9; }
#acts .rr input::-moz-range-thumb { width: 20px; height: 20px; background: #f46ab9; }
#acts .qk { gap: 8px; margin-top: 5px; }
#acts .qk button { height: 26px; border-radius: 6px; font-size: 12px; background: #2b1a36; border-color: #64446f; }
#acts .yt { left: 0; bottom: 100%; transform: none; margin-bottom: 30px; display: flex; gap: 10px; padding: 6px 11px; border-radius: 7px; background: #170d22e8; }
#acts .yt b { font-size: 13px; letter-spacing: .02em; color: #88ecea; }
#acts .yt i { font: 700 14px/20px var(--ui); letter-spacing: 0; }
#acts .hub { display: none; }
#acts.hurry .hub { display: grid; left: auto; right: 0; top: -64px; width: 42px; height: 32px; margin: 0; border-radius: 7px; background: #821b53; }
#acts.idle .whl, #acts.idle .rs, #acts.idle .yt { display: none; }
#acts.idle .pre { background: var(--casino-panel); padding: 10px 16px; border-radius: 10px; color: #e6dbe8; }
#mine .me { padding: 12px 18px 12px 10px; border-radius: 12px; background: rgba(20, 11, 31, .88); }
.mbox { background: #21142e; padding: 38px 42px; box-shadow: inset 0 2px 0 #bc589d, 0 28px 70px #05020799; }
.mbox h2 { color: #fff1fa; font-size: 30px; }
.mbox p { color: #dccde2; max-width: 56ch; }
.mbox .btn { border-radius: 10px; }
.mbox .btn:not(.ghost) { background: #a6286c; color: #fff; }
.mbox .btn.ghost { border-color: #84608f; color: #f3e7f5; }
.mbox.leave-dialog { position: relative; width: 720px; min-height: 260px; box-sizing: border-box; padding: 42px 38px 34px 250px; }
.leave-dialog .leave-portrait { position: absolute; left: 30px; bottom: 34px; width: 190px; height: 190px; object-fit: contain; border-radius: 12px; background: #140c20; }
.leave-dialog h2 { line-height: 1.35; }
.leave-dialog .row { justify-content: flex-start; }
.leave-dialog .btn { min-width: 150px; }
#wait { background: var(--casino-panel); box-shadow: inset 0 2px 0 #bc589d, 0 20px 50px #05020780; }
@media (prefers-reduced-motion: reduce) { #acts .wd { transition: none; } }

.table-header { position:absolute; inset:0 0 auto; height:100px; display:flex; align-items:flex-start; gap:42px; padding:8px 35px 0; box-sizing:border-box; pointer-events:none; background:linear-gradient(180deg,#100b19da,#160c1d73 57%,transparent); }
.table-brand { width:163px; height:96px; object-fit:contain; filter:drop-shadow(0 4px 9px #100619aa); }
.table-nav { display:flex; gap:30px; padding-top:11px; pointer-events:auto; }
.table-nav button { position:relative; padding:9px 3px 14px; color:#ddd1df; border:0; background:none; font:750 18px/1.4 var(--ui); text-shadow:0 2px 5px #140d1c; }
.table-nav button:hover,.table-nav [aria-expanded="true"] { color:#fff4fe; }
.table-nav [aria-expanded="true"]::after,.u-nav button.on::after { content:""; position:absolute; bottom:3px; left:0; right:0; height:2px; background:#ff5aba; box-shadow:0 0 10px 2px #ff36ad88; }
#hud .hud-l,#hud .log { left:22px; width:230px; box-sizing:border-box; border:1px solid #9a729252; background:linear-gradient(110deg,#170f20e6,#20101db3); border-radius:10px; box-shadow:0 4px 16px #100a142e; }
#hud .hud-l { top:114px; padding:10px 13px; }
#hud .hud-l p { gap:8px; }
#hud .hud-l .venue { font-size:17px; line-height:23px; }
#hud .hud-l .mode,#hud .hud-l .blinds,#hud .hud-l .handno { font-size:12px; }
#hud .log { top:179px; padding:7px 13px; width:max-content; max-width:230px; font-size:13px; line-height:22px; }
#hud .log:empty { display:none; }
#hud .hud-r { top:20px; right:23px; padding:5px 7px 5px 13px; border:1px solid #94688480; background:#1a1020d9; gap:6px; }
#hud .ib { border-color:#77566c; background:linear-gradient(#322432,#1c1621); }
#hud .ib:hover { color:#fff; border-color:#e79fc7; background:#46263d; }
#hud .bank { padding-right:6px; }
#hud .emo-pop { top:78px; right:22px; }
#mine .me { background:linear-gradient(105deg,#20111ee8,#1f1325ba); }
#mine .av { border-color:#eab569; }
#acts { right:22px; bottom:23px; width:458px; }
#acts .whl { height:72px; }
#acts .wd,#acts .wd.call { background:linear-gradient(165deg,#39283d,#24192d 60%,#27172e); border-color:#a16a98; }
#acts .wd.call:hover,#acts .wd:hover { background:linear-gradient(160deg,#54344e,#33213c); }
#acts .wd.rse,.mbox .btn:not(.ghost) { color:white; border:1px solid #fc9bcc; background:linear-gradient(155deg,#f851a8,#ce2579 58%,#aa196e); box-shadow:inset 0 1px 0 #ffe4f18c,0 3px 16px #ce34883c; }
#acts .wd.rse:hover { background:linear-gradient(155deg,#ff79bd,#e63890 58%,#c4267c); }
#acts .rs { bottom:80px; border:1px solid #ba7fa48f; background:linear-gradient(125deg,#221323ee,#29162bdd); }
#acts .rr input::-webkit-slider-runnable-track { background:#d8b7d7; }
#acts .rr input::-webkit-slider-thumb { border:3px solid #fbbbe3; box-shadow:0 0 12px #ff50b2b3; background:#fa4ba8; }
#acts .yt b,.pl.now .nm,.pl.turn .nm { color:#f7b4d8; }
.u-nav button.on { text-shadow:0 0 15px #ee6ac580; }
.chc { background:radial-gradient(ellipse at 38% 37%,#4c364a 0,#271b30 61%,#191323 100%); }
.chc.on { outline-color:#f6b268; }
.chc i { color:#fff5fa; background:#944667; }
.seat-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:20px 0; }
.seat-list>div { display:flex; align-items:center; gap:10px; }
.seat-list .face { width:56px; height:56px; flex:0 0 56px; border-radius:9px; background-size:cover; }
.seat-list b,.seat-list small { display:block; }
.seat-list small { margin-top:3px; color:#d7a5c3; }
#modal:has(.leave-dialog) { background:rgba(13,7,18,.56); backdrop-filter:blur(6px) saturate(.72); }
.mbox.leave-dialog { width:1160px; max-width:none; min-width:0; height:474px; min-height:0; position:relative; left:42px; box-sizing:border-box; border:0; border-radius:0; padding:0; color:#fff1fc; background:none; box-shadow:none; isolation:isolate; overflow:visible; }
.exit-frame { position:absolute; inset:0; z-index:-1; filter:drop-shadow(1px 8px 1px #21142d) drop-shadow(0 3px 12px #db3aa970); }
.exit-frame::before,.exit-frame::after { content:""; position:absolute; inset:0; clip-path:polygon(3.5% 0,97.1% 0,100% 7%,95.4% 92%,92.8% 100%,0 100%,1.7% 12%); }
.exit-frame::before { background:linear-gradient(141deg,#ad75ff 12%,#53375e 36%,#8752c2 65%,#fd88de 89%,#ff40ad 96%); }
.exit-frame::after { inset:3px; background:linear-gradient(123deg,transparent 47%,#45314f35 47.1%,#20142700 62%),radial-gradient(ellipse at 88% 105%,#72234885,transparent 34%),radial-gradient(ellipse at 29% 8%,#38234488,transparent 49%),linear-gradient(147deg,#21172f,#171222 68%,#2a1834); }
.mbox.leave-dialog .leave-portrait { position:absolute; z-index:1; left:-114px; bottom:-30px; width:478px; height:562px; max-width:none; object-fit:contain; object-position:left bottom; border:0; border-radius:0; background:none; pointer-events:none; filter:drop-shadow(4px 10px 7px #0b051966); }
.exit-close { position:absolute; right:27px; top:19px; z-index:2; display:grid; place-items:center; width:49px; height:49px; border:0; background:transparent; color:#fff2ff; text-shadow:0 0 10px #aa76ff; font:400 43px/1 Arial,sans-serif; }
.exit-close:hover { color:#ffc2eb; }
.exit-copy { position:absolute; inset:0 79px 0 313px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.mbox.leave-dialog .exit-copy h2,html[lang=en] .mbox.leave-dialog .exit-copy h2 { margin:0 0 28px; font:italic 900 59px/1.14 var(--head); letter-spacing:-.045em; text-shadow:0 2px 6px #09050fa1; }
.exit-copy h2 em { color:#fc54a5; font:inherit; }
.mbox.leave-dialog p { margin:0; color:#deccde; font:550 23px/1.45 var(--ui); letter-spacing:-.035em; }
.exit-copy p strong { color:#ff69b1; }
.exit-divider { display:flex; width:82%; gap:13px; align-items:center; justify-content:center; margin:24px 0 20px; color:#ab74c9; font:600 23px/1 var(--ui); }
.exit-divider i { flex:1; height:1px; background:linear-gradient(90deg,transparent,#905aa5); }
.exit-divider i:last-child { transform:scaleX(-1); }
.mbox.leave-dialog .row { position:static; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0; }
.mbox.leave-dialog .btn { display:flex; gap:14px; justify-content:center; align-items:center; min-width:0; height:70px; padding:0 18px; transform:skewX(-8deg); border-radius:11px; font:italic 800 26px/1 var(--head); }
.mbox.leave-dialog .btn.ghost { background:linear-gradient(163deg,#372a42,#25192e); border:1px solid #9b6eae; color:#f2deef; }
.mbox.leave-dialog .btn:hover { filter:brightness(1.15); }
.exit-icon { font:300 37px/1 Arial,sans-serif; }
.mbox.leave-dialog .btn .ic { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:2.2; }
.mbox.leave-dialog button:focus-visible,.table-nav button:focus-visible { outline:3px solid #f7bdde; outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { .mbox.leave-dialog { animation:none; } }
.pl { padding:3px 10px 4px; min-width:67px; border:1px solid #b1879b67; border-radius:8px; background:linear-gradient(150deg,#241b2ade,#231528d4); text-shadow:0 1px 3px #160c1e; }
.pl .nm { font-size:15px; line-height:18px; }
.pl .nm small { margin-left:3px; font-size:11px; }
.pl .st { font-size:18px; line-height:20px; }
.pl .tag { font-size:11px; line-height:13px; }
.pl .tm { height:2px; }
.pl:has(.pc:not(:empty)) { z-index:1; }
#hud .hud-l { top:95px; }
#hud .log { top:155px; }
#hud .log:not([hidden]) { max-height:131px; overflow:hidden; }
.leave-dialog .exit-icon { margin-right:6px; }
.pl.folded { opacity:.82; }
#board.made .card.up:not(.use):not(.hi) { filter:brightness(.93) saturate(.92); }
.u-home .lg { width:133px; height:72px; object-fit:contain; margin:0 13px 0 0; }
#boot .lg, #boot img { width:280px; height:auto; }
