
:root{color-scheme:dark;--bg:#080d1c;--panel:#10162a;--line:#29334c;--white:#f7f4fe;--light:#b9c4df;--muted:#a8a9c9;--pink:#ff6eb7;--mint:#66f4d1;--lime:#aaffcc;--gold:#ffcb81;--ink:#15152b;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--white);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 55% -5%,#25173b 0,#080d1c 58%);min-height:100dvh}h1,h2,p,ol,ul{margin:0}button,select{font:inherit}button:not(:disabled),summary,select{cursor:pointer}button:focus-visible,summary:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{opacity:.42;cursor:default}.wrap{width:min(1160px,calc(100% - 52px));margin-inline:auto}.label,.head-mark,.hero-code,.brand,.counter,.badge,.shoe,.chip,.node,.hand-head span,.hand-foot,footer{font-family:ui-monospace,"JetBrains Mono",Menlo,monospace}.label{font-size:.69rem;color:var(--mint);letter-spacing:.13em;font-weight:800}.top{border-bottom:1px solid #2d2343;background:#101023}.top-inner{min-height:65px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{background:none;border:0;color:white;display:inline-flex;align-items:center;gap:.37rem;padding:0;min-height:44px;font-weight:900;letter-spacing:.035em;white-space:nowrap}.brand span{display:grid;place-items:center;background:#fc75b7;color:#251329;border-radius:7px;width:29px;height:32px;margin-right:.28rem;box-shadow:0 0 20px #ff62b93c;font-size:1.2rem}.brand b{color:var(--pink)}.meters{display:flex;align-items:center;gap:1rem}.counter{display:grid;gap:0;text-align:right;line-height:1.2;white-space:nowrap}.counter b{font-size:1.16rem;color:#fff}.counter .label{font-size:.58rem;color:var(--light)}.head-mark{color:var(--muted);font-size:.65rem;letter-spacing:.09em}.sound,.text-button{border:1px solid #3d3d60;background:#1c1e36;color:#e4e1f8;border-radius:7px;min-height:44px;padding:.32rem .65rem;font-size:.78rem;font-weight:650;white-space:nowrap}.sound[aria-pressed=true]{color:var(--mint)}.hero{isolation:isolate;overflow:hidden;position:relative;border:1px solid #54365e;border-radius:16px;margin:1.5rem 0 1.15rem;background:linear-gradient(138deg,#19162d 0%,#28143a 45%,#663356 83%,#af5469 100%);min-height:211px;display:flex;align-items:center}.hero.compact{min-height:155px}.hero-text{z-index:2;padding:1.65rem 2.1rem}.hero .label{color:#ffc4e3;text-shadow:1px 2px 4px #271431}.hero .label i{display:inline-block;background:var(--pink);border-radius:50%;height:6px;width:6px;margin-right:.32rem;vertical-align:.1em}.hero h1{font-size:clamp(2.75rem,7vw,5rem);line-height:.99;text-transform:uppercase;font-weight:950;letter-spacing:-.077em;font-family:"Arial Black",Impact,system-ui,sans-serif;text-shadow:3px 4px 0 #551c51,0 0 27px #ff83c345;margin:.3rem 0 .5rem}.hero h1 em{color:#ff9ccc;font-style:italic}.hero.compact h1{font-size:clamp(2.25rem,5.5vw,3.85rem)}.hero-text>p:last-child{color:#f3dffa;font-size:.99rem;text-shadow:1px 2px 4px #271431}.hero-code{position:absolute;z-index:2;bottom:9px;right:15px;font-size:.6rem;letter-spacing:.12em;color:#ffc9dc;text-align:right}.sun{position:absolute;z-index:-1;width:174px;aspect-ratio:1;right:15%;top:12px;border-radius:50%;background:linear-gradient(#ffdf95,#ff9d92 55%,#ff62b7);mask-image:linear-gradient(black 53%,transparent 53% 56%,black 56% 64%,transparent 64% 68%,black 68% 75%,transparent 75% 80%,black 80% 87%,transparent 87% 93%,black 93%);box-shadow:0 0 32px #fec59655}.skyline{position:absolute;left:0;right:0;bottom:0;height:100%;z-index:0;background:url('/miami.svg') no-repeat right bottom;background-size:auto 100%;pointer-events:none}.grid{position:absolute;inset:0;z-index:-1;opacity:.4;background:repeating-linear-gradient(0deg,transparent 0 18px,#fcc7e52c 18px 19px),repeating-linear-gradient(90deg,transparent 0 18px,#fcc7e52c 18px 19px);mask-image:linear-gradient(90deg,transparent,transparent 23%,black)}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,312px);gap:1.13rem;align-items:start}.table-wrap,.rail-card{border:1px solid var(--line);border-radius:13px;background:var(--panel);overflow:hidden}.table-head,.deck-head{display:flex;justify-content:space-between;align-items:center;gap:.7rem}.table-head{padding:.9rem 1.2rem}.table-head h2,.rail-card h2{font-size:1.42rem;line-height:1.2;letter-spacing:-.025em;margin-top:.12rem}.shoe,.badge{border:1px solid #425068;background:#1a223b;border-radius:6px;padding:.27rem .48rem;color:var(--mint);font-size:.72rem;font-weight:700;white-space:nowrap}.shoe{font-size:1.04rem;color:#fff}.shoe small{color:var(--muted);font-size:.63rem}.felt{isolation:isolate;position:relative;min-height:310px;display:grid;gap:.58rem;background:radial-gradient(ellipse at 52% 43%,#204a4e 0%,#15303c 53%,#101e2c 100%);border-top:1px solid #365568;border-bottom:1px solid #365568;padding:1rem 1.2rem 1.1rem}.felt-lines{position:absolute;inset:14px;z-index:-1;border:1px solid #76f2cf24;border-radius:40% 40% 30% 30% / 36% 36% 26% 26%;box-shadow:0 0 0 7px #75f2ce08,inset 0 0 0 8px #75f2ce0a;pointer-events:none}.row-label{display:flex;align-items:center;gap:.45rem;min-height:26px;margin-bottom:.36rem}.dealer{display:grid;justify-items:center}.cards{display:flex;align-items:center;gap:.33rem;min-width:0;flex-wrap:wrap}.playing{flex:none;width:51px;height:71px;color:#21203a;background:linear-gradient(150deg,#fffdf4,#e3e3ed);border:1px solid #f7fff7;box-shadow:0 4px 6px #05071773;border-radius:6px;position:relative;display:grid;place-items:center;line-height:1}.playing.red{color:#9f1e57}.playing b{position:absolute;top:5px;left:5px;font:800 .83rem/.9 ui-monospace,monospace}.playing small{font-size:.62rem;display:block;margin-top:2px}.playing b.corner{bottom:5px;right:5px;left:auto;top:auto;transform:rotate(180deg);font-size:.63rem}.playing strong{font-size:1.9rem;transform:translate(.08em,.07em)}.playing.back{color:#ff93c8;border-color:#8e669d;background:repeating-linear-gradient(135deg,#ffffff0d 0 1px,transparent 1px 6px),linear-gradient(145deg,#2e3963,#3b204d);box-shadow:inset 0 0 0 4px #221d43}.playing.back span{font-size:1.45rem;text-shadow:0 0 10px #f16bad}.dealer-cards>.playing{width:54px;height:74px}.signal{align-self:center;min-height:54px;display:grid;justify-items:center;align-content:center;text-align:center;padding:.25rem .4rem;color:#f3fffe;font-size:.93rem}.signal span{color:#b9d7d6;font-size:.78rem}.signal .net{font:800 .85rem ui-monospace,monospace;margin-top:.16rem}.positive{color:var(--lime)!important}.negative{color:#ff99b7!important}.empty-player{border:1px dashed #82ccc182;border-radius:9px;display:grid;justify-items:center;padding:.68rem;color:#b9d7d6;background:#132c346e;font-size:.77rem}.empty-player div{font-size:1.28rem;color:#b3ddd7;letter-spacing:.26rem}.empty-player span{color:var(--pink)}.hand-track{display:flex;align-items:stretch;gap:.5rem;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 7px}.hand{min-width:142px;max-width:275px;flex:0 0 auto;display:grid;align-content:start;border:1px solid #497180;background:#142534;padding:.46rem;border-radius:8px;box-shadow:0 3px 6px #08151d50}.hand.active{border-color:var(--mint);box-shadow:inset 0 0 0 1px var(--mint),0 0 10px #77ffd52c;background:#192f3e}.hand-head,.hand-foot{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.hand-head{margin-bottom:.38rem}.hand-head span,.hand-foot{font-size:.59rem;color:#b5d0d6;white-space:nowrap}.hand-head b{font-size:.82rem;color:var(--mint)}.hand-foot{margin-top:.38rem}.hand-foot b{color:var(--gold)}.action-panel{padding:.88rem 1.1rem}.controls{display:grid;gap:.45rem}.action-grid{grid-template-columns:repeat(4,1fr)}.start{grid-template-columns:repeat(2,minmax(0,1fr))}.start:has(>button:only-child){grid-template-columns:1fr}.key{color:var(--white);background:linear-gradient(#263044,#182135);border:1px solid #4c5b78;border-radius:8px;min-height:48px;padding:.52rem .72rem;font-weight:800;line-height:1.21;text-align:center}.key:not(:disabled):hover{filter:brightness(1.16)}.key small{font:650 .68rem ui-monospace,monospace;display:block;margin-top:.28rem}.key.primary{background:linear-gradient(160deg,#ffa1cd,#fc69b4);border-color:#ffbbe1;color:#291128;text-shadow:none;box-shadow:0 2px 10px #ef53aa31}.key.tertiary{border-color:#568b8a;color:#9effe9;background:linear-gradient(#213544,#162b38)}.key span{margin-left:.2rem}.aside-note{font-size:.8rem;color:var(--light);line-height:1.45;margin-top:.52rem}.bet-bar{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.bet-bar>div:first-child{display:grid;line-height:1.12}.bet-bar b{font-size:1.22rem}.bet-bar small{font-size:.76rem;color:var(--light)}.bet-bar .key{flex:1}.chips{display:flex;gap:.3rem;flex-wrap:wrap}.chip{border:1px solid #537b80;border-radius:22px;background:#172f3e;color:#c3f2e9;min-height:44px;min-width:44px;padding:.31rem .55rem;font-size:.73rem;font-weight:800}.chip[aria-pressed=true]{background:#a0f9dc;color:#142a34;border-color:#b5ffe9}.rail{display:grid;gap:.75rem}.rail-card{padding:.95rem}.ladder{list-style:none;padding:0;display:grid;gap:.35rem;margin:.63rem 0}.ladder li{display:flex;align-items:center;gap:.6rem;padding:.42rem;border-radius:7px;border:1px solid transparent}.ladder li.current{background:#222842;border-color:#4c5172}.ladder li.current .node{background:var(--mint);color:#143039}.node{font-size:.67rem;font-weight:800;display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#29324c;color:#c0c8e4}.ladder strong{font-size:.89rem;display:block}.ladder small{font-size:.72rem;color:var(--muted);display:block}.progress-row{display:flex;justify-content:space-between;gap:.4rem;font-size:.75rem;color:var(--light)}.progress-row b{color:var(--mint)}progress{display:block;width:100%;height:8px;margin-top:.4rem;appearance:none;border:none;border-radius:6px;background:#2a2e46;overflow:hidden}progress::-webkit-progress-bar{background:#2a2e46}progress::-webkit-progress-value{background:var(--mint)}progress::-moz-progress-bar{background:var(--mint)}.counts{display:grid;grid-template-columns:repeat(5,1fr);gap:.3rem;margin:.6rem 0}.counts span{display:grid;justify-items:center;background:#22243c;border:1px solid #414560;border-radius:6px;padding:.24rem}.counts b{color:#ff9cce;font:800 .86rem ui-monospace,monospace}.counts small{color:var(--muted);font-size:.69rem}.rules{font-size:.84rem;color:var(--light)}.rules summary{font-weight:800;color:var(--white);min-height:32px}.rules ul{padding-left:1.1rem}.rules li{margin:.35rem 0}.swaps{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:.46rem;margin:.5rem 0}.swaps label{display:grid;font-size:.73rem;color:var(--light);gap:.18rem}.swaps select{font-size:1rem;padding:.3rem;border:1px solid #526781;border-radius:7px;min-height:44px;background:#172237;color:white}.deck form button{width:100%}.announce:not(:empty),.confirmation,.lobby-tools{border:1px solid #4b4968;background:#211b37;color:#fbebf9;border-radius:8px;padding:.6rem .85rem;font-size:.86rem;margin:.6rem 0}.lobby-tools,.confirmation{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.lobby-tools span,.confirmation p{margin-right:auto}footer{color:#a5a4c3;font-size:.65rem;letter-spacing:.11em;padding:1rem 0 1.6rem}footer span{color:var(--pink);margin:0 .33rem}
@media(max-width:820px){.wrap{width:calc(100% - 24px)}.layout{grid-template-columns:minmax(0,1fr)}.rail{grid-template-columns:repeat(2,minmax(0,1fr))}.rules{grid-column:1/-1}.hero{min-height:165px;margin-top:.75rem}.hero-text{padding:1.15rem}.sun{width:145px;right:12%}.hero.compact{min-height:112px}.hero.compact .sun{width:110px;top:0}}
@media(max-width:520px){.optional,.head-mark,.hero-code{display:none}.top-inner{min-height:56px;gap:.5rem}.brand{font-size:.75rem;gap:.22rem}.brand span{width:23px;height:27px;margin-right:.14rem}.meters{gap:.45rem}.sound{font-size:.67rem;padding-inline:.45rem}.counter b{font-size:.95rem}.counter .label{font-size:.49rem}.hero{border-radius:10px}.hero-text{padding:.78rem}.hero h1{font-size:clamp(2rem,10vw,3.2rem);text-shadow:2px 2px #551c51,0 0 20px #ff83c34f}.hero.compact h1{font-size:clamp(1.85rem,8vw,2.7rem)}.hero-text>p:last-child{font-size:.83rem;max-width:25ch}.hero .label{font-size:.59rem}.skyline{opacity:.75;background-position:right -48px bottom}.sun{right:6%;opacity:.85}.table-head{padding:.65rem .7rem}.table-head h2{font-size:1.18rem}.table-head .label{font-size:.6rem}.felt{padding:.55rem .66rem .65rem;min-height:263px}.felt-lines{inset:9px}.action-panel{padding:.65rem}.action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.26rem}.key{min-height:48px;padding:.43rem .24rem;font-size:.82rem}.key small{font-size:.55rem}.aside-note{font-size:.74rem}.rail{grid-template-columns:minmax(0,1fr)}.playing{width:43px;height:61px}.playing strong{font-size:1.46rem}.dealer-cards>.playing{width:46px;height:63px}.hand{min-width:113px;padding:.35rem}.signal{font-size:.84rem}.hand .cards{gap:.2rem}.hand-foot{font-size:.53rem}.row-label .label{font-size:.61rem}.row-label .badge{font-size:.61rem}.bet-bar{gap:.45rem}.shoe small{font-size:.56rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}


.deck-trigger{min-height:44px;cursor:pointer;text-align:center}.deck-trigger:hover{border-color:var(--mint);box-shadow:0 0 11px #66f4d139}.deck-trigger small{pointer-events:none}#deck-view{width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;position:fixed;inset:0;margin:auto;border:1px solid #ad6ca4;border-radius:14px;background:#15162b;color:var(--white);box-shadow:0 16px 65px #050512d9,0 0 33px #fc69b437}#deck-view[open]{display:flex;flex-direction:column}#deck-view::backdrop{background:#080914c7;backdrop-filter:blur(3px)}.deck-dialog-head{padding:.85rem 1.05rem;display:flex;justify-content:space-between;align-items:center;gap:.6rem;background:linear-gradient(115deg,#241b39,#342043);border-bottom:1px solid #4d3c61}.deck-dialog-head h2{line-height:1.1;font-size:clamp(1.25rem,4vw,1.8rem);margin-top:.2rem}.deck-dismiss{min-height:44px}.deck-dialog-scroll{overflow:auto;overscroll-behavior:contain;padding:.85rem 1.05rem 1.05rem;color:var(--light);font-size:.85rem}.deck-dialog-scroll h3{font-size:.9rem;color:var(--white);margin:.75rem 0 .4rem}.deck-dialog-scroll h3 small{color:var(--mint);margin-left:.22rem}.deck-warning{color:var(--gold);margin-top:.4rem}.deck-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:.4rem}.deck-tile{display:grid;justify-items:center;align-content:start;gap:.22rem;padding:.23rem .15rem;border:1px solid transparent;border-radius:8px;min-width:0}.deck-tile .playing{width:min(100%,48px);height:auto;aspect-ratio:5/7}.deck-tile>span{font:650 .62rem ui-monospace,monospace;color:var(--light)}.deck-tile.next-card{border-color:var(--mint);background:#254250}.deck-tile.next-card>span{color:var(--mint)}.deck-tile.seen .playing{opacity:.76}.deck-tile.seen>span{color:#c2b6d6}
@media(max-width:790px){.deck-grid{grid-template-columns:repeat(9,minmax(0,1fr))}}@media(max-width:550px){.deck-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.25rem}.deck-dialog-head,.deck-dialog-scroll{padding:.65rem}.deck-tile{padding:.16rem .1rem}.deck-tile .playing b{top:3px;left:3px;font-size:.68rem}.deck-tile .playing b.corner{top:auto;left:auto;bottom:3px;right:3px;font-size:.54rem}.deck-tile .playing strong{font-size:1.25rem}.deck-tile .playing small{font-size:.47rem}}

