:root,:root[data-theme="dark"],:root[data-theme="light"]{
  --accent:#d9dee7;
  --accent2:#fbffff;
  --ink:#161a22;
  --wallet-bg:#0d1017;
  --wallet-panel:#11151d;
  --wallet-panel-alt:#171c25;
  --wallet-line:#36414f;
  --wallet-text:#f5f7fb;
  --wallet-muted:#a8b2c1;
  --wallet-deposit-accent:#d9dee7;
  --wallet-withdraw-accent:#bec7d5;
  --wallet-success:#d9dee7;
}
/* Keep the existing typography, sizes and colors across WebKit and Chromium. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.play-shell{width:100%;height:100vh;height:100dvh;grid-template-rows:var(--bar-h) minmax(0,1fr)}
.game-stage{min-width:0;min-height:0}
.game-frame{display:block;min-width:0;max-width:100%}
.wallet-page{min-height:100vh;min-height:100dvh}
.bet-history-panel{min-height:0}
@supports(-webkit-touch-callout:none){
  .portal-main,.game-grid,.game-card,.sports-layout,.sports-board,.sports-match,.sports-odds-grid{min-width:0}
  .play-shell{height:var(--site-viewport-height,100dvh)}
  .game-topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .game-stage{padding:0}
  .bet-slip,.bet-history-panel,.profile-menu{-webkit-overflow-scrolling:touch}
  @media(max-width:760px){.game-topbar{padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}}
}
html.safari-browser .play-shell{height:var(--site-viewport-height,100vh)}
@supports not (height:100dvh){
  .play-shell{height:var(--site-viewport-height,100vh)}
  @media(max-width:680px){.bet-history-panel{height:var(--site-viewport-height,100vh)}}
  @media(max-width:1100px){.sports-layout>.bet-slip.mobile-open{max-height:calc(var(--site-viewport-height,100vh) * .88)}}
}
.play-shell.browser-fullscreen{position:fixed;inset:0;z-index:2147483646}
