html,body,dialog{touch-action:manipulation}
*{box-sizing:border-box}body{margin:0;background:#131312;color:#f4f0e6;font:16px Arial,sans-serif}header,main,footer{max-width:1600px;margin:auto}header{height:78px;display:flex;align-items:center;gap:34px;padding:0 4vw;border-bottom:1px solid #383630}.brand{font:bold 23px Georgia;letter-spacing:2px;white-space:nowrap}.gold,.brand i{color:#ddbd7b}button,select,input{font:inherit;color:inherit}button,select{cursor:pointer}button{background:none;border:0}nav{display:flex;gap:20px;height:100%;align-items:center}nav button{height:100%;color:#aaa69d;font-size:14px}nav button.active{color:#eacb8b;border-bottom:2px solid}.wallet{margin-left:auto;background:#24231f;border:1px solid #454034;padding:10px 15px;border-radius:22px;color:#e6c98e;font-size:14px}main{padding:30px 4vw}h1,h2,h3{font-family:Georgia,serif;font-weight:normal}h1{font-size:clamp(36px,4vw,60px);margin:5px 0 20px;letter-spacing:-2px}.eyebrow,small{font-size:12px;letter-spacing:2px;color:#d0b47d;text-transform:uppercase}.heading,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.outline,select,input{background:#201f1b;border:1px solid #504c42;padding:10px 14px;border-radius:6px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.table{height:506px;position:relative;isolation:isolate;overflow:hidden;border:8px solid #332822;border-radius:20px 20px 34% 34% / 20px 20px 18% 18%;box-shadow:inset 0 0 0 2px #9d7d50,inset 0 0 65px #20090d,0 9px 0 #201c19;background:repeating-linear-gradient(78deg,#ffffff04 0 1px,transparent 1px 3px),radial-gradient(ellipse at 50% 35%,#873945,#642531 63%,#451922)}.table:before,.table:after{content:'';position:absolute;pointer-events:none;inset:7px;border:1px solid #d3ac7477;border-radius:inherit}.table:after{inset:-55% -10% 25%;border-radius:50%;border:3px double #dcaf7366;z-index:-1}.tablehead{position:absolute;top:17px;width:100%;text-align:center}.cards{display:flex;justify-content:center;align-items:center;min-height:85px}.card,.stack{width:49px;height:70px;border-radius:5px;box-shadow:2px 5px 6px #1c070c77}.card{background:#fbefda;color:#28231f;text-align:left;padding:5px;font:bold 20px/1 Georgia;transform:rotate(-8deg)}.card+.card{margin-left:-6px;transform:rotate(8deg)}.card b{display:block;text-align:center;font-size:27px}.red{color:#a63840}.back,.stack{border:4px solid #eadbbf;background:repeating-linear-gradient(45deg,transparent 0 3px,#d39c90 3px 4px),repeating-linear-gradient(-45deg,#722c3a 0 3px,#d39c90 3px 4px)}.stack{position:absolute;top:44px;box-shadow:2px 2px #dbc8b8,3px 4px #735f55,5px 7px #dacbbc,8px 11px #251c1b;transform:rotate(-19deg) skew(5deg);left:8%}.shoe{left:auto;right:8%;transform:rotate(20deg) skew(-9deg);border-bottom:12px solid #423934;box-shadow:3px 3px #ad9881,5px 8px #332b28,9px 14px #221b19}.wordmark{position:absolute;top:31%;width:100%;text-align:center;color:#ecc995}.wordmark strong{display:block;font:italic clamp(38px,4.7vw,76px) Georgia;letter-spacing:-3px}.wordmark span{font:11px Arial;letter-spacing:3px}.seat{position:absolute;transform:translate(-50%,-50%);text-align:center;color:#d9bc9e;padding:0;font-size:12px}.seat i{display:grid;place-items:center;border:1px dashed #c39a7a;border-radius:50%;width:44px;height:44px;margin:0 auto 6px;font:20px Georgia}.seat.sel{color:#f5da98}.seat.sel i{background:#302724;border:2px solid #e0bf7c}.hand{position:absolute;top:54%;width:100%;pointer-events:none}.hand .cards{min-height:54px}.hand .card{width:35px;height:49px;font-size:14px}.hand .card b{font-size:18px}.panel,article{background:#21211e;border:1px solid #3e3b34;border-radius:13px;padding:22px}h2{font-size:27px;margin:0 0 19px}.line{border-bottom:1px solid #403e36;padding-bottom:16px;margin-bottom:16px}.bet{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 9px;border:1px solid transparent;border-radius:5px;font-size:14px}.bet.on{border-color:#81704f;background:#302d25}.chips{display:flex;justify-content:space-between;margin:16px 0}.chip{width:43px;height:43px;border:4px dashed #e7d6ac;border-radius:50%;background:#485b51;box-shadow:inset 0 0 0 2px #657769;font:bold 12px Georgia}.chip:nth-child(2){background:#954d4a}.chip:nth-child(3){background:#5a677b}.chip:nth-child(4){background:#665273}.primary{background:#dfc28c;color:#252018;border:1px solid #e8cf9c;border-radius:6px;padding:12px 18px;font-weight:600}.panel .primary{width:100%;margin-top:14px}.muted{color:#b6b0a5;font-size:14px}.status{margin:22px 0;text-align:center;color:#dbc496}.data{display:grid;gap:16px}.data article{max-width:850px}.log{padding:12px 0;border-bottom:1px solid #464237}.error{color:#ebaf9b}dialog{background:#24231f;color:#eee5d3;border:1px solid #79684c;border-radius:12px;max-width:min(460px,92vw);line-height:1.5}dialog::backdrop{background:#0009}input{max-width:100%}footer{padding:12px 4vw 25px;color:#9e998d;font-size:13px}.hide{display:none!important}@media(max-width:840px){header{height:auto;min-height:70px;flex-wrap:wrap;gap:8px;padding-top:12px}nav{order:3;width:100%;height:40px}main{padding:20px 3vw}.layout{grid-template-columns:1fr}.table{height:390px}.chips{justify-content:flex-start;gap:14px}.seat i{width:32px;height:32px}.panel{padding:18px}.wordmark strong{font-size:44px}.wordmark{top:33%}.tablehead{top:10px}.stack{width:32px;height:49px}.heading .outline{font-size:13px}.row{flex-wrap:wrap}}
 .layout{display:block;max-width:980px;margin:auto}.heading h1{margin-right:auto}.table{height:clamp(260px,42svh,430px)}.panel{max-width:780px;margin:8px auto 0;padding:9px 16px 12px}.spots,.controls,.actions{display:flex;align-items:center;justify-content:center;gap:12px}.spot{width:110px;font-size:13px;color:#c7bcaa;padding:3px}.spot b{width:45px;height:45px;border:2px dashed #937b52;border-radius:50%;margin:0 auto 3px;display:grid;place-items:center;color:#ead6ad;background:#332e25}.spot[aria-pressed=true] b{border:2px solid #e8c88c;background:#4a3c29}.spot span{display:block}.controls{margin:5px 0}.controls .chips{margin:0;gap:8px}.chip{height:36px;width:36px}.controls button:disabled,#deal:disabled{opacity:.45;cursor:default}.panel .primary{margin-top:3px}.actions>*{flex:1}.status{margin:8px}.heading select{max-width:32vw}
@media(max-width:840px){main{padding-top:9px}header{min-height:0;padding-top:5px}nav{height:32px}.eyebrow{display:none}.heading{gap:5px;margin:0 0 5px}.heading h1{font-size:30px;margin:0 auto 0 0}.heading select,.heading .outline{padding:7px;font-size:16px}.table{height:clamp(205px,calc(100svh - 375px),380px)}.tablehead .cards{min-height:44px}.tablehead .card{height:40px;width:29px;font-size:14px}.tablehead .card b{font-size:17px}.wordmark{top:30%}.wordmark strong{font-size:30px}.wordmark span{font-size:9px}.hand{top:51%}.panel{padding:5px 6px 7px}.spots,.controls{gap:4px}.spot{flex:1;font-size:12px}.spot b{width:36px;height:36px}.controls .outline{padding:8px}.seat i{width:26px;height:26px}.chips .chip{width:35px;height:35px}}
#notice{pointer-events:none;position:absolute;z-index:3;left:50%;top:46%;transform:translate(-50%,-50%);margin:0;opacity:0;white-space:nowrap;color:#fff3d9;background:#27231f;border:1px solid #bb9c67;border-radius:8px;padding:10px 18px;font:600 clamp(16px,3vw,24px) Georgia,serif}#notice{display:inline-flex;gap:.55em;align-items:center}
#notice[data-result=win]{background:#123b2b;border-color:#79c99c;color:#d9ffe6}
#notice[data-result=loss]{background:#492326;border-color:#d58b8f;color:#ffe0df}
#notice[data-result=even]{background:#30343a;border-color:#a4abb5;color:#eef1f6}
#notice .resultIcon{display:grid;place-items:center;width:1.25em;height:1.25em;border:1px solid currentColor;border-radius:50%;font:700 1em/1 system-ui}
#notice.show{animation:resultNotice 3s both}@keyframes resultNotice{0%,100%{opacity:0}12%,82%{opacity:1}}@media(prefers-reduced-motion:reduce){#notice.show{animation:none;opacity:1}}.actions button:disabled{opacity:.45}.actions button{min-width:0}
.seatName{display:block;max-width:13vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seatTotal{display:block;font-variant-numeric:tabular-nums;color:#fff}.spot b,#deal{font-variant-numeric:tabular-nums}.actionDock{display:grid;height:48px;margin-top:4px}.actionDock>*{grid-area:1/1}.actionDock [hidden]{display:none}.actionDock button{height:100%;margin:0!important;line-height:1.1}.actionDock .actions{align-items:stretch}.seatTotal{min-height:1.2em}.wallet{font-variant-numeric:tabular-nums}.status{min-height:2.4em;margin:8px 0}.panel button{-webkit-tap-highlight-color:transparent}.panel button:focus-visible{outline:2px solid #eacb8b;outline-offset:2px}
.spot{position:relative}.coinPile{position:absolute;top:20px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column-reverse;width:38px;pointer-events:none}.coinPile i{height:12px;border:2px dashed #e6d9bd;border-radius:50%;margin-top:-9px;box-shadow:0 1px 1px #15100d}.coinPile i:first-child{margin-top:0}.spot b{position:relative;text-shadow:0 1px 3px #000;background:transparent}.spot:has(.coinPile i) b{background:#1717137a}.controls .chip{background:var(--coin);box-shadow:none;color:white}.chip[aria-pressed=true]{outline:2px solid #ffe2a1;outline-offset:2px}.spot:disabled{cursor:default}.controls .chips{gap:6px}@media(max-width:540px){.controls{gap:4px}.controls .chips{gap:4px}.controls .chip{width:32px;height:32px;border-width:3px;padding:0}.controls .outline,#clear{font-size:13px;padding:7px 4px}.coinPile{width:32px;top:17px}}
#playerHands{display:flex;justify-content:center;gap:14px;text-align:center}#playerHands span{font-size:12px;color:#ffebbf}.card{position:relative}.drawCard,.turnCard{animation:cardArrival .42s ease-out var(--delay) both}.drawCard::after,.turnCard::after{content:'';position:absolute;inset:0;border:3px solid #eadbbf;border-radius:inherit;background:repeating-linear-gradient(45deg,transparent 0 3px,#d39c90 3px 4px),repeating-linear-gradient(-45deg,#722c3a 0 3px,#d39c90 3px 4px);animation:cardBack .42s steps(1,end) var(--delay) both}
@keyframes cardArrival{0%{transform:translate(var(--fly-x),var(--fly-y)) rotate(14deg) scale(.85)}52%{transform:translate(0,0) rotateY(0)}72%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}@keyframes cardBack{0%{opacity:1}72%,100%{opacity:0}}.card.back.drawCard{animation-name:holeArrival}@keyframes holeArrival{from{transform:translate(var(--fly-x),var(--fly-y)) rotate(14deg) scale(.85)}to{transform:translate(0,0)}}.card.back.drawCard::after{display:none}.actionDock .actions{gap:5px}.actionDock .actions button{padding-inline:5px}
#notice{max-width:94%;white-space:normal}.noticeNet{display:block;font:500 .82em/1.4 system-ui;font-variant-numeric:tabular-nums}.noticeBreakdown{display:grid;gap:2px;margin-top:.45em;padding-top:.35em;border-top:1px solid currentColor;font:500 max(13px,.68em)/1.25 system-ui}.noticeBreakdown>span{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.noticeBreakdown b{font-variant-numeric:tabular-nums}
button{transition:scale 150ms cubic-bezier(.2,.8,.3,1.3),filter 150ms ease}button:not(:disabled):active{scale:.95;filter:brightness(.82);transition-duration:40ms}#notice.bustCue{opacity:1;animation:bustIn .15s ease-out both}@keyframes bustIn{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){button{transition:none}button:not(:disabled):active{scale:1}#notice.bustCue{animation:none}}
#panel #hit{--tone:#146442;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
#panel #stand{--tone:#923e46;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E")}
#panel #doubleDown{--tone:#644099;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 7 6 7-6M5 12l7 6 7-6'/%3E%3C/svg%3E")}
#panel #split{--tone:#235a91;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20v-5L5 6m0 6V5h7m0 10 7-9m-7-1h7v7'/%3E%3C/svg%3E")}
#panel #insure{--tone:#13616a;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 3v6q0 5-8 9-8-4-8-9V6z'/%3E%3C/svg%3E")}
#panel #decline{--tone:#80502e;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E")}
#panel #deal{--tone:#755817;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h12v13H4zM8 4h12v13'/%3E%3C/svg%3E")}
#panel #double{--tone:#534781;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 6 6-6 6m9-12 6 6-6 6'/%3E%3C/svg%3E")}
#panel #half{--tone:#405e6c;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 6h.1M12 18h.1'/%3E%3C/svg%3E")}
#panel #clear{--tone:#475569;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 14h10l1-14'/%3E%3C/svg%3E")}
#panel .tableAction{background:var(--tone);color:#fff;border:1px solid #ffffff40;display:inline-flex;align-items:center;justify-content:center;gap:6px}#panel .tableAction[hidden]{display:none}
#panel .tableAction::before{content:'';width:17px;height:17px;flex:none;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}
#panel .tableAction:disabled{opacity:.48}#panel .tableAction.held{transform:translateY(2px) scale(.96);filter:brightness(1.24)}
@media(max-width:600px){#panel .actions .tableAction{flex-direction:column;gap:2px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#panel .tableAction.held{transform:none}}
#shoeCount{position:absolute;right:2%;top:7px;max-width:36%;color:#fff0cc;font:600 12px/1.2 Arial;text-align:right}.shoe.shuffling::before,.shoe.shuffling::after{content:'';position:absolute;inset:0;background:inherit;border:2px solid #eadbbf;animation:shufflePackets .46s ease-in-out 2 alternate}.shoe.shuffling::after{animation-direction:alternate-reverse;--spread:12px}@keyframes shufflePackets{0%,100%{transform:translate(0,0)}50%{transform:translate(var(--spread,-13px),-7px) rotate(10deg)}}@media(prefers-reduced-motion:reduce){.shoe.shuffling::before,.shoe.shuffling::after{animation:none}}
#doubleHint{display:block;min-height:1.2em;text-align:center;font-size:12px}.fundForm{display:grid;gap:12px;width:100%;max-width:850px;box-sizing:border-box}.fundForm h2{margin:0}.fundForm label{display:grid;gap:6px}.fundForm input,.fundForm select{box-sizing:border-box;width:100%;min-width:0;font-size:16px}.fundPresets{display:flex;flex-wrap:wrap;gap:8px}.fundPresets button{min-height:44px}.fundPresets button[aria-pressed=true]{border-color:#eacb8b;color:#eacb8b}.fundForm .primary{justify-self:start}@media(pointer:coarse){.fundForm:focus-within{margin-bottom:var(--keyboard-space,0px)}}
#chooseChip{display:inline-flex;align-items:center;gap:7px;min-height:40px}#chooseChip::before{content:'';height:19px;width:19px;border:2px dashed #e7d6ac;border-radius:50%;background:var(--coin)}#chipDialog{width:min(340px,92vw);max-height:85svh;overflow:auto;padding:18px}.chipHeading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.chipHeading h2{margin:0}.chipHeading button{font-size:23px;width:44px;height:44px}.chipGrid{display:grid;grid-template-columns:repeat(4,1fr);justify-items:center;gap:12px 4px}#chipDialog .chip{width:48px;height:48px;font:700 14px Arial,sans-serif;padding:0}@media(max-width:320px){.chipGrid{grid-template-columns:repeat(3,1fr)}}
#actionTip{width:min(360px,92vw);padding:22px}#actionTip h2{margin:0}#actionTip label,.tipSetting{display:flex;align-items:center;gap:8px;min-height:44px}.tipChoices{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.tipChoices button{min-height:44px}
#panel .autoChoice{outline:2px solid #f2d598;outline-offset:2px}#decisionClock{display:block;text-align:center;min-height:1.2em;font-size:14px;font-variant-numeric:tabular-nums;color:#f2d598}#panel .actionMessages{position:relative;height:3.2rem;flex:none}
#panel .actionMessages>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:3px 5px;line-height:1.3;overflow:auto;overflow-wrap:anywhere}
#panel .actionMessages>span[hidden]{visibility:hidden;pointer-events:none}
#status{height:3.2em;min-height:3.2em;line-height:1.4;overflow:auto}
#networkStatus:not([hidden]){position:fixed;z-index:40;left:50%;bottom:calc(12px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:9px;width:max-content;max-width:92vw;padding:10px 16px;border:1px solid #8c7956;border-radius:24px;background:#24211d;color:#fff1cf;box-shadow:0 3px 14px #0008;font-size:14px;pointer-events:none;animation:showNetwork .12s .15s both}#networkStatus::before{content:'';width:16px;height:16px;border:2px solid #796a50;border-top-color:#ffdfa2;border-radius:50%;animation:spinNetwork .8s linear infinite}@keyframes spinNetwork{to{transform:rotate(360deg)}}@keyframes showNetwork{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){#networkStatus::before{animation:none}}
@media (max-width:600px){
 .table{height:clamp(218px,calc(100svh - 420px),310px)}
 #panel{display:grid;grid-template-areas:"spots" "actions" "messages" "controls";row-gap:3px;margin-top:6px}
 #panel{grid-template-columns:minmax(0,1fr)}
 #panel>*{min-width:0}
 #panel .actionDock{grid-template-columns:minmax(0,1fr)}
 #panel .actionDock>*{min-width:0}
 #panel .actions:not([hidden]),#panel .spots{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
 #panel .spots{grid-area:spots}
 #panel .spot{width:100%;min-width:0}
 #panel .controls{flex-wrap:wrap}
 #panel .actionDock{grid-area:actions;height:46px;margin:0}
 #panel .actionMessages{grid-area:messages;height:2.05rem}
 #panel .controls{grid-area:controls;margin:0}
 #panel .controls>button{min-height:44px}
 #status{margin-top:4px}
}
.seatStreak{display:block;color:#f2d598;font-size:12px;line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums}.seat.sel{margin-top:-7px}


.portfolio-return { padding: 1rem 5vw; }
.portfolio-return a { color: inherit; }

.account-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem 4vw; }
.account-bar output { color: #e6c98e; font-size: .875rem; }
