:root{
  --felt0:#13774f; --feltp:#0f6644; --felt:#0d5a3c; --felt2:#0a4630; --felt3:#073524; --gold:#d8b45a; --gold2:#f1d48a;
  --ink:#f4f1e8; --muted:#a9c3b5; --red:#c8323c; --card:#fbfaf6; --win:#59d68c; --lose:#ff7b7b; --push:#e8d58a;
  --panel:#08281c; --panel2:#0c3324; --line:rgba(216,180,90,.28);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{margin:0;height:100%;overflow:hidden;background:var(--felt3);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;overscroll-behavior:none}
body{display:flex;justify-content:center}
#app{width:100%;max-width:560px;height:100%;overflow:hidden;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 18%,var(--felt0) 0%,var(--felt) 38%,var(--felt2) 75%,var(--felt3) 100%);position:relative;user-select:none;-webkit-user-select:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
button:disabled{opacity:.35;cursor:default}
button{touch-action:manipulation}
:focus-visible{outline:2.5px solid #ffe08a;outline-offset:2px;border-radius:10px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* top bar */
.top{display:flex;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;border-bottom:1px solid var(--line);background:rgba(0,0,0,.28);position:relative;z-index:20;flex:none}
.brand{font-family:Georgia,"Times New Roman",serif;font-size:20px;letter-spacing:.5px;color:var(--gold2);font-style:italic;white-space:nowrap;text-align:left;line-height:1.05;display:flex;flex-direction:column}
.brand small{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-style:normal;font-size:8.5px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:#c9d9cf;margin-top:2px}
.bank{margin-left:auto;text-align:right;line-height:1.05}
.bank .lbl{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.bank .amt{font-size:18px;font-weight:700;color:var(--gold2);font-variant-numeric:tabular-nums}
.icons{display:flex;gap:2px}
.ibtn{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:17px;position:relative}
.ibtn:active{background:rgba(255,255,255,.08)}
.dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#ff5d5d;box-shadow:0 0 0 2px var(--felt2)}
/* table */
.table{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:8px 8px 6px;gap:6px;position:relative;isolation:isolate}
/* ---- heat: win-streak effects (shared by every game) ---- */
.table::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.2s;
  background:radial-gradient(ellipse 95% 55% at 50% 100%,rgba(255,128,32,.42),transparent 72%),radial-gradient(ellipse 70% 40% at 50% 0%,rgba(255,170,60,.16),transparent 70%)}
#app[data-heat="1"] .table::before{opacity:.45}
#app[data-heat="2"] .table::before{opacity:.7;animation:flicker 2.6s ease-in-out infinite}
#app[data-heat="3"] .table::before{opacity:.9;animation:flicker 1.8s ease-in-out infinite}
#app[data-heat="4"] .table::before{opacity:1;animation:flicker 1.2s ease-in-out infinite;filter:hue-rotate(-12deg) saturate(1.3)}
@keyframes flicker{0%,100%{transform:scaleY(1)}35%{transform:scaleY(1.04)}60%{transform:scaleY(.97)}}
#app[data-heat="3"] .panel,#app[data-heat="4"] .panel{border-top-color:#ff9a3c}
#embers{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.heat{position:absolute;left:10px;top:6px;z-index:3;display:flex;flex-direction:column;align-items:center;pointer-events:none;opacity:0;transform:translateY(-6px);transition:opacity .45s,transform .45s cubic-bezier(.3,1.4,.5,1)}
.heat.on{opacity:1;transform:none}
.heat .fl{display:flex;align-items:flex-end;gap:3px;line-height:1}
.heat svg{width:13px;height:18px;margin-bottom:3px;filter:drop-shadow(0 0 5px rgba(255,130,30,.7))}
.heat .n{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700;font-size:27px;letter-spacing:-.5px;font-variant-numeric:lining-nums;
  background:linear-gradient(#fff1c2 10%,#ffb54d 60%,#ff7a2b);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 0 rgba(40,12,0,.6)) drop-shadow(0 0 8px rgba(255,130,30,.45))}
.heat .lb{margin-top:2px;padding-top:3px;border-top:1px solid rgba(255,190,110,.45);font-size:8px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#ffd69a;white-space:nowrap}
.heat[data-l="3"] svg,.heat[data-l="4"] svg{animation:burn .9s ease-in-out infinite alternate}
.heat[data-l="4"] .n{background-image:linear-gradient(#fff6d8 10%,#ff8a3d 55%,#ff3d5a)}
@keyframes burn{from{transform:scale(1) rotate(-3deg)}to{transform:scale(1.12) rotate(3deg)}}
.heat.pulse .fl{animation:hpulse .5s ease}
@keyframes hpulse{40%{transform:scale(1.25)}}
.heat.cool{transition:opacity 1.6s,transform 1.6s;transform:translateY(-8px)}
.banner{position:fixed;left:50%;top:34%;z-index:70;transform:translate(-50%,-50%);pointer-events:none;text-align:center;width:min(92vw,440px);animation:bnin 2.3s cubic-bezier(.2,.9,.3,1) forwards}
.banner b{display:block;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700;font-size:46px;line-height:1.05;letter-spacing:.5px;
  background:linear-gradient(100deg,#ffe7a3 0%,#ffb347 35%,#fff6d6 50%,#ff8a2b 65%,#ffe7a3 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 0 rgba(60,20,0,.55)) drop-shadow(0 0 18px rgba(255,130,30,.55));animation:shine 1.4s .2s linear}
.banner span{display:inline-block;margin-top:6px;font-size:12px;font-weight:800;letter-spacing:2.5px;text-transform:uppercase;color:#2a1000;background:linear-gradient(#ffd27a,#ff9a3c);padding:3px 12px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.banner.gold b{background-image:linear-gradient(100deg,#fff6d6 0%,#f1d48a 30%,#ffffff 50%,#d8b45a 70%,#fff6d6 100%)}
.banner.gold span{background:linear-gradient(#f6dc96,#c79b3c)}
.big.count{display:inline-block;animation:pop .35s ease}
@keyframes pop{50%{transform:scale(1.12)}}
.banner.l4 b{font-size:50px;background-image:linear-gradient(100deg,#fff1b8 0%,#ff6a3d 35%,#fffbe8 50%,#ff3d6a 65%,#fff1b8 100%)}
@keyframes bnin{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}20%{transform:translate(-50%,-50%) scale(1)}78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-62%) scale(.96)}}
@keyframes shine{from{background-position:100% 0}to{background-position:-50% 0}}
.streakpill{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#2a1000;background:linear-gradient(#ffd27a,#ff9a3c);padding:2px 10px;border-radius:999px}
.streakpill.cold{background:rgba(255,255,255,.08);color:var(--muted)}
@media (prefers-reduced-motion:reduce){.table::before,.heat svg,.heat.pulse .fl{animation:none!important}.banner{animation:bnfade 2.3s forwards}.banner b{animation:none}}
@keyframes bnfade{0%,100%{opacity:0}10%,80%{opacity:1}}
.dealer{display:flex;flex-direction:column;align-items:center;min-height:118px;position:relative;flex:none}
.dealer .dtot{height:22px;display:flex;align-items:center;justify-content:center}
.dealer .hint{font-family:Georgia,serif;font-style:italic;font-size:13px;color:rgba(241,212,138,.8)}
/* the dealer's spot is always reserved: printed outlines where the cards will land, so nothing shifts on the deal */
.card.slot{background:transparent;box-shadow:none;border:1.5px dashed rgba(216,180,90,.28)}
.cards .card.slot+.card.slot{margin-left:-30px;transform:translateY(0)}
.arc{font-family:Georgia,serif;font-size:10.5px;letter-spacing:2px;line-height:1.35;color:rgba(241,212,138,.82);text-transform:uppercase;text-align:center;margin:2px 0 6px;padding:0 48px;text-wrap:balance}
.rules{font-size:10px;color:rgba(169,195,181,.8);text-align:center;margin-top:-2px}
.shoe{position:absolute;right:4px;top:0;width:42px;text-align:center;font-size:9px;color:var(--muted)}
.shoebar{height:56px;width:14px;margin:0 auto 3px;border:1px solid var(--line);border-radius:3px;position:relative;overflow:hidden;background:rgba(0,0,0,.25)}
.shoebar i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#e9d9a5,#b99a4e)}
.shoebar b{position:absolute;left:-2px;right:-2px;height:2px;background:#ff5d5d}
.cards{display:flex;justify-content:center;min-height:81px;position:relative}
.cards .card+.card{margin-left:-24px}
.total{display:inline-block;margin-top:4px;font-size:15px;font-weight:800;line-height:22px;padding:0 9px;border-radius:11px;background:#15120e;color:#fff;box-shadow:0 0 0 1.5px rgba(241,212,138,.7),0 2px 5px rgba(0,0,0,.55);font-variant-numeric:tabular-nums}
.total.bust{background:#c8323c;color:#fff;box-shadow:0 0 0 1.5px #ff9a9a,0 2px 5px rgba(0,0,0,.55)}
.total.bj{background:linear-gradient(#f6dc96,#c79b3c);color:#2a1d00;box-shadow:0 0 0 1.5px #fff3c4,0 2px 5px rgba(0,0,0,.55)}
/* a hand = cards with their total on a card-colored tab; its bet = chips + gold amount underneath */
.cardwrap{position:relative;width:100%;padding-bottom:12px}
.hv{position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:2;min-width:32px;text-align:center;font-size:15px;font-weight:800;line-height:22px;padding:0 9px;border-radius:11px;
  background:#15120e;color:#fff;box-shadow:0 0 0 1.5px rgba(241,212,138,.7),0 2px 5px rgba(0,0,0,.55);font-variant-numeric:tabular-nums;white-space:nowrap}
.hv.bust{background:#c8323c;color:#fff;box-shadow:0 0 0 1.5px #ff9a9a,0 2px 5px rgba(0,0,0,.55)}
.hv.bj{background:linear-gradient(#f6dc96,#c79b3c);color:#2a1d00;box-shadow:0 0 0 1.5px #fff3c4,0 2px 5px rgba(0,0,0,.55)}
.hbet{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:800;color:var(--gold2);font-variant-numeric:tabular-nums;white-space:nowrap}
.hbet em.fr{color:#062a1b;background:#7fe0a8;margin-left:2px}
.hbet em{font-style:normal;font-size:8.5px;letter-spacing:.6px;color:#2a1d00;background:var(--gold2);border-radius:4px;padding:0 3px}
.hands4 .cardwrap{padding-bottom:8px}
.hands4 .hv{font-size:12.5px;line-height:18px;padding:0 6px;min-width:24px}
.hands4 .hbet{font-size:10px;gap:3px}
/* cards */
.card{width:57px;height:81px;border-radius:6px;background:var(--card);color:#1b1b1b;position:relative;box-shadow:0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px rgba(0,0,0,.08);flex:none}
.card.red{color:var(--red)}
.card .r{position:absolute;top:3px;left:4px;font-size:16.5px;font-weight:800;line-height:1;letter-spacing:-.5px}
.card .s1{position:absolute;top:21px;left:4px;font-size:13px;line-height:1}
.card .s2{position:absolute;right:5px;bottom:3px;font-size:28px;line-height:1}
.card.back{background:repeating-linear-gradient(45deg,#7b1e26 0 4px,#8f2730 4px 8px);border:3px solid var(--card)}
.card.back:after{content:"";position:absolute;inset:4px;border:1px solid rgba(241,212,138,.6);border-radius:3px}
.card.sm{width:44px;height:63px;border-radius:5px}
.card.sm .r{font-size:13.5px;top:2px;left:3px}
.card.sm .s1{top:17px;left:3px;font-size:11px}
.card.sm .s2{font-size:21px;right:4px;bottom:2px}
.card.xs{width:35px;height:50px;border-radius:4px}
.card.xs .r{font-size:12px;top:2px;left:2px}
.card.xs .s1{display:none}
.card.xs .s2{font-size:16.5px;right:3px;bottom:2px}
.deal-in{animation:dealIn .32s cubic-bezier(.2,.8,.3,1) both}
@keyframes dealIn{from{transform:translate(60px,-120px) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
.flip{animation:flip .35s ease both}
@keyframes flip{0%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}
/* seats */
.seats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;align-items:start;flex:none}
/* during play only the seats in action are shown, and they share the width */
.seats.n1{grid-template-columns:minmax(0,330px);justify-content:center}
.seats.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.seats.grow .seat{animation:seatgrow .32s cubic-bezier(.2,.8,.3,1)}
@keyframes seatgrow{from{opacity:.35;transform:scale(.97)}}
.seat{border:1px dashed rgba(216,180,90,.25);border-radius:14px;padding:6px 3px 8px;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;transition:border-color .2s,background .2s}
.seat.sel{border:1.5px solid var(--gold);background:rgba(216,180,90,.06)}
.seat.empty{opacity:.75}
.seatlbl{font-size:9.5px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.hand{display:flex;flex-direction:column;align-items:center;padding:3px 3px 4px;border-radius:10px;border:1.5px solid transparent;width:100%}
.hand.active{border-color:var(--gold2);background:rgba(241,212,138,.10);box-shadow:0 0 14px rgba(241,212,138,.25)}
.hand .cards{min-height:0;width:100%}
/* long hands squeeze their overlap to fit the seat (--n = card count) */
.hand .cards.lg .card+.card{margin-left:min(-33px,calc((100% - 57px)/(var(--n) - 1) - 57px))}
.hand .cards.sm .card+.card{margin-left:min(-26px,calc((100% - 44px)/(var(--n) - 1) - 44px))}
.hand .cards.xs .card+.card{margin-left:min(-22px,calc((100% - 35px)/(var(--n) - 1) - 35px))}
.hands4.one{grid-template-columns:1fr}
.hands4{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:100%}
.hands4 .hand{padding:3px 1px 3px;min-width:0}
.hands4 .hrow{margin-top:2px;gap:2px}
.hands4 .total{font-size:11px;padding:1px 6px;margin-top:0}
.hands4 .res{font-size:10px}
.hands4 .res{padding:1px 4px;letter-spacing:0}
.hrow{display:flex;gap:4px;align-items:center;margin-top:3px;flex-wrap:wrap;justify-content:center}
/* chips: one look everywhere (rack, betting circles, seats, hands) */
.pchip{--c:#1e8449;--t:#fff;width:var(--d,26px);height:var(--d,26px);border-radius:50%;flex:none;display:grid;place-items:center;color:var(--t);
  background:radial-gradient(circle,var(--c) 0 49%,rgba(255,255,255,.55) 50% 53%,var(--c) 54% 63%,transparent 64%),repeating-conic-gradient(from 7.5deg,#f6f1e2 0 15deg,var(--c) 15deg 45deg);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25),0 1px 2px rgba(0,0,0,.55)}
.stack{position:relative;display:block;flex:none}
.stack .pchip{position:absolute;left:0}
.stack .pchip+.pchip{box-shadow:inset 0 0 0 1px rgba(0,0,0,.25),0 1px 1px rgba(0,0,0,.6)}
.drop{animation:drop .28s cubic-bezier(.3,1.4,.5,1) both}
@keyframes drop{from{transform:translateY(-16px) scale(1.12);opacity:0}}
.bamt{display:inline-block;font-size:11px;font-weight:800;color:#fff;background:rgba(0,0,0,.55);border-radius:8px;padding:1px 6px;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap}
.chipamt{font-size:11px;font-weight:700;color:var(--gold2);font-variant-numeric:tabular-nums}
.res{font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:8px;letter-spacing:.3px}
.res.win{background:rgba(89,214,140,.2);color:var(--win)}
.res.lose{background:rgba(255,123,123,.15);color:var(--lose)}
.res.push{background:rgba(232,213,138,.15);color:var(--push)}
.sring{width:50px;height:50px;border-radius:50%;margin-top:2px;border:1.5px solid rgba(216,180,90,.5);box-shadow:inset 0 0 0 3px rgba(0,0,0,.08),inset 0 0 0 4px rgba(216,180,90,.22);display:grid;place-items:center;font-family:Georgia,serif;font-size:10px;letter-spacing:1.5px;color:rgba(241,212,138,.55)}
.sring .bamt{margin-top:-4px;position:relative;z-index:1}
.sidetags{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:2px}
.stag{font-size:9px;padding:1px 5px;border-radius:7px;background:rgba(0,0,0,.3);color:var(--muted);white-space:nowrap}
.stag.w{background:rgba(89,214,140,.22);color:var(--win);font-weight:700}
.stag.l{opacity:.8;text-decoration:line-through}
/* panel */
.panel{background:linear-gradient(color-mix(in srgb,var(--felt3) 92%,#000 40%),color-mix(in srgb,var(--felt3) 70%,#000));border-top:1px solid var(--line);padding:9px 10px calc(env(safe-area-inset-bottom) + 8px);position:relative;z-index:15;flex:none}
.panel.felt{background:radial-gradient(ellipse 120% 90% at 50% 0%,var(--feltp) 0%,var(--felt2) 55%,var(--felt3) 100%);border-top:2px solid rgba(216,180,90,.55);box-shadow:0 -1px 0 rgba(0,0,0,.4)}
.tabs{display:flex;padding:3px;margin-bottom:8px;border-radius:999px;background:rgba(0,0,0,.28);box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
.tab{flex:1;padding:4px 4px;border-radius:999px;font-size:12px;text-align:center;color:var(--muted);display:flex;justify-content:center;align-items:baseline;gap:5px}
.tab.on{background:linear-gradient(#f1d48a,#c79b3c);color:#2a1d00;font-weight:700}
.tab small{font-size:10.5px;opacity:.8;font-variant-numeric:tabular-nums}
.presets{display:flex;gap:5px;margin-bottom:8px;align-items:center}
.seatpick{display:flex;gap:3px;padding:2px;border-radius:999px;background:rgba(0,0,0,.28);margin-right:2px;flex:none}
.seatpick button{width:32px;height:32px;border-radius:50%;font-size:12px;font-weight:800;color:var(--muted);position:relative}
.seatpick button.on{background:linear-gradient(#f1d48a,#c79b3c);color:#2a1d00}
.seatpick button.has:not(.on):after{content:"";position:absolute;right:2px;top:2px;width:6px;height:6px;border-radius:50%;background:var(--gold2)}
.preset{flex:1;min-width:0;padding:8px 4px;border-radius:999px;border:1px solid rgba(216,180,90,.35);font-size:11.5px;font-weight:700;white-space:nowrap;color:var(--ink)}
.preset small{font-size:9.5px;font-weight:500;color:var(--muted);margin-left:3px}
.preset:active{background:rgba(255,255,255,.1)}
.preset.on{border-color:var(--gold2);background:rgba(216,180,90,.18);color:var(--gold2)}
/* ---- lobby: pick a table ---- */
#app.inlobby .table,#app.inlobby .panel{display:none}
.lobby{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px max(16px,env(safe-area-inset-left,0px)) 22px;display:flex;flex-direction:column;gap:12px}
.lobby .hero h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:normal;font-size:30px;color:var(--gold2);text-wrap:balance}
.lobby .hero p{margin:4px 0 0;font-size:13px;line-height:1.4;color:#c9d9cf;max-width:34em}
.lobby .sect{font-size:10.5px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-top:6px}
.tcard{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 12px 12px 10px;border-radius:16px;
  background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(23,134,87,.55),rgba(7,53,36,.35) 70%);border:1px solid rgba(216,180,90,.32);box-shadow:0 6px 16px rgba(0,0,0,.25)}
.tcard:active{transform:scale(.99)}
.tcard.cont{border-color:var(--gold2);background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(216,180,90,.22),rgba(7,53,36,.35) 70%)}
.tcard .art{position:relative;flex:none;width:64px;height:58px}
.tcard .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tcard .nm{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:20px;color:var(--gold2);line-height:1.1}
.tcard .hk{font-size:12.5px;line-height:1.35;color:#d9e6de}
.tcard .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.tcard .meta span{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(0,0,0,.3);color:#c9d9cf;font-variant-numeric:tabular-nums;white-space:nowrap}
.tcard .meta .ed{color:var(--gold2)}
.tcard .meta .up{color:var(--win)}.tcard .meta .dn{color:var(--lose)}
.tcard .chev{flex:none;color:var(--gold2);font-size:20px;opacity:.8}
.mc{position:absolute;width:30px;height:42px;border-radius:5px;background:#fbfaf6;color:#1b1b1b;box-shadow:0 2px 5px rgba(0,0,0,.45);font:800 12px/1 -apple-system,Segoe UI,Roboto,sans-serif;padding:3px 0 0 4px}
.mc.red{color:var(--red)}
.mc.back{background:repeating-linear-gradient(45deg,#7b1e26 0 3px,#8f2730 3px 6px);border:2px solid #fbfaf6}
.lchip{position:absolute;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:800 7px/1 -apple-system,sans-serif;letter-spacing:.3px;color:#062a1b;
  background:radial-gradient(circle,#7fe0a8 0 52%,#fff 53% 58%,#3fae6e 59%);box-shadow:0 2px 4px rgba(0,0,0,.45)}
.soon{display:flex;flex-wrap:wrap;gap:7px}
.soon span{font-size:12px;padding:6px 11px;border-radius:999px;border:1px dashed rgba(216,180,90,.35);color:#c9d9cf}
.soon span small{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-left:5px}
.lobby .lfoot{margin-top:auto;padding-top:8px;font-size:11px;color:var(--muted);text-align:center}
.lobby .lfoot button{color:var(--gold2);text-decoration:underline;font-size:11px}

/* betting layout: printed circles on the felt */
.layout{display:flex;gap:6px;align-items:center}
.ring{position:relative;flex:none;width:100px;height:100px;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(216,180,90,.8);box-shadow:inset 0 0 0 5px rgba(0,0,0,.1),inset 0 0 0 6.5px rgba(216,180,90,.45),0 0 0 4px rgba(0,0,0,.08);transition:transform .12s}
.ring:active,.sspot:active .dot2{transform:scale(.96)}
.ring svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ring svg text{fill:rgba(241,212,138,.8);font-family:Georgia,serif;font-size:8.6px;letter-spacing:1.6px}
.ring svg text.lo{fill:#c9d9cf;font-family:inherit;font-size:7.4px;letter-spacing:.6px}
.ring .in{display:flex;flex-direction:column;align-items:center;gap:2px}
.ring .tap{font-family:Georgia,serif;font-style:italic;font-size:13px;color:rgba(241,212,138,.6)}
.ring .bamt{font-size:13px;padding:1px 8px}
.ring.has{border-color:var(--gold2);box-shadow:inset 0 0 0 5px rgba(0,0,0,.1),inset 0 0 0 6.5px rgba(241,212,138,.6),0 0 16px rgba(241,212,138,.25)}
.sides{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,1fr);gap:5px 2px}
.sspot{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.sspot .dot2{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1.5px solid rgba(216,180,90,.5);box-shadow:inset 0 0 0 3px rgba(0,0,0,.08),inset 0 0 0 4px rgba(216,180,90,.2);transition:transform .12s}
.sspot .pay{font-family:Georgia,serif;font-size:11px;color:rgba(241,212,138,.75);font-variant-numeric:tabular-nums}
.sspot .bamt{position:absolute;bottom:-3px;font-size:10px;padding:0 5px;z-index:1}
.sspot.has .dot2{border-color:var(--gold2);box-shadow:inset 0 0 0 3px rgba(0,0,0,.08),inset 0 0 0 4px rgba(241,212,138,.4),0 0 10px rgba(241,212,138,.22)}
.sspot.best .dot2{border-color:rgba(241,212,138,.85)}
.sspot .nm{font-size:9.5px;font-weight:700;line-height:1.1;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sspot .sub{font-size:9px;color:var(--muted);line-height:1;font-variant-numeric:tabular-nums}
.sspot .sub b{color:var(--gold2);font-weight:700}
.sspot .swap{position:absolute;top:-3px;left:calc(50% - 29px);width:15px;height:15px;border-radius:50%;font-size:9px;font-weight:700;display:grid;place-items:center;background:rgba(0,0,0,.5);border:1px solid rgba(216,180,90,.45);color:var(--gold2);z-index:2}
.sspot .info:before,.sspot .swap:before{content:"";position:absolute;inset:-9px}
.sspot .info{position:absolute;top:-3px;right:calc(50% - 29px);width:15px;height:15px;border-radius:50%;font-size:9px;font-weight:700;display:grid;place-items:center;background:rgba(0,0,0,.5);border:1px solid rgba(216,180,90,.45);color:var(--gold2);z-index:2}
.chips{display:flex;justify-content:space-between;gap:4px;margin:9px 2px 7px}
.chip{--d:42px;font-size:11.5px;font-weight:800;transition:transform .12s,box-shadow .12s}
.chip.on{transform:translateY(-5px);box-shadow:0 0 0 2px var(--gold2),0 6px 10px rgba(0,0,0,.5)}
.row{display:flex;gap:6px}
.btn{flex:1;height:46px;border-radius:12px;background:rgba(255,255,255,.08);font-weight:700;font-size:14px}
.btn:active{background:rgba(255,255,255,.15)}
.btn.gold{background:linear-gradient(#f1d48a,#c79b3c);color:#2a1d00}
.btn.gold:active{filter:brightness(.92)}
.btn.sm{height:38px;font-size:12.5px}
.acts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.acts .btn{height:54px;font-size:15.5px}
.btn.freeb{background:linear-gradient(#7fe0a8,#3fae6e);color:#062a1b;font-size:14px}
.acts2{display:flex;gap:8px;justify-content:center;margin-top:8px}
.mini{height:30px;padding:0 16px;border-radius:999px;font-size:12.5px;font-weight:700;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#c9d9cf}
.mini:active{background:rgba(255,255,255,.14)}
.status{font-size:12.5px;color:var(--muted);text-align:center;margin-bottom:8px;min-height:16px}
.status b{color:var(--ink)}
.settle{text-align:center;margin-bottom:10px}
.settle .big{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.settle .big.win{color:var(--win)}.settle .big.lose{color:var(--lose)}.settle .big.push{color:var(--push)}
.foot{font-size:9.5px;color:rgba(169,195,181,.88);text-align:center;margin-top:6px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* modal */
.mask{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.sheet{width:100%;max-width:560px;max-height:86vh;overflow:auto;background:#0b2a1e;border-top:1px solid var(--gold);border-radius:18px 18px 0 0;padding:16px 16px calc(env(safe-area-inset-bottom) + 18px);animation:up .2s ease}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
.sheet h2{margin:0 0 4px;font-family:Georgia,serif;font-weight:normal;font-style:italic;color:var(--gold2);font-size:22px}
.sheet h3{margin:16px 0 6px;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
.sheet p{font-size:13.5px;line-height:1.45;color:#d9e6de;margin:6px 0}
.x{float:right;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.08);font-size:16px}
table.pt{width:100%;border-collapse:collapse;font-size:13px;margin-top:4px}
table.pt td{padding:6px 2px;border-bottom:1px solid rgba(255,255,255,.07)}
table.pt td:last-child{text-align:right;font-weight:700;color:var(--gold2);font-variant-numeric:tabular-nums}
.kv{display:grid;grid-template-columns:1fr auto;gap:6px 10px;font-size:13.5px}
.kv span:nth-child(even){text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.opt{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:14px;gap:10px}
.seg{display:flex;background:rgba(255,255,255,.07);border-radius:9px;padding:2px}
.seg button{padding:6px 10px;border-radius:7px;font-size:12.5px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--gold);color:#2a1d00}
.ach{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ac{border-radius:12px;padding:9px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.ac .t{font-size:13px;font-weight:700}
.ac .d{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.3}
.bar{height:5px;border-radius:3px;background:rgba(255,255,255,.1);margin-top:6px;overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#c79b3c,#f1d48a);border-radius:3px}
.ac .pg{display:block;font-size:10px;color:var(--muted);margin-top:3px;font-variant-numeric:tabular-nums}
.chal{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.chal .ct{display:flex;justify-content:space-between;gap:8px;font-size:13.5px}
.chal .ct small{color:var(--gold2);font-weight:700;white-space:nowrap}
.chal .cf{display:flex;justify-content:space-between;align-items:center;margin-top:5px;min-height:20px}
.chal .cf small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.chal .cf .got{color:var(--win);font-weight:700}
.chal .btn.sm{flex:none;height:28px;padding:0 14px;font-size:12px}
.chal.ok .bar i{background:linear-gradient(90deg,#3fae6e,#59d68c)}
.ac.on{border-color:rgba(241,212,138,.6);background:rgba(216,180,90,.1)}
.ac.on .t:before{content:"★ ";color:var(--gold2)}
.ac:not(.on){opacity:.6}
.streak{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:12px 0}
.sd{border-radius:10px;padding:8px 2px;text-align:center;background:rgba(255,255,255,.05);font-size:10px;color:var(--muted)}
.sd b{display:block;font-size:12px;color:var(--ink);margin-top:3px}
.sd.done{background:rgba(89,214,140,.15);color:var(--win)}
.sd.today{border:1.5px solid var(--gold);background:rgba(216,180,90,.12)}
.ins{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:14px}
/* toasts */
.toasts{position:fixed;bottom:200px;left:50%;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:6px;width:min(92vw,420px);pointer-events:none}
.toast{background:rgba(8,40,28,.96);border:1px solid var(--gold);border-radius:12px;padding:9px 12px;font-size:13px;box-shadow:0 6px 18px rgba(0,0,0,.45);animation:tin .25s ease}
.toast b{color:var(--gold2)}
.toast.win{border-color:var(--win)}
.guide{position:fixed;z-index:40;max-width:250px;background:#fbf6e6;color:#2a1d00;font-size:13px;line-height:1.35;padding:9px 11px 9px;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);animation:tin .25s ease}
.guide b{color:#000}
.guide:after{content:"";position:absolute;left:calc(var(--ax) - 7px);bottom:-7px;border:7px solid transparent;border-bottom:0;border-top-color:#fbf6e6}
.guide button{display:block;margin:6px 0 0 auto;font-size:11.5px;font-weight:700;color:#7a5a12;text-decoration:underline}
.toast.coach{border-color:#8fb3ff;background:rgba(10,32,48,.97)}
.toast.ask{pointer-events:auto}
.toast .tact{display:flex;gap:8px;margin-top:8px}
.toast .tact button{flex:1;height:32px;border-radius:9px;font-size:12.5px;font-weight:700;background:rgba(143,179,255,.18);border:1px solid rgba(143,179,255,.5);color:#dfe8ff}
.toast .tact button:first-child{background:#8fb3ff;color:#0a2030}
.toast .cbk{display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#0a2030;background:#8fb3ff;border-radius:5px;padding:1px 5px;margin-right:4px;vertical-align:1px}
@keyframes tin{from{transform:translateY(10px);opacity:0}}
.flt{position:absolute;left:50%;top:0;transform:translateX(-50%);font-weight:800;font-size:12px;color:var(--win);pointer-events:none;animation:flt 1.6s ease forwards;white-space:nowrap;z-index:5}
@keyframes flt{0%{opacity:0;transform:translate(-50%,6px)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-30px)}}
@media (max-width:370px){.card{width:51px;height:73px}.chip{--d:40px}.ring{width:94px;height:94px}.sspot .dot2{width:42px;height:42px}.sspot .nm{font-size:9px}.sspot .info{right:calc(50% - 27px)}}
@media (max-height:580px){#app .foot{display:none}#app .dealer{min-height:0}#app .dealer .card{width:40px;height:57px}#app .dealer .card .s2{font-size:19px}#app .dealer .cards{min-height:57px}#app .dealer .dtot{height:19px}#app .arc{font-size:9.5px;letter-spacing:1.4px;margin-bottom:2px}#app .table{padding-top:5px}}
/* short screens (phone browsers, the Claude app): tighten everything vertical */
@media (max-height:640px){
  .top{padding-top:calc(env(safe-area-inset-top) + 5px);padding-bottom:5px}.brand{font-size:18px}.ibtn{width:31px;height:31px;font-size:15px}
  .dealer{min-height:100px}.dealer .card{width:48px;height:68px}.dealer .card .s2{font-size:24px}.cards{min-height:68px}.arc{margin-bottom:3px}
  .chips{margin:7px 2px 6px}.chip{--d:38px;font-size:10.5px}.ring{width:92px;height:92px}.sspot .dot2{width:40px;height:40px}.sspot .info{right:calc(50% - 26px)}
  .presets{margin-bottom:6px}.btn{height:42px}.btn.sm{height:36px}.acts .btn{height:46px}.status{margin-bottom:6px}.foot{margin-top:4px}
}
/* ---- baccarat ---- */
#app:not(.game-bac) #bac{display:none}
#app.game-bac #dealer,#app.game-bac #seats{display:none}
.bac{display:flex;flex-direction:column;gap:8px;flex:none}
.bhands{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bhand{border:1.5px dashed rgba(216,180,90,.3);border-radius:14px;padding:8px 4px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:150px;transition:border-color .3s,box-shadow .3s,background .3s}
.bhand .bl{font-size:11px;font-weight:800;letter-spacing:2.5px;text-transform:uppercase}
.bhand.p .bl{color:#8fb3ff}.bhand.b .bl{color:#ff9a9a}
.bhand .cards{min-height:63px;align-items:flex-start}
.bhand .cards .card.sm+.card.sm{margin-left:-20px}
.bhand .third{transform:rotate(90deg);margin-left:12px;margin-top:10px}
.bhand.won{border-style:solid;border-color:var(--gold2);background:rgba(216,180,90,.1);box-shadow:0 0 18px rgba(241,212,138,.2)}
.bhand.tie{border-style:solid;border-color:#59d68c}
.bwin{text-align:center;font-family:Georgia,serif;font-style:italic;font-size:18px;color:var(--gold2);min-height:24px}
.bwin.idle{font-size:13px;color:rgba(241,212,138,.8)}
.bwin.player{color:#a9c6ff}.bwin.banker{color:#ffb0b0}.bwin.tie{color:#7fe0a8}
.road{display:grid;grid-template-rows:repeat(6,16px);grid-auto-flow:column;grid-auto-columns:16px;gap:3px;justify-content:start;overflow:hidden;padding:6px;border-radius:10px;background:rgba(0,0,0,.22);min-height:120px}
.road i{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font:800 8px/1 -apple-system,sans-serif;font-style:normal;color:#fff}
.road i.p{background:#3d7bd9}.road i.b{background:#c8323c}.road i.t{background:#3fae6e}
.road i.n{box-shadow:0 0 0 1.5px #f1d48a}
.road span{grid-row:1/7;align-self:center;font-size:11px;color:var(--muted);white-space:nowrap}
.bmain{display:grid;grid-template-columns:1fr .8fr 1fr;gap:6px;margin-bottom:8px}
.bspot{position:relative;border-radius:16px;padding:8px 4px 6px;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:96px;border:1.5px solid rgba(216,180,90,.5)}
.bspot.pl{background:rgba(61,123,217,.16);border-color:rgba(143,179,255,.6)}
.bspot.bk{background:rgba(200,50,60,.16);border-color:rgba(255,154,154,.6)}
.bspot.ti{background:rgba(63,174,110,.14);border-color:rgba(127,224,168,.55)}
.bspot.has{box-shadow:0 0 14px rgba(241,212,138,.25)}
.bspot .bn{font-family:Georgia,serif;font-style:italic;font-size:17px;color:var(--ink)}
.bspot .bp{font-size:10px;font-weight:700;letter-spacing:.5px;color:var(--gold2)}
.bspot .bst{position:relative;display:flex;flex-direction:column;align-items:center;min-height:30px;margin-top:2px}
.bspot .bst .bamt{margin-top:-4px;position:relative;z-index:1}
.bspot .be{font-size:9px;color:#c9d9cf;margin-top:auto}
.bsides{grid-template-columns:repeat(6,1fr)!important;gap:4px 1px}
.bsides .sspot .nm{font-size:8.5px}
.blines{display:flex;flex-wrap:wrap;gap:4px 8px;justify-content:center;margin-top:6px;font-size:11px;color:var(--muted)}
.blines .w{color:var(--win);font-weight:700}.blines .l{opacity:.8}
@media (max-height:640px){.bhand{min-height:128px}.road{min-height:96px;grid-template-rows:repeat(5,14px);grid-auto-columns:14px}.road i{width:14px;height:14px}.bmain .bspot{min-height:84px}}


/* ---------------- each game has its own felt ---------------- */
#app.game-bac:not(.inlobby){--felt0:#8a2436;--feltp:#741c2c;--felt:#62152a;--felt2:#4a0f1f;--felt3:#300812}
#app.game-craps:not(.inlobby){--felt0:#1f63a8;--feltp:#195592;--felt:#144a80;--felt2:#0e3964;--felt3:#082744}
#app.game-bac:not(.inlobby) .bhand.b .bl{color:#ffc2c2}
/* lobby home: one tile per game, tinted with that game's felt */
.gtile{padding:14px 12px 14px 10px}
.gtile .nm{font-size:23px}
.gtile.g-blackjack{background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(31,150,98,.6),rgba(7,53,36,.4) 70%)}
.gtile.g-baccarat{background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(160,40,62,.65),rgba(60,10,22,.5) 70%)}
.gtile.g-craps{background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(40,110,185,.65),rgba(10,40,75,.5) 70%)}
.lback{font-size:13px;font-weight:700;color:var(--gold2);padding:6px 0 8px;margin-top:-6px;display:block}
/* baccarat: bigger cards (one knob: --bk), eight side bets in two rows */
#bac{--bk:1.2}
#bac .card.sm{width:calc(44px*var(--bk));height:calc(63px*var(--bk));border-radius:calc(5px*var(--bk))}
#bac .card.sm .r{font-size:calc(13.5px*var(--bk));top:calc(2px*var(--bk));left:calc(3px*var(--bk))}
#bac .card.sm .s1{top:calc(17px*var(--bk));left:calc(3px*var(--bk));font-size:calc(11px*var(--bk))}
#bac .card.sm .s2{font-size:calc(21px*var(--bk));right:calc(4px*var(--bk));bottom:calc(2px*var(--bk))}
#bac .bhand .cards{min-height:calc(63px*var(--bk))}
#bac .bhand .cards .card.sm+.card.sm{margin-left:calc(-20px*var(--bk))}
#bac .bhand .third{margin-left:calc(12px*var(--bk));margin-top:calc(10px*var(--bk))}
#bac .bhand{min-height:0}
.third.squeeze{animation:squeeze .8s ease-in-out}
@keyframes squeeze{0%{transform:rotate(90deg)}35%{transform:rotate(84deg) translateY(-6px) scale(1.06)}70%{transform:rotate(95deg) translateY(-4px) scale(1.06)}100%{transform:rotate(90deg)}}
.bsides{grid-template-columns:repeat(8,1fr)!important;gap:4px 1px}
.bsides .sspot .dot2{width:38px;height:38px}.bsides .sspot .info{right:calc(50% - 25px)}
.bsides .sspot .nm{font-size:8.5px}.bsides .sspot .sub{font-size:8px}.bsides .sspot .pay{font-size:10px}
.bmain .bspot{min-height:74px}
@media (max-height:640px){.bmain .bspot{min-height:64px;padding-top:5px}.bmain{margin-bottom:6px}}
.bac{flex:1 1 auto;min-height:0}
.road{flex:1 1 auto;min-height:44px}
@media (max-height:580px){.road{grid-template-rows:repeat(4,13px);grid-auto-columns:13px;min-height:0}.road i{width:13px;height:13px;font-size:7px}}

/* every side bet has its own look: a faint symbol behind the pay and its own ring colour */
.sspot .dot2::before{content:"";position:absolute;inset:7px;background:var(--mi) center/contain no-repeat;opacity:.2;pointer-events:none}
.sspot[class*=" m-"] .dot2{border-color:color-mix(in srgb,var(--mc) 75%,transparent);background:radial-gradient(circle,color-mix(in srgb,var(--mc) 16%,transparent) 0%,transparent 72%)}
.sspot[class*=" m-"] .nm{color:color-mix(in srgb,var(--mc) 55%,#fff)}
.sspot.has .dot2::before{opacity:.1}
.sspot.m-twins{--mc:#7fd1ff;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4' y='5' width='10' height='14' rx='1.5'/%3E%3Crect x='10' y='3' width='10' height='14' rx='1.5' transform='rotate%2812 15 10%29'/%3E%3C/svg%3E")}
.sspot.m-flash3{--mc:#ffd84d;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M13 2 5 13h6l-1 9 8-12h-6z' fill='%23fff' stroke='none'/%3E%3C/svg%3E")}
.sspot.m-twenty{--mc:#f1d48a;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 10H5z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E")}
.sspot.m-royal{--mc:#ff8fb4;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9 3h6l-1.5 3 2.5 12-4 3-4-3 2.5-12z'/%3E%3C/svg%3E")}
.sspot.m-copycat{--mc:#b9a3ff;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='3' y='6' width='7' height='11' rx='1.2'/%3E%3Crect x='14' y='6' width='7' height='11' rx='1.2'/%3E%3Cpath d='M12 4v16' stroke-dasharray='2 2'/%3E%3C/svg%3E")}
.sspot.m-over13{--mc:#7fe0a8;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M8 20V5M4 9l4-4 4 4M16 4v15M12 15l4 4 4-4'/%3E%3C/svg%3E")}
.sspot.m-under13{--mc:#7fe0a8;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M8 20V5M4 9l4-4 4 4M16 4v15M12 15l4 4 4-4'/%3E%3C/svg%3E")}
.sspot.m-twentytwo{--mc:#ffb070;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Ctext x='12' y='17' text-anchor='middle' font-family='Georgia%2Cserif' font-weight='700' font-size='13' fill='%23fff' stroke='none'%3E22%3C/text%3E%3C/svg%3E")}
.sspot.m-meltdown{--mc:#ff7b6b;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3c3 4.5 6 7.6 6 11a6 6 0 0 1-12 0c0-3.4 3-6.5 6-11z'/%3E%3C/svg%3E")}
.sspot.m-ppair,.bcard.m-ppair{--mc:#8fb3ff;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4' y='5' width='10' height='14' rx='1.5'/%3E%3Crect x='10' y='3' width='10' height='14' rx='1.5' transform='rotate%2812 15 10%29'/%3E%3C/svg%3E")}
.sspot.m-bpair,.bcard.m-bpair{--mc:#ff9a9a;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4' y='5' width='10' height='14' rx='1.5'/%3E%3Crect x='10' y='3' width='10' height='14' rx='1.5' transform='rotate%2812 15 10%29'/%3E%3C/svg%3E")}
.sspot.m-spair,.bcard.m-spair{--mc:#ff8fb4;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4' y='5' width='10' height='14' rx='1.5'/%3E%3Crect x='10' y='3' width='10' height='14' rx='1.5' transform='rotate%2812 15 10%29'/%3E%3Cpath d='M15 9.5c-.9-1.2-2.6-.6-2.4.8.2 1 1.6 1.8 2.4 2.6.8-.8 2.2-1.6 2.4-2.6.2-1.4-1.5-2-2.4-.8z' fill='%23fff' stroke='none'/%3E%3C/svg%3E")}
.sspot.m-mcp,.bcard.m-mcp{--mc:#8fb3ff;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 7l5 5-5 5M12 7l5 5-5 5'/%3E%3C/svg%3E")}
.sspot.m-mcb,.bcard.m-mcb{--mc:#ff9a9a;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 7l5 5-5 5M12 7l5 5-5 5'/%3E%3C/svg%3E")}
.sspot.m-b6,.bcard.m-b6{--mc:#ffd84d;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Ctext x='12' y='17' text-anchor='middle' font-family='Georgia%2Cserif' font-weight='700' font-size='16' fill='%23fff' stroke='none'%3E6%3C/text%3E%3C/svg%3E")}
.sspot.m-b7,.bcard.m-b7{--mc:#ff9a9a;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Ctext x='12' y='17' text-anchor='middle' font-family='Georgia%2Cserif' font-weight='700' font-size='16' fill='%23fff' stroke='none'%3E7%3C/text%3E%3C/svg%3E")}
.sspot.m-p8,.bcard.m-p8{--mc:#8fb3ff;--mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Ctext x='12' y='17' text-anchor='middle' font-family='Georgia%2Cserif' font-weight='700' font-size='16' fill='%23fff' stroke='none'%3E8%3C/text%3E%3C/svg%3E")}
.stabs{display:flex;gap:3px;margin:2px 0 12px;background:rgba(0,0,0,.25);border-radius:10px;padding:3px}.stabs button{flex:1;padding:8px 2px;border-radius:8px;font-size:12px;font-weight:700;color:var(--muted)}.stabs button.on{background:rgba(216,180,90,.2);color:var(--gold2)}


/* ================= craps: one end of a real table — wood rail, printed felt =================
   Every size is in em, so one font-size per screen shape scales the whole table:
   portrait phone (stacked), landscape phone and laptop (two columns: layout | dice, streak, propositions). */
#app:not(.game-craps) #craps{display:none}
#app.game-craps #dealer,#app.game-craps #seats{display:none}
#app.game-craps .table{padding:5px 5px 4px}
.craps{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:5px;font-size:9.6px;--chalk:#fffdf4;--line:rgba(255,253,244,.8);--yel:#ffd45a;--brass:#d9a441;--fire:#ff8a3c}
.craps button{color:var(--chalk);font-family:inherit}
.ctable{flex:1 1 auto;display:grid;gap:.45em;padding:.75em;border:.8em solid transparent;border-radius:1.9em;align-content:space-between;
  grid-template-columns:minmax(0,1fr);grid-template-areas:"stat" "ats" "nums" "come" "field" "dp" "pass" "props";
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") padding-box,radial-gradient(ellipse 90% 70% at 50% 35%,var(--felt0),var(--felt) 60%,var(--felt2)) padding-box,
    linear-gradient(140deg,#8a5428 0%,#4d2a10 30%,#7a4520 55%,#3a1f0b 80%,#6b3a18 100%) border-box;
  box-shadow:inset 0 0 0 .15em rgba(0,0,0,.35),inset 0 0 2.6em rgba(0,0,0,.45),0 .3em .9em rgba(0,0,0,.55);transition:box-shadow .6s}
.c-side{display:contents}
.c-top{grid-area:stat;display:flex;align-items:center;gap:.6em;min-width:0}
.c-stat{flex:1;display:flex;align-items:center;gap:.8em;min-width:0;position:relative}
#app.game-craps #heat{display:none} /* the hot-shooter ribbon replaces the streak badge here */
.c-ats{grid-area:ats;display:grid;grid-template-columns:1fr .62fr 1fr auto;gap:.4em}
.c-nums{grid-area:nums;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.35em}
.c-come{grid-area:come;display:grid;grid-template-columns:.8fr 2fr;gap:.4em}
.c-field{grid-area:field}.c-dp{grid-area:dp}.c-pass{grid-area:pass}.c-props{grid-area:props}
/* puck, dice, the call and the result */
.cpk{flex:none;width:2.7em;height:2.7em;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#151515;color:#ddd;font:800 1.45em/1 -apple-system,sans-serif;border:.12em solid #4a4a4a;box-shadow:0 .15em .35em rgba(0,0,0,.55)}
.cpk span{font-size:.5em;letter-spacing:.1em}
.cpk.on{background:#fff;color:#111;border-color:#fff;box-shadow:0 0 .8em rgba(255,255,255,.35),0 .15em .35em rgba(0,0,0,.5)}
.cpk.winner{background:var(--gold2);color:#2b2000;border-color:#fff3c4;animation:pop .5s ease-out}
@keyframes pop{0%{transform:scale(.6)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.cdice{display:flex;gap:.6em;flex:none}
.die{width:4em;height:4em;border-radius:.8em;background:linear-gradient(160deg,#e8414d,#a3121c);box-shadow:0 .3em .7em rgba(0,0,0,.45),inset 0 .1em 0 rgba(255,255,255,.35);display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:.5em;gap:1px;transition:box-shadow .5s}
.die i{border-radius:50%;margin:.12em}.die i.on{background:#fff;box-shadow:inset 0 -1px 1px rgba(0,0,0,.25)}
.die.idle{opacity:.3}
.die.tumble{animation:tumble .16s linear infinite}.die.tumble.b{animation-direction:reverse}
@keyframes tumble{0%{transform:rotate(0) translateY(0)}50%{transform:rotate(180deg) translateY(-.5em)}100%{transform:rotate(360deg) translateY(0)}}
.die.mini{position:absolute;width:26px;height:26px;border-radius:6px;padding:3px}.die.mini i{margin:1px}
.die.pip{width:1.45em;height:1.45em;border-radius:.28em;padding:.15em;gap:0;box-shadow:0 1px 2px rgba(0,0,0,.4)}.die.pip i{margin:.06em}
.dpair{display:inline-flex;gap:.18em;vertical-align:middle;flex:none}
.ccall{flex:1;display:flex;flex-direction:column;gap:.3em;min-width:0}
.ccall .cc{font-family:Georgia,serif;font-style:italic;font-size:1.45em;color:var(--gold2);line-height:1.1}
.cres{align-self:flex-start;font:800 1.05em/1 -apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.08em;padding:.35em .7em;border-radius:1em;font-variant-numeric:tabular-nums;animation:pop .45s ease-out}
.cres b{font-size:1.3em;letter-spacing:0}
.cres.w{background:#1f8f55;color:#eafff2;box-shadow:0 0 1em rgba(89,214,140,.45)}
.cres.l{background:#a3212c;color:#fff0f0}
.cres.p{background:rgba(0,0,0,.35);color:#e8e2c8}
.chist{display:flex;gap:.2em;align-items:center}
.chist i{min-width:1.75em;height:1.75em;border-radius:.3em;background:rgba(0,0,0,.3);display:grid;place-items:center;font:700 .75em/1 -apple-system,sans-serif;color:#e8f2ec;flex:none;font-style:normal}
.chist i.s7{background:#a3121c;color:#fff}.chist i.hd{box-shadow:inset 0 0 0 .12em var(--gold2)}
.cshoot{margin-left:.3em;font:600 .78em/1 -apple-system,sans-serif;color:var(--muted);white-space:nowrap}
.hotrib{align-self:flex-start;display:inline-flex;align-items:center;gap:.35em;font:800 .82em/1 -apple-system,sans-serif;letter-spacing:.1em;color:#2b1000;background:linear-gradient(90deg,#ffb347,var(--fire));padding:.35em .7em .35em .5em;border-radius:1em;box-shadow:0 0 1em rgba(255,138,60,.55);animation:flick 1.6s ease-in-out infinite}
.hotrib{white-space:nowrap}.hotrib svg{width:.9em;height:1.2em;color:#7a1d00}
@keyframes flick{0%,100%{box-shadow:0 0 .8em rgba(255,138,60,.45)}50%{box-shadow:0 0 1.6em rgba(255,138,60,.8)}}
.cq{flex:none;width:2.2em;height:2.2em;border-radius:50%;border:.1em solid rgba(241,212,138,.6);color:var(--gold2)!important;font:800 1.4em/1 Georgia,serif;background:rgba(0,0,0,.25)}
/* the printed layout: chalk-white lines, serif capitals */
.cz,.cnum{position:relative;border:.15em solid var(--line);border-radius:.5em;background:rgba(0,0,0,.05);min-width:0;transition:background .25s,box-shadow .25s}
.cz:active,.cplace:active,.ab:active,.pz:active,.streak:active,.zodd:active,.codd:active{filter:brightness(1.25)}
.cz.has{background:rgba(241,212,138,.1);box-shadow:inset 0 0 0 .1em rgba(241,212,138,.55)}
.cz.off,.ab.off,.streak.off{opacity:.45}
.cz{display:flex;align-items:center;justify-content:center;gap:.8em;min-height:3.5em;padding:.3em .8em}
.cz b{font:700 1.5em/1 Georgia,"Times New Roman",serif;letter-spacing:.14em;color:var(--chalk);text-shadow:0 1px 0 rgba(0,0,0,.35)}
.cz small{font:700 .85em/1 -apple-system,sans-serif;letter-spacing:.14em;display:inline-flex;align-items:center;gap:.4em}
.zst{position:absolute;right:.5em;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:.3em;pointer-events:none;font-size:10px}
.zst .bamt,.zodd .bamt{font-size:10px;padding:0 5px}
.cz.dcb{flex-direction:column;gap:.35em;background:rgba(0,0,0,.18)}.cz.dcb b{font-size:1.05em;letter-spacing:.06em;white-space:nowrap}
.cz.dcb .zst{top:auto;bottom:.2em;right:.3em;transform:none}
.cz.come b{font-size:2.2em;letter-spacing:.3em;color:var(--yel)}
.cz.field{justify-content:flex-start;gap:1em}.cz.field b{color:var(--yel);font-size:1.6em}
.fnums{display:flex;gap:.6em;align-items:center;font:700 1.3em/1 Georgia,serif;color:var(--chalk)}
.fnums i{font-style:normal}
.fnums i.x{width:1.9em;height:1.9em;border-radius:50%;border:.1em solid var(--yel);display:grid;place-items:center;position:relative;font-size:.95em}
.fnums i.x sup{position:absolute;top:-.55em;right:-.75em;font:800 .55em/1 -apple-system,sans-serif;color:#2b2000;background:var(--yel);border-radius:.6em;padding:.15em .3em}
.zw{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35em}.zw>.cz{grid-column:2}.zw>.cz:only-child{grid-column:1/-1}
.cz.dpb{min-height:2.7em;background:rgba(0,0,0,.18)}.cz.dpb b{font-size:1.2em;letter-spacing:.12em}
.cz.pass{border-width:.2em;border-radius:.6em .6em .6em 2.2em}.cz.pass b{font-size:1.9em;letter-spacing:.3em}
/* odds behind the line: a dashed spot that appears once there's a point */
.zodd{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2em;padding:.2em .7em;min-height:24px;border:.13em dashed var(--gold2);border-radius:.6em;background:rgba(0,0,0,.35);min-width:5.4em}
.zodd b{font:800 .95em/1 -apple-system,sans-serif;letter-spacing:.1em;color:var(--gold2)}
.zodd small{font:700 .8em/1 -apple-system,sans-serif;color:#e8f2ec;opacity:.85}
.zodd.has{border-style:solid;background:rgba(241,212,138,.14)}
.c-pass .zodd{border-radius:.6em .6em .6em 1.6em}
/* place numbers: tap the number to place it; the pill under it is your Come bet, tap it for odds */
.cnum{min-height:5.1em;display:flex;flex-direction:column;align-items:stretch;padding:0;border-radius:.5em}
.cplace{flex:1;display:flex;flex-direction:column;align-items:center;gap:.3em;padding:.5em .1em .3em;border-radius:.4em;min-width:0}
.cplace b{font:700 2em/1 Georgia,serif;color:var(--chalk);text-shadow:0 1px 0 rgba(0,0,0,.35)}
.cnum.pt{border-color:#fff;background:rgba(255,255,255,.1);box-shadow:0 0 1.4em rgba(255,255,255,.22)}
.cnum.made{animation:made 1.4s ease-out}
@keyframes made{0%{box-shadow:0 0 0 0 rgba(255,212,90,.9);background:rgba(255,212,90,.45)}100%{box-shadow:0 0 0 1.4em rgba(255,212,90,0);background:rgba(0,0,0,.05)}}
.puck{position:absolute;top:-.7em;right:-.35em;width:2.3em;height:2.3em;border-radius:50%;background:#fff;color:#111;font:800 .78em/2.3em -apple-system,sans-serif;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.55);z-index:3;pointer-events:none}
.cpl{display:flex;align-items:center;gap:2px;font-size:10px}.cpl em{font-style:normal;color:var(--gold2);font-weight:800;font-variant-numeric:tabular-nums}
.codd{display:flex;align-items:center;justify-content:center;gap:.25em;margin:0 .15em .15em;padding:.15em .2em;min-height:max(2.2em,22px);border-radius:.5em;background:rgba(0,0,0,.5);border:.1em solid rgba(241,212,138,.55);font:800 .85em/1 -apple-system,sans-serif;white-space:nowrap;min-width:0;overflow:hidden}
.codd span{color:#e8f2ec;min-width:0;overflow:hidden;text-overflow:ellipsis}.codd i{font-style:normal;color:var(--gold2)}
.codd.dk{border-color:rgba(255,154,154,.55)}.codd.dk span{color:#ffb0b0}
/* what tapping a number bets: Place, Buy or Lay */
.c-nmode{grid-area:nmode;display:none;align-items:center;gap:.35em;min-width:0}
.c-nmode .nml{font:800 .8em/1 -apple-system,sans-serif;letter-spacing:.14em;color:rgba(255,253,244,.6)}
.c-nmode button{min-height:max(2.2em,24px);padding:0 .9em;border-radius:1.2em;border:.1em solid rgba(255,253,244,.45);font:800 .9em/1 -apple-system,sans-serif;letter-spacing:.1em;background:rgba(0,0,0,.2)}
.c-nmode button.on{background:var(--gold2);color:#2b2000!important;border-color:var(--gold2)}
.c-nmode small{flex:1;min-width:0;font:600 .8em/1.2 -apple-system,sans-serif;color:rgba(255,253,244,.65);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pnmode{display:flex;flex:1.6;background:rgba(0,0,0,.3);border-radius:10px;padding:3px;gap:2px}
.pnmode button{flex:1;border-radius:8px;font:800 10.5px/1 -apple-system,sans-serif;letter-spacing:.06em;color:#e6c99a;min-height:34px}
.pnmode button.on{background:var(--gold2);color:#2b2000}
.tdf{display:block;font-size:9.5px;font-weight:600;color:#e6c99a;margin-top:2px;font-variant-numeric:tabular-nums}
.crack .cfelt{display:none}
.cbtns{display:flex;gap:.15em;margin:0 .15em .15em}.cbtns .codd{flex:1;margin:0;min-width:0}.cbtns .codd+.codd i,.cbtns .codd:has(+.codd) i{display:none}
.nlines{display:flex;flex-direction:column;align-items:center;gap:.15em;width:100%;padding:0 .15em}
.nlines i{font:800 max(.82em,9px)/1.15 -apple-system,sans-serif;font-style:normal;padding:.12em .35em;border-radius:.4em;background:rgba(0,0,0,.5);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.nlines .pl{color:var(--gold2)}.nlines .buy{color:#bfe0ff;box-shadow:inset 0 0 0 .1em rgba(143,200,255,.55)}.nlines .lay{color:#ffc0c0;box-shadow:inset 0 0 0 .1em rgba(255,154,154,.55)}
.zodd.hint{border-color:rgba(241,212,138,.35);background:rgba(0,0,0,.2);font:700 .72em/1.15 -apple-system,sans-serif;letter-spacing:.06em;color:rgba(241,212,138,.65);pointer-events:none;text-transform:uppercase;text-align:center;min-width:6em;max-width:7.5em;white-space:normal}
/* run bets: three boxes, each with its own lamps */
.ab{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:.35em;border:.13em solid var(--yel);border-radius:.5em;padding:.35em .4em;background:rgba(0,0,0,.16);min-width:0}
.abh{display:flex;align-items:baseline;justify-content:space-between;gap:.3em}
.ab b{font:800 1em/1 -apple-system,sans-serif;letter-spacing:.14em;color:var(--yel)}
.ab small{font:700 .78em/1 -apple-system,sans-serif;color:var(--chalk);opacity:.85;white-space:nowrap}
.ab.has{background:rgba(255,212,90,.16);box-shadow:0 0 .8em rgba(255,212,90,.25)}
.lamps{display:flex;justify-content:space-between;gap:.15em}
.lamps i{flex:1;max-width:1.9em;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font:700 .82em/1 -apple-system,sans-serif;font-style:normal;background:rgba(0,0,0,.35);color:rgba(255,253,244,.6);transition:background .3s,color .3s,box-shadow .3s}
.lamps i.on{background:var(--yel);color:#2b2000;box-shadow:0 0 .55em rgba(255,212,90,.7)}
.lamps.cnt{justify-content:center;align-items:baseline;font:700 .85em/1 -apple-system,sans-serif;color:rgba(255,253,244,.7)}.lamps.cnt em{font-style:normal;font-size:1.5em;color:var(--yel);margin-right:.1em}
.ab .abh{flex-wrap:wrap}.ab.full{align-items:center}.ab.full .abh{flex-direction:column;align-items:center;gap:.2em}
/* Point Streak: its own flame-marked strip */
.streak{position:relative;display:flex;align-items:center;gap:.6em;padding:.35em .7em;min-height:max(2.6em,26px);border-radius:.9em;border:.14em solid var(--fire);background:linear-gradient(90deg,rgba(255,120,40,.28),rgba(0,0,0,.25) 60%);min-width:0}
.streak .fl{display:grid}.streak .fl svg{width:1.25em;height:1.7em;color:#ff7a2a;filter:drop-shadow(0 0 .3em rgba(255,120,40,.6))}
.streak .sh{display:flex;flex-direction:column;gap:.2em;flex:none}
.streak b{font:800 .9em/1 -apple-system,sans-serif;letter-spacing:.1em;color:#ffb070}
.streak small{font:700 .72em/1 -apple-system,sans-serif;color:rgba(255,230,210,.75)}
.streak .sp{flex:1;display:flex;justify-content:flex-end;gap:.25em}
.streak .sp i{width:2em;height:2em;border-radius:50%;display:grid;place-items:center;font:700 .85em/1 -apple-system,sans-serif;font-style:normal;background:rgba(0,0,0,.35);color:rgba(255,200,160,.7)}
.streak .sp i.on{background:var(--fire);color:#2b1000;box-shadow:0 0 .6em rgba(255,138,60,.8)}
.streak.has{box-shadow:0 0 1em rgba(255,138,60,.35)}
/* the proposition box: dark centre panel, brass rim, compact inline cells */
.c-props{display:flex;flex-direction:column;gap:.3em;padding:.45em;border-radius:.8em;background:linear-gradient(170deg,#3c0c14,#1e0408);border:.3em double var(--brass);box-shadow:inset 0 0 1.4em rgba(0,0,0,.6),0 .2em .5em rgba(0,0,0,.4)}
.ptitle{text-align:center;font:700 .72em/1 Georgia,serif;letter-spacing:.3em;color:var(--brass);opacity:.8}
.prow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3em}.prow.p2{grid-template-columns:1fr 1fr}
.pz{position:relative;display:flex;align-items:center;justify-content:center;gap:.45em;border:.1em solid rgba(217,164,65,.45);border-radius:.4em;background:rgba(255,255,255,.035);min-height:max(2.4em,24px);padding:.15em .3em;min-width:0;transition:background .25s,box-shadow .25s}
.pz b{font:700 1.05em/1 Georgia,serif;letter-spacing:.2em;color:#ff6b75;white-space:nowrap}
.pz small{font:700 .8em/1 -apple-system,sans-serif;color:#e9c77a;white-space:nowrap}
.pz.has{background:rgba(217,164,65,.18);border-color:var(--brass)}
.ztag{position:absolute;top:-.75em;right:-.45em;background:var(--gold2);color:#2b2000;font:800 9.5px/1.4 -apple-system,sans-serif;padding:0 .5em;border-radius:1em;box-shadow:0 1px 3px rgba(0,0,0,.5);z-index:2;pointer-events:none}
/* what each bet did this roll: a green or red flash and its amount, right on the spot */
.won{animation:wonf 1.8s ease-out}.lost{animation:lostf 1.8s ease-out}
@keyframes wonf{0%,35%{background:rgba(89,214,140,.45);box-shadow:0 0 1.2em rgba(89,214,140,.7)}}
@keyframes lostf{0%,35%{background:rgba(255,80,80,.35);box-shadow:0 0 1em rgba(255,80,80,.5)}}
.fxl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none;font:800 11px/1 -apple-system,sans-serif;padding:3px 7px;border-radius:9px;white-space:nowrap;animation:fxup 1.9s ease-out forwards;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.fxl.w{background:#1f8f55;color:#fff}.fxl.l{background:#b3212c;color:#fff}.fxl.p{background:#555;color:#fff}
@keyframes fxup{0%{opacity:0;transform:translate(-50%,-30%) scale(.7)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}70%{opacity:1;transform:translate(-50%,-90%) scale(1)}100%{opacity:0;transform:translate(-50%,-120%)}}
/* take-down mode: bets that can come back pulse red; locked ones show a lock */
.ctable.down .tk{outline:.18em dashed #ff8a8a;outline-offset:-.25em;animation:tkp 1.2s ease-in-out infinite}
@keyframes tkp{50%{outline-color:rgba(255,138,138,.35)}}
.ctable.down .lockd{opacity:.8}.ctable.down .lockd::after{content:"🔒";position:absolute;left:.3em;top:.25em;font-size:10px;filter:grayscale(1)}
.ctable.down .dim{opacity:.35}
.crack.down{flex-wrap:nowrap}.cdmsg{flex:1;font-size:11px;line-height:1.3;color:#f2dfc0}.cdmsg b{display:block;font-size:13px;color:var(--gold2)}
/* hot shooter: the dice glow, then the rail catches fire */
.craps[data-heat="1"] .die{box-shadow:0 0 .9em rgba(255,138,60,.7),0 .3em .7em rgba(0,0,0,.45)}
.craps[data-heat="2"] .die,.craps[data-heat="3"] .die,.craps[data-heat="4"] .die{box-shadow:0 0 1.4em rgba(255,110,30,.9),0 .3em .7em rgba(0,0,0,.45);animation:dieglow 1s ease-in-out infinite}
@keyframes dieglow{50%{box-shadow:0 0 2.2em rgba(255,140,40,1),0 .3em .7em rgba(0,0,0,.45)}}
.craps[data-heat="2"] .ctable{box-shadow:inset 0 0 0 .15em rgba(255,138,60,.5),inset 0 0 2.6em rgba(0,0,0,.45),0 0 1.2em rgba(255,110,30,.45)}
.craps[data-heat="3"] .ctable,.craps[data-heat="4"] .ctable{box-shadow:inset 0 0 0 .2em rgba(255,138,60,.8),inset 0 0 2.6em rgba(0,0,0,.45),0 0 2em rgba(255,90,20,.7);animation:railfire 1.4s ease-in-out infinite}
@keyframes railfire{50%{box-shadow:inset 0 0 0 .2em rgba(255,170,80,.95),inset 0 0 2.6em rgba(0,0,0,.45),0 0 3em rgba(255,110,30,.85)}}
@media (prefers-reduced-motion:reduce){.craps *{animation:none!important}}
/* turn-sideways nudge (portrait touch screens only) */
.crot{display:none;align-self:center;min-height:24px;align-items:center;font:600 11px/1 -apple-system,sans-serif;color:var(--gold2);background:rgba(0,0,0,.3);border:1px solid rgba(241,212,138,.4);border-radius:999px;padding:5px 10px;gap:6px}
.crot span{opacity:.7}
@media (orientation:portrait) and (pointer:coarse){.crot{display:flex}}
/* the chip rack: a wooden tray */
#app.game-craps .panel.felt{background:linear-gradient(#5e3618,#3a1f0b);border-top:2px solid #241205;box-shadow:inset 0 2px 6px rgba(0,0,0,.45)}
.crack{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.crack .chips{order:-1;flex:1 1 100%;margin:0 2px 1px}
.crack #cclr{flex:1}.crack .cfelt{flex:1}.crack #croll,.crack #refill{flex:1.6}
#app.game-craps .chip{--d:40px}#app.game-craps .panel{padding-top:7px}
.cfelt{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:9.5px;color:#e6c99a;letter-spacing:.5px;line-height:1.2}
.cfelt b{font-size:13px;color:var(--gold2);font-variant-numeric:tabular-nums}
.pt.cg th{font-size:11px;color:var(--muted);text-align:left;font-weight:600}.pt.cg td:last-child{color:var(--gold2);white-space:nowrap}
/* portrait: Point Streak sits beside the dice as a compact box */
@media (orientation:portrait){
  .streak{flex:none;display:grid;grid-template-columns:auto auto;grid-template-areas:"fl sh" "sp sp";justify-content:start;width:max-content;gap:.3em .35em;padding:.35em .45em;align-self:center;background:radial-gradient(circle at 50% 20%,rgba(255,120,40,.3),rgba(0,0,0,.28) 75%)}
  .streak .fl{grid-area:fl}.streak .sh{grid-area:sh}.streak .sp{grid-area:sp;gap:.12em}.streak small{display:none}.streak b{font-size:.78em;line-height:1.1;max-width:6em}
  .streak .sp i{width:1.7em;height:1.7em;font-size:.78em}
  .hotrib .hx{display:none}
}
/* phones: no proposition title */
@media (orientation:portrait),(max-height:520px){.c-props .ptitle{display:none}}
@media (max-height:640px) and (orientation:portrait){.craps{font-size:9px;gap:3px}.ctable{padding:.55em;gap:.35em}.crot{padding:4px 10px}}
@media (max-height:580px) and (orientation:portrait){.craps{font-size:8.2px}.crot{display:none}#app.game-craps .chip{--d:36px}.streak small{display:none}}
/* landscape phones and laptops: two columns, dice + streak + propositions on the right */
@media (orientation:landscape){
  #app.game-craps:not(.inlobby){max-width:1240px}
  .craps{font-size:clamp(7.4px,min(1.18vw,2.55vh),19px);flex:1 1 0}
  .ctable{flex:1 1 0;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,36%);column-gap:.9em;align-content:stretch;
    grid-template-rows:auto minmax(0,2.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"ats side" "nums side" "come side" "field side" "dp side" "pass side"}
  .c-side{display:flex;flex-direction:column;gap:.55em;grid-area:side;min-height:0}
  .c-top{flex-direction:column;align-items:stretch;gap:.55em}
  .c-stat{flex-wrap:wrap;row-gap:.4em;padding-right:2.6em}.c-stat .ccall{flex:1 1 9em}.c-stat .cq{position:absolute;top:0;right:0}
  .c-props{margin-top:auto}
  .crack{flex-wrap:nowrap}.crack .chips{order:0;flex:1 1 auto;margin:0 6px;max-width:420px}
  .c-nmode{display:flex}.pnmode,.tdf{display:none}.crack .cfelt{display:flex}
  #app.game-craps .panel{padding:5px 10px calc(env(safe-area-inset-bottom) + 5px)}
}
@media (orientation:landscape) and (max-height:520px){
  .top{padding-top:calc(env(safe-area-inset-top) + 3px);padding-bottom:3px}.top .brand{font-size:16px}.top .ibtn{width:30px;height:30px;font-size:14px}.top .bank .amt{font-size:15px}
  #app.game-craps .chip{--d:34px}#app.game-craps .btn{min-height:36px;padding-top:6px;padding-bottom:6px}.streak small{display:none}
}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  #app.game-craps .chip{--d:46px}.crack{justify-content:center;max-width:1100px;margin:0 auto}
  .zst,.zodd .stack,.cpl{zoom:1.45}.ztag,.fxl{font-size:12.5px}
}
@media (orientation:portrait){.zodd{min-width:4.8em;padding:.15em .5em}.zodd b{font-size:.85em}}

/* the proposition box folds into a bar on portrait phones; tap to open it over the felt */
.c-propbar{display:none}
.pclose{display:none}
@media (orientation:portrait){
  .c-propbar{grid-area:props;position:relative;display:flex;align-items:center;gap:.6em;min-height:max(3em,30px);padding:0 .8em;border-radius:.7em;border:.2em double var(--brass);background:linear-gradient(170deg,#3c0c14,#1e0408)}
  .c-propbar b{font:700 1em/1 Georgia,serif;letter-spacing:.22em;color:#ff8a92}
  .c-propbar span{flex:1;text-align:right;font:700 .9em/1 -apple-system,sans-serif;color:#e9c77a}
  .c-propbar i{font-style:normal;color:var(--brass)}
  .c-propbar.has{box-shadow:0 0 .8em rgba(217,164,65,.35)}
  .c-props{display:none}
  .c-props.open{display:flex;position:absolute;left:.6em;right:.6em;bottom:.6em;z-index:8;box-shadow:0 -.4em 1.6em rgba(0,0,0,.7)}
  .c-props.open .ptitle{display:flex;align-items:center;justify-content:center;min-height:30px;padding:0 34px}
  .c-props.open .pz{min-height:max(3em,30px)}
  .pclose{display:block;position:absolute;top:.35em;right:.4em;z-index:3;width:30px;height:30px;font:700 20px/1 -apple-system,sans-serif;color:var(--brass)!important}
  .ctable{position:relative}
}
/* landscape: the proposition box fills the right column */
@media (orientation:landscape){
  .c-props{flex:1;margin-top:0;justify-content:stretch}.c-props .prow{flex:1}.c-props .prow .pz{height:100%}
  .c-props .prow .pz{flex-direction:column;gap:.25em}.c-props .prow.p2 .pz{flex-direction:row}
  .nlines{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .cz,.cz.dpb,.cnum{min-height:0}.zodd{min-height:0}
  .streak .sp i{flex:0 1 2em;width:auto;aspect-ratio:1;height:auto;min-width:0}
  .cnum .cplace{padding-top:.35em;gap:.2em}.cplace b{font-size:1.8em}
}
.banner.cold b{background-image:linear-gradient(100deg,#e6f4ff 0%,#8fc8ff 35%,#ffffff 52%,#6fb0ff 75%,#e6f4ff 100%)}.banner.cold span{background:linear-gradient(#cfe9ff,#6fa8e6);color:#06223f}

/* very short landscape phones (browser bars showing): slim the right column */
@media (orientation:landscape) and (max-height:400px){
  .die{width:3.3em;height:3.3em;padding:.4em}.cpk{width:2.3em;height:2.3em;font-size:1.3em}
  .c-nmode small,.streak .sh small,.chist .cshoot{display:none}
  .c-side{gap:.4em}.c-props{gap:.25em;padding:.35em}.c-props .ptitle{display:none}
  .ccall .cc{font-size:1.25em}.cres{font-size:.95em;padding:.25em .55em}
  .top{padding-top:calc(env(safe-area-inset-top) + 1px)!important;padding-bottom:1px!important}.top .ibtn{width:27px!important;height:27px!important}
  #app.game-craps .chip{--d:30px}#app.game-craps .btn{min-height:32px;padding-top:4px;padding-bottom:4px}#app.game-craps .panel{padding-top:3px;padding-bottom:calc(env(safe-area-inset-bottom) + 3px)}
}
/* portrait: come buttons stack, amount over odds, so nothing gets cut off in the narrow boxes */
@media (orientation:portrait){
  .cbtns{flex-direction:column}.cbtns .codd+.codd i,.cbtns .codd:has(+.codd) i{display:inline}
  .codd{flex-direction:column;gap:.1em;padding:.2em .1em;line-height:1.05}
  .nlines i{font-size:max(.8em,8.5px)}
}

/* bet lines in number boxes: the amount always shows; portrait swaps the word for a coloured letter */
.nlines i{display:inline-flex;align-items:center;gap:.3em}
.nlines .lt{display:none;font:900 .9em/1 -apple-system,sans-serif;padding:.1em .28em;border-radius:.25em;color:#1b1200}
.nlines .lw{font-style:normal}
.nlines .pl .lt{background:var(--gold2)}.nlines .buy .lt{background:#8fc8ff}.nlines .lay .lt{background:#ff9a9a}
@media (orientation:portrait){.nlines .lt{display:inline-block}.nlines .lw{display:none}.nlines i{padding:.12em .25em;gap:.2em;font-size:max(.85em,9px)}}

/* ---- one bet marker everywhere: mini chip + amount on a dark pill; spots holding a bet glow warm gold ---- */
.mchip{position:static!important;display:inline-block;flex:none;margin:0!important;width:1.35em;height:1.35em;border-radius:50%;vertical-align:middle;
  background:radial-gradient(circle,var(--c) 0 46%,#fff 47% 52%,var(--c) 53% 100%),var(--c);
  -webkit-mask:repeating-conic-gradient(#000 0 30deg,rgba(0,0,0,.82) 30deg 45deg);mask:repeating-conic-gradient(#000 0 30deg,rgba(0,0,0,.82) 30deg 45deg);
  box-shadow:0 1px 2px rgba(0,0,0,.6);border:.1em dashed rgba(255,255,255,.85);box-sizing:border-box}
.btag{display:inline-flex;align-items:center;gap:.35em;padding:.18em .55em .18em .22em;border-radius:1em;background:rgba(0,0,0,.62);box-shadow:0 1px 3px rgba(0,0,0,.45);font:800 10.5px/1 -apple-system,sans-serif;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}
.btag .mchip{width:15px!important;height:15px!important}.btag .bl{color:var(--gold2);letter-spacing:.06em}.btag .ba{font:inherit;color:#fff;letter-spacing:0}
.zst.drop .btag{animation:pop .35s ease-out}
.ztag{display:inline-flex;align-items:center;gap:.25em;padding:.1em .45em .1em .12em!important}.ztag .mchip{width:11px!important;height:11px!important;border-width:1px}.ztag .ba{font:inherit}
/* warm gold tint on every spot that holds a bet */
.cz.has,.pz.has,.ab.has,.streak.has{background:linear-gradient(rgba(241,212,138,.2),rgba(241,212,138,.1));box-shadow:inset 0 0 0 .12em rgba(241,212,138,.7),0 0 .8em rgba(241,212,138,.2)}
.cnum.has{background:linear-gradient(rgba(241,212,138,.18),rgba(241,212,138,.07));box-shadow:inset 0 0 0 .12em rgba(241,212,138,.6)}.cnum.has.pt{box-shadow:inset 0 0 0 .12em rgba(241,212,138,.6),0 0 1.4em rgba(255,255,255,.22)}
/* odds: dashed and faint until there's money on them, then solid gold */
.zodd.has{border:.14em solid var(--gold2);background:linear-gradient(#f6dc96,#d9b052);box-shadow:0 0 1em rgba(241,212,138,.45),inset 0 1px 0 rgba(255,255,255,.5)}
.zodd.has b{color:#2b2000;font-size:1em}.zodd.has small{color:#4a3600;opacity:1;font-weight:800}
.zodd .oline{display:inline-flex;align-items:center;gap:.3em;white-space:nowrap}.zodd .oline .mchip{width:13px!important;height:13px!important}
/* number-box lines: the P / B / L badge becomes a little chip with the letter on it */
.nlines .lt{border-radius:50%;width:1.55em;height:1.55em;display:none;place-items:center;padding:0;border:.1em dashed rgba(255,255,255,.8);box-shadow:0 1px 2px rgba(0,0,0,.5);font-size:.78em}
.nlines .lt{display:inline-grid}
@media (orientation:landscape){.nlines .lw{margin-left:.1em}}

/* stats: dice distribution */
.dchart{display:flex;flex-direction:column;gap:3px;margin:4px 0 6px}
.dbar{display:grid;grid-template-columns:22px 1fr 108px;align-items:center;gap:8px;font-size:12px}
.dbar .dn{text-align:right;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.dtrack{position:relative;height:12px;border-radius:6px;background:rgba(255,255,255,.07)}
.dtrack .act{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#c79b3c,var(--gold2))}.dtrack .act.s7{background:linear-gradient(90deg,#a3121c,#ff6b75)}
.dtrack .exp{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:#fff;opacity:.85;border-radius:1px}
.dbar .dp{font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}.dbar .dp small{color:var(--muted)}

/* card counter plate under the shoe */
.cplate{display:flex;flex-direction:column;align-items:center;margin:5px auto 0;padding:3px 2px 4px;width:42px;border-radius:7px;background:rgba(0,0,0,.42);border:1px solid rgba(241,212,138,.45);line-height:1.1}
.cplate span{font-size:8px;font-weight:800;letter-spacing:1px;color:var(--muted)}
.cplate b{font-size:15px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}.cplate b.up{color:var(--win)}.cplate b.dn{color:var(--lose)}
.cplate small{font-size:8.5px;color:var(--gold2);white-space:nowrap;font-variant-numeric:tabular-nums}
.cplate.quiz{font-size:8px;font-weight:800;letter-spacing:.8px;color:var(--gold2);min-height:36px;justify-content:center}.cplate.quiz b{color:var(--gold2);font-size:16px}
.cplate.quiz:before{content:"";position:absolute;inset:-6px}
.cstep{display:flex;align-items:center;justify-content:center;gap:18px;margin:14px 0}.cstep .btn{width:56px;font-size:24px}.cstep b{min-width:64px;text-align:center;font-size:30px;color:var(--gold2);font-variant-numeric:tabular-nums}
.cplate{position:relative}

/* ---- baccarat bonus bets: a gold bar in the panel opens a themed sheet over the table ---- */
.bonusbar{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 6px;padding:0 12px;min-height:38px;border-radius:12px;
  border:2px solid #c99a3e;background:linear-gradient(100deg,#3a1408,#1d0805 60%,#3a1408);box-shadow:inset 0 0 12px rgba(0,0,0,.5),0 0 10px rgba(217,164,65,.18)}
.bonusbar b{font:700 13px/1 Georgia,serif;letter-spacing:3px;background:linear-gradient(100deg,#fff1c2,#f1d48a 40%,#c99a3e);-webkit-background-clip:text;background-clip:text;color:transparent}
.bonusbar span{flex:1;text-align:right;font:700 12px/1 -apple-system,sans-serif;color:#f1d48a}
.bonusbar i{font-style:normal;color:#c99a3e}
.bonusbar.has{box-shadow:inset 0 0 12px rgba(0,0,0,.5),0 0 14px rgba(241,212,138,.45)}
/* the bonus section opens in place under its header (accordion) */
.bonusbar.open{border-radius:12px 12px 4px 4px;margin-bottom:4px}
.bonusbar:disabled{opacity:1}
.bonusbody{display:flex;flex-direction:column;gap:5px;margin:0 0 7px;padding:6px;border-radius:4px 4px 12px 12px;border:2px solid #c99a3e;border-top:0;background:radial-gradient(ellipse at 50% 0%,#3a1408,#1d0805 75%)}
.bonusbody.anim{animation:bopen .22s ease-out}
@keyframes bopen{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.bmain.compact .bspot{min-height:46px;padding:4px 4px 3px;flex-direction:row;justify-content:center;gap:6px}
.bmain.compact .bspot .be,.bmain.compact .bspot .bp{display:none}
.bmain.compact .bspot .bst{min-height:0;margin:0;flex-direction:row;gap:3px}
.bmain.compact{margin-bottom:6px}
/* with the bonus section open on a phone, the table shows the results road instead of empty card slots */
#bac.bopen .bhands,#bac.bopen .arc{display:none}
.bcards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.bcard{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:5px 3px 6px;min-height:58px;border-radius:12px;min-width:0;
  border:1.5px solid color-mix(in srgb,var(--mc) 65%,transparent);background:radial-gradient(circle at 50% 30%,color-mix(in srgb,var(--mc) 22%,transparent),rgba(0,0,0,.35) 75%)}
.bcard:active{transform:scale(.97)}
.bcard.has{border-color:var(--gold2);box-shadow:0 0 12px rgba(241,212,138,.4),inset 0 0 0 1px rgba(241,212,138,.5)}
.bart{width:18px;height:18px;background:var(--mi) center/contain no-repeat;opacity:.85}
.bnm{font:800 10.5px/1.1 -apple-system,sans-serif;color:color-mix(in srgb,var(--mc) 45%,#fff);text-align:center}
.btop{font:700 17px/1 Georgia,serif;color:#f1d48a;text-shadow:0 1px 6px rgba(241,212,138,.35)}.btop small{font-size:12px}
.bsub{display:none;font-size:9px;line-height:1.15;color:#d9c7b0;text-align:center}
.bedge{font-size:8.5px;color:#a99787}
.bcard .info,.bth .info{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;font:700 9px/14px -apple-system,sans-serif;text-align:center;border:1px solid rgba(217,164,65,.6);color:#f1d48a;background:rgba(0,0,0,.4)}
.bcard .info:before{content:"";position:absolute;inset:-7px}
.btg{position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);font:800 10px/1.4 -apple-system,sans-serif;padding:0 7px;border-radius:9px;background:var(--gold2);color:#2b2000;box-shadow:0 1px 3px rgba(0,0,0,.5);white-space:nowrap}
.bth{position:relative;display:flex;align-items:baseline;justify-content:center;gap:8px}.bth span:not(.info){font-size:10.5px;color:#d9c7b0}
.bth .info{top:-2px;right:0}
.bties{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}
.btie{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:40px;border-radius:8px;border:1.5px solid rgba(127,224,168,.55);background:rgba(63,174,110,.14)}
.btie b{font:700 16px/1 Georgia,serif;color:#e9fff2}.btie small{font:700 9px/1 -apple-system,sans-serif;color:#7fe0a8}
.btie.has{border-color:var(--gold2);background:rgba(241,212,138,.18)}
.btie .btg{bottom:-7px;font-size:8.5px;padding:0 4px}

@media (max-height:640px){.bedge{display:none}.bart{width:15px;height:15px}.btie{min-height:34px}.bcard{min-height:50px}}
.bcard.has .bedge{visibility:hidden}
/* ================= laptops: card games get two columns — the table on the left, the betting panel on the right ================= */
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  #app:is(.game-bac,.game-bj):not(.inlobby){max-width:1280px;display:grid;grid-template-columns:minmax(0,1fr) 440px;grid-template-rows:auto minmax(0,1fr)}
  #app:is(.game-bac,.game-bj):not(.inlobby) .top{grid-column:1/-1}
  #app:is(.game-bac,.game-bj):not(.inlobby) .table{grid-column:1;grid-row:2;padding:22px 28px 18px}
  #app:is(.game-bac,.game-bj):not(.inlobby) .panel{grid-column:2;grid-row:2;min-height:0;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;
    border-top:0;border-left:2px solid rgba(216,180,90,.45);padding:18px 18px calc(env(safe-area-inset-bottom) + 14px);box-shadow:-6px 0 18px rgba(0,0,0,.35)}
  /* baccarat: big cards, a big road */
  #app.game-bac:not(.inlobby) #bac{--bk:1.9;gap:18px;justify-content:center}
  #app.game-bac:not(.inlobby) .bhands{gap:22px}
  #app.game-bac:not(.inlobby) .bhand{padding:18px 10px 14px;min-height:0}
  #app.game-bac:not(.inlobby) .bhand .bl{font-size:15px}
  #app.game-bac:not(.inlobby) .bwin{font-size:30px;min-height:36px}#app.game-bac:not(.inlobby) .bwin.idle{font-size:20px}
  #app.game-bac:not(.inlobby) .arc{font-size:13px}
  #app.game-bac:not(.inlobby) .road{grid-template-rows:repeat(6,24px);grid-auto-columns:24px;gap:4px;min-height:0;flex:none;padding:10px}
  #app.game-bac:not(.inlobby) .road i{width:24px;height:24px;font-size:11px}
  #app.game-bac:not(.inlobby) #bac.bopen .bhands,#app.game-bac:not(.inlobby) #bac.bopen .arc{display:grid}
  #app.game-bac:not(.inlobby) #bac.bopen .arc{display:block}
  #app.game-bac:not(.inlobby) .bmain.compact .bspot{min-height:76px;flex-direction:column}
  #app.game-bac:not(.inlobby) .bmain.compact .bspot .be,#app.game-bac:not(.inlobby) .bmain.compact .bspot .bp{display:block}
  #app.game-bac:not(.inlobby) .bcard{min-height:74px}#app.game-bac:not(.inlobby) .bedge{display:block}#app.game-bac:not(.inlobby) .bart{width:22px;height:22px}
  #app.game-bac:not(.inlobby) .btop{font-size:20px}
}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  /* blackjack: scale the dealer and the seats up to use the room, centred on the felt */
  #app.game-bj:not(.inlobby) .table{justify-content:center}
  #app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:1.28}
}
@media (orientation:landscape) and (min-width:900px) and (min-height:740px){
  #app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:1.55}
  #app.game-bac:not(.inlobby) #bac{--bk:2.35}
}

/* one tap for every bonus bet */
.aball{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15em;min-width:max(3.6em,30px);padding:0 .4em;border-radius:.5em;
  border:.13em dashed var(--yel);background:rgba(255,212,90,.1);color:var(--yel)!important}
.aball b{font:800 .95em/1 -apple-system,sans-serif;letter-spacing:.12em}.aball span{font:800 1.05em/1 -apple-system,sans-serif;color:var(--chalk)}
.aball:active{background:rgba(255,212,90,.28)}.aball:disabled{opacity:.4}

/* card counter: always on the table (dim when off), a gold dot until you've opened it */
.cplate{font:inherit;color:inherit}
.cplate.off{font-size:8px;font-weight:800;letter-spacing:.8px;color:var(--muted);opacity:.7;min-height:28px;justify-content:center}
.cdot{position:absolute;top:-4px;right:-4px;width:9px;height:9px;border-radius:50%;background:var(--gold2);box-shadow:0 0 0 2px rgba(0,0,0,.35),0 0 8px var(--gold2);animation:cdotp 1.6s ease-in-out infinite}
@keyframes cdotp{50%{transform:scale(1.3)}}
.hilo{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}
.hilo .hl{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border-radius:10px;background:rgba(0,0,0,.3);font-size:11px;color:#d9e6de;text-align:center}
.hilo .hl b{font-size:20px;color:var(--gold2)}
.linkbtn{font-size:12px;color:var(--gold2);text-decoration:underline}

/* ================= wide screens, part 2 (Can, Nov 20: "customized laptop size — the craps one is great") =================
   Laptops: the blackjack and baccarat felt becomes a real table — wood rail, textured printed felt — on a dark room,
   with the betting panel as a framed console beside it. Landscape phones get the same two columns, scaled down. */
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  #app:is(.game-bac,.game-bj):not(.inlobby){background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--felt3) 70%,#111) 0%,#07090a 85%)}
  #app:is(.game-bac,.game-bj):not(.inlobby) .table{margin:14px 6px 16px 18px;border:16px solid transparent;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") padding-box,radial-gradient(ellipse 85% 75% at 50% 28%,var(--felt0),var(--felt) 58%,var(--felt2)) padding-box,
      linear-gradient(140deg,#8a5428 0%,#4d2a10 30%,#7a4520 55%,#3a1f0b 80%,#6b3a18 100%) border-box;
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.35),inset 0 0 46px rgba(0,0,0,.45),0 12px 34px rgba(0,0,0,.65)}
  /* blackjack: the classic half-moon table, players along the curve */
  #app.game-bj:not(.inlobby) .table{border-radius:36px 36px 50% 50% / 36px 36px 24% 24%;padding:18px 40px 46px}
  #app.game-bj:not(.inlobby) #seats::before{content:"INSURANCE PAYS 2 TO 1";display:block;grid-column:1/-1;width:100%;text-align:center;margin:0 0 12px;
    font:italic 700 12px/1 Georgia,serif;letter-spacing:4px;color:rgba(241,212,138,.7);border-top:1.5px solid rgba(241,212,138,.35);border-bottom:1.5px solid rgba(241,212,138,.35);padding:6px 0}
  /* baccarat: an oval table */
  #app.game-bac:not(.inlobby) .table{border-radius:220px/150px;padding:26px 50px 30px}
  /* the panel: a framed console beside the table */
  #app:is(.game-bac,.game-bj):not(.inlobby) .panel{margin:14px 18px 16px 8px;border-radius:26px;border:2px solid rgba(216,180,90,.5);box-shadow:0 10px 30px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06)}
}
/* landscape phones: the same two columns, scaled to a short screen */
@media (orientation:landscape) and (max-height:560px) and (min-width:600px){
  #app:is(.game-bac,.game-bj):not(.inlobby){max-width:none;display:grid;grid-template-columns:minmax(0,1fr) min(46vw,370px);grid-template-rows:auto minmax(0,1fr)}
  #app:is(.game-bac,.game-bj):not(.inlobby) .top{grid-column:1/-1}
  #app:is(.game-bac,.game-bj):not(.inlobby) .table{grid-column:1;grid-row:2;padding:6px 10px 6px;justify-content:center}
  #app:is(.game-bac,.game-bj):not(.inlobby) .panel{grid-column:2;grid-row:2;min-height:0;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;
    border-top:0;border-left:2px solid rgba(216,180,90,.45);padding:6px 10px calc(env(safe-area-inset-bottom) + 6px)}
  #app:is(.game-bac,.game-bj):not(.inlobby) .panel .foot{display:none}
  #app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:.8}
  #app.game-bac:not(.inlobby) #bac{--bk:1;gap:6px}
  #app.game-bac:not(.inlobby) .bhand{min-height:0;padding:6px 4px}
  #app.game-bac:not(.inlobby) .road{min-height:0;grid-template-rows:repeat(4,13px);grid-auto-columns:13px;gap:2px;padding:5px}
  #app.game-bac:not(.inlobby) .road i{width:13px;height:13px;font-size:7px}
  #app.game-bac:not(.inlobby) .arc{display:none}
  #app:is(.game-bac,.game-bj):not(.inlobby) .chip{--d:36px}
}
@media (orientation:landscape) and (max-height:560px) and (min-width:600px){
  #app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:1}
  #app.game-bac:not(.inlobby) #bac{--bk:1.25;justify-content:center}
  #app.game-bac:not(.inlobby) .road{flex:none}
}
@media (orientation:landscape) and (max-height:400px) and (min-width:600px){
  #app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:.9}
  #app.game-bac:not(.inlobby) #bac{--bk:1.05}
}

/* toasts: one at a time, never over the bets (placed by placeToasts) */
.toasts.ontop .toast{animation:tdown .25s ease}
@keyframes tdown{from{transform:translateY(-12px);opacity:0}}
.toast{padding:8px 12px;line-height:1.3}

/* stats: history */
.stabs button{font-size:11px;padding:8px 1px}
.hseg{display:flex;margin:0 0 10px}.hseg button{flex:1}
.hist{display:flex;flex-direction:column;gap:2px}
.hirow{display:grid;grid-template-columns:62px 1fr auto;gap:8px;align-items:baseline;padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px}
.hirow .hn{font-weight:800;font-variant-numeric:tabular-nums;text-align:right}.hirow .hn.w{color:var(--win)}.hirow .hn.l{color:var(--lose)}
.hirow .ht{color:#d9e6de;line-height:1.35;min-width:0}.hirow time{font-size:10px;color:var(--muted)}

/* ================= the lobby on laptops (Can, Nov 20): a wide room, not a phone column =================
   Game tiles become tall table cards side by side; blackjack's tables become a grid. */
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  #app.inlobby{max-width:1280px;background:radial-gradient(ellipse 90% 70% at 50% 0%,#123d2c 0%,#071a12 60%,#040b08 100%)}
  #app.inlobby .lobby{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:min-content;align-content:start;gap:22px 24px;padding:44px 56px 26px}
  #app.inlobby .lobby>:not(.tcard),#app.inlobby .lobby>.tcard.cont{grid-column:1/-1}
  #app.inlobby .lobby .hero{text-align:center;margin-bottom:6px}
  #app.inlobby .lobby .hero h1{font-size:52px}
  #app.inlobby .lobby .hero p{font-size:16px;margin:10px auto 0;max-width:40em}
  #app.inlobby .lback{display:inline-block;margin:0 0 10px}
  /* a game tile: a little table */
  #app.inlobby .tcard:not(.cont){flex-direction:column;align-items:center;text-align:center;gap:18px;padding:34px 24px 26px;border-radius:26px;min-height:330px;
    border:12px solid transparent;box-shadow:0 14px 34px rgba(0,0,0,.55),inset 0 0 0 1px rgba(0,0,0,.4),inset 0 0 40px rgba(0,0,0,.4);
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") padding-box,radial-gradient(ellipse 90% 80% at 50% 30%,var(--t0),var(--t1) 70%) padding-box,linear-gradient(140deg,#8a5428,#4d2a10 30%,#7a4520 55%,#3a1f0b 80%,#6b3a18) border-box;
    transition:transform .18s ease,box-shadow .18s ease}
  #app.inlobby .tcard:not(.cont):hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.6),inset 0 0 40px rgba(0,0,0,.35)}
  #app.inlobby .tcard:not(.cont) .art{width:120px;height:110px;transform:scale(1.85);transform-origin:center;margin:22px 0 20px}
  #app.inlobby .tcard:not(.cont) .tx{align-items:center;gap:8px}
  #app.inlobby .tcard:not(.cont) .nm{font-size:34px}
  #app.inlobby .tcard:not(.cont) .hk{font-size:14.5px;max-width:22em}
  #app.inlobby .tcard:not(.cont) .meta{justify-content:center;margin-top:8px}
  #app.inlobby .tcard:not(.cont) .meta span{font-size:12px;padding:3px 10px}
  #app.inlobby .tcard:not(.cont) .chev{display:none}
  #app.inlobby .tcard{--t0:#1b7f55;--t1:#0a4630}
  #app.inlobby .gtile.g-baccarat{--t0:#8a2436;--t1:#3a0a16}
  #app.inlobby .gtile.g-craps{--t0:#1f63a8;--t1:#0a2a4c}
  /* "Back to …": a wide bar above the tables */
  #app.inlobby .tcard.cont{padding:14px 20px;border-radius:18px;max-width:640px;justify-self:center}
  #app.inlobby .lobby .sect{text-align:center;margin-top:12px}
  #app.inlobby .soon{justify-content:center}
  #app.inlobby .soon span{font-size:13px;padding:8px 14px}
  #app.inlobby .lobby .lfoot{font-size:12px;padding-top:18px}
  /* blackjack's tables: five small tables, three to a row */
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont){min-height:250px;padding:26px 20px 20px}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont) .art{transform:scale(1.5);margin:10px 0 8px}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont) .nm{font-size:27px}
}
@media (orientation:landscape) and (min-width:900px) and (max-height:760px){
  #app.inlobby .lobby{padding:26px 48px 18px;gap:16px 20px}
  #app.inlobby .lobby .hero h1{font-size:40px}
  #app.inlobby .tcard:not(.cont){min-height:270px;padding:22px 18px 18px}
  #app.inlobby .tcard:not(.cont) .art{transform:scale(1.5);margin:12px 0 8px}
}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  #app.inlobby .tcard:not(.cont) .art{width:64px;height:58px;transform:scale(1.9);margin:34px 0 30px}
  #app.inlobby .tcard:not(.cont){min-height:0;padding:30px 22px 24px}
  #app.inlobby .lobby:has(.lback){grid-template-columns:repeat(var(--nt,4),minmax(0,1fr))}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont){min-height:0;padding:22px 14px 18px;border-width:10px}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont) .art{transform:scale(1.5);margin:22px 0 18px}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont) .nm{font-size:24px}
  #app.inlobby .lobby:has(.lback) .tcard:not(.cont) .hk{font-size:13px}
}
@media (orientation:landscape) and (min-width:900px) and (max-height:760px){
  #app.inlobby .lobby{padding:22px 48px 14px;gap:14px 20px}
  #app.inlobby .lobby .hero h1{font-size:38px}#app.inlobby .lobby .hero p{font-size:14px;margin-top:6px}
  #app.inlobby .tcard:not(.cont){padding:18px 18px 16px}
  #app.inlobby .tcard:not(.cont) .art{transform:scale(1.55);margin:18px 0 14px}
  #app.inlobby .tcard:not(.cont) .nm{font-size:28px}
  #app.inlobby .tcard.cont{padding:10px 18px}
  #app.inlobby .lobby .sect{margin-top:2px}
}

/* a total waits until its newest card has landed or turned over */
.late{animation:tlate .38s steps(1,end) both}
@keyframes tlate{from{visibility:hidden}to{visibility:visible}}
/* baccarat: a squeezed second card (bonus bet live) lifts at the corner while face down */
.sq2{display:contents}.sq2>.card{animation:sq2 1.2s ease-in-out}
@keyframes sq2{35%{transform:translateY(-7px) rotate(-4deg) scale(1.05)}70%{transform:translateY(-5px) rotate(3deg) scale(1.05)}}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  /* coming soon and the footer share one quiet line under the tables */
  #app.inlobby .lobby .sect{display:none}
  #app.inlobby .soon::before{content:"Coming soon";align-self:center;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-right:4px}
  #app.inlobby .soon span{font-size:12px;padding:5px 11px}
  #app.inlobby .lobby .lfoot{padding-top:0}
}
@media (orientation:landscape) and (min-width:900px) and (max-height:820px){
  #app.inlobby .lobby{padding-top:18px;gap:12px 20px}
  #app.inlobby .lobby .hero h1{font-size:36px}#app.inlobby .lobby .hero p{margin-top:4px}
  #app.inlobby .tcard:not(.cont){padding:14px 16px 14px}
  #app.inlobby .tcard:not(.cont) .art{transform:scale(1.45);margin:14px 0 10px}
  #app.inlobby .tcard:not(.cont) .tx{gap:5px}#app.inlobby .tcard:not(.cont) .nm{font-size:27px}
}
@media (orientation:landscape) and (min-width:900px) and (max-height:660px){
  #app.inlobby .lobby .hero p{display:none}
  #app.inlobby .tcard:not(.cont) .art{transform:scale(1.25);margin:8px 0 4px}
  #app.inlobby .tcard:not(.cont) .hk{font-size:13px}
}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){#app.inlobby .lobby{align-content:center}}

/* the result receipt: summary, then one pill per bet — green won, red lost, grey push */
.rsum{display:flex;justify-content:center;gap:12px;margin:2px 0 6px;font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums}
.rsum .w{color:var(--win)}.rsum .l{color:var(--lose)}
.rcpt{display:flex;flex-direction:column;gap:5px;max-height:132px;overflow-y:auto;text-align:left}
.rg{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px}
.rg>b{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-right:2px}
.rp{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.rp i{font-style:normal;font-weight:800}
.rp.w{background:#1f8f55;color:#fff;box-shadow:0 0 8px rgba(89,214,140,.35)}
.rp.l{background:rgba(179,33,44,.22);color:#ffb3b8;border:1px solid rgba(255,123,123,.35)}
.rp.p{background:rgba(255,255,255,.1);color:#e8e2c8}
.stag.l{text-decoration:none;opacity:1;background:rgba(179,33,44,.22);color:#ffb3b8}
/* baccarat: the winning hand says so */
.wtag{margin-left:7px;padding:1px 7px;border-radius:999px;background:var(--gold2);color:#2b2000;font-size:.82em;letter-spacing:1px;vertical-align:1px}
.wtag.t{background:#59d68c;color:#06301a}
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){.rcpt{max-height:none}.rp{font-size:13px;padding:4px 10px}.rsum{font-size:14px}}
@media (max-height:700px) and (orientation:portrait){.rcpt{max-height:86px;gap:3px}.rg{gap:3px}.rp{font-size:10.5px;padding:2px 7px;gap:4px}.rsum{margin:0 0 4px;font-size:11.5px}.settle .big{font-size:22px}}

/* ================= the front door and the card counting trainer ================= */
.lobby.trmode{display:block;padding:0}
.front{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:26px 18px 16px;text-align:center}
.fbrand{font:italic 700 15px/1 Georgia,serif;letter-spacing:3px;text-transform:uppercase;color:rgba(241,212,138,.75)}
.fhero h1{margin:8px 0 6px;font:italic 400 30px/1.12 Georgia,serif;color:var(--gold2);text-wrap:balance}.fhero h1 span{color:#c9d9cf;font-size:.8em}
.fhero p{margin:0;font-size:13px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.doors{display:grid;gap:14px;width:100%;max-width:520px}
.door{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 18px 18px;border-radius:22px;border:10px solid transparent;color:var(--ink);
  box-shadow:0 12px 30px rgba(0,0,0,.5),inset 0 0 30px rgba(0,0,0,.35);transition:transform .18s ease}
.door:active{transform:scale(.98)}.door:hover{transform:translateY(-3px)}
.door.d-count{background:radial-gradient(ellipse 90% 80% at 50% 25%,#7a1f36,#2c0812 75%) padding-box,linear-gradient(140deg,#d9b052,#7a5a12 40%,#f1d48a 60%,#7a5a12) border-box}
.door.d-casino{background:radial-gradient(ellipse 90% 80% at 50% 25%,#1b7f55,#073524 75%) padding-box,linear-gradient(140deg,#8a5428,#4d2a10 30%,#7a4520 55%,#3a1f0b 80%,#6b3a18) border-box}
.door b{font:italic 700 26px/1.1 Georgia,serif;color:var(--gold2)}
.door .dsub{font-size:13.5px;line-height:1.35;color:#e6eee9;max-width:26em}
.door .dmeta{margin-top:4px;font-size:11.5px;font-weight:800;letter-spacing:.5px;padding:3px 11px;border-radius:999px;background:rgba(0,0,0,.35);color:var(--gold2)}
.dart{position:relative;width:96px;height:66px;margin-bottom:4px}
.dart .mc{font-style:normal}.dart em{position:absolute;top:-6px;font:800 11px/1 -apple-system,sans-serif;font-style:normal;padding:2px 5px;border-radius:7px;background:var(--gold2);color:#2b2000}
.d-casino .dart{width:110px}
.front .lfoot{font-size:11px;color:var(--muted)}.front .lfoot button{color:var(--gold2);text-decoration:underline;font-size:11px}
/* hub */
.trhub,.trview{max-width:760px;margin:0 auto;padding:16px 16px 18px;display:flex;flex-direction:column;gap:14px}
.trhub .hero h1,.trhead h1{margin:0;font:italic 400 28px/1.1 Georgia,serif;color:var(--gold2)}
.trhub .hero p{margin:4px 0 0;font-size:13px;line-height:1.4;color:#c9d9cf}
.trsec h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.trsec h2 span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--gold2);color:#2b2000;font-size:11px;letter-spacing:0}
.trgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.trcard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 12px 11px;border-radius:14px;text-align:left;color:var(--ink);
  border:1px solid rgba(216,180,90,.32);background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(122,31,54,.55),rgba(30,6,12,.45) 70%)}
.trcard:active{transform:scale(.98)}
.trcard em{font:italic 700 15px/1 Georgia,serif;color:var(--gold2);min-width:22px;height:22px;display:grid;place-items:center;border-radius:11px;border:1px solid rgba(241,212,138,.5);padding:0 4px}
.trcard b{font-size:13.5px;line-height:1.2}.trcard small{font-size:11px;line-height:1.3;color:#cdbfc4}
.trcard.done{border-color:rgba(89,214,140,.55)}.trcard.done em{background:#1f8f55;border-color:#1f8f55;color:#fff;font-style:normal}
.trbest{margin-top:3px;font-size:10.5px;font-weight:800;color:var(--gold2)}
.trcard.play{background:radial-gradient(ellipse 120% 140% at 0% 0%,rgba(27,127,85,.6),rgba(7,53,36,.4) 70%)}
.trcard.trsoon{opacity:.6;border-style:dashed}
.trgrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.honest{margin:0;font-size:11.5px;line-height:1.45;color:var(--muted);padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.22)}
.trhub .lfoot,.trview .lfoot{font-size:11px;color:var(--muted);text-align:center}.trhub .lfoot button{color:var(--gold2);text-decoration:underline;font-size:11px}
/* lessons */
.trhead small,.trq small{font-size:10.5px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.trbody{font-size:14px;line-height:1.5;color:#e6eee9}.trbody p{margin:0 0 10px}.trbody ul{margin:0 0 10px;padding-left:18px}.trbody li{margin-bottom:4px}
.tcform{text-align:center;font:italic 700 17px/1.3 Georgia,serif;color:var(--gold2)}
.trq{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:14px;background:rgba(0,0,0,.25)}
.trq>b{font-size:15px;line-height:1.35}.trq.end{font-size:14px;flex-direction:row;gap:6px;align-items:baseline}
.tropts{display:flex;flex-direction:column;gap:6px}
.tropt{padding:11px 12px;border-radius:12px;text-align:left;font-size:14px;color:var(--ink);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.tropt.right{background:#1f8f55;border-color:#1f8f55;color:#fff}.tropt.wrong{background:rgba(179,33,44,.35);border-color:rgba(255,123,123,.5)}
.tropt:disabled{opacity:1}
.why{margin:0;font-size:13px;line-height:1.4;padding:8px 10px;border-radius:10px}.why.ok{background:rgba(31,143,85,.25);color:#cff5df}.why.no{background:rgba(179,33,44,.22);color:#ffd3d6}
/* drills */
.trlead{margin:0;font-size:14px;line-height:1.45;color:#e6eee9;text-align:center}
.hilo.small{max-width:360px;margin:0 auto;width:100%}.hilo.small .hl{padding:6px 4px}
.trprog{position:relative;height:18px;border-radius:9px;background:rgba(0,0,0,.3);overflow:hidden}
.trprog i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#c79b3c,var(--gold2));transition:width .15s}
.trprog span{position:relative;display:block;text-align:center;font:800 10.5px/18px -apple-system,sans-serif;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.trstage{display:flex;justify-content:center;align-items:center;gap:10px;min-height:170px;border-radius:18px;background:radial-gradient(ellipse at 50% 40%,rgba(27,127,85,.45),rgba(7,53,36,.2) 70%);transition:box-shadow .2s}
.trstage .card{zoom:1.7}.trstage.multi .card{zoom:1.4}
.trstage.ok{box-shadow:inset 0 0 0 3px #59d68c}.trstage.no{box-shadow:inset 0 0 0 3px #ff7b7b}
.trstage.tap{width:100%;cursor:pointer}
.trhid{font-size:15px;color:var(--muted)}
.transwer{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px}
.transwer.wide{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.transwer.wide .tra{padding-left:0;padding-right:0}
.tra{font-size:22px;font-weight:800;min-height:56px}
.trkeys{margin:0;text-align:center;font-size:11px;color:var(--muted)}
.trres{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:16px;border-radius:16px;background:rgba(0,0,0,.25)}
.trres>b{font:italic 700 34px/1 Georgia,serif;color:var(--win)}.trres.bad>b{color:var(--lose)}
.trres>span{font-size:13px;color:#e6eee9;font-variant-numeric:tabular-nums}.trres p{margin:4px 0 0;font-size:12.5px;line-height:1.4;color:var(--muted)}
.trlast{display:flex;align-items:center;gap:12px;text-align:left}.trlast p{margin:0;max-width:22em}
.tcq{display:flex;justify-content:center;align-items:stretch;gap:18px}
.tcrc{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 22px;border-radius:16px;background:rgba(0,0,0,.3)}
.tcrc small,.tray small{font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.tcrc b{font-size:44px;font-weight:800;color:var(--gold2);font-variant-numeric:tabular-nums}
.tray{display:flex;flex-direction:column;align-items:center;gap:6px}
.tbox{position:relative;width:62px;height:120px;border:2px solid rgba(255,255,255,.5);border-top:0;border-radius:0 0 8px 8px;background:rgba(0,0,0,.3);overflow:hidden}
.tbox span{position:absolute;left:3px;right:3px;bottom:3px;background:repeating-linear-gradient(0deg,#fbfaf6 0 2px,#d9d4c4 2px 3px);border-radius:2px}
.tbox i{position:absolute;left:0;width:8px;height:1px;background:rgba(255,255,255,.45)}
/* laptops: the two doors side by side, a four-wide hub */
@media (orientation:landscape) and (min-width:900px) and (min-height:560px){
  .front{gap:34px;padding:30px 48px}
  .fhero h1{font-size:52px}.fbrand{font-size:18px}.fhero p{font-size:15px}
  .doors{grid-template-columns:1fr 1fr;max-width:1040px;gap:28px}
  .door{padding:40px 30px 34px;border-width:14px;gap:10px;min-height:340px;justify-content:center}
  .door b{font-size:38px}.door .dsub{font-size:16px}.door .dmeta{font-size:13px;padding:5px 14px}
  .dart{transform:scale(1.6);margin:18px 0 22px}
  .trhub,.trview{max-width:1080px;padding:26px 40px}
  .trhub .hero h1,.trhead h1{font-size:40px}
  .trgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.trcard{padding:16px 16px 14px}.trcard b{font-size:15px}.trcard small{font-size:12px}
  .trview{max-width:720px}.trstage{min-height:240px}.trstage .card{zoom:2.2}.trstage.multi .card{zoom:1.8}
}
@media (orientation:landscape) and (max-height:560px){
  .front{flex-direction:row;flex-wrap:wrap;gap:12px 20px;padding:12px 18px}.fhero h1{font-size:22px}.doors{grid-template-columns:1fr 1fr;max-width:none;flex:1}
  .door{padding:12px 12px 12px}.door b{font-size:20px}.dart{transform:scale(.8);margin:-6px 0}
  .trstage{min-height:110px}.trstage .card{zoom:1.2}
}

/* phones: the two doors side by side in a row each, art beside the words, so both fit on one screen */
@media (orientation:portrait){
  .front{justify-content:flex-start;gap:16px;padding-top:22px}
  .fhero h1{font-size:26px}
  .door{flex-direction:row;align-items:center;text-align:left;gap:12px;padding:14px 14px 14px 8px;border-width:8px}
  .door .dart{flex:none;transform:scale(.75);margin:-8px -14px -8px -10px}
  .door b{font-size:21px}.door .dsub{font-size:12.5px}.door .dmeta{align-self:flex-start}
  .door>b,.door>.dsub,.door>.dmeta{grid-column:2}
  .door{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:10px;row-gap:3px}
  .door .dart{grid-row:1/4}
}
@media (orientation:landscape) and (min-width:900px) and (max-height:760px){
  .front{gap:22px;padding:18px 48px}.fhero h1{font-size:42px}
  .door{min-height:290px;padding:28px 26px 24px}.dart{transform:scale(1.4);margin:12px 0 16px}
}
/* blackjack zoom by screen height (1366×768, the most common laptop, needs the middle step) */
@media (orientation:landscape) and (min-width:900px) and (min-height:560px) and (max-height:719px){#app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:1.1}}
@media (orientation:landscape) and (min-width:900px) and (min-height:720px) and (max-height:879px){#app.game-bj:not(.inlobby) #dealer,#app.game-bj:not(.inlobby) #seats{zoom:1.3}}
@media (orientation:landscape) and (min-width:900px) and (max-height:700px){.front{gap:16px;padding:12px 48px}.fhero h1{font-size:36px;margin:4px 0}.door{min-height:250px;padding:20px 22px 18px}.dart{transform:scale(1.25);margin:8px 0 10px}}
