:root{color-scheme:dark;--bg:#17131c;--panel:#211c25;--ink:#f6f0e8;--muted:#b3a8b6;--gold:#efd698;--fine:#ffffff18;--green:#8cdbac;--sans:"Segoe UI",system-ui,Arial,sans-serif;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}
html{min-width:280px;min-height:100%;background:var(--bg)}
body{margin:0;background:radial-gradient(ellipse at 4% 3%,#41293d38,transparent 35rem),radial-gradient(ellipse at 100% 28%,#38223530,transparent 36rem),var(--bg);font:15px/1.45 var(--sans);color:var(--ink);min-height:100vh}
button,select,input{font:inherit}
button,a,select,input{touch-action:manipulation}
button{cursor:pointer;color:inherit;border:0;background:none}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #f3cd83;outline-offset:3px}
button:not(:disabled):hover,.lobby-back:hover{filter:brightness(1.12)}
button:not(:disabled):active{transform:translateY(1px)}
a{color:inherit;text-decoration:none}
button,select,a,input{ -webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
body>svg{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.mast{border-bottom:1px solid var(--fine);background:#151119cd}
.mast-in,main{width:min(1240px,calc(100% - 80px));margin:auto}
.mast-in{height:68px;display:flex;align-items:center;justify-content:space-between}
.brand,.mast nav,.lobby-back,.tool,.modes,.modes button,.side-heading,.pot,.seat-info,.seat-text span,.action,.between,.plain,.modal-actions{display:flex;align-items:center}
.brand{gap:10px;font:600 24px var(--serif);letter-spacing:-1px}
.brand img{width:37px;height:37px;border-radius:50%;object-fit:cover}
.brand em{font-weight:400;color:#e8cf96}
.mast nav{gap:8px}.tool,.lobby-back{height:40px;justify-content:center;color:#e0d7df;border:1px solid var(--fine);border-radius:10px}
.tool{width:40px}.tool .icon{width:18px;height:18px}.lobby-back{gap:2px;padding:0 13px 0 9px;font-size:13px;font-weight:600;margin-right:4px}.lobby-back .icon{width:16px}
main{padding:38px 0 max(32px,env(safe-area-inset-bottom))}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 27px}
.eyebrow,.stage-meta,.pot>span:nth-child(2),.details dt,#cpu-style-row label,.modal-kicker{font-size:10px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase}
.eyebrow{margin:0 0 3px;display:flex;align-items:center;gap:9px;color:#d7bd83}.short-rule{width:23px;height:1px;background:#b59763}
h1,h2,h3,p{margin:0}
h1{font:400 clamp(42px,4.7vw,70px)/1.04 var(--serif);letter-spacing:-.065em}
h1 em{font-weight:400;color:var(--gold);margin-left:2px}
.subline{margin-top:8px;font-size:13px;color:#beb2bf;letter-spacing:.12px}.subline span{margin:0 6px;color:#897a8a}
.modes{align-self:flex-end;padding:4px;background:#100e14;border:1px solid #ffffff19;border-radius:14px;gap:2px}
.modes button{gap:8px;justify-content:center;padding:10px 18px;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:650;color:#b9adbd;min-height:40px}
.modes button[aria-pressed=true]{background:linear-gradient(165deg,#44323e,#322431);color:#f2dba4;border-color:#c4a57144;box-shadow:0 2px 7px #0005}.modes .icon{width:16px;height:16px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,285px);align-items:start;gap:19px}
.table-panel,.side-card{border:1px solid #fff2;border-radius:21px;overflow:hidden;box-shadow:0 14px 40px #07050925;background:var(--panel)}
.table-stage{isolation:isolate;position:relative;overflow:hidden;height:clamp(385px,34.6vw,471px);background:radial-gradient(ellipse at 50% 46%,#48313b 0%,#2d222d 49%,#211a24 78%,#211a24 100%)}
.table-stage:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.25;background-image:repeating-linear-gradient(45deg,transparent 0 13px,#ffffff0b 13px 14px,transparent 14px 28px),repeating-linear-gradient(-45deg,transparent 0 13px,#ffffff0b 13px 14px,transparent 14px 28px);mask-image:linear-gradient(to bottom,#0007,#000)}
.stage-meta{position:absolute;top:18px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:center;z-index:2;color:#cabbc6}.stage-meta>span:first-child{border-bottom:1px solid #dcc89f5c;padding-bottom:3px}.stage-meta b{font-weight:650}.stage-meta i,.turn-light{border-radius:50%;display:inline-block;width:6px;height:6px;background:#85d8a7;box-shadow:0 0 8px #76d49a66}.round{display:flex;align-items:center;gap:7px;color:#dfd5da}
.rail{position:absolute;inset:18.9% 4.8% 12%;z-index:-1;border-radius:42% / 53%;padding:clamp(9px,1.15vw,16px);border:1px solid #b39163;background:repeating-linear-gradient(34deg,#ffffff04 0 1px,transparent 1px 3px),linear-gradient(175deg,#67453c 1%,#39282c 15%,#211b25 45%,#352530 75%,#745448 96%,#c6a36d 98%);box-shadow:0 6px 0 #32262b,0 8px 0 #6c5142,0 17px 22px #0806099c,inset 0 2px 2px #ffdb917d,inset 0 -4px 6px #0008}
.felt{position:relative;overflow:hidden;width:100%;height:100%;border-radius:inherit;border:2px solid #c9ac78;box-shadow:inset 0 4px 12px #04140dd9,0 0 0 2px #170e14,0 0 0 3px #b0916545;background:repeating-linear-gradient(37deg,#ffffff05 0 1px,transparent 1px 3px),repeating-linear-gradient(-39deg,#00000005 0 1px,transparent 1px 3px),radial-gradient(ellipse at 44% 32%,#246555,#155344 42%,#103f34 76%,#0a2d27 100%)}
.felt-line{position:absolute;inset:4.8% 2.5%;border-radius:inherit;border:1px solid #e3d6a43b;box-shadow:0 0 0 2px #00000009}
.crest{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#e4d9950b}.crest svg{width:95px;height:110px;fill:currentColor}
.seat,.board-area{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column}
.seat-info{position:relative;padding:5px 14px 5px 6px;min-width:150px;gap:9px;color:#f3eae9;border:1px solid #967f6a;box-shadow:0 3px 9px #0007,inset 0 0 0 2px #ffffff06;border-radius:14px;background:linear-gradient(150deg,#37303a,#211d28 70%)}
.seat.active .seat-info{border-color:#b1d1a9;box-shadow:0 0 0 2px #122c22,0 0 15px #83d59d49}
.seat.winner .seat-info{border-color:#f0d083;background:linear-gradient(130deg,#57472d,#2e2730);box-shadow:0 0 0 2px #785e30,0 0 15px #ebc56e55}
.emblem{border-radius:50%;width:36px;height:36px;display:grid;place-items:center;flex:none}
.emblem.rival{background:radial-gradient(circle at 36% 28%,#70505e,#362237);color:#ecd09d;border:1px solid #b08b7c;box-shadow:inset 0 0 0 2px #352636}
.emblem.hero{background:radial-gradient(circle at 35% 30%,#578477,#193e38);color:#e0cf95;border:1px solid #a7ad85;box-shadow:inset 0 0 0 2px #22493c}
.emblem .icon{width:20px;height:20px}.suit-mark{fill:currentColor;width:18px;height:20px}
.seat-text{min-width:0;display:grid;gap:1px}.seat-text strong{display:block;line-height:1.18;font-size:13px;max-width:118px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.seat-text span{font-size:12px;color:#e5d7af;font-variant-numeric:tabular-nums;gap:5px;line-height:1.2}.seat-text b{font-weight:600}.seat-text .icon{width:12px;height:12px}
.dealer{display:grid;place-items:center;width:18px;height:18px;margin-left:auto;flex:none;background:#e4d3ae;border:1px solid #d1b987;color:#2c251d;font-size:10px;font-family:var(--serif);font-weight:700;border-radius:50%}
.opposite{top:10.6%;flex-direction:row;gap:9px}.player{bottom:4.0%;gap:5px}
.pocket{display:flex;align-items:center;justify-content:center}.theirs{gap:0}.theirs .card{width:32px;height:45px;font-size:13px}.theirs .card+.card{margin-left:-6px;transform:rotate(6deg)}.theirs .card:first-child{transform:rotate(-6deg)}.theirs .back .back-mark{width:10px;height:13px}
.board-area{top:33.7%;gap:9px}.board{display:flex;gap:clamp(5px,.7vw,10px);justify-content:center}
.pot{justify-content:center;gap:7px;border:1px solid #ead7a142;box-shadow:0 2px 5px #0002;background:#092820bf;color:#f8e8c4;border-radius:99px;padding:3px 13px;min-height:25px}
.pot>span:nth-child(2){font-size:9px;letter-spacing:1.3px;color:#c9c6a7}.pot strong{font:700 15px/1 var(--sans);font-variant-numeric:tabular-nums}
.chip-icon{width:17px;height:17px;display:inline-block;border:1px solid #d4b97c;border-radius:50%;background:repeating-conic-gradient(#eddb9e 0 23deg,#685832 23deg 45deg);position:relative;transform:rotate(-15deg)}.chip-icon:after{content:"";position:absolute;inset:3px;border:1px solid #d9be82;border-radius:50%;background:#9e7e4d}
.card,.slot{position:relative;display:block;width:clamp(48px,4.8vw,71px);height:auto;aspect-ratio: .705;flex:none;border-radius:7px}
.card{overflow:hidden;background:linear-gradient(150deg,#fffef7,#f1ede0);border:1px solid #e8e1cd;box-shadow:0 3px 7px #06231766;color:#202831;font-size:clamp(19px,2.02vw,29px);font-family:var(--serif);line-height:1}
.card.red{color:#ad3441}.corner{position:absolute;top:6%;left:8%;font-weight:700;letter-spacing:-.08em}.corner svg{display:block;width:.44em;height:.49em;margin:1px auto 0;fill:currentColor}.corner.foot{top:auto;left:auto;right:8%;bottom:6%;transform:rotate(180deg);font-size:.55em}.corner.foot svg{display:none}
.card .pip{position:absolute;left:50%;top:57%;width:42%;height:45%;transform:translate(-50%,-50%);fill:currentColor}
.slot{border:1px solid #b9d1a74d;background:#062e244a;box-shadow:inset 0 1px 6px #0a302b44;display:grid;place-items:center}.slot svg{width:23%;height:25%;fill:#d4cc9c36}
.card.back{background:repeating-linear-gradient(45deg,transparent 0 4px,#e2bc7647 4px 5px,transparent 5px 7px),repeating-linear-gradient(-45deg,transparent 0 4px,#e2bc7638 4px 5px,transparent 5px 7px),#483046;border:2px solid #d9c49a;display:grid;place-items:center;border-radius:5px}.back:before{content:"";position:absolute;inset:2px;border:1px solid #d7bb8390;border-radius:2px}.back-mark{position:relative;fill:#efd7a0;filter:drop-shadow(0 0 2px #372032);width:20px;height:24px}
.mine .card{width:clamp(42px,4.05vw,62px);font-size:clamp(18px,1.7vw,25px);box-shadow:0 3px 7px #08261c7a}
.mine .card:first-child{transform:rotate(-6deg);margin-right:1px}.mine .card:nth-child(2){transform:rotate(6deg)}
.board .arrive{animation:deal-in calc(.28s * var(--bebeto-motion-factor, 1.25)) ease-out}.card.best{border-color:#edcb7b;box-shadow:0 0 0 1.5px #cfac62,0 2px 8px #30240780}
.theirs.revealed .card{width:clamp(34px,3.3vw,48px);height:auto;font-size:clamp(16px,1.6vw,23px)}.theirs.revealed .card+.card{margin-left:1px}
.notice{background:#392e33;border:1px solid #8d735750;color:#f1dec1;padding:10px 15px;border-radius:9px;font-size:13px;margin-bottom:13px}
#wins-wrap{padding:0;margin-top:16px}#wins-wrap .recent-wins{border:1px solid var(--fine);border-radius:13px;background:#201b24}
.table-stage.paid-player .chip-icon{animation:pay-down calc(.55s * var(--bebeto-motion-factor, 1.25)) ease-out}.table-stage.paid-opponent .chip-icon{animation:pay-up calc(.55s * var(--bebeto-motion-factor, 1.25)) ease-out}
@keyframes deal-in{from{opacity:.2;transform:translateY(-6px) rotate(-3deg)}}@keyframes pay-down{50%{transform:translateY(18px) scale(.75);opacity:.3}}@keyframes pay-up{50%{transform:translateY(-18px) scale(.75);opacity:.3}}
.action-dock{border-top:1px solid var(--fine);padding:18px 24px 21px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(145deg,#27202a,#211b25)}
.turn-line{display:flex;align-items:center;gap:10px;min-width:140px;flex:1 1 160px}.turn-light{background:#bb9d70;box-shadow:0 0 8px #d7b68240;flex:none}.turn-line.active .turn-light{background:#8cddac;box-shadow:0 0 8px #8cddac80}.turn-line strong,.turn-line small{display:block}.turn-line strong{font-size:16px;line-height:1.25}.turn-line small{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}
.action-buttons{display:grid;grid-template-columns:0.78fr 1.2fr 1fr;gap:7px;flex:1 1 305px}.action,.primary,.plain,.secondary{justify-content:center;border-radius:10px;min-height:44px;padding:9px 15px;font-size:13px;font-weight:650;white-space:nowrap}.action,.secondary,.plain{border:1px solid #ffffff24;background:#28232e}
.primary{background:linear-gradient(155deg,#f4dca4,#dfbd79);color:#271c17;border:1px solid #e9c78c;box-shadow:inset 0 1px 0 #ffefca88,0 2px 5px #120c1226}.raise{gap:4px;border-color:#aba0806b;background:#39313a;color:#ead6a5}.raise .icon{width:15px;height:15px}.action:disabled{opacity:.38}.between{gap:8px}.plain{gap:6px;background:transparent}.plain .icon{width:15px}
aside{display:grid;gap:14px}.side-card{padding:20px 20px 17px;border-radius:17px;background:linear-gradient(155deg,#27212b,#211c25)}.side-heading{gap:9px;margin-bottom:14px}.side-heading .icon{width:17px;height:17px;color:#d3b77f}.side-heading h2{font:400 23px/1.15 var(--serif);letter-spacing:-.8px}
.details{margin:0}.details div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:11px 0}.details dt,.details dd{font:400 12px/1.4 var(--sans);text-transform:none;letter-spacing:0}.details dt,#cpu-style-row label{color:var(--muted)}.details dd{margin:0;font-weight:600;text-align:right}.details dd small{font-size:inherit;color:#d2c7d0}
#cpu-style-row,.room-tools{border-top:1px solid var(--fine);margin-top:17px;padding-top:14px}.room-tools{display:flex;flex-wrap:wrap;gap:6px}.room-tools .plain{font-size:12px;padding:6px 10px;white-space:normal}#cpu-style-row{display:flex;justify-content:space-between;align-items:center;gap:6px}#cpu-style-row label{font:400 12px var(--sans);letter-spacing:0;text-transform:none}
.select-wrap{position:relative}.select-wrap .icon{position:absolute;right:8px;top:13px;width:12px;height:12px;pointer-events:none}.select-wrap select{appearance:none;border:1px solid #ffffff22;background:#1e1a22;color:#e1d3c1;border-radius:7px;padding:7px 23px 7px 9px;min-height:38px;font-size:12px}
.history ol{margin:0;padding:0;list-style:none;max-height:295px;overflow:auto;scrollbar-width:thin}.history li{display:flex;gap:10px;color:#cec2ce;align-items:baseline;font-size:12px;padding:9px 0;border-top:1px solid #ffffff0c}.history li:before{content:"";width:5px;height:5px;border:1px solid #a48a63;align-self:flex-start;margin-top:7px;border-radius:50%;flex:none}.history li:first-child{color:#efe1c0;border:0;padding-top:0}.history li:first-child:before{background:#c6a56c}
.notice{margin:0 0 16px;padding:10px 14px;border:1px solid #d0ae694c;border-radius:10px;background:#352d28;color:#f1dba9;font-size:13px}
dialog{position:fixed;width:min(416px,calc(100% - 28px));max-height:calc(100dvh - 28px);border:1px solid #74616a;border-radius:20px;padding:0;color:var(--ink);background:linear-gradient(135deg,#322832,#221d27);box-shadow:0 25px 100px #000a;overflow:auto}
dialog::backdrop{background:#08070cb8;backdrop-filter:blur(5px)}.modal-body{padding:27px}.modal-body>.tool{position:absolute;right:13px;top:13px;width:35px;height:35px}.modal-kicker{color:#dabf89;margin:0 44px 6px 0}.modal-body h2{margin-right:20px;font:400 34px/1.1 var(--serif);letter-spacing:-1.2px}.modal-body p:not(.modal-kicker){margin:11px 0 15px;font-size:14px;color:#d2c6ce;line-height:1.55}
.modal-body label.field{display:block;margin:16px 0 5px;color:#d8ccd1;font-size:13px;font-weight:600}.modal-body input[type=text],.modal-body input[type=number]{width:100%;background:#1a161d;color:#f4eee9;padding:11px 13px;border-radius:9px;border:1px solid #766471;font-size:16px}.modal-body input[type=range]{width:100%;accent-color:#d8bb7e;margin:12px 0;height:30px}.modal-body input[type=checkbox]{width:19px;height:19px;accent-color:#e4c183}
.modal-actions{gap:8px;margin-top:17px;flex-wrap:wrap}.modal-actions>button{flex:1}.choice{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:15px 0;font-size:14px}.modal-note{color:#e7cc93!important;font-size:13px!important}.rules-list{padding-left:22px;color:#d3c9d1;font-size:13px}.rules-list li{margin:6px 0}.ranks{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;grid-auto-flow:column;grid-template-rows:repeat(5,auto)}.modal-body h3{margin:18px 0 4px;font:400 20px var(--serif)}.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.presets button{border-radius:7px;background:#423440;border:1px solid #ffffff20;padding:8px 1px;min-height:40px;font-size:12px}.modal-error{color:#ffd9ad!important}.readout{float:right;color:var(--gold)}
@media(min-width:1500px){main{padding-top:50px}.title-row{margin-bottom:34px}.table-stage{height:487px}}
@media(max-width:990px){.mast-in,main{width:calc(100% - 40px)}.layout{grid-template-columns:minmax(0,1fr) minmax(207px,23%);gap:13px}.side-card{padding:17px 14px}.table-stage{height:387px}.action-dock{gap:13px;padding:15px 18px}.action-buttons{flex-basis:280px}.title-row{margin-bottom:20px}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.mast-in,main{width:min(94%,620px)}.mast-in{height:54px}.brand{font-size:21px}.brand img{width:32px;height:32px}.mast nav{gap:5px}.tool,.lobby-back{height:37px}.tool{width:37px}.lobby-back{font-size:12px}.title-row{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.modes{align-self:center}.modes button{padding:8px 11px}.table-stage{height:clamp(350px,66vw,414px)}main{padding-top:20px}aside{grid-template-columns:1fr 1fr;gap:12px}.card,.slot{width:clamp(44px,8.8vw,62px)}.mine .card{width:clamp(42px,8vw,57px)}.seat-info{min-width:130px}.opposite{top:11%}.table-panel{border-radius:16px}}
@media(max-width:500px){.mast-in,main{width:calc(100% - 24px)}main{padding-top:15px}.brand{gap:7px}.eyebrow{font-size:8px;letter-spacing:1.55px;margin-bottom:2px}.short-rule{width:17px}h1{font-size:43px}.subline{font-size:11px;margin-top:4px}.title-row{gap:11px}.modes{width:100%;padding:3px;border-radius:10px}.modes button{flex:1;border-radius:7px;min-height:34px;padding:5px 11px;font-size:12px}.modes .icon{width:14px;height:14px}.table-stage{height:clamp(310px,83vw,367px)}.rail{inset:21% 2.8% 14%;padding:7px;border-radius:40% / 53%}.stage-meta{top:11px;left:14px;right:14px;font-size:8px;letter-spacing:1.3px}.round{gap:4px}.round i{height:5px;width:5px}.opposite{top:11.4%;gap:6px}.seat-info{gap:6px;min-width:120px;padding:4px 8px 4px 4px;border-radius:11px}.emblem{width:29px;height:29px}.emblem .icon{width:16px;height:16px}.emblem .suit-mark{width:14px;height:17px}.seat-text strong{font-size:12px;max-width:97px}.seat-text span{font-size:11px}.seat-text .icon{width:10px;height:10px}.dealer{width:15px;height:15px;font-size:8px}.theirs .card{width:26px;height:36px}.board-area{top:32.5%;gap:7px}.board{gap:5px}.card,.slot{width:clamp(37px,10.6vw,51px);border-radius:5px;font-size:20px}.mine .card{width:clamp(36px,9.7vw,47px);font-size:18px}.player{bottom:3.4%;gap:4px}.pot{min-height:21px;padding:2px 9px;gap:5px}.pot strong{font-size:13px}.pot>span:nth-child(2){font-size:8px}.chip-icon{width:14px;height:14px}.action-dock{display:block;padding:12px}.turn-line{min-height:31px;gap:8px}.turn-line strong{font-size:14px}.turn-line small{font-size:11px;margin-top:1px}.action-buttons,.between{margin-top:9px}.action,.between button{min-height:45px}.between button{flex:1}.layout{gap:12px}aside{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.side-card{padding:13px 11px;border-radius:13px}.side-heading{gap:6px;margin-bottom:10px}.side-heading h2{font-size:18px;letter-spacing:-.6px}.side-heading .icon{width:14px;height:14px}.details div{margin:7px 0;gap:3px}.details dt,.details dd,.history li,#cpu-style-row label{font-size:11px}.history li{gap:6px;padding:6px 0}.history ol{max-height:166px}#cpu-style-row{flex-wrap:wrap;gap:4px;margin-top:8px;padding-top:7px}.select-wrap select{min-height:32px;font-size:11px}.select-wrap .icon{top:10px}}
@media(max-width:350px){.mast-in,main{width:calc(100% - 16px)}.table-stage{height:315px}.details div{flex-wrap:wrap}.lobby-back{padding:0 6px}.mast nav{gap:3px}.action{padding:8px}.side-heading h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
/* A stitched oval rail, engraved court seals and casino-cut pip faces. */
.table-stage {
  background: radial-gradient(ellipse at 50% 66%, #50463850, transparent 61%),
    radial-gradient(ellipse at 18% 0%, #47424a60, transparent 54%),
    linear-gradient(145deg,#302733,#181720 67%,#251f27);
}
.rail {
  border-color:#d4b67d;
  background:repeating-linear-gradient(100deg,#fff1 0 1px,transparent 1px 3px),
    linear-gradient(165deg,#a38466 0%,#4c3542 16%,#231a26 44%,#5a3c43 77%,#8f7053 94%,#debf82);
  box-shadow:inset 0 2px 2px #ffdfa477,inset 0 -4px 5px #1d101cca,0 3px 0 #2f2026,0 6px 0 #997850,0 10px 0 #211821,0 19px 23px #09070bb0;
}
.felt {
  background:repeating-linear-gradient(32deg,#fff1 0 .45px,transparent .7px 3px),
    repeating-linear-gradient(-55deg,#0925243b 0 .5px,transparent .9px 3px),
    radial-gradient(ellipse at 44% 24%,#418665 0%,#236048 38%,#103d34 72%,#082922);
}
.felt-line { border-style:dashed; border-color:#dce0ad67; }
.felt-line::after {content:"";position:absolute;inset:3px;border-radius:inherit;border:1px solid #e7d9a42e}
.shoe {position:absolute;left:14%;top:28%;width:24px;height:33px;transform:rotate(-17deg);pointer-events:none;opacity:.92}
.shoe i,.shoe b {position:absolute;inset:0;border:1px solid #c9ae7d;border-radius:3px;box-shadow:0 1px 1px #0b1919;background:#e6d9b8}
.shoe i:nth-child(2){transform:translateY(-2px)} .shoe i:nth-child(3){transform:translateY(-4px)}
.shoe b {display:grid;place-items:center;transform:translateY(-6px);font:italic 700 17px Georgia,serif;color:#f1cd86;background:repeating-linear-gradient(45deg,#f8eab21a 0 1px,transparent 1px 5px),#523649;outline:1px solid #c9ae7d87;outline-offset:-4px}
.table-fx {position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:4}
.chip-flight {position:absolute;display:block;width:28px;height:19px}
.chip-flight i {position:absolute;width:16px;height:9px;border-radius:50%;border:1px solid #eddfa7;background:repeating-conic-gradient(#e4e5bf 0 19deg,#45878a 19deg 48deg);box-shadow:0 1px 0 #153c40,0 2px 0 #b5c6ae,0 4px 2px #07252260}
.chip-flight i::after {content:"";position:absolute;inset:2px 3px;border-radius:inherit;border:1px solid #ddd6b4;background:#418587}
.chip-flight i:nth-child(1){left:0;bottom:1px}.chip-flight i:nth-child(2){right:1px;bottom:3px}.chip-flight i:nth-child(3){left:4px;bottom:7px}
.chip-flight.payout i{background:repeating-conic-gradient(#ffedbe 0 19deg,#ac6e26 19deg 48deg);box-shadow:0 1px 0 #6a4018,0 2px 0 #d6b478,0 4px 3px #07252280}
.chip-flight.payout i::after{background:#c99a43}
.card:not(.back){background:linear-gradient(135deg,#fffef5 12%,#f6f1df 70%,#e9dfc7);box-shadow:0 3px 5px #071e2099,inset 0 0 0 2px #fffbef}
.card.best {border-color:#e4b45a;box-shadow:0 0 0 2px #ffd87b,0 0 10px #e8bc554d,0 3px 5px #121e16}
.pip-grid {position:absolute;inset:12% 16% 12% 29%;display:grid;grid-template:repeat(5,minmax(0,1fr))/repeat(3,minmax(0,1fr));align-items:center;justify-items:center;color:inherit;pointer-events:none}
.pip-grid i {display:block;line-height:0;min-width:0;min-height:0;width:107%;height:100%}
.pip-grid svg {width:100%;height:100%;fill:currentColor}
.court-seal {position:absolute;inset:23% 13% 17% 24%;display:grid;place-items:center}
.court-seal::before,.court-seal::after {content:"";position:absolute;inset:7% 9%;border:1px solid currentColor;opacity:.28;transform:rotate(12deg);border-radius:38% 16%}
.court-seal::after {transform:rotate(-12deg);border-radius:16% 38%}
.court-seal svg {width:77%;height:77%;fill:currentColor}
.court-portrait {position:absolute;left:13%;width:81%;top:29%;aspect-ratio:1;background-image:url("court-atlas.webp");background-size:300% 100%;background-repeat:no-repeat;mix-blend-mode:multiply;mask-image:linear-gradient(0deg,transparent,#000 8%,#000 98%,transparent)}
.court-J {background-position:0 50%}.court-Q {background-position:50% 50%}.court-K {background-position:100% 50%}
#showdown-rack {border-top:1px solid #d7b17542;padding:10px clamp(12px,2.4vw,25px);background:linear-gradient(112deg,#4c3928,#2d2425 63%,#272126)}
#showdown-rack>div {display:flex;align-items:center;justify-content:space-between;gap:7px}
#showdown-rack>div+div {border-top:1px solid #ffffff1c;margin-top:7px;padding-top:7px}
#showdown-rack small {display:block;font:700 9px/1.2 var(--sans);text-transform:uppercase;letter-spacing:1.2px;color:#d7bb89}
#showdown-rack strong {display:block;font:600 17px/1.15 var(--serif);margin-top:3px;color:#fff3d8}
.best-five {display:flex;gap:4px}
.best-five b {display:flex;align-items:center;justify-content:center;gap:2px;min-width:25px;height:28px;padding:0 3px;border:1px solid #d0ba92;border-radius:4px;background:#f2ead7;color:#253139;font:700 14px/1 var(--serif);box-shadow:0 2px 2px #0004}
.best-five .red {color:#a13541}
.best-five svg {height:11px;width:9px;fill:currentColor}
@media(max-width:500px){.shoe{left:10%;top:28%;width:15px;height:21px}.shoe b{font-size:11px;outline-offset:-3px}.stage-meta{color:#d9c8ce}.chip-flight i{width:13px;height:8px}}

/* Folded corner, table chip and paired chip stack distinguish the three betting actions. */
#fold,#match,#raise {min-height:48px;touch-action:manipulation}
#fold {position:relative;border-radius:2px 12px 4px 4px;text-align:center;box-shadow:inset 0 -2px #100e13}
#fold::after {content:"";position:absolute;right:1px;top:1px;width:13px;height:11px;pointer-events:none;background:linear-gradient(40deg,#ada0a7 0 42%,#685e67 45% 52%,transparent 55%);border-top-right-radius:9px}
#match {border-radius:48%;border:2px solid #5c4023;position:relative;isolation:isolate;color:#332216;box-shadow:inset 0 0 0 2px #e3c27f,inset 0 0 0 4px #6a4928,inset 0 0 0 5px #fff0c3,0 2px 0 #4d3321}
#match::before {content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;border-radius:inherit;background:repeating-conic-gradient(from 10deg,#49321e77 0 9deg,transparent 9deg 33deg);mask:radial-gradient(ellipse farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))}
#raise {position:relative;border:1px solid #a78756;border-radius:50% / 34%;color:#fff0c7;box-shadow:inset 0 -3px #282327,inset 0 -4px #b6925e,inset 0 -6px #3d3330,0 2px 0 #181117}
#fold:focus-visible,#match:focus-visible,#raise:focus-visible {outline:2px solid #fff0b2;outline-offset:2px}
@media (prefers-reduced-motion:no-preference){#fold:enabled:active{transform:rotate(-3deg)}#match:enabled:active{transform:translateY(2px)}#raise:enabled:active{transform:translateY(-2px)}}

/* The velvet card room uses the same original lounge artwork as its club lobby. */
:root {
  --bg:#0c1019; --panel:#161c28; --muted:#b5bdc9; --gold:#f3d397;
}
body {background:radial-gradient(ellipse at 15% 0%,#25314080,transparent 43rem),var(--bg)}
.mast {background:#0c1019db}
.modes {padding:4px;border:1px solid #76839c40;background:#0d121c;align-self:center}
.modes button {gap:11px;min-height:51px;padding:6px 16px;text-align:left}
.modes button span {display:grid;gap:1px}
.modes button strong {font-size:13px;line-height:1.2;color:#f3ece1}
.modes button small {font-size:11px;font-weight:450;line-height:1.25;color:#bcc4d0}
.modes button .icon {box-sizing:content-box;padding:5px;background:#273446;border-radius:7px;color:#d2c5a6}
.modes button[aria-pressed=true] {background:linear-gradient(135deg,#354451,#202d3a);border-color:#b79d686b}
.modes button[aria-pressed=true] .icon {color:#302518;background:linear-gradient(145deg,#ffe4a8,#bb9858)}
.table-panel {border-color:#b69c6a6b;box-shadow:0 22px 54px #03070d7a}
.table-stage {
  height:clamp(420px,37vw,495px);
  background:linear-gradient(180deg,#080d1999,#0a122740 35%,#0b111bd1 100%),url("../art/bluehour.webp") center 52% / cover;
}
.table-stage::before {opacity:1;background:linear-gradient(90deg,#080b18a8,transparent 22% 78%,#080b18a8);mask:none}
.stage-meta {top:15px;color:#f9ead1;text-shadow:0 1px 4px #000}
.round {padding:4px 9px;border:1px solid #b5bdcb54;border-radius:30px;background:#0a1222db;font-size:10px;color:#ede8d9}
.round i {background:#9be4f4;box-shadow:0 0 8px #83dafd94}
.rail {
  inset:17% 3.2% 11.5%;border-radius:47% / 52%;padding:clamp(10px,1.45vw,20px);border-color:#e5bc75;
  background:repeating-linear-gradient(13deg,transparent 0 2px,#1a0d0c40 3px,transparent 4px 7px),
    linear-gradient(174deg,#dbba7b 0%,#604031 4%,#3f2421 15%,#3b2423 45%,#51322c 77%,#946d48 93%,#f0cc85 99%);
  box-shadow:inset 0 3px 2px #ffe1a588,inset 0 -4px 5px #130d14,0 3px 0 #241b1c,0 6px 0 #a87c4b,0 10px 0 #231b1b,0 22px 26px #03070dd9;
}
.felt {
  border-color:#a89971;
  background:repeating-linear-gradient(37deg,#c5e8ff0c 0 .7px,transparent .9px 3px),
    repeating-linear-gradient(-31deg,#192c513d 0 .6px,transparent 1px 3px),
    radial-gradient(ellipse at 46% 29%,#3e7389 0%,#24526b 37%,#193954 66%,#11243d 95%);
  box-shadow:inset 0 6px 16px #081121dd,0 0 0 2px #171217,0 0 0 3px #dbab6659;
}
.felt-line {inset:6% 3.5%;border-color:#e7dbad67}
.crest {color:#e8e6c610}
.opposite {top:10%;gap:12px}
.player {bottom:3.3%;gap:5px}
.seat-info {background:linear-gradient(140deg,#303d4e,#182334 65%,#121b29);border-color:#778798}
.seat.active .seat-info {border-color:#aadce3;box-shadow:0 0 0 2px #21394a,0 0 16px #6fcdf25c}
.seat.winner .seat-info {background:linear-gradient(130deg,#635039,#2c2730);border-color:#ffe2a7}
.emblem.hero {background:radial-gradient(circle at 35% 27%,#567d99,#203855);box-shadow:inset 0 0 0 2px #294459}
.shoe {left:12%;top:32%}
.board-area {top:31%;gap:10px}
.board {gap:clamp(5px,.7vw,10px)}
.board>.card,.board>.slot {width:clamp(51px,5.25vw,78px)}
.slot {background:#0b263e66;border:1px solid #d1d9c648;box-shadow:inset 0 2px 5px #0c203b55}
.slot svg {fill:#bed4da3d}
.card:not(.back) {box-shadow:0 2px 0 #c0ab89,0 4px 0 #927b60,1px 8px 11px #0007,inset 0 0 0 2px #fffbee}
.board .card.best,.pocket .card.best {border-color:#eac57b;box-shadow:0 0 0 2px #ffe598,0 0 14px #f3c4628c,0 3px 0 #a7804e,1px 8px 11px #0007}
.card.back,.shoe b {background:repeating-linear-gradient(45deg,transparent 0 4px,#e8bd6936 4px 5px,transparent 5px 8px),
  repeating-linear-gradient(-45deg,transparent 0 4px,#e8bd692e 4px 5px,transparent 5px 8px),#263758}
.mine .card {width:clamp(53px,4.8vw,68px);font-size:clamp(22px,2.15vw,30px)}
.mine .card:first-child {transform:rotate(-9deg);margin-right:-3px}
.mine .card:nth-child(2) {transform:rotate(8deg)}
.pot {
  position:relative;isolation:isolate;min-height:38px;padding:5px 17px 5px 14px;gap:9px;
  border:1px solid #d8bc88ab;border-radius:8px 16px 8px 16px;
  background:linear-gradient(145deg,#203142,#111d30);box-shadow:0 2px 0 #121c26,0 4px 7px #0006;
}
.pot strong {font:700 23px/1 var(--serif);font-variant-numeric:lining-nums tabular-nums;color:#fff2cd}
.pot>span:nth-child(2) {color:#f0d9aa;font-size:9px}
.pot-stacks {display:flex;align-items:flex-end;position:relative;width:35px;height:24px}
.pot-stacks i {
  position:absolute;bottom:2px;left:0;width:15px;height:calc(5px + var(--extra-chips,1) * 1px);
  border-radius:45% / 26%;border:1px solid #d6c9af;background:repeating-linear-gradient(0deg,#9c6937 0 2px,#f2d18a 2px 3px,#81502c 3px 4px);
  box-shadow:1px 2px 2px #050a12b3;
}
.pot-stacks i::after {content:"";position:absolute;left:-1px;right:-1px;top:-3px;height:6px;border-radius:50%;border:1px solid #f6dda3;background:repeating-conic-gradient(#bc8043 0 35deg,#f6dda3 35deg 53deg)}
.pot-stacks i:nth-child(2) {left:16px;bottom:4px;height:calc(8px + var(--extra-chips,1) * 1.2px)}
.pot-stacks i:nth-child(3) {left:9px;bottom:0}
.table-stage[data-result="won"] .pot,.table-stage[data-result="split"] .pot {
  background:linear-gradient(130deg,#ffedbc,#d6af67 58%,#edcb85);border-color:#fff3c9;
  box-shadow:0 2px 0 #664723,0 0 0 3px #e1b76d38,0 0 24px #eabe6566;
}
.table-stage[data-result="won"] .pot strong,.table-stage[data-result="split"] .pot strong,
.table-stage[data-result="won"] #pot-label,.table-stage[data-result="split"] #pot-label {color:#382615}
.table-stage[data-result="lost"] .pot {border-color:#d6c2a1}
.hand-strip {
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px clamp(12px,2.4vw,28px);
  background:linear-gradient(115deg,#263544,#1b2838 60%,#182131);border-block:1px solid #ceb78a45;
}
.hand-readout {display:flex;align-items:center;gap:9px;min-width:0;color:#f0d298}
.hand-readout .suit-mark {width:19px;height:24px}
.hand-readout small {display:block;text-transform:uppercase;font-size:9px;font-weight:650;letter-spacing:.13em;line-height:1.15;color:#bdc9ce}
.hand-readout strong {display:block;margin-top:2px;font:600 19px/1.04 var(--serif);color:#fff1d4}
.street-track {display:flex;margin:0;padding:0;list-style:none;color:#b2bfcc}
.street-track li {position:relative;padding:11px 5px 0;min-width:40px;text-align:center;font-size:10px;line-height:1.15}
.street-track li::before {content:"";position:absolute;left:0;right:0;top:3px;height:1px;background:#607080}
.street-track li:first-child::before {left:50%}
.street-track li:last-child::before {right:50%}
.street-track li::after {content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:7px;height:7px;border-radius:50%;background:#263345;border:1px solid #8c9fae}
.street-track .dealt::after {background:#e5c488;border-color:#f3d69b}
.street-track [aria-current] {color:#ffe4ac;font-weight:700}
.street-track [aria-current]::after {box-shadow:0 0 0 2px #263345,0 0 0 3px #c8a779}
.action-dock {background:linear-gradient(125deg,#181f2b,#111824);border-top:0}
.side-card {border-color:#60778a40;background:linear-gradient(140deg,#212d3c,#171e2a)}
.side-heading .icon {color:#e7c488}
#showdown-rack {background:linear-gradient(112deg,#493927,#232c3a 68%,#192431)}
dialog[data-sheet="room"],dialog[data-sheet="offline"],dialog[data-sheet="copy"] {border-color:#c2a776;overflow:hidden auto}
dialog:is([data-sheet="room"],[data-sheet="offline"],[data-sheet="copy"]) .modal-body::before {
  content:"";display:block;height:73px;margin:-27px -27px 19px;border-bottom:1px solid #c2a776;
  background:linear-gradient(90deg,#101a29bb,#14202d11 64%,#101a2950),url("../art/bluehour.webp") center 58% / cover;
}
@media (prefers-reduced-motion:no-preference) {
  .table-stage[data-result="won"] .pot,.table-stage[data-result="split"] .pot {animation:pot-award calc(.65s * var(--bebeto-motion-factor, 1.25)) ease-out}
  @keyframes pot-award {0%{transform:scale(.9)}45%{transform:scale(1.08)}100%{transform:scale(1)}}
}
@media(max-width:990px) and (min-width:761px) {
  .board>.card,.board>.slot {width:52px}.mine .card {width:49px}
}
@media(max-width:760px) {
  .table-stage {height:clamp(345px,85vw,438px)}
  .board>.card,.board>.slot {width:clamp(38px,11.1vw,64px)}
  .mine .card {width:clamp(40px,11vw,56px)}
}
@media(max-width:500px) {
  .modes button {min-height:44px;padding:4px 8px;gap:7px;justify-content:flex-start}
  .modes button strong {font-size:12px}.modes button small {font-size:10px}
  .modes button .icon {width:16px;height:16px;padding:5px}
  .rail {inset:17.5% 1.3% 12%;padding:8px}
  .round {font-size:8px;padding:3px 7px}
  .opposite {top:11%;gap:8px}.player {bottom:3%}
  .board-area {top:31%;gap:7px}
  .shoe {left:8%;top:29%}
  .pot {min-height:31px;padding:3px 11px;gap:6px}
  .pot strong {font-size:20px}.pot-stacks {height:21px;transform:scale(.88);transform-origin:center}
  .hand-strip {padding:8px 10px;gap:4px}
  .hand-readout {gap:5px}.hand-readout small {font-size:8px}.hand-readout strong {font-size:16px}
  .hand-readout .suit-mark {width:13px;height:16px}.street-track li {min-width:31px;padding-inline:2px;font-size:9px}
}
@media(max-width:350px) {
  .table-stage {height:335px}
  .modes button {padding-inline:5px}
}
.raise-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid #88734f;
  border-radius: 10px;
  background: #211c23;
}
.raise-preview > div { padding: 10px 12px; }
.raise-preview > div + div { border-inline-start: 1px solid #5c4d40; }
.raise-preview dt { color: #dfd3c9; font: 600 12px/1.25 var(--sans); }
.raise-preview dd { margin: 4px 0 0; color: #f7daa0; font: 600 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
