@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Pixelify+Sans:wght@400;500;600;700&display=swap');
:root{--ink:#101321;--navy:#171a2d;--navy2:#20243c;--cream:#fff2ce;--gold:#ffd264;--gold2:#efa83f;--green:#123f37;--green2:#1e604d;--muted:#a4abc1;--line:#454967;--red:#db5c5f;--purple:#7d68c5;--shadow:6px 6px 0 #070a15}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#0d1120;color:var(--cream);font-family:'DM Sans',sans-serif}
.readable-digits{font-family:'DM Sans',sans-serif!important;font-size:inherit!important;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:0!important}
button{font:inherit;cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.42}
button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.app-shell{min-height:100vh;background:radial-gradient(circle at 51% 22%,#232441 0,#101321 48%,#0b101d 100%)}
.app-shell:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(0deg,transparent 0 31px,#6e7190 31px 32px),repeating-linear-gradient(90deg,transparent 0 31px,#6e7190 31px 32px);z-index:0}
.topbar,main{position:relative;z-index:1}
.topbar{height:90px;position:sticky;top:0;z-index:30;background:#15192b;border-bottom:4px solid var(--gold);display:flex;align-items:center;gap:32px;padding:0 max(24px,calc((100vw - 1500px)/2));box-shadow:0 5px 0 #080b15}
.brand{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--cream);padding:0;white-space:nowrap;text-align:left;font-family:'Pixelify Sans',monospace;font-size:30px;font-weight:700;line-height:.82;letter-spacing:-1px}
.brand-accent{color:var(--gold)}
.brand small{display:block;margin-top:6px;color:#bab9ca;letter-spacing:3px;font-family:'DM Sans',sans-serif;font-size:8px;font-weight:800}
.brand-duck{height:48px;width:48px;image-rendering:pixelated;object-fit:contain}
.main-nav{display:flex;align-items:stretch;gap:5px;height:100%;margin:auto}
.nav-button{background:transparent;border:0;border-bottom:4px solid transparent;color:#bab7ca;padding:2px 17px 0;text-transform:uppercase;font-family:'Pixelify Sans',monospace;font-size:19px;font-weight:700;white-space:nowrap}
.nav-button:hover,.nav-button.active{color:var(--gold);border-bottom-color:var(--gold)}
.top-actions{display:flex;align-items:center;gap:10px}
.wallet-pill{min-width:236px;height:67px;display:flex;align-items:center;gap:10px;padding:6px 10px;background:#30291e;border:3px solid var(--gold);box-shadow:4px 4px 0 #060810;position:relative;white-space:nowrap}
.wallet-pill.pulse{animation:walletFlash .55s steps(2,end)}
.wallet-pill.pulse #wallet-amount{animation:walletAmountPop .65s steps(5,end)}
.wallet-pill[data-change="up"]{--wallet-flash-bg:#28553a}
.wallet-pill[data-change="down"]{--wallet-flash-bg:#633038}
.wallet-pill[data-change="up"] #wallet-amount,.wallet-pill[data-change="up"] #wallet-change{color:#8df2aa}
.wallet-pill[data-change="down"] #wallet-amount,.wallet-pill[data-change="down"] #wallet-change{color:#ff878a}
@keyframes walletFlash{50%{background:var(--wallet-flash-bg,#66521f);transform:translateY(-3px)}}
@keyframes walletAmountPop{0%{transform:translateY(4px) scale(.9);opacity:.55}50%{transform:translateY(-3px) scale(1.14);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}
.coin,.hero-chip{background:var(--gold);border:3px solid #161626;color:#252038;display:grid;place-items:center;font-family:'Pixelify Sans',monospace;font-weight:700;box-shadow:3px 3px 0 #070810}
.coin{width:40px;height:40px;font-size:16px;flex:none}
.wallet-text{display:flex;flex-direction:column;line-height:1.03}
.wallet-label{color:#ffdb79;font-family:'Pixelify Sans',monospace;font-size:12px;letter-spacing:1px;font-weight:700}
.wallet-main{display:flex;align-items:baseline;gap:5px}
#wallet-amount{font-family:'Pixelify Sans',monospace;font-size:35px;color:white;line-height:1}
.wallet-unit{color:#fff0ca;font-family:'Pixelify Sans',monospace;font-weight:700;font-size:12px}
#wallet-change{position:absolute;right:5px;top:100%;margin-top:7px;color:var(--gold);font-family:'Pixelify Sans';font-size:14px;font-weight:700;text-shadow:2px 2px #080b15}
.sign-in{height:42px;padding:0 12px;color:var(--cream);background:#272b45;border:2px solid #76768c;box-shadow:3px 3px 0 #070810;font-family:'Pixelify Sans';font-size:15px;font-weight:700;white-space:nowrap}
.sign-in:hover{background:#333c5c}
@media(max-width:1350px){.sign-in{display:none}}
main{max-width:1500px;margin:0 auto;padding:31px 24px 70px}
.screen{display:none}
.screen.active{display:block}
.floor-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:0 0 19px}
.floor-heading .eyebrow{font-size:14px;letter-spacing:2px;margin-bottom:3px}
.floor-heading h1{font-family:'Pixelify Sans',monospace;font-size:clamp(43px,4.4vw,69px);line-height:.9;letter-spacing:-2px;margin:0}
.floor-heading>p{font-size:16px;color:#d1cee0;margin:0 0 4px;white-space:nowrap}
.floor-heading>p strong{color:var(--gold)}
.casino-scene{position:relative;height:min(72vh,670px);min-height:500px;overflow:hidden;border:5px solid #d9a95a;outline:5px solid #31243d;box-shadow:8px 8px 0 #060810;background:#1c1733}
.casino-scene-art{width:100%;height:100%;display:block;object-fit:cover;object-position:center;image-rendering:pixelated}
/* Pivot a patch of the doorway plant at the base of its outward-facing leaf. */
.doorway-leaf {
  position:absolute;
  inset:0;
  pointer-events:none;
  clip-path:polygon(7.9% 80.6%, 7.9% 77.3%, 9.1% 74.3%, 10.6% 72.2%, 12.8% 72.2%, 14.6% 73.5%, 15.7% 76%, 15.7% 77.5%, 14.3% 76.7%, 13% 77.4%, 11.9% 79.2%, 10.1% 79.5%, 8.8% 81.6%);
  transform-origin:8% 80.5%;
  animation:leaf-stir 14s ease-in-out -9s infinite;
}
@keyframes leaf-stir {
  0%, 80%, 98%, 100% { transform:rotate(0); }
  87% { transform:rotate(-1.2deg); }
  93% { transform:rotate(.45deg); }
}
.crystal-glint {
  position:absolute;
  width:.85%;
  aspect-ratio:1;
  pointer-events:none;
  background:#fffbe1;
  clip-path:polygon(44% 0,56% 0,56% 35%,65% 35%,65% 44%,100% 44%,100% 56%,65% 56%,65% 65%,56% 65%,56% 100%,44% 100%,44% 65%,35% 65%,35% 56%,0 56%,0 44%,35% 44%,35% 35%,44% 35%);
  opacity:0;
  animation:crystal-catch 20s ease-in-out infinite;
}
.crystal-glint-first { left:45.6%; top:11.3%; animation-delay:3s; }
.crystal-glint-second { left:49.4%; top:16%; animation-delay:3.28s; }
@keyframes crystal-catch {
  0%, 3%, 100% { opacity:0; transform:scale(.25); }
  1.25% { opacity:1; transform:scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  .doorway-leaf, .crystal-glint { display:none; }
}
/* The arch hides the guest before and after the crossing. */
.hallway-opening {
  position:absolute;
  left:44.8%;
  top:36%;
  width:10.4%;
  height:7.5%;
  overflow:hidden;
  pointer-events:none;
}
.hallway-guest {
  position:absolute;
  left:-24%;
  bottom:3%;
  width:24%;
  animation:hallway-crossing 60s linear -50s infinite;
}
.hallway-guest img {
  display:block;
  width:100%;
  filter:brightness(.68) saturate(.75);
  transform-origin:50% 92%;
  animation:guest-waddle .44s steps(2,end) infinite;
}
@keyframes hallway-crossing {
  0% { left:-24%; }
  6%, 100% { left:101%; }
}
@keyframes guest-waddle {
  0%, 100% { transform:rotate(-5deg); }
  50% { transform:translateY(-3%) rotate(5deg); }
}
.sconce-glow {
  position:absolute;
  top:25.4%;
  width:8%;
  height:12%;
  pointer-events:none;
  background:radial-gradient(ellipse, #ffdd92a8 0%, #ffac393b 35%, transparent 72%);
  animation:sconce-flicker 11s ease-in-out infinite;
}
.sconce-left { left:15.4%; }
.sconce-right { left:75.8%; animation-duration:14s; animation-delay:-5s; }
@keyframes sconce-flicker {
  0%, 58%, 74%, 100% { opacity:.55; }
  62% { opacity:.24; }
  66% { opacity:.75; }
  69% { opacity:.47; }
}
@media (prefers-reduced-motion:reduce) {
  .hallway-opening, .sconce-glow { display:none; }
}
/* Distant traffic and lit apartments sit behind the window frames. */
.city-windows {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.city-train {
  position:absolute;
  left:7.4%;
  top:38.3%;
  width:5.8%;
  height:1%;
  overflow:hidden;
  mask-image:linear-gradient(to right, black 0 49%, transparent 49% 60%, black 60% 100%);
}
.city-train::before {
  content:"";
  position:absolute;
  width:38%;
  height:72%;
  top:14%;
  background:
    repeating-linear-gradient(90deg, #dfbc78 0 8%, transparent 8% 17%) center / 85% 30% no-repeat,
    linear-gradient(#525983 20%, #242940 20% 85%, #464968 85%);
  animation:city-train-pass 26s linear -6s infinite;
}
@keyframes city-train-pass {
  0% { left:-40%; }
  41%, 100% { left:101%; }
}
.city-lamp {
  position:absolute;
  left:88.05%;
  top:39.85%;
  width:.14%;
  height:.37%;
  background:#f6ce7c;
  animation:apartment-light 17s steps(1,end) -4s infinite;
}
.city-lamp + .city-lamp {
  left:92.55%;
  top:39.05%;
  animation-duration:23s;
  animation-delay:-16s;
}
@keyframes apartment-light {
  0%, 72% { opacity:.8; }
  73%, 100% { opacity:.1; }
}
@media (prefers-reduced-motion:reduce) {
  .city-train { display:none; }
  .city-lamp { animation:none; opacity:.65; }
}
/* Use the room's source coordinates and the same centered cover crop as its image. */
.dealer-idle-layer { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:hidden; }
.dealer-idle { image-rendering:pixelated; }
.casino-scene:has(.casino-spot-blackjack:is(:hover,:focus-visible)) .dealer-idle-blackjack,
.casino-scene:has(.casino-spot-roulette:is(:hover,:focus-visible)) .dealer-idle-roulette,
.casino-scene:has(.casino-spot-eggdrop:is(:hover,:focus-visible)) .dealer-idle-eggdrop,
.casino-scene:has(.casino-spot-coinflip:is(:hover,:focus-visible)) .dealer-idle-coinflip { visibility:hidden; }
@media (prefers-reduced-motion:reduce) { .dealer-idle { display:none; } }
/* Reveal the active dealer and felt together, in the scene's coordinates. */
.casino-scene-reaction {
  position:absolute;
  inset:0;
  z-index:1;
  opacity:0;
  pointer-events:none;
  clip-path:var(--table-region, inset(100%));
  transition:opacity 110ms ease-out;
}
.casino-scene:has(.casino-spot-blackjack:is(:hover,:focus-visible)) {
  --table-region:polygon(9% 50%, 18% 48%, 19% 38%, 25% 38%, 25% 48%, 33% 52%, 33% 61%, 10% 61%);
}
.casino-scene:has(.casino-spot-roulette:is(:hover,:focus-visible)) {
  --table-region:polygon(64% 51%, 71% 46%, 75% 46%, 76% 36%, 82% 36%, 85% 48%, 92% 50%, 92% 61%, 64% 61%);
}
.casino-scene:has(.casino-spot-eggdrop:is(:hover,:focus-visible)) {
  --table-region:polygon(24.5% 42%, 26% 40%, 27% 30%, 35% 29%, 35% 40%, 36% 43%, 36% 49%, 31% 51%, 26% 48%, 24.5% 47%);
}
.casino-scene:has(.casino-spot-coinflip:is(:hover,:focus-visible)) {
  --table-region:polygon(61% 41%, 63% 37%, 64% 29%, 70% 29%, 70% 39%, 72.4% 40%, 72.4% 46%, 70% 46%, 65% 50%, 61% 49%);
}
.casino-scene:has(.casino-spot:is(:hover,:focus-visible)) .casino-scene-reaction { opacity:1; }
.casino-spot{position:absolute;z-index:2;padding:0;border:0;background:transparent;color:var(--cream);cursor:pointer}
.casino-spot:focus-visible{outline:none}
.casino-spot:focus-visible .casino-spot-label strong{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:3px}
.casino-spot-blackjack{left:8%;top:39%;width:34%;height:38%}
.casino-spot-roulette{right:7%;top:36%;width:32%;height:41%}
.casino-spot-eggdrop{left:25%;top:32%;width:11%;height:16%}
.casino-spot-coinflip{left:61%;top:30%;width:11%;height:17%;display:grid;place-items:center}
.casino-spot-coinflip .casino-spot-label,.casino-spot-eggdrop .casino-spot-label{left:50%;bottom:104%;transform:translate(-50%,34%)}
.casino-spot-coinflip .casino-spot-label{border-color:#f2d17c;background:#38243e}
.casino-spot-eggdrop .casino-spot-label{border-color:#e3a6dd;background:#35203f}
.casino-spot-label{position:absolute;left:50%;bottom:0;transform:translate(-50%,34%);min-width:max-content;padding:4px 8px;background:#18162b;border:2px solid #f3c866;box-shadow:3px 3px 0 #080a18;text-align:left;line-height:1}
.casino-spot-label strong{display:block;font-family:'Pixelify Sans',monospace;font-size:clamp(14px,1.3vw,19px);line-height:1;white-space:nowrap}
.casino-spot-label strong span{color:var(--gold)}
.casino-spot:is(:hover,:focus-visible) .casino-spot-label{background:#683a72;border-color:#fff1be;transform:translate(-50%,30%) scale(1.08);filter:brightness(1.2);box-shadow:0 0 15px #ffeaa8,3px 3px 0 #080a18}
.scene-entry-note{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);padding:7px 14px;background:#171627db;border:2px solid #e7b758;color:#ffe7aa;font-family:'Pixelify Sans',monospace;font-size:18px;font-weight:700;letter-spacing:2px;white-space:nowrap;pointer-events:none}
.floor-mobile-links{display:none}
.lobby-hero{min-height:385px;display:grid;grid-template-columns:1.04fr .96fr;overflow:hidden;border:4px solid #7f75b3;box-shadow:var(--shadow);background:#25213a}
.hero-copy{padding:45px 5.5%;position:relative;z-index:1}
.eyebrow,.hero-caption,.art-caption,.table-number,.table-tag,.table-kicker,.felt-rail,.hand-label,.dealer-seat b,.dealer-seat small,.pot-label,.your-poker-hand>span,.lobby-bottom,.balance-readout span,.stake-row,.panel-footnote{font-family:'Pixelify Sans',monospace;font-weight:700;letter-spacing:1px}
.eyebrow{color:var(--gold);font-size:16px;margin:0 0 10px}
.spark{font-size:18px}
h1,h2,p{margin-top:0}
.hero-copy h1{font-family:'Pixelify Sans',monospace;font-size:clamp(56px,5.7vw,94px);line-height:.83;letter-spacing:-4px;margin:15px 0 24px}
.hero-copy h1 em{font-style:normal;color:var(--gold)}
.hero-description{font-size:17px;line-height:1.55;color:#e1dcec;max-width:460px}
.hero-description strong{color:var(--gold)}
.hero-actions{display:flex;align-items:center;gap:24px;margin-top:26px}
.primary-button{height:58px;padding:0 25px;background:var(--gold);border:3px solid #1d1830;box-shadow:5px 5px 0 #0b0b18;color:#1e1b2c;font-family:'Pixelify Sans',monospace;font-size:21px;font-weight:700;white-space:nowrap}
.primary-button:hover:not(:disabled){background:#ffe095;transform:translate(-2px,-2px);box-shadow:7px 7px 0 #0b0b18}
.primary-button:active:not(:disabled){transform:translate(3px,3px);box-shadow:2px 2px 0 #0b0b18}
.hero-caption{font-size:13px;color:#c2b7ca}
.hero-art{min-height:385px;position:relative;background:linear-gradient(0deg,#3f2957 0 16%,#4b2f6e 16% 17%,#251c43 17% 100%);border-left:4px solid #7f75b3;overflow:hidden}
.hero-art:before{content:"";position:absolute;inset:0;opacity:.35;background:repeating-linear-gradient(90deg,transparent 0 39px,#66548d 39px 42px),repeating-linear-gradient(0deg,transparent 0 39px,#66548d 39px 42px)}
.hero-art:after{content:"";position:absolute;left:7%;right:7%;bottom:16%;height:11px;background:#b47839;box-shadow:0 11px #382337,0 22px #1a1c30}
.pixel-star{position:absolute;color:#ffd978;font-size:25px;z-index:1}
.star-one{left:18%;top:18%}.star-two{right:22%;top:11%}.star-three{right:10%;top:40%}
.hero-pixel-duck{position:absolute;z-index:3;width:300px;height:300px;bottom:10%;left:38%;transform:translateX(-50%);image-rendering:pixelated;filter:drop-shadow(10px 12px 0 #171122)}
.hero-card{position:absolute;z-index:2;width:100px;height:137px;background:#fff2d1;color:#1a2035;border:5px solid #182037;box-shadow:6px 6px 0 #111320;display:flex;flex-direction:column;justify-content:space-between;padding:8px;font-family:'Pixelify Sans';font-size:36px;font-weight:700}
.hero-card span{align-self:end;font-size:40px}
.hero-card-back{left:10%;top:28%;transform:rotate(-15deg);background:repeating-linear-gradient(45deg,#8c4d72 0 8px,#69365b 8px 16px);color:transparent}
.hero-card-front{left:22%;top:26%;transform:rotate(-7deg)}
.hero-chip{position:absolute;z-index:4;width:55px;height:55px;font-size:17px}
.chip-one{right:14%;bottom:30%;transform:rotate(12deg)}.chip-two{right:24%;bottom:17%;transform:rotate(-12deg);background:#c68ce0}
.art-caption{position:absolute;z-index:5;bottom:0;left:0;right:0;height:45px;display:grid;place-items:center;background:#17162a;color:#f7c76a;font-size:15px}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin:40px 0 19px}
.section-heading .eyebrow{margin-bottom:0}.section-heading h2{font-family:'Pixelify Sans';font-size:43px;line-height:1;margin:0}
.section-heading>span{font-family:'Pixelify Sans';font-size:19px;color:#a9a6bf}
.table-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.table-card{display:flex;flex-direction:column;min-width:0;padding:0;text-align:left;background:#1d2435;border:4px solid #586a78;color:var(--cream);box-shadow:var(--shadow)}
.table-card:hover{transform:translate(-3px,-3px);box-shadow:9px 9px 0 #070a15;border-color:var(--gold)}
.table-number{padding:10px 15px;border-bottom:3px solid currentColor;color:#a6b6bd;font-size:14px}
.table-illustration{height:169px;position:relative;display:block;overflow:hidden;border-bottom:4px solid #111520}
.blackjack-illustration{background:repeating-linear-gradient(0deg,#175042 0 20px,#1b5948 20px 21px)}
.roulette-illustration{background:repeating-linear-gradient(0deg,#543040 0 20px,#5a3345 20px 21px)}
.poker-illustration{background:repeating-linear-gradient(0deg,#392c5e 0 20px,#403367 20px 21px)}
.illustrated-card{position:absolute;width:74px;height:105px;background:#fff0d6;color:#18233c;border:4px solid #172034;box-shadow:5px 5px 0 #0e1723;top:29px;padding:4px;font-family:'Pixelify Sans';font-size:32px;font-weight:700}
.illustrated-card small{display:block;font-size:27px;text-align:right}.card-left{left:35%;transform:rotate(-13deg)}.card-right{left:49%;top:39px;transform:rotate(11deg);color:#b84755}
.illustrated-chip{position:absolute;top:98px;left:30%;background:var(--gold);border:4px solid #172034;padding:5px 10px;font-family:'Pixelify Sans';font-weight:700;font-size:20px;color:#15182a;box-shadow:4px 4px #0b101b}
.wheel{position:absolute;width:150px;height:150px;top:9px;left:calc(50% - 75px);border:10px solid #e9bc62;box-shadow:0 0 0 6px #2e1e32;clip-path:polygon(25% 0,75% 0,75% 6%,88% 6%,88% 13%,94% 13%,94% 25%,100% 25%,100% 75%,94% 75%,94% 88%,88% 88%,88% 94%,75% 94%,75% 100%,25% 100%,25% 94%,12% 94%,12% 88%,6% 88%,6% 75%,0 75%,0 25%,6% 25%,6% 12%,12% 12%,12% 6%,25% 6%);background:repeating-conic-gradient(#c94e56 0deg 22.5deg,#1a1c2b 22.5deg 45deg)}
.wheel i{display:block;position:absolute;inset:35%;background:#e0b259;border:5px solid #30253d}.wheel-ball{position:absolute;width:13px;height:13px;background:#fff;left:51%;top:22px;border:2px solid #182032}
.mini-duck{position:absolute;width:135px;height:135px;top:15px;image-rendering:pixelated;filter:drop-shadow(4px 6px 0 #151126)}.mini-one{left:24%;filter:hue-rotate(40deg) drop-shadow(4px 6px 0 #151126)}.mini-two{right:18%}
.poker-bubble{position:absolute;right:8%;top:14px;padding:6px;background:#fff1d0;color:#1b1a2e;border:3px solid #1b1a2e;box-shadow:4px 4px #111021;font-family:'Pixelify Sans';font-size:20px;font-weight:700}
.table-copy{display:flex;flex-direction:column;min-height:146px;padding:15px}
.table-title{display:flex;justify-content:space-between;align-items:center;font-family:'Pixelify Sans';font-size:34px;font-weight:700;line-height:1}
.table-title b{color:var(--gold);font-size:25px}
.table-description{font-size:14px;color:#c8cad6;line-height:1.42;margin-top:8px}
.table-tag{color:var(--gold);font-size:12px;margin-top:auto;padding-top:15px}
.lobby-bottom{display:flex;gap:20px;align-items:center;justify-content:space-between;color:#a9a9bd;font-size:14px;margin-top:25px}
.lobby-bottom button{background:transparent;color:var(--gold);border:0;font-family:'Pixelify Sans';font-size:14px;font-weight:700}.lobby-bottom button:hover{text-decoration:underline}
.status-dot{display:inline-block;width:9px;height:9px;background:#76ce9b;margin-right:5px}
.table-heading{position:relative;min-height:122px;padding:0 0 20px 0;display:grid;grid-template-columns:1fr auto;align-items:start}
.back-button{background:#2a2e48;color:#f1d99c;border:2px solid #837da4;padding:7px 12px;font-family:'Pixelify Sans';font-size:17px;font-weight:700;justify-self:start}
.back-button:hover{background:#3c4262}
.table-kicker{color:#a9a2ba;font-size:17px}
.table-heading h1{grid-column:1;grid-row:2;font-family:'Pixelify Sans';font-size:55px;line-height:1;margin:6px 0 0}
.table-heading p{grid-column:1;grid-row:3;color:#c1c1d1;margin:4px 0 0;font-size:15px}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px}
.felt{min-height:605px;border:5px solid #c79f51;box-shadow:7px 7px 0 #080b18;position:relative;overflow:hidden;padding:18px;background:#175242}
.felt:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;background:repeating-linear-gradient(90deg,transparent 0 31px,#091913 31px 32px),repeating-linear-gradient(0deg,transparent 0 31px,#091913 31px 32px)}
.felt-rail{position:relative;z-index:1;display:flex;justify-content:space-between;color:#d5bd7c;font-size:13px;border-bottom:3px solid #b69353;padding-bottom:11px}
.dealer-seat,.hand-area,.felt-center,.felt-message,.roulette-stage,.roulette-table,.opponent-row,.poker-middle,.your-poker-hand{position:relative;z-index:1}
.dealer-seat{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:14px}
.dealer-avatar{width:72px;height:72px;image-rendering:pixelated;background:#17352d;border:3px solid #a2bd88}
.dealer-seat b,.dealer-seat small{display:block}.dealer-seat b{font-size:20px}.dealer-seat small{color:#c4d1c5;font-size:12px}
.hand-area{display:flex;flex-direction:column;align-items:center}
.dealer-hand{margin-top:5px}.player-hand{margin-top:13px}
.hand-label{color:#fff0b9;font-size:15px;margin-bottom:7px}.hand-label strong{color:#fff;font-size:21px;margin-left:9px}
.cards,.community-cards{display:flex;gap:8px;justify-content:center}
.playing-card{width:68px;height:95px;padding:6px;background:#fff0d0;color:#1b2130;border:4px solid #17202a;box-shadow:4px 4px 0 #0a1b1a;font-family:'Pixelify Sans';font-size:31px;font-weight:700;line-height:1}
.playing-card small{display:block;font-size:28px;text-align:right;margin-top:9px}.playing-card.red-card{color:#bd4554}.card-placeholder{background:#5e456a;color:#e8c577;display:grid;place-items:center;border-color:#e8bb72;font-size:45px}
.felt-center{display:flex;flex-direction:column;align-items:center;justify-content:center;height:99px;margin:10px auto 4px;color:#dfc989;border-top:3px dashed rgba(255,225,158,.35);border-bottom:3px dashed rgba(255,225,158,.35);max-width:82%}
.felt-center span,.felt-center small{font-family:'Pixelify Sans';letter-spacing:2px}.felt-center span{font-size:13px}.felt-center strong{font-family:'Pixelify Sans';font-size:55px;line-height:.85;color:#f9d578}.felt-center small{font-size:11px}
.felt-message{min-height:43px;display:grid;place-items:center;background:#fff2d0;color:#183e33;border:3px solid #0e3228;box-shadow:4px 4px 0 #071d17;padding:7px 10px;margin:22px auto 0;max-width:80%;font-family:'Pixelify Sans';font-weight:700;font-size:19px;text-align:center}
.table-panel{border:4px solid #78779b;background:#23263c;padding:21px 20px;box-shadow:6px 6px 0 #070a15;align-self:start;min-height:605px}
.table-panel h2{font-family:'Pixelify Sans';font-size:40px;line-height:1.05;margin:0 0 19px}
.balance-readout{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 19px;padding:12px;background:#342c28;border:3px solid var(--gold);color:#ffe5a2}
.balance-readout span{font-size:13px}.balance-readout strong{font-family:'Pixelify Sans';font-size:25px;color:#fff}
.stake-row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#111927;border:3px solid #6e7792;padding:9px;color:#fff3d6;font-size:16px}
.stake-row.next-bet{border-color:var(--gold);background:#30291e;box-shadow:3px 3px 0 #0b0b18}
.stake-row.next-bet #bj-stake-label{color:var(--gold)}
.stake-row strong{font-size:26px;color:var(--gold)}
.stake-row input{width:70px;min-width:0;padding:2px 4px;background:#202b3c;border:2px solid #9aa3bd;color:var(--gold);font-family:'DM Sans',sans-serif;font-size:25px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums}
.stake-row input:disabled{opacity:.7}
.stake-row input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.stake-row input::-webkit-inner-spin-button,.stake-row input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.stake-row input[type=number]{appearance:textfield;-moz-appearance:textfield}
.max-bet-button{display:block;width:100%;margin-top:8px;padding:9px 12px;background:#323551;border:2px solid #9b92be;color:#ffe3a1;font-family:'Pixelify Sans';font-size:17px;font-weight:700;text-align:center}
.max-bet-button:hover:not(:disabled){background:#4a436b;border-color:var(--gold)}
.stake-adjust{width:33px;height:33px;display:grid;place-items:center;background:#414968;border:2px solid #9aa3bd;color:white;font-size:22px;font-weight:800;line-height:1}
.stake-adjust:hover{background:#5a6690}
.panel-note{font-size:14px;line-height:1.5;color:#c7cad7;margin:19px 0}
.action-stack{display:flex;flex-direction:column;gap:11px;margin-top:21px}
.action-stack>.primary-button,.table-panel>.primary-button{width:100%}
.action-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.action-pair button{min-height:53px;background:#343b5a;border:3px solid #9da8bb;color:#fff2d0;box-shadow:4px 4px 0 #0d1020;font-family:'Pixelify Sans';font-size:20px;font-weight:700}
.action-pair button:hover:not(:disabled){background:#536180}
.panel-footnote{color:#929bb2;font-size:13px;line-height:1.4;margin:22px 0 0}
.roulette-felt{background:#492c39}.roulette-stage{height:424px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.wheel-wrap{position:relative;width:310px;height:310px;flex:none}
.roulette-pointer{position:absolute;top:-11px;left:calc(50% - 12px);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:25px solid #fff0ba;z-index:3;filter:drop-shadow(3px 3px 0 #181721)}
.roulette-wheel{width:310px;height:310px;position:relative;display:grid;place-items:center;clip-path:polygon(25% 0,75% 0,75% 3%,84% 3%,84% 7%,91% 7%,91% 13%,96% 13%,96% 25%,100% 25%,100% 75%,96% 75%,96% 87%,91% 87%,91% 93%,84% 93%,84% 97%,75% 97%,75% 100%,25% 100%,25% 97%,16% 97%,16% 93%,9% 93%,9% 87%,4% 87%,4% 75%,0 75%,0 25%,4% 25%,4% 13%,9% 13%,9% 7%,16% 7%,16% 3%,25% 3%);border:0;background:repeating-conic-gradient(#d14f58 0deg 10deg,#171927 10deg 20deg);box-shadow:inset 0 0 0 15px #dab56b;transition:transform 2.85s cubic-bezier(.08,.8,.13,1)}
.roulette-wheel:before{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 18px #d4a856,inset 0 0 0 24px #2b1d2c}
.roulette-wheel-inner{width:110px;height:110px;background:#e1b75d;border:9px solid #372639;display:grid;place-items:center;position:absolute;top:calc(50% - 55px);left:calc(50% - 55px);color:#281d2d;z-index:2}
.roulette-wheel-inner span{font-family:'Pixelify Sans';font-size:24px;font-weight:700;letter-spacing:-1px}
.roulette-result{background:#fff0cd;color:#2a2230;border:3px solid #261e29;padding:8px 18px;margin-top:12px;min-width:270px;text-align:center;box-shadow:4px 4px 0 #171a25;font-family:'Pixelify Sans';font-size:21px;font-weight:700}
.roulette-table{display:grid;grid-template-columns:1fr 110px 1fr;max-width:530px;margin:0 auto;border:4px solid #dcbb78}
.roulette-spot{padding:15px 9px;text-align:center;font-family:'Pixelify Sans';font-size:24px;font-weight:700;color:white;border-right:3px solid #dcbb78}.roulette-spot small{display:block;font-size:14px;color:#f4ddbe}.roulette-spot:last-child{border-right:0}.red-spot{background:#b94753}.black-spot{background:#171c2a}.zero-spot{background:#226d55;font-size:18px}
.color-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:17px 0 21px}.color-choice{height:64px;border:3px solid #cbbfae;color:#fff;font-family:'Pixelify Sans';font-size:23px;font-weight:700;opacity:.55}.color-choice.selected{opacity:1;outline:3px solid #fff3be;outline-offset:2px}.red-choice{background:#bc4b55}.black-choice{background:#101521}
.eggdrop-felt{background:#382a58}
.eggdrop-stage{position:relative;z-index:1;height:calc(100% - 37px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:10px 10px 0}
.eggdrop-board{position:relative;width:min(100%,620px);height:min(68vh,470px);max-height:calc(100% - 62px);border:5px solid #e7c176;background:radial-gradient(circle at 50% 2%,#765293 0,#422f64 45%,#242745 100%);box-shadow:inset 0 0 0 5px #211c39,6px 6px 0 #151426;overflow:hidden}
.eggdrop-board:before{content:"";position:absolute;inset:0;opacity:.25;background:repeating-linear-gradient(0deg,transparent 0 23px,#d5a8eb 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,#d5a8eb 23px 24px)}
.eggdrop-pegs{position:absolute;inset:0}
.eggdrop-peg{position:absolute;width:12px;height:12px;transform:translate(-50%,-50%);background:#ffdc8b;border:3px solid #4e315d;box-shadow:2px 2px 0 #1c1837}
.eggdrop-egg{position:absolute;z-index:4;left:50%;top:7%;width:18px;height:24px;transform:translate(-50%,-50%);background:url('./egg-drop-egg.svg') center / 100% 100% no-repeat;image-rendering:pixelated;filter:drop-shadow(2px 2px 0 #15142e)}
.eggdrop-peg.hit{animation:peg-impact .28s steps(2,end)}
@keyframes peg-impact{0%,100%{background:#ffdc8b;box-shadow:2px 2px 0 #1c1837}35%,70%{background:#fff;box-shadow:0 0 0 6px #ffd26488,0 0 16px #ffe9ad}}
.eggdrop-pockets{position:absolute;z-index:3;left:5%;right:5%;bottom:2%;height:12%;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px}
.eggdrop-pocket{display:flex;align-items:center;justify-content:center;min-width:0;background:#221c39;border:2px solid #d2a970;color:#ffe2a0;font-family:'DM Sans',sans-serif;font-size:clamp(10px,1.3vw,17px);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.eggdrop-pocket:first-child,.eggdrop-pocket:last-child{background:#6b3e67;color:#fff0b5}
.eggdrop-pocket.landed{background:#eac66c;color:#2a2441;border-color:white;box-shadow:0 0 14px #ffe8a3;animation:eggdrop-pocket-flash .22s steps(2,end) 3}
@keyframes eggdrop-pocket-flash{50%{filter:brightness(1.7)}}
.eggdrop-result{min-width:min(90%,390px);max-width:100%;padding:7px 12px;border:3px solid #1b1a33;background:#fff0cf;color:#322747;box-shadow:4px 4px 0 #17162d;text-align:center;font-family:'Pixelify Sans';font-size:21px;font-weight:700}
.risk-label{font-family:'Pixelify Sans';font-size:16px;font-weight:700;letter-spacing:1px;color:#ffe4a4;margin:15px 0 8px}
.risk-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.risk-choice{height:48px;background:#342a49;border:3px solid #867aa1;color:#e8d9e9;font-family:'Pixelify Sans';font-size:20px;font-weight:700}
.risk-choice.selected{background:#ad6b9b;border-color:#ffe2a1;color:#fff;box-shadow:3px 3px 0 #111020}
.risk-choice:hover:not(:disabled){background:#78496f}
.eggdrop-panel>.primary-button{width:100%}
.coinflip-felt{background:radial-gradient(circle at 50% 48%,#385c64 0,#243e50 48%,#1c293f 100%)}
.coinflip-stage{position:relative;z-index:1;height:calc(100% - 37px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px}
.coinflip-steps{display:flex;gap:9px;margin-bottom:3px}
.coinflip-steps > span{position:relative;width:47px;height:39px;display:flex;align-items:center;justify-content:center;white-space:nowrap;flex:none;border:3px solid #9d8e9a;background:#252a40;color:#bdafbd;box-shadow:3px 3px 0 #111624;font-family:'DM Sans',sans-serif;font-size:17px;font-weight:800}
.coinflip-steps > span::after{content:'×';position:absolute;right:2px;bottom:1px;font-size:12px;line-height:1}
.coinflip-steps > span.won{background:#ffd264;border-color:#fff2bb;color:#332037;box-shadow:0 0 13px #ffd26499,3px 3px 0 #111624}
.coinflip-wheel-wrap{width:min(31vh,250px);height:min(31vh,250px);min-width:160px;min-height:160px;position:relative;display:grid;place-items:center}
.coinflip-wheel{position:relative;width:100%;height:100%;border:12px solid #f9d77d;border-radius:50%;background:conic-gradient(from -18deg,#51be75 0deg 216deg,#cf4c57 216deg 360deg);box-shadow:inset 0 0 0 6px #9b632d,8px 10px 0 #101b2d,0 0 24px #ffd26455;transition:transform 1.5s cubic-bezier(.12,.72,.14,1)}
.coinflip-wheel:after{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from -18deg,#192f2d 0deg 1.5deg,transparent 1.5deg 36deg);pointer-events:none}
.coinflip-pointer{position:absolute;z-index:3;top:-14px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top:25px solid #fff0b0;filter:drop-shadow(2px 3px 0 #38263b)}
.coinflip-wheel-hub{position:absolute;z-index:2;width:29%;height:29%;display:grid;place-items:center;border:7px solid #f9df95;border-radius:50%;background:#8b5a32;box-shadow:0 0 0 4px #352c37;color:#fff2c7;font-family:'Pixelify Sans',monospace;font-size:clamp(23px,4vh,35px);font-weight:700;pointer-events:none}
.coinflip-result{min-width:min(88%,350px);padding:8px 14px;border:3px solid #211e31;background:#fff0ce;color:#302239;box-shadow:4px 4px 0 #101827;text-align:center;font-family:'Pixelify Sans';font-size:21px;font-weight:700}
.coinflip-pot{display:flex;align-items:baseline;gap:9px;color:#e8d9b7;font-family:'Pixelify Sans';font-weight:700;font-size:18px}
.coinflip-pot strong{color:#ffe28e;font-family:'DM Sans',sans-serif;font-size:32px;font-variant-numeric:tabular-nums}
.coinflip-pot small{font-size:12px}
.coinflip-panel .action-pair{grid-template-columns:1fr 1fr}
.coinflip-risk{margin:9px 0 0;padding:7px 9px;border:3px solid #f2bf6d;background:#4c3442;color:#fff0cb;box-shadow:3px 3px 0 #181a2c}
.coinflip-risk[hidden]{display:none}
.coinflip-risk>strong{display:block;margin-bottom:4px;color:#ffd77c;font-family:'Pixelify Sans',monospace;font-size:18px}
.coinflip-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;text-align:center}
.coinflip-risk-grid>div{min-width:0;padding:5px 2px;background:#392a3b}
.coinflip-risk-grid small,.coinflip-risk-grid b{display:block;white-space:nowrap}
.coinflip-risk-grid small{font-size:9px;color:#d8bda8}
.coinflip-risk-grid b{font-family:'DM Sans',sans-serif;font-size:14px;font-variant-numeric:tabular-nums}
.coinflip-risk-grid>div:nth-child(2) b{color:#a6eead}
.coinflip-panel .primary-button[hidden]{display:none}
.coinflip-panel .action-pair button{font-size:clamp(13px,1.3vw,18px)}
.coinflip-panel .action-pair button:last-child{background:#386345;border-color:#a7d0a0}
.coinflip-panel .action-pair button:last-child:hover:not(:disabled){background:#498956}
.poker-felt{background:#363052}.opponent-row{display:flex;justify-content:space-around;gap:14px;margin:31px auto 10px;max-width:750px}.opponent{display:flex;align-items:center;gap:10px;background:#27203b;border:3px solid #c09d70;padding:7px 10px;min-width:220px}.opponent-duck{width:68px;height:68px;image-rendering:pixelated;background:#292544}.violet-duck{filter:hue-rotate(55deg)}.opponent b,.opponent small{display:block}.opponent b{font-family:'Pixelify Sans';font-size:20px;color:#ffe3a4}.opponent small{font-size:12px;color:#d4cbd9;max-width:100px}.opponent-cards{display:flex;align-self:start;margin-left:auto}.opponent-cards span{width:18px;height:27px;background:#614979;border:2px solid #d5b780;margin-left:-4px}
.poker-middle{border:4px dashed #bea879;min-height:262px;max-width:710px;margin:8px auto;padding:14px 10px;text-align:center;background:#3d3458}.pot-label{color:#e6cd9b;font-size:19px}.pot-label strong{color:#ffe489;font-size:25px;margin-left:7px}.community-cards{margin:15px auto}.community-cards .playing-card{width:62px;height:87px}.poker-quote{background:#fbefcc;color:#292337;border:3px solid #261f31;box-shadow:4px 4px 0 #201a31;padding:8px 10px;max-width:570px;margin:16px auto 0;font-family:'Pixelify Sans';font-size:20px;font-weight:700}
.your-poker-hand{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:12px}.your-poker-hand>span{color:#fff0ba;font-size:17px}
.ai-note{display:flex;gap:8px;background:#2b294a;border:3px solid #7367a7;padding:10px;margin-top:23px}.ai-note span{color:#e8d27d;font-size:25px}.ai-note p{margin:0;font-size:12px;line-height:1.4;color:#c8c5db}.ai-note strong{color:#ffe297;font-family:'Pixelify Sans';font-size:15px}
.poker-bubble-two{right:19%;top:98px;background:#f4db89}
.poker-duel{display:flex;align-items:center;justify-content:center;gap:7%;min-height:300px;padding:14px 10px}
.poker-seat{min-width:180px;display:flex;flex-direction:column;align-items:center;gap:9px;padding:16px;background:#2c2946;border:4px solid #a692b3;box-shadow:5px 5px 0 #18192e}
.poker-seat strong{font-family:'Pixelify Sans';font-size:23px;color:#ffe7ae}
.poker-seat .opponent-duck{width:82px;height:82px;object-fit:contain}
.player-icon{width:82px;height:82px;display:grid;place-items:center;background:#425c8a;border:4px solid #9db7d9;color:#fff;font-family:'Pixelify Sans';font-size:25px;font-weight:700}
.poker-vs{color:#e9c46e;font-family:'Pixelify Sans';font-size:37px;font-weight:700}
.empty-card,.poker-card-slot{width:86px;height:112px;display:grid;place-items:center}
.empty-card{border:4px dashed #9587ac;background:#231f38;color:#ad9dbc;font-family:'Pixelify Sans';font-size:17px;font-weight:700}
.poker-card-slot .playing-card{width:86px;height:112px}
.poker-middle{min-height:215px;margin:0 auto;padding:15px 12px}
.poker-middle .poker-quote{margin-top:17px}
.board-label{margin-top:10px;color:#e5d2a3;font-family:'Pixelify Sans';font-size:15px;font-weight:700;letter-spacing:1px}
.poker-middle .community-cards{margin:8px auto 0}
.poker-middle .community-cards .playing-card{width:55px;height:75px;font-size:25px;padding:5px}
.poker-middle .community-cards .playing-card small{font-size:22px;margin-top:6px}
#wallet-amount{font-family:'DM Sans',sans-serif;font-size:30px;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.balance-readout .wallet-copy,.stake-row strong,.pot-label strong{font-family:'DM Sans',sans-serif;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px}



.modal-backdrop{position:fixed;inset:0;display:grid;place-items:center;background:rgba(5,7,17,.8);z-index:50;padding:20px}.modal-backdrop[hidden]{display:none}.modal{position:relative;max-width:460px;background:#25233d;border:4px solid #d7b56f;box-shadow:9px 9px 0 #050710;padding:32px}.modal h2{font-family:'Pixelify Sans';font-size:38px}.modal p:not(.eyebrow){line-height:1.5;color:#c9c9d7}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#fff;font-size:30px}
@media(max-width:1150px){.topbar{gap:12px;padding:0 12px}.nav-button{padding:2px 9px 0;font-size:17px}.brand{font-size:24px}.brand-duck{width:39px;height:39px}.wallet-pill{min-width:200px}.sign-in{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:800px){.topbar{height:auto;min-height:75px;flex-wrap:wrap;justify-content:space-between;padding:7px 12px 0}.brand{font-size:24px}.top-actions{order:2}.wallet-pill{height:54px;min-width:183px;padding:3px 7px}.coin{width:33px;height:33px;font-size:13px}#wallet-amount{font-size:29px}.wallet-unit{font-size:11px}.main-nav{order:3;width:100%;height:36px;justify-content:space-around}.nav-button{font-size:15px;padding:0 5px}.topbar{gap:3px}main{padding:23px 13px 55px}.lobby-hero{grid-template-columns:1fr}.hero-copy{padding:25px}.hero-copy h1{font-size:65px}.hero-art{min-height:285px;border-left:0;border-top:4px solid #7f75b3}.hero-pixel-duck{width:250px;height:250px;bottom:6%}.table-grid{grid-template-columns:1fr}.table-card{min-height:0}.table-illustration{height:145px}.table-copy{min-height:125px}.lobby-bottom{flex-wrap:wrap}.game-layout{grid-template-columns:1fr}.table-panel{min-height:0;order:-1}.felt{min-height:575px}.table-heading{min-height:110px}}
@media(max-width:450px){.brand-duck{width:32px;height:32px}.brand{font-size:21px}.brand small{font-size:6px;letter-spacing:2px}.wallet-pill{min-width:148px}.wallet-unit{display:none}.wallet-label{font-size:11px}.topbar{padding:5px 8px 0}.hero-copy h1{font-size:53px}.hero-description{font-size:15px}.hero-caption{display:none}.section-heading h2{font-size:35px}.felt{padding:11px;min-height:550px}.felt-message{max-width:98%}.roulette-wheel,.wheel-wrap{width:260px;height:260px}.roulette-stage{height:360px}.roulette-pointer{top:-10px}.opponent-row{gap:4px;margin-top:20px}.opponent{min-width:0;flex:1;gap:3px;padding:4px}.opponent-duck{width:42px;height:42px}.opponent b{font-size:14px}.opponent small{display:none}.opponent-cards{display:none}.community-cards{gap:3px}.community-cards .playing-card{width:50px;height:73px;font-size:25px}.playing-card small{font-size:22px}.poker-middle{min-height:240px}.poker-quote{font-size:17px}.table-heading h1{font-size:46px}}
@media(max-width:600px){.eggdrop-board{height:320px;max-height:none}.eggdrop-peg{width:9px;height:9px;border-width:2px}.eggdrop-pocket{font-size:10px;border-width:1px}.eggdrop-stage{height:390px}.eggdrop-felt{min-height:440px}}
@media(max-width:600px){.poker-duel{gap:7px;min-height:245px;padding:14px 4px}.poker-seat{min-width:0;flex:1;padding:8px 4px}.poker-seat strong{font-size:17px}.poker-seat .opponent-duck,.player-icon{width:62px;height:62px}.player-icon{font-size:18px}.poker-vs{font-size:24px}.empty-card,.poker-card-slot{width:69px;height:92px}.poker-card-slot .playing-card{width:69px;height:92px}.poker-middle{min-height:220px}}
.modal{max-height:calc(100vh - 40px);overflow:auto}
.leaderboard-modal{width:min(100%,560px);max-width:560px}
.leaderboard-you{padding:12px 16px;background:#36314d;border:2px solid #d7b56f;color:#fff!important;font-weight:800}
.leaderboard-list{display:grid;gap:6px;max-height:min(50vh,500px);overflow:auto;margin:18px 0}
.leaderboard-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;background:#191a2d;border:2px solid #57516c;color:#f6ecd5}
.leaderboard-row.is-you{border-color:#d7b56f;background:#373047}
.leaderboard-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard-row b{font-variant-numeric:tabular-nums;color:#f1cd79}
.leaderboard-note{font-size:13px}
@media(max-width:800px){.floor-heading{align-items:start;flex-direction:column;gap:8px}.floor-heading h1{font-size:clamp(43px,8vw,60px)}.floor-heading>p{white-space:normal}.casino-scene{height:auto;min-height:0}.casino-scene-art{height:auto}.casino-spot-label{padding:4px 6px;border-width:2px}.casino-spot-label strong{font-size:clamp(12px,1.9vw,16px)}.scene-entry-note{font-size:13px;padding:4px 8px;bottom:3%}}
@media(max-width:600px){.casino-scene{border-width:3px;outline-width:3px;box-shadow:4px 4px 0 #060810}.casino-spot-label{display:none}.scene-entry-note{display:none}.floor-mobile-links{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.floor-mobile-links button{min-height:52px;display:flex;justify-content:space-between;align-items:center;background:#322546;border:3px solid #e8bd67;color:#ffe7af;padding:7px 10px;font-family:'Pixelify Sans';font-size:20px;font-weight:700}.floor-mobile-links button:hover{background:#563867}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(prefers-reduced-motion:reduce){.casino-scene-reaction{transition:none}}

/* Keep the casino floor and both playable tables within one desktop viewport. */
@media(min-width:601px){
  html,body{height:100%;overflow:hidden}
  .app-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .topbar{position:relative;flex:0 0 76px;height:76px}
  main{width:100%;height:calc(100dvh - 76px);min-height:0;padding:16px 24px 18px;overflow:hidden}
  .screen.active{height:100%;min-height:0}
  #lobby.active{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:11px}
  .floor-heading{margin:0}
  .floor-heading h1{font-size:clamp(36px,3.8vw,55px)}
  .casino-scene{height:100%;min-height:0;max-height:100%;width:auto;max-width:100%;aspect-ratio:1672/941;justify-self:center}
  .lobby-bottom{margin:0;min-height:25px}
  .table-screen.active{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}
  .table-heading{min-height:0;padding:0}
  .table-heading h1{font-size:42px;margin:2px 0 0}
  .table-heading p{font-size:13px;margin:2px 0 0}
  .game-layout{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) 310px;gap:14px}
  .felt,.table-panel{height:100%;min-height:0;overflow:hidden}
  .felt{padding:11px}
  .table-panel{padding:12px 14px}
  .table-panel .eyebrow{margin-bottom:4px}
  .table-panel h2{font-size:30px;margin-bottom:11px}
  .balance-readout{margin-bottom:10px;padding:8px}
  .stake-row{padding:6px}
  .max-bet-button{margin-top:6px;padding:6px 10px}
  .panel-note{font-size:13px;line-height:1.35;margin:11px 0}
  .action-stack{margin-top:11px;gap:8px}
  .action-stack .primary-button,.table-panel>.primary-button{height:45px}
  .action-pair button{min-height:43px}
  .panel-footnote{margin-top:11px;font-size:12px}

  .dealer-seat{margin-top:6px}
  .dealer-avatar{width:55px;height:55px}
  .playing-card{height:82px;width:62px}
  .playing-card small{margin-top:3px}
  .felt-center{height:67px;margin:5px auto 3px}
  .felt-center strong{font-size:42px}
  .player-hand{margin-top:6px}
  .felt-message{min-height:34px;margin:10px auto 0;padding:4px 8px;font-size:17px}
  .roulette-stage{height:min(55vh,390px)}
  .wheel-wrap,.roulette-wheel{width:min(34vh,290px);height:min(34vh,290px)}
  .roulette-wheel-inner{top:calc(50% - 55px);left:calc(50% - 55px)}
  .roulette-table .roulette-spot{padding:9px 6px}
  .color-options{margin:10px 0 12px}
  .color-choice{height:49px}
  .eggdrop-panel .risk-label{margin:8px 0 5px}
  .eggdrop-panel .risk-choice{height:38px}
  .eggdrop-panel .panel-note{margin:8px 0;font-size:12px;line-height:1.2}
  .eggdrop-panel .panel-footnote{margin-top:7px;font-size:11px;line-height:1.2}

}
@media(min-width:601px) and (max-width:800px){
  .topbar{flex-basis:105px;height:105px}
  .brand,.top-actions{flex:0 0 auto}
  .main-nav{flex:0 0 100%;margin:0}
  main{height:calc(100dvh - 105px);padding:12px 13px 14px}
  .floor-heading{gap:8px}
  .floor-heading h1{font-size:clamp(39px,6vw,50px)}
  .casino-scene{height:auto;width:100%;align-self:center}
  .game-layout{grid-template-columns:minmax(0,1fr) 286px;gap:9px}
  .table-panel{order:0;padding:10px}
  .felt{min-height:0;padding:8px}
  .table-heading{min-height:0}
  .table-heading h1{font-size:36px}
  .table-heading p{font-size:12px}
  .table-panel h2{font-size:27px}
  .dealer-seat{margin-top:3px}
  .felt-rail{font-size:11px}
  .lobby-bottom{flex-wrap:nowrap;gap:8px;font-size:11px}
  .lobby-bottom button{font-size:11px}
}
@media(min-width:801px) and (max-width:1050px){.casino-scene{height:auto;width:100%;align-self:center}}

.result-toast{position:absolute;z-index:6;top:60%;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 12px);padding:11px 17px;border:3px solid #67d99a;background:#123d31;box-shadow:4px 4px 0 #080b15,0 0 18px #3bbf6a55;color:#eaffef;text-align:center;font-family:'Pixelify Sans',monospace;font-size:clamp(18px,2vw,24px);font-weight:700;letter-spacing:1px;line-height:1.1;pointer-events:none}
.roulette-stage .result-toast{top:50%}
.eggdrop-stage .result-toast{top:53%}
.result-toast[hidden]{display:none}
.result-toast[data-outcome="lose"]{border-color:#ef686b;background:#572331;box-shadow:4px 4px 0 #080b15,0 0 18px #d74e5a66;color:#fff0ee}
.result-toast[data-outcome="push"]{border-color:#a9b5d4;background:#30374f;color:#f0f3ff}
.result-toast.appear{animation:result-toast-in .18s steps(4,end)}
@keyframes result-toast-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:600px){.result-toast{padding:9px 12px;font-size:18px}}
@media(max-width:800px){.main-nav{overflow-x:auto;justify-content:flex-start}.nav-button{flex:none}}
@media(max-width:600px){.floor-mobile-links{grid-template-columns:repeat(2,minmax(0,1fr))}.coinflip-steps{gap:5px}.coinflip-steps > span{width:42px;height:33px;font-size:15px}.coinflip-wheel-wrap{width:190px;height:190px}.coinflip-stage{min-height:395px}.coinflip-felt{min-height:440px}}
@media(min-width:601px) and (max-height:660px){.coinflip-wheel-wrap{width:150px;height:150px;min-width:0;min-height:0}.coinflip-stage{gap:10px}.coinflip-steps > span{width:31px;height:31px}}

.account-login {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  min-height:40px;
  padding:6px 12px;
  border:2px solid #f2c771;
  background:#3c2a3c;
  color:#ffe6a6;
  font:700 16px 'Pixelify Sans', monospace;
  text-decoration:none;
  white-space:nowrap;
}
.account-login:is(:hover,:focus-visible) { background:#543348; }
.table-panel > .account-login { margin-bottom:10px; }
.account-connected .account-login,
body:not(.account-connected) :is(.wallet-pill,.balance-readout),
#account-status:empty { display:none; }
body:not(.account-connected) .table-panel button { opacity:.5; }

.brand-group, .zro-brand {
  display: flex;
  align-items: center;
}
.brand-group { gap: 12px; }
.brand-group .brand { gap: 0; }
.zro-brand {
  gap: 5px;
  padding-right: 12px;
  border-right: 1px solid #625774;
  color: var(--cream);
  font: 700 9px/1.25 monospace;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
}
.zro-brand:hover, .zro-brand:focus-visible { color: var(--gold); }

.account-connected .daily-invite { display: none; }
@media (max-width: 1250px) {
  .zro-brand span { display: none; }
}
@media (max-width: 800px) {
  .brand-group { gap: 6px; }
  .zro-brand { padding-right: 6px; }
  .zro-brand img { width: 28px; height: 28px; }
}
/* Tables are reached directly from the floor. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: auto;
  min-height: 60px;
  flex: 0 0 auto;
  gap: 0 14px;
  padding-block: 6px;
}
.topbar > .brand-group { justify-self: start; }
.top-actions { justify-self: end; margin-left: 0; order: 0; }
.leaderboard-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #c7c3d3;
  font: 600 13px 'DM Sans', sans-serif;
}
.leaderboard-link:is(:hover, :focus-visible) { color: var(--gold); text-decoration: underline; }
.podium-icon { color: var(--gold); font: 14px/1 monospace; letter-spacing: -2px; }
.top-actions .wallet-pill {
  height: 40px;
  min-width: 0;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid #675737;
  border-radius: 8px;
  background: #29252a;
  box-shadow: none;
}
.top-actions #wallet-amount { font-size: 26px; letter-spacing: -.5px; }
.wallet-detail { display: grid; align-items: center; }
.top-actions .wallet-unit,
.top-actions #wallet-change { grid-area: 1 / 1; font: 700 12px/1.2 'DM Sans', sans-serif; }
.top-actions .wallet-unit { display: inline; }
.top-actions #wallet-change { position: static; margin: 0; text-shadow: none; }
.wallet-pill[data-change] .wallet-unit { visibility: hidden; }
@media (min-width: 601px) {
  main { flex: 1 1 0; height: auto; }
}
.leaderboard-modal h2 { margin: 0 32px 0 0; }
#leaderboard-rule { margin: 6px 0 16px; }
.leaderboard-list:empty { display: none; }
@media (max-width: 600px) {
  .leaderboard-link { padding: 0 2px; gap: 4px; font-size: 12px; }
  .top-actions .wallet-pill { padding: 4px 8px; }
  .top-actions .wallet-unit { font-size: 11px; }
  .top-actions .account-login { font-size: 13px; padding-inline: 6px; }
}
@media (max-width: 700px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; }
  .topbar > .brand-group { grid-column: 1; grid-row: 1; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .leaderboard-link { grid-column: 1 / -1; grid-row: 2; min-height: 32px; }
}
@media (max-width: 400px) {
  .podium-icon { display: none; }
  .brand-group { gap: 4px; }
  .brand-group .brand { font-size: 17px; }
  .zro-brand { padding-right: 3px; }
  .zro-brand img { width: 24px; height: 24px; }
}

.green-choice{background:#226d55}
.roulette-stage.zero-win .wheel-wrap{filter:drop-shadow(0 0 18px #efd36e);animation:zero-celebrate .65s steps(3,end) 2}
.roulette-stage.zero-win .roulette-wheel-inner{background:#17623f;color:#fff0a3;border-color:#ffe595}
.roulette-stage.zero-win .roulette-result{color:#fff0a3;background:#17623f;border-color:#ffe595}
@keyframes zero-celebrate{50%{transform:scale(1.06);filter:drop-shadow(0 0 30px #efd36e)}}
@media(prefers-reduced-motion:reduce){.roulette-stage.zero-win .wheel-wrap{animation:none}}

.color-choice small{display:block;font-family:Arial,sans-serif;font-size:11px;line-height:1.2;font-weight:600}

/* Lobby: one proportional scene for artwork, hit areas and reactions. */
.casino-scene-viewport{min-width:0;min-height:0;container-type:size;display:grid;justify-items:center;align-items:start;padding:5px}
.casino-scene-viewport .casino-scene{width:min(100cqw,calc((100cqh - 10px)*1672/941 + 10px));height:auto;min-height:0;max-height:none;max-width:100%;aspect-ratio:auto;align-self:start}
.casino-scene-viewport .casino-scene-art{width:100%;height:auto;aspect-ratio:1672/941;object-fit:fill}
.casino-scene-viewport .casino-scene-art:not(:first-child){height:100%;aspect-ratio:auto}
.floor-heading h1{font-size:clamp(28px,3vw,42px);line-height:1.1;letter-spacing:-1px}
.floor-heading{align-items:center}
.floor-heading .daily-invite{white-space:normal;max-width:340px;font-size:14px;line-height:1.5}
.lobby-bottom{justify-content:center;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:0;color:#a9a9bd}
.resume-badge{display:block;font:700 11px/1.3 'DM Sans',sans-serif;color:#a9f0be;margin-top:5px;letter-spacing:0}
.resume-badge[hidden]{display:none}
.casino-spot-label:has(.resume-badge:not([hidden])){border-color:#8ace9f}
.account-banner{position:relative;z-index:2;flex:none;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:#242b37;color:#eee4c9;font:500 13px/1.4 'DM Sans',sans-serif}
.account-banner[hidden]{display:none}
.account-banner button,.quiet-button{border:1px solid #94846b;background:#383047;color:#ffe3a3;border-radius:5px;padding:7px 13px;font:700 13px 'DM Sans',sans-serif}
.account-banner button[hidden],.quiet-button[hidden]{display:none}
body[data-account-status="error"] .account-banner{background:#412c33}
body:is([data-account-status="loading"],[data-account-status="error"]) .account-login{display:none}
body[data-account-status="loading"] .daily-invite,body[data-account-status="error"] .daily-invite{visibility:hidden}
.wallet-pill:hover{border-color:var(--gold);background:#353039}
.wallet-modal{width:min(100%,430px)}
.wallet-modal-balance{margin:22px 0!important;display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.wallet-modal-balance strong{font:800 42px/1.1 'DM Sans',sans-serif;color:#fff2ce;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wallet-modal-balance span{font-size:14px}
.wallet-info-row{display:flex;flex-direction:column;gap:7px;border-top:1px solid #51455d;padding:16px 0}
.wallet-info-row>span{font-size:12px;color:#bcb3c8}
.wallet-info-row>strong{font:700 17px 'DM Sans',sans-serif;color:#ffe3a3;overflow-wrap:anywhere}
.wallet-explanation{font-size:12px;line-height:1.5;margin:8px 0 0}
.modal-open{overflow:hidden}
.modal-close{width:44px;height:44px;display:grid;place-items:center;right:5px;top:5px}
.leaderboard-row{grid-template-columns:30px minmax(0,1fr) auto;gap:10px}
.leaderboard-identity{display:flex;align-items:center;gap:7px;min-width:0}
.leaderboard-identity strong{min-width:0;font-size:14px}
.you-badge{flex:none;color:#ffe3a3;background:#665037;padding:3px 5px;border-radius:3px;font:800 9px 'DM Sans',sans-serif}
#leaderboard-loading{font-size:13px;color:#ffe3a3;margin:10px 0}
#leaderboard-loading[hidden]{display:none}
.leaderboard-list{overscroll-behavior:contain}
@media(max-width:900px){
 html:has(#lobby.active),body:has(#lobby.active){height:auto;overflow:auto}
 .app-shell:has(#lobby.active){height:auto;min-height:100dvh;overflow:visible}
 body:has(#lobby.active) main{height:auto;width:100%;padding:18px 14px 24px;overflow:visible;flex:none}
 #lobby.active{display:flex;height:auto;flex-direction:column;gap:14px}
 .floor-heading{margin:0;gap:7px;align-items:flex-start;flex-direction:column}
 .floor-heading h1{font-size:30px;line-height:1.1}
 .floor-heading>p{margin:0;font-size:13px}
 .casino-scene-viewport{container-type:normal;width:100%;padding:3px;display:block}
 .casino-scene-viewport .casino-scene{width:100%;height:auto;border-width:3px;outline-width:3px;box-shadow:3px 3px 0 #060810}
 .casino-spot-label,.scene-entry-note{display:none}
 .casino-spot:focus-visible{outline:2px solid #ffe3a3;outline-offset:0}
 .floor-mobile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
 .floor-mobile-links .mobile-table-card{min-height:98px;display:flex;position:relative;align-items:center;gap:10px;padding:12px 10px;background:#252238;border:1px solid #776344;border-radius:8px;box-shadow:0 3px 0 #090b13;color:#fff0cc;text-align:left}
 .floor-mobile-links .mobile-table-card:is(:hover,:focus-visible){background:#38304a;border-color:#e5bd6c;outline-offset:2px}
 .dealer-portrait{flex:none;width:56px;height:56px;background-image:url('./casino-floor.webp');background-size:850px auto;border-radius:50%;border:1px solid #aa8450;image-rendering:pixelated}
 .portrait-blackjack{background-position:-157px -174px}
 .portrait-roulette{background-position:-643px -175px}
 .portrait-eggdrop{background-position:-226px -146px}
 .portrait-coinflip{background-position:-536px -143px}
 .mobile-table-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
 .mobile-table-copy strong{font:700 20px/1.1 'Pixelify Sans',sans-serif}
 .mobile-table-copy small{font:400 11px/1.35 'DM Sans',sans-serif;color:#c0b7cc}
 .card-arrow{position:absolute;top:7px;right:7px;font:14px 'DM Sans',sans-serif;color:#d9b774}
 .lobby-bottom{margin:4px 0 0;min-height:0;font-size:11px}
 .topbar{position:sticky;top:0}
}
@media(max-width:500px){
 .floor-mobile-links .mobile-table-card{gap:8px;padding:12px 9px;min-height:104px;align-items:flex-start;flex-direction:column}
 .dealer-portrait{width:44px;height:44px;background-size:680px auto}
 .portrait-blackjack{background-position:-126px -139px}
 .portrait-roulette{background-position:-514px -140px}
 .portrait-eggdrop{background-position:-181px -117px}
 .portrait-coinflip{background-position:-429px -114px}
 .mobile-table-copy strong{font-size:21px}
 .mobile-table-copy small{font-size:12px}
 .modal{padding:24px 16px;border-width:2px;box-shadow:4px 4px 0 #050710}
 .modal h2{font-size:32px}
 .modal-backdrop{padding:12px}
 .leaderboard-you{padding:10px 12px;font-size:14px}
 .leaderboard-row{gap:7px;padding:10px 8px;grid-template-columns:24px minmax(0,1fr) auto;font-size:13px}
 .leaderboard-identity strong{font-size:12px}
 .top-actions #wallet-amount{font-size:clamp(18px,5vw,26px)}
 .top-actions .wallet-pill{gap:5px}
 .top-actions .wallet-unit{font-size:10px}
}
@media(min-width:901px) and (max-height:500px){
 html:has(#lobby.active),body:has(#lobby.active){overflow:auto;height:auto}
 .app-shell:has(#lobby.active){height:auto;min-height:100dvh;overflow:visible}
 body:has(#lobby.active) main{overflow:visible;flex:none;height:auto}
 #lobby.active{height:auto;display:flex;flex-direction:column;gap:12px}
 .casino-scene-viewport{container-type:normal}
 .casino-scene-viewport .casino-scene{width:100%;height:auto}
}

@media(max-width:500px){.top-actions #wallet-amount{font-size:24px}.top-actions .wallet-pill[data-large] #wallet-amount{font-size:18px}}

.floor-mobile-links .mobile-table-card{justify-content:flex-start}
/* Landscape phones keep both the room and all four entrances in view. */
@media(min-width:601px) and (max-width:900px) and (max-height:500px){
 .app-shell:has(#lobby.active){height:100dvh;min-height:0;overflow:hidden}
 body:has(#lobby.active) main{flex:1;min-height:0;padding:10px 14px;overflow:auto}
 #lobby.active{height:100%;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:9px 14px}
 .floor-heading{grid-column:1/-1;flex-direction:row;align-items:center}
 .floor-heading h1{font-size:25px}
 .floor-heading .daily-invite{max-width:280px;font-size:11px}
 .casino-scene-viewport{grid-row:2;grid-column:1;container-type:size;display:grid;align-items:center}
 .casino-scene-viewport .casino-scene{width:min(100cqw,calc((100cqh - 6px)*1672/941 + 6px));align-self:center}
 .floor-mobile-links{grid-column:2;grid-row:2;gap:7px}
 .floor-mobile-links .mobile-table-card{min-height:0;padding:7px;gap:6px}
 .mobile-table-copy strong{font-size:17px}
 .mobile-table-copy small{font-size:10px}
 .dealer-portrait{width:32px;height:32px;background-size:510px auto}
 .portrait-blackjack{background-position:-94px -104px}
 .portrait-roulette{background-position:-386px -105px}
 .portrait-eggdrop{background-position:-136px -88px}
 .portrait-coinflip{background-position:-322px -86px}
 .lobby-bottom{grid-column:1/-1;font-size:10px;margin:0}
 .resume-badge{font-size:9px;margin:0}
}

/* Quackjack: a table and a compact, phase-aware action dock. */
#blackjack.active{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-height:0;height:100%}
#blackjack .bj-heading{display:flex;align-items:center;justify-content:space-between;min-height:0;gap:12px;padding:0}
#blackjack .bj-heading h1{font-size:32px;line-height:1;margin:0}
#blackjack .back-button{font:600 13px 'DM Sans',sans-serif;padding:8px 12px;min-height:40px}
.bj-rules-link{font:600 13px 'DM Sans',sans-serif;background:none;border:1px solid #6e6481;border-radius:5px;color:#e4d4b8;padding:8px 14px;min-height:40px}
#blackjack .game-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;max-width:1080px;width:100%;height:100%;min-height:0;margin:auto}
#blackjack .blackjack-felt{display:grid;grid-template-rows:48px minmax(0,1fr) 38px minmax(0,1fr) 57px;align-items:center;min-height:0;height:100%;padding:12px 22px 8px;border:3px solid #b89c60;border-bottom:0;box-shadow:none;border-radius:16px 16px 0 0;background:radial-gradient(ellipse at center,#216a55,#123e34)}
#blackjack .dealer-seat{margin:0;gap:10px;align-items:center;height:48px}
#bj-dealer-avatar{display:block;width:48px;height:48px;flex:none;border-radius:50%;border:2px solid #b4ae76;background-image:url('./casino-floor.webp');background-size:850px auto;background-position:-161px -177px;image-rendering:pixelated;transform-origin:50% 85%}
#bj-dealer-comment{font:500 13px 'DM Sans',sans-serif;color:#d6d6b6;min-width:95px}
#blackjack[data-mood="dealing"] #bj-dealer-avatar{animation:bj-dealer-deal .6s ease-in-out infinite alternate}
#blackjack[data-mood="house-loses"] #bj-dealer-avatar{animation:bj-dealer-lose .6s ease-out}
#blackjack[data-mood="house-wins"] #bj-dealer-avatar{animation:bj-dealer-win .6s ease-out}
@keyframes bj-dealer-deal{to{transform:rotate(-6deg) translateY(-2px)}}
@keyframes bj-dealer-lose{50%{transform:rotate(-10deg)}}
@keyframes bj-dealer-win{50%{transform:translateY(-5px) rotate(5deg)}}
#blackjack .hand-area{margin:0;gap:6px;min-width:0;width:100%;align-self:center}
#blackjack .hand-label{margin:0;font:500 12px 'DM Sans',sans-serif;color:#c0d5c5}
#blackjack .hand-label strong{font:800 24px 'DM Sans',sans-serif;color:#fff7dc;margin-left:6px}
#blackjack .dealer-hand .hand-label strong{font-size:17px}
#blackjack .cards{width:100%;min-width:0;display:flex;justify-content:center;gap:6px;isolation:isolate;--overlap:0px;padding:0 4px}
#blackjack .playing-card{flex:0 0 auto;width:100px;height:132px;padding:10px;border:2px solid #172e29;border-radius:6px;box-shadow:2px 3px 0 #071f1a;font:800 28px/1 'DM Sans',sans-serif;position:relative}
#blackjack .playing-card + .playing-card{margin-left:calc(-1 * var(--overlap))}
#blackjack .playing-card small{font:normal 29px/1 'DM Sans',sans-serif;margin:16px 0 0;text-align:right}
#blackjack .card-placeholder{border:2px solid #cab071;background:repeating-linear-gradient(45deg,#392e54 0 5px,#46395e 5px 10px);color:#ddc486;font-size:27px}
#blackjack .card-arriving{animation:bj-card-in .2s ease-out}
@keyframes bj-card-in{from{opacity:.2;transform:translate(14px,-12px) rotate(5deg)}to{opacity:1;transform:none}}
.bj-chip-area{display:flex;justify-content:center;align-items:center;gap:12px}
.bj-chip{display:flex;align-items:center;gap:9px;padding:5px 12px;border:2px dashed #cdb578;border-radius:30px;background:#142e29;box-shadow:0 2px 0 #08261d;font:500 11px 'DM Sans',sans-serif;color:#bdc9ae}
.bj-chip strong{font:800 15px 'DM Sans',sans-serif;color:#ffe6a0}
.bj-table-rule{font:500 11px 'DM Sans',sans-serif;color:#a8c3b3}
.chip-placed{animation:bj-chip-in .4s ease-out}
@keyframes bj-chip-in{from{transform:translateY(35px) scale(.8);opacity:.3}to{transform:none;opacity:1}}
.bj-result{display:grid;gap:4px;align-content:center;justify-items:center;min-height:50px;padding:6px 8px;text-align:center;color:#fff4d8;font:700 17px/1.25 'DM Sans',sans-serif;border-radius:6px;background:#0d302659;z-index:2}
#bj-settlement{font:500 12px/1.3 'DM Sans',sans-serif;color:#d0d9ce}
#bj-settlement:empty{display:none}
#blackjack[data-outcome="win"] .bj-result{background:#214e2d;color:#a9f3b8}
#blackjack[data-outcome="lose"] .bj-result{background:#4b2731;color:#ffbac0}
#blackjack[data-outcome="push"] .bj-result{background:#36354a;color:#eee3ca}
#blackjack .blackjack-controls{padding:12px 18px 8px;min-height:0;height:auto;border:3px solid #b89c60;border-top:1px solid #809b72;background:#152c2b;box-shadow:none;border-radius:0 0 16px 16px;order:0;align-self:stretch}
.bj-betting{display:flex;align-items:center;justify-content:center;gap:10px;max-width:650px;margin:auto}
.bj-betting[hidden],#bj-decisions[hidden]{display:none}
#blackjack .stake-row{padding:5px 8px;gap:12px;border:1px solid #778775;border-radius:6px;background:#10201e;font:600 11px 'DM Sans',sans-serif}
#blackjack .stake-row strong{font-size:22px;min-width:28px;text-align:center}
#blackjack .stake-adjust{width:38px;height:38px;border:1px solid #79856b;border-radius:4px;font-size:22px;background:#31453b;color:#fff0cc}
#blackjack .max-bet-button{width:auto;margin:0;border:1px solid #778775;border-radius:5px;padding:10px;height:48px;font:700 12px 'DM Sans',sans-serif}
#blackjack #bj-deal{min-height:48px;height:auto;padding:12px 24px;min-width:220px;border-radius:5px;font:800 17px 'DM Sans',sans-serif}
#blackjack .action-pair{max-width:460px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:12px}
#blackjack .action-pair button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;border:1px solid #b8a576;border-radius:6px;color:#fff2ce;background:#29483f}
#blackjack .action-pair button strong{font:800 20px 'DM Sans',sans-serif}
#blackjack .action-pair button small{font:500 12px 'DM Sans',sans-serif}
#blackjack #bj-hit{background:#e8c773;color:#25231b;border-color:#f6dea2}
#blackjack .panel-note{font:400 11px/1.3 'DM Sans',sans-serif;color:#b9cbbd;text-align:center;margin:6px 0 0}
#blackjack .result-toast{top:40%;font:800 16px 'DM Sans',sans-serif;padding:9px 12px;border-radius:5px}
.bj-rules-modal ul{padding-left:20px;line-height:1.5;color:#d2ccda;font-size:14px}
.bj-rules-modal li{margin:8px 0}
.bj-rules-modal p{font-size:14px}
@media(max-width:900px){
 html:has(#blackjack.active),body:has(#blackjack.active){height:100%;overflow:hidden}
 .app-shell:has(#blackjack.active){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#blackjack.active) main{flex:1;height:auto;min-height:0;padding:10px 10px 12px;overflow:hidden}
 #blackjack .bj-heading h1{font-size:27px}
 #blackjack .back-button{padding:7px 9px;font-size:12px}
 #blackjack .game-layout{gap:0;grid-template-columns:minmax(0,1fr)}
 #blackjack .blackjack-felt{padding:7px 10px;grid-template-rows:34px minmax(0,1fr) 30px minmax(0,1fr) 49px}
 #blackjack .dealer-seat{height:34px;gap:8px}
 #bj-dealer-avatar{width:32px;height:32px;background-size:570px auto;background-position:-108px -118px}
 #bj-dealer-comment{font-size:11px}
 #blackjack .playing-card{width:76px;height:100px;padding:7px;font-size:23px}
 #blackjack .playing-card small{font-size:23px;margin-top:12px}
 #blackjack .hand-label strong{font-size:22px}
 #blackjack .hand-area{gap:3px}
 #blackjack .blackjack-controls{padding:8px 9px 6px}
 #blackjack .stake-row{gap:7px;flex:1}
 #blackjack .stake-row>span:first-child{font-size:10px}
 #blackjack .stake-adjust{width:34px;height:36px}
 .bj-betting{display:grid;grid-template-columns:1fr auto;gap:6px 8px}
 #blackjack #bj-deal{grid-column:1/-1;width:100%;min-height:42px;min-width:0;padding:9px;font-size:16px}
 #blackjack .max-bet-button{height:48px}
 #blackjack .action-pair{gap:8px}
 #blackjack .action-pair button{min-height:50px;flex-direction:column;gap:2px;padding:5px}
 #blackjack .action-pair button strong{font-size:18px}
 #blackjack .action-pair button small{font-size:11px}
 .bj-table-rule{display:none}
 .bj-result{font-size:14px;min-height:0;padding:5px}
 #bj-settlement{font-size:10px}
}
@media(max-height:700px){
 #blackjack .blackjack-felt{grid-template-rows:26px minmax(0,1fr) 25px minmax(0,1fr) 43px;padding-block:5px}
 #blackjack .dealer-seat{height:26px}
 #bj-dealer-avatar{width:25px;height:25px;background-size:450px auto;background-position:-85px -93px}
 #blackjack .playing-card{width:47px;height:61px;font-size:19px;padding:4px}
 #blackjack .playing-card small{font-size:19px;margin-top:7px}
 #blackjack .hand-label strong{font-size:19px}
 #blackjack .hand-label{font-size:11px}
 .bj-chip{padding:2px 9px;font-size:10px}
 .bj-chip strong{font-size:12px}
 .bj-result{font-size:13px}
}
@media(min-width:601px) and (max-height:500px){
 #blackjack.active{gap:5px}
 body:has(#blackjack.active) main{padding:5px 12px 8px}
 #blackjack .bj-heading h1{font-size:25px}
 #blackjack .bj-heading .back-button,.bj-rules-link{min-height:30px;padding:4px 10px}
 #blackjack .blackjack-felt{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 27px;gap:4px 18px;padding:5px 12px}
 #blackjack .dealer-seat{display:none}
 #blackjack .dealer-hand{grid-column:1;grid-row:1}
 #blackjack .player-hand{grid-column:2;grid-row:1}
 #blackjack .bj-chip-area{grid-column:1;grid-row:2}
 #blackjack .bj-result{grid-column:2;grid-row:2;font-size:12px;padding:0;background:none}
 #blackjack #bj-settlement{font-size:9px}
 #blackjack .blackjack-controls{padding:5px 12px}
 #blackjack .bj-betting{display:flex;max-width:620px}
 #blackjack #bj-deal{width:auto;min-width:180px;min-height:38px}
 #blackjack .stake-row{flex:none;padding:2px 7px}
 #blackjack .stake-adjust{height:30px}
 #blackjack .max-bet-button{height:36px}
 #blackjack .action-pair button{min-height:38px;flex-direction:row;gap:8px}
 #blackjack .panel-note{margin-top:3px;font-size:10px}
}

#blackjack #bj-decisions[hidden], #blackjack .bj-betting[hidden] { display: none; }

/* Omlette: a single table, with its bets directly beneath the wheel. */
#roulette.active{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;height:100%;min-height:0}
.om-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.om-heading h1{font:700 34px/1 'Pixelify Sans',monospace;margin:0}
.om-rules-link{min-height:40px;border:1px solid #716a7f;border-radius:5px;background:#181b2a;color:#eee4d0;padding:8px 14px;font:600 13px 'DM Sans',sans-serif}
#roulette .game-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;max-width:1080px;width:100%;height:100%;min-height:0;margin:auto}
#roulette .roulette-felt{display:grid;grid-template-rows:38px minmax(0,1fr) 58px;gap:6px;height:auto;min-height:0;padding:10px 20px;background:radial-gradient(ellipse at center,#63404c,#362533);border:3px solid #b89c60;border-bottom:0;border-radius:16px 16px 0 0;overflow:hidden}
.om-dealer{display:flex;align-items:center;justify-content:center;gap:9px;font:500 12px 'DM Sans',sans-serif;color:#e4d2bf}
.om-dealer-avatar{width:36px;height:36px;border:2px solid #bf9e65;border-radius:50%;background:url('./casino-floor.webp') -650px -188px / 850px auto;image-rendering:pixelated;transform-origin:50% 90%}
#roulette[data-phase="spinning"] .om-dealer-avatar{animation:bj-dealer-deal .8s ease-in-out infinite alternate}
#roulette[data-outcome="win"] .om-dealer-avatar{animation:bj-dealer-lose .6s ease-out}
#roulette .roulette-stage{height:100%;min-height:0;display:flex;justify-content:center;align-items:center;padding:10px;position:relative}
#roulette .wheel-wrap{width:auto;height:min(100%,340px);aspect-ratio:1;position:relative;border:8px solid #d6b36d;outline:3px solid #322236;border-radius:50%;box-shadow:0 6px 0 #211823,0 0 0 4px #9a7543;flex:none}
#roulette .roulette-wheel{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;clip-path:none;box-shadow:inset 0 0 0 3px #765339;transition:transform 2.85s cubic-bezier(.12,.65,.1,1)}
#roulette .roulette-wheel:before{inset:0;border-radius:50%;box-shadow:inset 0 0 0 5px #43302d;background:repeating-conic-gradient(transparent 0deg 9.23deg,#e9ca7b99 9.23deg 9.72973deg)}
#roulette .roulette-pointer{top:-17px;left:calc(50% - 9px);border-left-width:9px;border-right-width:9px;border-top-width:18px;z-index:5}
#roulette .roulette-wheel-inner{width:36%;height:36%;top:32%;left:32%;border:6px solid #382337;border-radius:50%;box-shadow:0 0 0 3px #b98e50;background:#dfb765;pointer-events:none}
#roulette .roulette-wheel-inner span{font:800 clamp(15px,2vw,24px) 'DM Sans',sans-serif;letter-spacing:0}
.roulette-ball-track{position:absolute;inset:0;z-index:4;pointer-events:none;transition:transform 2.85s cubic-bezier(.08,.6,.2,1)}
.roulette-ball{position:absolute;top:7%;left:calc(50% - 6px);width:12px;height:12px;background:#fff5d3;border:2px solid #d3b988;border-radius:3px;box-shadow:2px 3px 0 #18132380}
.om-result{min-height:0;display:grid;align-content:center;justify-items:center;gap:4px;border-radius:6px;padding:6px 10px;text-align:center;background:#291d2b66;font:700 17px/1.25 'DM Sans',sans-serif;color:#fff0d0}
#roulette-settlement{font:500 12px/1.3 'DM Sans',sans-serif;color:#dfcfd3}
#roulette-settlement:empty{display:none}
#roulette[data-outcome="win"] .om-result{background:#244c34;color:#a9f3b8}
#roulette[data-outcome="lose"] .om-result{background:#4b2731;color:#ffbac0}
#roulette .om-controls{height:auto;min-height:0;order:0;padding:10px 16px 12px;border:3px solid #b89c60;border-top:1px solid #aa8a5c;border-radius:0 0 16px 16px;background:#272332;box-shadow:none;overflow:visible}
#roulette .color-options{max-width:650px;margin:0 auto;gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}
#roulette .color-choice{min-height:65px;position:relative;display:grid;align-content:center;justify-items:center;gap:2px;padding:6px 4px 6px;border:2px solid #86717b;border-radius:6px;color:#fff0d5;font:800 18px 'DM Sans',sans-serif;box-shadow:none;opacity:1;transform:none}
#roulette .color-choice small{font:500 11px 'DM Sans',sans-serif}
#roulette .color-choice.selected{border-color:#ffe1a0;box-shadow:0 0 0 2px #ffe1a033,inset 0 0 16px #fff3a012}
#roulette .om-bet-chip{position:absolute;right:5px;top:-9px;border:2px dashed #eed08c;border-radius:20px;padding:3px 6px;background:#31282b;color:#ffe6a0;font:800 11px 'DM Sans',sans-serif;visibility:hidden}
#roulette .selected .om-bet-chip{visibility:visible}
#roulette-potential{font:500 12px 'DM Sans',sans-serif;text-align:center;margin:7px 0;color:#e3d3af}
.om-bet-actions{display:flex;justify-content:center;align-items:center;gap:8px}
#roulette .stake-row{padding:5px 8px;gap:9px;border:1px solid #80707e;border-radius:6px;background:#191923;font:600 11px 'DM Sans',sans-serif}
#roulette .stake-row strong{font-size:22px;min-width:28px;text-align:center}
#roulette .stake-adjust{width:36px;height:36px;border:1px solid #83747e;border-radius:4px;font-size:22px;background:#393344;color:#fff0cc}
#roulette .max-bet-button{width:auto;margin:0;height:48px;border:1px solid #80707e;border-radius:5px;padding:10px;font:700 12px 'DM Sans',sans-serif}
#roulette #spin-button{min-height:48px;width:auto;min-width:260px;padding:10px 18px;border-radius:5px;font:800 16px 'DM Sans',sans-serif}
#roulette .result-toast{font:800 18px 'DM Sans',sans-serif;top:50%;max-width:90%;padding:10px 16px;border-radius:6px}
@media(max-width:900px){
 html:has(#roulette.active),body:has(#roulette.active){height:100%;overflow:hidden}
 .app-shell:has(#roulette.active){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#roulette.active) main{flex:1;height:auto;min-height:0;padding:8px 10px 12px;overflow:hidden}
 .om-heading h1{font-size:28px}
 #roulette .back-button{padding:7px 9px;font-size:12px}
 #roulette .roulette-felt{padding:7px 10px;grid-template-rows:30px minmax(0,1fr) 54px;gap:3px}
 .om-dealer-avatar{width:30px;height:30px;background-size:710px auto;background-position:-543px -157px}
 .om-dealer{font-size:11px}
 #roulette .roulette-stage{padding:10px}
 #roulette .wheel-wrap{height:min(100%,270px);border-width:6px}
 #roulette .om-controls{padding:12px 9px 8px}
 #roulette .color-choice{min-height:60px;font-size:16px}
 #roulette .color-choice small{font-size:10px}
 #roulette .om-bet-chip{font-size:10px;right:3px;padding:2px 5px}
 .om-bet-actions{display:grid;grid-template-columns:1fr auto;gap:6px}
 #roulette .stake-row{justify-content:center;gap:8px}
 #roulette #spin-button{grid-column:1/-1;width:100%;min-width:0;min-height:44px;font-size:15px}
 #roulette .max-bet-button{height:46px}
 .om-result{font-size:14px}
 #roulette-settlement{font-size:10px}
}
@media(max-height:700px){
 #roulette .roulette-felt{grid-template-rows:24px minmax(0,1fr) 44px;padding-block:4px}
 .om-dealer-avatar{height:24px;width:24px;background-size:570px auto;background-position:-436px -126px}
 #roulette .color-choice{min-height:48px}
 #roulette .roulette-stage{padding:7px}
 .om-result{font-size:13px}
}
@media(min-width:601px) and (max-height:500px){
 #roulette.active{gap:5px}
 body:has(#roulette.active) main{padding:5px 12px 8px}
 .om-heading h1{font-size:25px}
 #roulette .back-button,.om-rules-link{min-height:30px;padding:4px 10px}
 #roulette .game-layout{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr)}
 #roulette .roulette-felt{border:3px solid #b89c60;border-right:0;border-radius:12px 0 0 12px;grid-template-rows:minmax(0,1fr) 42px;padding:8px}
 #roulette .om-dealer{display:none}
 #roulette .om-controls{border:3px solid #b89c60;border-left:1px solid #aa8a5c;border-radius:0 12px 12px 0;align-content:center;padding:10px}
 #roulette .wheel-wrap{height:min(100%,210px)}
}
/* Compact, single-row mobile navbar. Wallet remains the primary readout. */
@media(max-width:700px){
 .topbar{grid-template-columns:minmax(0,1fr) 44px auto;grid-template-rows:44px;gap:0 5px;min-height:58px;height:58px;flex:0 0 58px;padding:5px 8px;border-bottom-width:3px}
 .topbar>.brand-group{grid-column:1;grid-row:1;min-width:0;gap:5px}
 .topbar .leaderboard-link{grid-column:2;grid-row:1;width:44px;height:44px;min-height:44px;padding:0;justify-content:center}
 .topbar .leaderboard-label{display:none}
 .topbar .podium-icon{display:inline;font-size:18px}
 .topbar .top-actions{grid-column:3;grid-row:1;gap:0}
 .topbar .brand{font-size:clamp(16px,4.5vw,23px);padding:0}
 .topbar .zro-brand{padding-right:5px}
 .topbar .zro-brand img{width:24px;height:24px}
 .topbar .wallet-pill{height:40px;gap:5px;padding:4px 7px}
 .topbar .wallet-unit,.topbar #wallet-change{font-size:9px;max-width:45px;white-space:normal}
 .topbar #wallet-amount{font-size:24px}
 .topbar .account-login{font-size:11px;padding:5px;max-width:105px}
}
#roulette .roulette-felt{box-shadow:none}
@media(min-width:601px) and (max-height:500px){#roulette .om-controls{height:100%;align-self:stretch;display:grid;align-content:center}}
#roulette .color-options{width:100%}

/* Egg Drop: readable board, inspected returns, and a compact action dock. */
#eggdrop.active{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;height:100%;min-height:0}
#eggdrop .game-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;max-width:1080px;width:100%;height:100%;min-height:0;margin:auto}
#eggdrop .eggdrop-felt{display:grid;grid-template-rows:36px minmax(0,1fr) 52px;gap:6px;height:auto;min-height:0;padding:10px 20px;background:radial-gradient(ellipse at center,#51406b,#30263f);border:3px solid #b89c60;border-bottom:0;border-radius:16px 16px 0 0;overflow:hidden;box-shadow:none}
.egg-dealer{display:flex;align-items:center;justify-content:center;gap:9px;font:500 12px 'DM Sans',sans-serif;color:#e4d2bf}
.egg-dealer-avatar{width:34px;height:34px;border:2px solid #bf9e65;border-radius:50%;background:url('./casino-floor.webp') -238px -158px / 850px auto;image-rendering:pixelated;transform-origin:50% 90%}
#eggdrop[data-phase="dropping"] .egg-dealer-avatar{animation:bj-dealer-deal .8s ease-in-out infinite alternate}
#eggdrop[data-outcome="win"] .egg-dealer-avatar{animation:bj-dealer-lose .6s ease-out}
#eggdrop .eggdrop-stage{height:100%;min-height:0;display:flex;justify-content:center;align-items:center;padding:0;gap:0}
#eggdrop .eggdrop-board{width:min(100%,620px);height:100%;max-height:100%;border:3px solid #ab8fbc;border-radius:8px;box-shadow:inset 0 0 0 3px #211c39;background:radial-gradient(ellipse at 50% 0,#68497e,#302a4c);overflow:hidden}
#eggdrop .eggdrop-board:before{opacity:.13}
#eggdrop .eggdrop-pockets{left:5%;right:5%;bottom:1%;height:15%;gap:2px}
#eggdrop .eggdrop-pocket{align-items:flex-end;padding:0 1px 3px;border:1px solid #9b7baf;border-radius:3px;background:#352b46;color:#ddd0e8;font:800 clamp(10px,1.2vw,16px) 'DM Sans',sans-serif;box-shadow:none;cursor:help}
#eggdrop .eggdrop-pocket[data-return="profit"]{background:#594432;color:#ffe4ab;border-color:#b08b55}
#eggdrop .eggdrop-pocket:is(:hover,:focus-visible){outline:2px solid #fff0b9;outline-offset:-2px;filter:brightness(1.2)}
#eggdrop .eggdrop-pocket.landed{border:2px solid #fff0cd;box-shadow:0 0 8px #fff0cd55;animation:none}
#eggdrop .eggdrop-pocket.pocket-profit{background:#b88b35;color:#fff;box-shadow:0 0 16px #f9d073;animation:eggdrop-pocket-flash .22s steps(2,end) 3}
#eggdrop .eggdrop-egg{width:16px;height:22px;pointer-events:none}
#eggdrop .eggdrop-peg{width:10px;height:10px;border-width:2px}
.egg-result{display:grid;align-content:center;justify-items:center;min-height:0;gap:4px;padding:5px 10px;text-align:center;border-radius:6px;background:#281d3a77;font:700 17px/1.25 'DM Sans',sans-serif;color:#fff0d0}
#eggdrop-settlement{font:500 12px/1.3 'DM Sans',sans-serif;color:#dfcfdc}
#eggdrop-settlement:empty{display:none}
#eggdrop[data-outcome="win"] .egg-result{background:#244c34;color:#a9f3b8}
#eggdrop[data-outcome="lose"] .egg-result{background:#4b2731;color:#ffbac0}
#eggdrop .eggdrop-panel{height:auto;min-height:0;order:0;padding:10px 16px 12px;border:3px solid #b89c60;border-top:1px solid #aa8a5c;border-radius:0 0 16px 16px;background:#272332;box-shadow:none;overflow:visible}
#eggdrop .risk-options{display:grid;grid-template-columns:repeat(3,1fr);width:100%;max-width:650px;gap:8px;margin:auto}
#eggdrop .risk-choice{display:grid;justify-items:center;align-content:center;gap:2px;height:55px;border:2px solid #81708b;border-radius:6px;background:#393044;color:#ede3f3;font:800 17px 'DM Sans',sans-serif;box-shadow:none}
#eggdrop .risk-choice.selected{border-color:#ffe0a0;background:#644a6e;color:#fff0cc;box-shadow:0 0 0 2px #ffe1a022}
#eggdrop .risk-choice small{font:500 11px 'DM Sans',sans-serif}
#egg-risk-description,#egg-pocket-preview{font:500 12px/1.3 'DM Sans',sans-serif;text-align:center;color:#d5c6df;margin:6px 0}
#egg-pocket-preview{color:#f1d996;min-height:16px}
.egg-bet-actions{display:flex;justify-content:center;align-items:center;gap:8px}
#eggdrop .stake-row{padding:5px 8px;gap:9px;border:1px solid #80707e;border-radius:6px;background:#191923;font:600 11px 'DM Sans',sans-serif}
#eggdrop .stake-row strong{font-size:22px;min-width:28px;text-align:center}
#eggdrop .stake-adjust{width:36px;height:36px;border:1px solid #83747e;border-radius:4px;font-size:22px;background:#393344;color:#fff0cc}
#eggdrop .max-bet-button{width:auto;margin:0;height:48px;border:1px solid #80707e;border-radius:5px;padding:10px;font:700 12px 'DM Sans',sans-serif}
#eggdrop #eggdrop-button{min-height:48px;width:auto;min-width:230px;padding:10px 18px;border-radius:5px;font:800 16px 'DM Sans',sans-serif}
#eggdrop .result-toast{font:800 18px 'DM Sans',sans-serif;top:50%;max-width:90%;padding:10px 16px;border-radius:6px;pointer-events:none}
@media(max-width:900px){
 html:has(#eggdrop.active),body:has(#eggdrop.active){height:100%;overflow:hidden}
 .app-shell:has(#eggdrop.active){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#eggdrop.active) main{flex:1;height:auto;min-height:0;padding:8px 10px 12px;overflow:hidden}
 #eggdrop .back-button{padding:7px 9px;font-size:12px}
 #eggdrop .eggdrop-felt{padding:7px 9px;grid-template-rows:27px minmax(0,1fr) 48px;gap:4px}
 .egg-dealer-avatar{width:27px;height:27px;background-size:680px auto;background-position:-190px -126px}
 .egg-dealer{font-size:11px}
 #eggdrop .eggdrop-panel{padding:8px 9px}
 #eggdrop .risk-choice{height:48px;font-size:15px}
 #eggdrop .risk-choice small{font-size:10px}
 #egg-risk-description,#egg-pocket-preview{font-size:11px;margin:5px 0}
 #egg-pocket-preview{min-height:29px;display:block}
 .egg-bet-actions{display:grid;grid-template-columns:1fr auto;gap:6px}
 #eggdrop .stake-row{justify-content:center;gap:8px}
 #eggdrop #eggdrop-button{grid-column:1/-1;width:100%;min-width:0;min-height:44px;font-size:15px}
 #eggdrop .max-bet-button{height:46px}
 #eggdrop .eggdrop-pocket{font-size:10px;padding-bottom:2px}
 #eggdrop .eggdrop-peg{width:8px;height:8px}
 .egg-result{font-size:14px}
 #eggdrop-settlement{font-size:11px}
}
@media(max-height:700px){
 #eggdrop .eggdrop-felt{grid-template-rows:22px minmax(0,1fr) 39px;padding-block:4px;gap:3px}
 .egg-dealer-avatar{width:22px;height:22px;background-size:550px auto;background-position:-154px -102px}
 #eggdrop .risk-choice{height:42px}
 #eggdrop .eggdrop-egg{width:12px;height:16px}
 #eggdrop .eggdrop-peg{width:7px;height:7px;border-width:1px}
 .egg-result{font-size:13px}
 #eggdrop .eggdrop-pockets{height:17%}
}
@media(min-width:601px) and (max-height:500px){
 #eggdrop.active{gap:5px}
 body:has(#eggdrop.active) main{padding:5px 12px 8px}
 #eggdrop .back-button{min-height:30px;padding:4px 10px}
 #eggdrop .game-layout{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr)}
 #eggdrop .eggdrop-felt{border:3px solid #b89c60;border-right:0;border-radius:12px 0 0 12px;grid-template-rows:minmax(0,1fr) 39px;padding:7px}
 #eggdrop .egg-dealer{display:none}
 #eggdrop .eggdrop-panel{height:100%;align-self:stretch;display:grid;align-content:center;border:3px solid #b89c60;border-left:1px solid #aa8a5c;border-radius:0 12px 12px 0;padding:10px}
 #eggdrop .eggdrop-board{max-width:400px}
}

/* Spin or Fly: the saved pot is the decision, separate from the wallet. */
#coinflip.active{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;height:100%;min-height:0}
#coinflip .game-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;max-width:1080px;width:100%;height:100%;min-height:0;margin:auto}
#coinflip .coinflip-felt{display:grid;grid-template-rows:32px 82px minmax(0,1fr) 57px 50px;gap:6px;min-height:0;height:auto;padding:10px 20px;background:radial-gradient(ellipse at center,#355663,#1f3044);border:3px solid #b89c60;border-bottom:0;border-radius:16px 16px 0 0;box-shadow:none;overflow:hidden}
.fly-dealer{display:flex;align-items:center;justify-content:center;gap:9px;font:500 12px 'DM Sans',sans-serif;color:#d6e0d6}
.fly-dealer-avatar{width:32px;height:32px;border:2px solid #bf9e65;border-radius:50%;background:url('./casino-floor.webp') -548px -158px / 850px auto;image-rendering:pixelated;transform-origin:50% 90%}
#coinflip[data-phase="spinning"] .fly-dealer-avatar{animation:bj-dealer-deal .8s ease-in-out infinite alternate}
#coinflip .coinflip-pot{display:grid;justify-items:center;align-content:center;gap:1px;margin:0;font:700 11px 'DM Sans',sans-serif;color:#d6dce0}
#coinflip .coinflip-pot>div{display:flex;align-items:baseline;gap:7px}
#coinflip #coinflip-pot{font:800 48px/1.05 'DM Sans',sans-serif;color:#ffe09b;font-variant-numeric:tabular-nums;letter-spacing:-1px}
#coinflip .coinflip-pot small{font:700 13px 'DM Sans',sans-serif}
#fly-pot-note{font:500 11px 'DM Sans',sans-serif;color:#b6cbce}
#coinflip .coinflip-stage{height:100%;min-height:0;display:flex;justify-content:center;align-items:center;padding:10px;gap:0}
#coinflip .coinflip-wheel-wrap{position:relative;min-width:0;min-height:0;width:auto;height:min(100%,290px);aspect-ratio:1;display:block;border:8px solid #dfbc72;border-radius:50%;box-shadow:0 0 0 3px #866b3e,0 5px 0 #172233;flex:none}
#coinflip .coinflip-wheel{position:absolute;inset:0;width:100%;height:100%;border:0;box-shadow:inset 0 0 0 3px #594934;transition:transform 1.5s cubic-bezier(.12,.72,.14,1)}
#coinflip .coinflip-wheel-hub{width:35%;height:35%;position:absolute;left:32.5%;top:32.5%;border:4px solid #d8b575;box-shadow:0 0 0 3px #3f3540;background:#3a3540;font:800 clamp(11px,1.7vw,22px) 'DM Sans',sans-serif;letter-spacing:0}
#coinflip .coinflip-pointer{top:-17px;border-left-width:10px;border-right-width:10px;border-top-width:19px}
.fly-progress{display:grid;justify-items:center;align-content:center;gap:6px}
#coinflip .coinflip-steps{display:flex;gap:8px;margin:0}
#coinflip .coinflip-steps > span{width:46px;height:30px;border:1px solid #7f9398;border-radius:4px;box-shadow:none;background:#21323f;font:800 15px 'DM Sans',sans-serif;color:#b6c4cb;display:flex;align-items:center;justify-content:center}
#coinflip .coinflip-steps > span::after{content:none}
#coinflip .coinflip-steps > span.won{background:#cdb16d;color:#242a32;border-color:#fbe5a5;box-shadow:0 0 9px #f8e09855}
#fly-progress-note{font:500 11px 'DM Sans',sans-serif;color:#bdcfd0;text-align:center}
.fly-result{display:grid;align-content:center;justify-items:center;gap:4px;min-height:0;padding:5px 10px;border-radius:6px;background:#14253677;font:700 17px/1.25 'DM Sans',sans-serif;color:#fff0d0;text-align:center}
#fly-settlement{font:500 12px/1.3 'DM Sans',sans-serif;color:#cbdad9}
#fly-settlement:empty{display:none}
#coinflip[data-outcome="win"] .fly-result,#coinflip[data-outcome="green"] .fly-result{background:#244c34;color:#b7f1c1}
#coinflip[data-outcome="lose"] .fly-result{background:#4b2731;color:#ffbac0}
#coinflip .coinflip-panel{order:0;height:auto;min-height:0;padding:12px 16px 8px;border:3px solid #b89c60;border-top:1px solid #899b8d;border-radius:0 0 16px 16px;background:#202d38;box-shadow:none;overflow:visible;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.fly-betting{display:flex;align-items:center;gap:8px}
#coinflip .stake-row{padding:5px 8px;gap:9px;border:1px solid #78848d;border-radius:6px;background:#17222c;font:600 11px 'DM Sans',sans-serif}
#coinflip .stake-row strong{font-size:22px;min-width:28px;text-align:center}
#coinflip .stake-adjust{width:36px;height:36px;border:1px solid #819197;border-radius:4px;font-size:22px;background:#31444b;color:#fff0cc}
#coinflip .max-bet-button{width:auto;margin:0;height:48px;border:1px solid #78848d;border-radius:5px;padding:10px;font:700 12px 'DM Sans',sans-serif}
#coinflip #coinflip-start,#coinflip #fly-resume{min-height:48px;width:auto;min-width:230px;padding:10px 18px;border-radius:5px;font:800 16px 'DM Sans',sans-serif}
#coinflip .fly-decisions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:720px;margin:0}
#coinflip .fly-decisions button{display:grid;align-content:center;justify-items:center;gap:5px;min-height:68px;padding:10px;border-radius:6px;border:2px solid #b1a385;color:#fff0d2;background:#543b46}
#coinflip .fly-decisions strong{font:800 20px 'DM Sans',sans-serif}
#coinflip .fly-decisions small{font:500 12px 'DM Sans',sans-serif}
#coinflip #coinflip-cashout{background:#31533f;border-color:#a8ce9a}
#coinflip #coinflip-continue{border-color:#c6a371}
#fly-action-note{width:100%;text-align:center;font:500 11px/1.3 'DM Sans',sans-serif;color:#bdcbd2;margin:0}
#fly-retry{border:1px solid #d6b777;background:#453747;color:#fff0d2;padding:12px;border-radius:5px;font:700 15px 'DM Sans',sans-serif}
#coinflip [hidden]{display:none!important}
#coinflip .result-toast{font:800 18px 'DM Sans',sans-serif;top:50%;max-width:90%;padding:10px 16px;border-radius:6px}
@media(max-width:900px){
 html:has(#coinflip.active),body:has(#coinflip.active){height:100%;overflow:hidden}
 .app-shell:has(#coinflip.active){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#coinflip.active) main{flex:1;height:auto;min-height:0;padding:8px 10px 12px;overflow:hidden}
 #coinflip .om-heading{gap:6px}
 #coinflip .om-heading h1{font-size:clamp(21px,5.8vw,28px)}
 #coinflip .back-button{padding:7px 9px;font-size:11px}
 #coinflip .coinflip-felt{padding:7px 9px;grid-template-rows:27px 78px minmax(0,1fr) 56px 52px;gap:4px}
 .fly-dealer-avatar{width:27px;height:27px;background-size:710px auto;background-position:-458px -132px}
 .fly-dealer{font-size:11px}
 #coinflip .coinflip-panel{padding:8px 9px;gap:7px}
 #coinflip .fly-betting{width:100%;justify-content:center;gap:6px}
 #coinflip .stake-row{flex:1;justify-content:center;gap:8px}
 #coinflip #coinflip-start,#coinflip #fly-resume{width:100%;min-width:0;min-height:44px;font-size:15px}
 #coinflip .max-bet-button{height:46px}
 #coinflip .fly-decisions{gap:7px}
 #coinflip .fly-decisions button{min-height:84px;padding:7px 4px;gap:6px}
 #coinflip .fly-decisions strong{font-size:16px}
 #coinflip .fly-decisions small{font-size:10px;line-height:1.3}
 #coinflip .coinflip-steps{gap:5px}
 #coinflip .coinflip-steps > span{width:42px;height:29px;font-size:14px}
 #coinflip .coinflip-wheel-wrap{height:min(100%,240px);border-width:6px}
 #coinflip .coinflip-wheel-hub{font-size:14px}
 #coinflip #coinflip-pot{font-size:44px}
 #fly-progress-note{font-size:10px}
 .fly-result{font-size:14px}
 #fly-settlement{font-size:11px}
}
@media(max-height:700px){
 #coinflip .coinflip-felt{grid-template-rows:22px 63px minmax(0,1fr) 47px 42px;padding-block:4px;gap:3px}
 .fly-dealer-avatar{height:22px;width:22px;background-size:570px auto;background-position:-367px -106px}
 #coinflip #coinflip-pot{font-size:36px}
 #coinflip .coinflip-steps > span{height:25px}
 #coinflip .coinflip-wheel-hub{font-size:12px}
 .fly-result{font-size:13px}
}
@media(min-width:601px) and (max-height:500px){
 #coinflip.active{gap:5px}
 body:has(#coinflip.active) main{padding:5px 12px 8px}
 #coinflip .back-button{min-height:30px;padding:4px 10px}
 #coinflip .game-layout{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr)}
 #coinflip .coinflip-felt{border:3px solid #b89c60;border-right:0;border-radius:12px 0 0 12px;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 44px 42px;padding:8px;gap:4px}
 #coinflip .fly-dealer{display:none}
 #coinflip .coinflip-stage{grid-column:1;grid-row:1;padding:10px 7px}
 #coinflip .coinflip-pot{grid-column:2;grid-row:1;text-align:center}
 #coinflip .fly-progress{grid-column:1/-1;grid-row:2}
 #coinflip .fly-result{grid-column:1/-1;grid-row:3}
 #coinflip .coinflip-panel{height:100%;align-self:stretch;align-content:center;border:3px solid #b89c60;border-left:1px solid #899b8d;border-radius:0 12px 12px 0;padding:10px}
 #coinflip .fly-decisions{grid-template-columns:1fr}
 #coinflip .fly-decisions button{min-height:70px}
}

/* Compact rankings: your identity stays visible while the table scrolls. */
.leaderboard-modal{width:min(100%,600px);max-width:600px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;padding:28px}
.leaderboard-modal h2{font-size:28px;flex-shrink:0}
#leaderboard-rule{font-size:15px;color:#bdb7cd;margin:8px 0 20px}
.leaderboard-you{display:flex;align-items:center;gap:14px;padding:16px;margin:0;background:linear-gradient(115deg,#41364a,#29263a);border:1px solid #d7b56f;flex-shrink:0}
.your-ranking{font-family:'DM Sans',sans-serif;font-size:30px;color:#ffe29a;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.your-ranking-identity{display:grid;gap:4px;min-width:0;flex:1}
.your-ranking-identity>span{font-size:10px;letter-spacing:1.5px;color:#d7b56f}
.your-ranking-identity>strong{font-family:'DM Sans',sans-serif;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.your-ranking-wallet{display:grid;text-align:right;gap:2px;flex-shrink:0}
.your-ranking-wallet>strong{font-family:'DM Sans',sans-serif;font-size:25px;color:#ffe29a;font-variant-numeric:tabular-nums}
.your-ranking-wallet>span{font-size:10px;color:#cbc4d4}
.rankings-toolbar{display:flex;align-items:center;justify-content:space-between;margin:18px 0 8px;flex-shrink:0}
.rankings-toolbar>span{font-size:11px;letter-spacing:1.4px;color:#c5bed2;font-weight:800}
#leaderboard-refresh{padding:7px 10px;min-height:36px;font-size:12px;border:1px solid #655b79;background:transparent;box-shadow:none}
.rankings-columns,.leaderboard-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:12px;align-items:center}
.rankings-columns{padding:0 12px 9px;color:#a9a0ba;font-size:10px;letter-spacing:1px;flex-shrink:0}
.leaderboard-list{flex:1 1 auto;min-height:70px;max-height:360px;overflow-y:auto;margin:0;gap:5px;padding-right:5px;scrollbar-width:thin;scrollbar-color:#b69a61 #222035;scrollbar-gutter:stable}
.leaderboard-row{padding:12px;border:1px solid #444054;background:#1b1b2d;min-height:48px}
.leaderboard-row .rank-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;font-family:'DM Sans',sans-serif;font-weight:800;color:#ada6bf;font-variant-numeric:tabular-nums}
.leaderboard-row.podium-1 .rank-number{background:#e9c46b;color:#342815;box-shadow:2px 2px 0 #8f692f}
.leaderboard-row.podium-2 .rank-number{background:#c1c7d2;color:#2e3344;box-shadow:2px 2px 0 #6e7788}
.leaderboard-row.podium-3 .rank-number{background:#bf8a65;color:#36251e;box-shadow:2px 2px 0 #785036}
.leaderboard-row.podium-1{background:#302a30;border-color:#7e6843}
.leaderboard-row.is-you{border-color:#e9c46b;background:#3b3244}
.leaderboard-row b{font-family:'DM Sans',sans-serif;font-size:14px}
.rankings-footer{flex-shrink:0;margin:14px 0 0;color:#aaa2bc;font-size:11px;text-align:center;line-height:1.5}
@media(max-width:600px){
 .leaderboard-modal{padding:20px 14px;max-height:calc(100dvh - 24px)}
 .leaderboard-modal h2{font-size:23px}
 #leaderboard-rule{margin:7px 0 16px;font-size:13px}
 .leaderboard-you{gap:10px;padding:13px 10px;flex-wrap:wrap}
 .your-ranking{font-size:25px}
 .your-ranking-identity>strong{font-size:12px}
 .your-ranking-wallet>strong{font-size:23px}
 .your-ranking-wallet>span{font-size:9px}
 .rankings-columns,.leaderboard-row{grid-template-columns:26px minmax(0,1fr) auto;gap:8px}
 .rankings-columns{font-size:9px;padding-left:8px;padding-right:8px}
 .leaderboard-row{padding:10px 8px}
 .leaderboard-row .rank-number{width:24px;height:26px}
 .leaderboard-row b{font-size:12px}
 .leaderboard-identity{gap:4px}
 .leaderboard-identity strong{font-size:11px}
 .rankings-footer{font-size:10px;margin-top:12px}
 .leaderboard-list{max-height:45dvh}
}
