/* WIND GAME game-fit (gf1 2026-10-21): every game fits one screen.
   Core: «Правила» button + modal, unified side menu additions (Избранное / Админ панель on game pages).
   Page sections below are scoped by html.wgf-<page>. Layout only: no game logic lives here. */
:root{--wgf-gap:12px;--wgf-radius:16px}

/* ---------- «Правила» button ---------- */
.wgf-rules-btn{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 12px 4px 5px;border-radius:999px;
  border:1px solid color-mix(in srgb,var(--wg-accent-hi) 38%,transparent);background:color-mix(in srgb,var(--wg-s3) 72%,transparent);color:var(--wg-text-tint);font:700 13px/1 inherit;font-family:inherit;
  cursor:pointer;white-space:nowrap;vertical-align:middle;flex:0 0 auto;transition:background .15s,border-color .15s}
.wgf-rules-btn:hover{background:color-mix(in srgb,var(--wg-accent-deep) 85%,transparent);border-color:color-mix(in srgb,var(--wg-accent-pale) 70%,transparent)}
.wgf-rules-btn:focus-visible{outline:2px solid var(--wg-accent-hi);outline-offset:2px}
.wgf-rules-btn .wgf-i{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--wg-accent);color:#fff;
  font:800 13px/1 Georgia,serif;font-style:italic}
.wgf-rules-float{position:fixed;right:16px;top:auto;bottom:96px;z-index:60}
html[data-theme="light"] .wgf-rules-btn{background:#fff;border-color:var(--wg-accent-hi);color:var(--wg-accent-deep)}
html[data-theme="light"] .wgf-rules-btn:hover{background:var(--wg-pale)}
html[data-theme="light"] .wgf-rules-btn .wgf-i{background:var(--wg-accent-lo);color:#fff}

/* ---------- modal ---------- */
.wgf-modal{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,var(--wg-s0) 66%,transparent);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.wgf-modal[hidden]{display:none!important}
html.wgf-modal-open,html.wgf-modal-open body{overflow:hidden!important}
.wgf-modal-panel{width:min(880px,100%);max-height:min(86dvh,860px);display:flex;flex-direction:column;border-radius:20px;
  border:1px solid color-mix(in srgb,var(--wg-accent-hi) 30%,transparent);background:var(--wg-s2);color:var(--wg-text-tint);box-shadow:0 30px 80px rgba(0,0,0,.55);overflow:hidden}
.wgf-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid color-mix(in srgb,var(--wg-accent-hi) 18%,transparent)}
.wgf-modal-head h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:0;text-transform:none}
.wgf-modal-close{flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:1px solid color-mix(in srgb,var(--wg-accent-hi) 35%,transparent);background:transparent;color:inherit;
  font:400 24px/1 system-ui,sans-serif;cursor:pointer}
.wgf-modal-close:focus-visible{outline:2px solid var(--wg-accent-hi);outline-offset:2px}
.wgf-modal-body{overflow:auto;overscroll-behavior:contain;padding:16px 18px 20px;display:grid;gap:14px}
.wgf-modal-body .wgf-desc:empty,.wgf-modal-body .wgf-rules:empty{display:none}
.wgf-modal-body .wgf-desc{font-size:15px;line-height:1.5;opacity:.92}
.wgf-modal-body .wgf-rules{display:grid;gap:14px}
.wgf-modal-body .wgf-moved{margin:0!important;max-width:none!important;width:auto!important;position:static!important;transform:none!important}
.wgf-modal-body .wgf-moved:not(details){display:block}
.wgf-modal-body details.wgf-moved{display:block}
.wgf-modal-body table{max-width:100%}
html[data-theme="light"] .wgf-modal{background:color-mix(in srgb,var(--wg-s4) 40%,transparent)}
html[data-theme="light"] .wgf-modal-panel{background:#fff;color:var(--wg-s3);border-color:var(--wg-pale-2)}
html[data-theme="light"] .wgf-modal-head{border-color:var(--wg-pale-2)}
@media (max-width:600px){
  .wgf-modal{padding:0;place-items:end stretch}
  .wgf-modal-panel{width:100%;max-height:88dvh;border-radius:20px 20px 0 0}
}

/* ---------- unified side menu on game pages (same items as the main pages) ---------- */
#wg-shell-sidebar{font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
html body .wg-shell-nav-favorites .wg-shell-nav-glyph::after{content:'';background-image:url('/assets/nav-icons-v5/favorites.svg')}
html body .wg-shell-nav-admin .wg-shell-nav-glyph::after{content:'';background-image:url('/assets/nav-icons-v5/admin.svg')}
.wg-shell-nav-admin small{display:block;font-size:10px;font-weight:700;opacity:.75;letter-spacing:.02em;line-height:1.2}
/* Theme + language already sit in the top bar (Светлая / English) on desktop; the menu ends with the dock like on the main pages. */
@media (min-width:1181px){
  body:where([data-wgh~="k3b228"]):not(.wg-0) #wg-shell-sidebar .wg-shell-footer{display:none}
}

/* ===== angock.css ===== */
/* Jelly Drop: full-screen canvas game inside the common shell. The old fixed «notice» pill becomes the page header row
   (title, «Все игры», sound, theme/lang/account, full screen); below it the live strip, then the canvas fills the rest. */
html.wgf-angock body.wg-shell-ready{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
html.wgf-angock body.wg-shell-ready>*{flex:0 0 auto}
html.wgf-angock body.wg-shell-ready>header.notice{position:relative!important;top:auto;left:auto;right:auto;transform:none;width:auto;max-width:none;
  margin:8px 12px 0;min-height:48px;justify-content:flex-start;gap:10px;padding:5px 10px;font-size:12px;z-index:50}
html.wgf-angock body.wg-shell-ready>header.notice>span{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.wgf-angock body.wg-shell-ready>header.notice>.wgt-actions{margin-left:auto}
html.wgf-angock body.wg-shell-ready>.wg-live-strip{margin:6px 12px 0;position:relative;top:auto}
html.wgf-angock body.wg-shell-ready>.wg-guest-play{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 12px 0}
html.wgf-angock body.wg-shell-ready>.wg-guest-play a{min-height:36px!important;height:auto!important;padding:6px 26px!important;width:auto!important;flex:0 0 auto;font-size:15px}
html.wgf-angock body.wg-shell-ready>.wg-guest-play small{margin:0!important}
html.wgf-angock body.wg-shell-ready>#game-container{flex:1 1 0;min-height:0;height:auto!important;margin-top:0!important;width:100%}
html.wgf-angock canvas{max-width:100%;max-height:100%}
html.wgf-angock.angock-fs body.wg-shell-ready{padding-left:0}
html.wgf-angock.angock-fs #wg-shell-sidebar,html.wgf-angock.angock-fs .wg-live-strip,html.wgf-angock.angock-fs .wg-guest-play,html.wgf-angock.angock-fs .wg-nav-collapse{display:none!important}
@media (max-width:1180px){
  html.wgf-angock body.wg-shell-ready>header.notice{padding-left:max(70px,calc(env(safe-area-inset-left) + 70px))}
}
@media (max-width:720px){
  html.wgf-angock body.wg-shell-ready>header.notice{margin:6px 6px 0;font-size:10px;flex-wrap:nowrap;gap:6px}
  html.wgf-angock body.wg-shell-ready>header.notice>span,html.wgf-angock body.wg-shell-ready>header.notice>strong{display:none}
  html.wgf-angock body.wg-shell-ready>.wg-live-strip{margin:4px 6px 0}
  html.wgf-angock body.wg-shell-ready>.wg-guest-play{margin:4px 6px 0;gap:8px}
  html.wgf-angock body.wg-shell-ready>.wg-guest-play a{padding:6px 14px!important;font-size:14px}
  html.wgf-angock body.wg-shell-ready>.wg-guest-play small{font-size:11px;line-height:1.25;text-align:left}
  html.wgf-angock body.wg-shell-ready>#game-container{height:auto!important}
}

/* ===== arena-next-keno.css ===== */
/* Limbo / Keno / Plinko SPA (/arena/next/*): header, strip, [intro | tabs] row, [controls | stage] in 100dvh */
@media (min-width:900px) and (min-height:560px){
  html.wgf-arena-next-keno body{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box}
  html.wgf-arena-next-keno body>header.topbar{flex:0 0 auto;height:58px!important;min-height:0!important}
  html.wgf-arena-next-keno body>.wgt-strip{flex:0 0 auto;margin-top:2px!important;margin-bottom:6px!important}
  html.wgf-arena-next-keno body>main{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
    column-gap:16px;align-items:center;padding-top:4px!important;padding-bottom:14px!important;box-sizing:border-box;width:auto}
  html.wgf-arena-next-keno main>.intro{grid-column:1;grid-row:1;margin:0!important;gap:12px;align-items:center}
  html.wgf-arena-next-keno main>.intro>div:has(>h1){display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
  html.wgf-arena-next-keno main>.intro .eyebrow{margin:0;white-space:nowrap}
  html.wgf-arena-next-keno main>.intro h1{font-size:28px!important;line-height:1.1!important;margin:0!important;white-space:nowrap}
  html.wgf-arena-next-keno main>.intro a.back{display:none}
  html.wgf-arena-next-keno main>.game-tabs{grid-column:2;grid-row:1;margin:0!important;justify-content:flex-end}
  html.wgf-arena-next-keno main>.game-tabs a{padding-top:6px;padding-bottom:6px;min-height:0}
  html.wgf-arena-next-keno main>.game-layout{grid-column:1/-1;grid-row:2;min-height:0!important;height:100%;margin-top:10px!important;grid-template-rows:minmax(0,1fr);align-items:stretch}
  html.wgf-arena-next-keno main>.below:not(:has(> *:not(.wgf-moved))){display:none}
  html.wgf-arena-next-keno main>.below{display:none}
  html.wgf-arena-next-keno aside.control-panel{min-height:0;display:flex;flex-direction:column;overflow:hidden}
  html.wgf-arena-next-keno aside.control-panel .panel-head{flex:0 0 auto;padding-top:12px;padding-bottom:12px;min-height:0}
  html.wgf-arena-next-keno aside.control-panel .panel-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;gap:12px;padding-top:14px;padding-bottom:14px}
  html.wgf-arena-next-keno aside.control-panel .info-card{margin:0;padding:12px 14px}
  html.wgf-arena-next-keno section.stage{min-height:0;overflow:hidden}
  html.wgf-arena-next-keno section.stage .stage-top,html.wgf-arena-next-keno section.stage .stage-bottom{flex:0 0 auto;min-height:0;padding-top:10px;padding-bottom:10px}
  html.wgf-arena-next-keno section.stage>.stage-inner{flex:1 1 auto;min-height:0!important;height:auto!important}
  html.wgf-arena-next-keno #plinko-stage{align-items:center;justify-content:center}
  html.wgf-arena-next-keno #plinko-board{min-height:0!important;width:auto!important;height:auto!important;max-width:100%;max-height:100%}
  html.wgf-arena-next-keno #keno-stage{overflow:auto}
}
@media (min-width:900px) and (max-height:800px){
  html.wgf-arena-next-keno main>.intro .eyebrow{display:none}
}
@media (max-width:899px){
  html.wgf-arena-next-keno main>.intro{margin-bottom:12px!important}
  html.wgf-arena-next-keno main>.intro h1{font-size:30px!important;line-height:1.1!important;margin:0 0 4px!important}
}

/* ===== arena-next-limbo.css ===== */
/* Limbo / Keno / Plinko SPA (/arena/next/*): header, strip, [intro | tabs] row, [controls | stage] in 100dvh */
@media (min-width:900px) and (min-height:560px){
  html.wgf-arena-next-limbo body{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box}
  html.wgf-arena-next-limbo body>header.topbar{flex:0 0 auto;height:58px!important;min-height:0!important}
  html.wgf-arena-next-limbo body>.wgt-strip{flex:0 0 auto;margin-top:2px!important;margin-bottom:6px!important}
  html.wgf-arena-next-limbo body>main{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
    column-gap:16px;align-items:center;padding-top:4px!important;padding-bottom:14px!important;box-sizing:border-box;width:auto}
  html.wgf-arena-next-limbo main>.intro{grid-column:1;grid-row:1;margin:0!important;gap:12px;align-items:center}
  html.wgf-arena-next-limbo main>.intro>div:has(>h1){display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
  html.wgf-arena-next-limbo main>.intro .eyebrow{margin:0;white-space:nowrap}
  html.wgf-arena-next-limbo main>.intro h1{font-size:28px!important;line-height:1.1!important;margin:0!important;white-space:nowrap}
  html.wgf-arena-next-limbo main>.intro a.back{display:none}
  html.wgf-arena-next-limbo main>.game-tabs{grid-column:2;grid-row:1;margin:0!important;justify-content:flex-end}
  html.wgf-arena-next-limbo main>.game-tabs a{padding-top:6px;padding-bottom:6px;min-height:0}
  html.wgf-arena-next-limbo main>.game-layout{grid-column:1/-1;grid-row:2;min-height:0!important;height:100%;margin-top:10px!important;grid-template-rows:minmax(0,1fr);align-items:stretch}
  html.wgf-arena-next-limbo main>.below:not(:has(> *:not(.wgf-moved))){display:none}
  html.wgf-arena-next-limbo main>.below{display:none}
  html.wgf-arena-next-limbo aside.control-panel{min-height:0;display:flex;flex-direction:column;overflow:hidden}
  html.wgf-arena-next-limbo aside.control-panel .panel-head{flex:0 0 auto;padding-top:12px;padding-bottom:12px;min-height:0}
  html.wgf-arena-next-limbo aside.control-panel .panel-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;gap:12px;padding-top:14px;padding-bottom:14px}
  html.wgf-arena-next-limbo aside.control-panel .info-card{margin:0;padding:12px 14px}
  html.wgf-arena-next-limbo section.stage{min-height:0;overflow:hidden}
  html.wgf-arena-next-limbo section.stage .stage-top,html.wgf-arena-next-limbo section.stage .stage-bottom{flex:0 0 auto;min-height:0;padding-top:10px;padding-bottom:10px}
  html.wgf-arena-next-limbo section.stage>.stage-inner{flex:1 1 auto;min-height:0!important;height:auto!important}
  html.wgf-arena-next-limbo #plinko-stage{align-items:center;justify-content:center}
  html.wgf-arena-next-limbo #plinko-board{min-height:0!important;width:auto!important;height:auto!important;max-width:100%;max-height:100%}
  html.wgf-arena-next-limbo #keno-stage{overflow:auto}
}
@media (min-width:900px) and (max-height:800px){
  html.wgf-arena-next-limbo main>.intro .eyebrow{display:none}
}
@media (max-width:899px){
  html.wgf-arena-next-limbo main>.intro{margin-bottom:12px!important}
  html.wgf-arena-next-limbo main>.intro h1{font-size:30px!important;line-height:1.1!important;margin:0 0 4px!important}
}

/* ===== arena-next-plinko.css ===== */
/* Limbo / Keno / Plinko SPA (/arena/next/*): header, strip, [intro | tabs] row, [controls | stage] in 100dvh */
@media (min-width:900px) and (min-height:560px){
  html.wgf-arena-next-plinko body{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box}
  html.wgf-arena-next-plinko body>header.topbar{flex:0 0 auto;height:58px!important;min-height:0!important}
  html.wgf-arena-next-plinko body>.wgt-strip{flex:0 0 auto;margin-top:2px!important;margin-bottom:6px!important}
  html.wgf-arena-next-plinko body>main{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
    column-gap:16px;align-items:center;padding-top:4px!important;padding-bottom:14px!important;box-sizing:border-box;width:auto}
  html.wgf-arena-next-plinko main>.intro{grid-column:1;grid-row:1;margin:0!important;gap:12px;align-items:center}
  html.wgf-arena-next-plinko main>.intro>div:has(>h1){display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
  html.wgf-arena-next-plinko main>.intro .eyebrow{margin:0;white-space:nowrap}
  html.wgf-arena-next-plinko main>.intro h1{font-size:28px!important;line-height:1.1!important;margin:0!important;white-space:nowrap}
  html.wgf-arena-next-plinko main>.intro a.back{display:none}
  html.wgf-arena-next-plinko main>.game-tabs{grid-column:2;grid-row:1;margin:0!important;justify-content:flex-end}
  html.wgf-arena-next-plinko main>.game-tabs a{padding-top:6px;padding-bottom:6px;min-height:0}
  html.wgf-arena-next-plinko main>.game-layout{grid-column:1/-1;grid-row:2;min-height:0!important;height:100%;margin-top:10px!important;grid-template-rows:minmax(0,1fr);align-items:stretch}
  html.wgf-arena-next-plinko main>.below:not(:has(> *:not(.wgf-moved))){display:none}
  html.wgf-arena-next-plinko main>.below{display:none}
  html.wgf-arena-next-plinko aside.control-panel{min-height:0;display:flex;flex-direction:column;overflow:hidden}
  html.wgf-arena-next-plinko aside.control-panel .panel-head{flex:0 0 auto;padding-top:12px;padding-bottom:12px;min-height:0}
  html.wgf-arena-next-plinko aside.control-panel .panel-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;gap:12px;padding-top:14px;padding-bottom:14px}
  html.wgf-arena-next-plinko aside.control-panel .info-card{margin:0;padding:12px 14px}
  html.wgf-arena-next-plinko section.stage{min-height:0;overflow:hidden}
  html.wgf-arena-next-plinko section.stage .stage-top,html.wgf-arena-next-plinko section.stage .stage-bottom{flex:0 0 auto;min-height:0;padding-top:10px;padding-bottom:10px}
  html.wgf-arena-next-plinko section.stage>.stage-inner{flex:1 1 auto;min-height:0!important;height:auto!important}
  html.wgf-arena-next-plinko #plinko-stage{align-items:center;justify-content:center}
  html.wgf-arena-next-plinko #plinko-board{min-height:0!important;width:auto!important;height:auto!important;max-width:100%;max-height:100%}
  html.wgf-arena-next-plinko #keno-stage{overflow:auto}
}
@media (min-width:900px) and (max-height:800px){
  html.wgf-arena-next-plinko main>.intro .eyebrow{display:none}
}
@media (max-width:899px){
  html.wgf-arena-next-plinko main>.intro{margin-bottom:12px!important}
  html.wgf-arena-next-plinko main>.intro h1{font-size:30px!important;line-height:1.1!important;margin:0 0 4px!important}
}

/* ===== arena-race.css ===== */
/* Гонка 10 машин (/arena/race): one-row header, [track | bet panel] in 100dvh; the 3D renderer follows its box (ResizeObserver) */
@media (min-width:900px) and (min-height:560px){
  html.wgf-arena-race body>main{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box;padding-bottom:12px!important}
  html.wgf-arena-race main>header.topbar{flex:0 0 auto;flex-wrap:nowrap!important;align-items:center!important;gap:12px;min-height:0!important;padding-top:8px!important;padding-bottom:6px!important}
  html.wgf-arena-race main>header.topbar>div:has(>h1){display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0}
  html.wgf-arena-race main>header.topbar .eyebrow{white-space:nowrap;margin:0}
  html.wgf-arena-race main>header.topbar h1{font-size:28px!important;line-height:1.1!important;margin:0!important;white-space:nowrap}
  html.wgf-arena-race main>header.topbar .status-cluster{flex:0 0 auto;margin:0}
  html.wgf-arena-race main>header.topbar .wgt-actions{flex:0 0 auto;order:9;margin:0!important;width:auto!important}
  html.wgf-arena-race .wgt-strip{margin-top:0!important;margin-bottom:8px!important}
  html.wgf-arena-race main>.page-grid{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch!important;margin:0!important}
  html.wgf-arena-race main>.page-grid>*{min-height:0;max-height:100%;height:auto;align-self:stretch}
  html.wgf-arena-race section.race-stage{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:10px!important}
  html.wgf-arena-race section.race-stage .stage-heading{flex:0 0 auto;margin-bottom:6px}
  html.wgf-arena-race section.race-stage .stage-heading h2{font-size:20px}
  html.wgf-arena-race .race-track-wrap{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  html.wgf-arena-race .race-3d{flex:1 1 auto;height:auto!important;min-height:220px;margin-bottom:0!important}
  html.wgf-arena-race .race-track-wrap>.car-hud{flex:0 0 auto}
  html.wgf-arena-race #finish-panel,html.wgf-arena-race #w-finish{flex:0 0 auto}
  html.wgf-arena-race aside.bet-panel{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-top:16px!important;padding-bottom:16px!important}
  html.wgf-arena-race aside.bet-panel>h2{font-size:22px;margin:2px 0 10px}
  html.wgf-arena-race aside.bet-panel .w-meta{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  html.wgf-arena-race aside.bet-panel .w-meta>div{padding:7px 8px!important;min-height:0!important}
  html.wgf-arena-race aside.bet-panel .w-meta>div span{font-size:10.5px;line-height:1.2}
  html.wgf-arena-race aside.bet-panel .w-meta>div strong{font-size:15px}
  html.wgf-arena-race aside.bet-panel section.history{margin:14px 0 0!important;padding:12px!important;display:block}
  html.wgf-arena-race aside.bet-panel section.history h2{font-size:16px}
}
@media (min-width:900px) and (max-width:1600px){
  html.wgf-arena-race main>header.topbar .eyebrow,html.wgf-arena-race main>header.topbar .w-chip{display:none!important}
}
@media (max-width:899px){
  html.wgf-arena-race main>header.topbar h1{font-size:30px!important;line-height:1.1!important;margin:0 0 6px!important}
}

/* ===== arena-rocket-w.css ===== */
/* Ракетка W (/arena/rocket-w): header + strip + one-line intro + [stage | controls] in 100dvh */
@media (min-width:900px) and (min-height:560px){
  html.wgf-arena-rocket-w body{min-height:0}
  html.wgf-arena-rocket-w .shell{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box}
  html.wgf-arena-rocket-w .shell>header.wg-shell-header{flex:0 0 auto;height:58px!important;min-height:0!important}
  html.wgf-arena-rocket-w .wgt-strip{margin-bottom:6px!important}
  html.wgf-arena-rocket-w .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding-bottom:14px;box-sizing:border-box}
  html.wgf-arena-rocket-w main>.intro{flex:0 0 auto;display:flex;align-items:center;gap:14px;padding:4px 0 10px!important;margin:0!important}
  html.wgf-arena-rocket-w main>.intro .eyebrow{margin:0;white-space:nowrap}
  html.wgf-arena-rocket-w main>.intro h1{font-size:28px!important;line-height:1.1!important;margin:0!important;width:auto;white-space:nowrap}
  html.wgf-arena-rocket-w main>.intro h1 em{font-size:inherit}
  html.wgf-arena-rocket-w main>.game-layout{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);margin:0!important}
  html.wgf-arena-rocket-w #stage{min-height:0!important;height:auto!important}
  html.wgf-arena-rocket-w aside.controls{min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 20px!important;scrollbar-width:thin}
  html.wgf-arena-rocket-w aside.controls h2{font-size:24px;margin:4px 0 6px}
  html.wgf-arena-rocket-w aside.controls .description{margin:0 0 10px;font-size:13px}
  html.wgf-arena-rocket-w aside.controls .figures{margin:0 0 10px}
  html.wgf-arena-rocket-w aside.controls .rk-players{margin:12px 0 0!important;padding:12px!important}
}
@media (min-width:900px) and (max-height:800px){
  html.wgf-arena-rocket-w aside.controls .description{display:none}
  html.wgf-arena-rocket-w aside.controls .figures div{padding-top:8px;padding-bottom:8px}
}
html.wgf-arena-rocket-w aside.controls .rk-players h2{font-size:16px;line-height:1.25}
@media (max-width:899px){
  html.wgf-arena-rocket-w main>.intro{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 0 10px!important}
  html.wgf-arena-rocket-w main>.intro .eyebrow{flex:1 0 100%;margin:0}
  html.wgf-arena-rocket-w main>.intro h1{font-size:30px!important;line-height:1.1!important;margin:0!important}
}

/* ===== coinflip-w.css ===== */
/* shared one-screen frame (intro | .game = stage + panel); extra blocks live in the «Правила» modal */
html.wgf-coinflip-w .shell>main>.intro{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;max-width:none}
html.wgf-coinflip-w .shell>main>.intro .eyebrow{font-size:11px;letter-spacing:.14em}
html.wgf-coinflip-w .shell>main>.intro h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.03em}
html.wgf-coinflip-w .panel{padding:14px 16px}
html.wgf-coinflip-w .panel .mode{min-height:0;padding:6px 10px;font-size:12px}
html.wgf-coinflip-w .panel h2{font-size:15px;margin:10px 0 6px}
html.wgf-coinflip-w .panel h3{font-size:13px;margin:10px 0 6px}
html.wgf-coinflip-w .panel .payout{padding:6px 12px;margin-top:8px;min-height:0}
html.wgf-coinflip-w .panel .stake-hint{margin:4px 0;font-size:12px}
html.wgf-coinflip-w .panel .payout strong{font-size:20px}
@media (min-width:901px) and (max-height:820px){html.wgf-coinflip-w .panel{padding:10px 12px} html.wgf-coinflip-w .panel .sbar-step{width:38px;height:38px} html.wgf-coinflip-w .panel .sbar-main{grid-template-columns:38px minmax(0,1fr) 38px} html.wgf-coinflip-w .panel .sbar-amount{min-height:38px} html.wgf-coinflip-w .panel .sbar-chip{min-height:30px} html.wgf-coinflip-w .panel .wg-guest-play a{min-height:42px}}
html.wgf-coinflip-w .panel .message{margin:8px 0 0;font-size:13px}
html.wgf-coinflip-w .panel .sbar{margin:8px 0;padding:8px}
html.wgf-coinflip-w .panel .sbar-grid{gap:6px}
html.wgf-coinflip-w .panel .sbar-left{gap:6px}
html.wgf-coinflip-w .panel .wg-guest-play{margin-top:8px}
html.wgf-coinflip-w .panel .wg-guest-play small{font-size:11px}
@media (min-width:901px){
  html.wgf-coinflip-w body .shell{height:100dvh;max-width:none;display:flex;flex-direction:column;padding-top:10px;padding-bottom:12px;box-sizing:border-box}
  html.wgf-coinflip-w body .shell>header,html.wgf-coinflip-w body .shell>.wgt-strip{flex:0 0 auto}
  html.wgf-coinflip-w body .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin-top:10px}
  html.wgf-coinflip-w .shell>main>.game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(290px,24vw,340px);gap:12px}
  html.wgf-coinflip-w .shell>main>.game>.stage{min-height:0;height:auto;overflow:hidden}
  html.wgf-coinflip-w .shell>main>.game>.panel{min-height:0;overflow:auto;scrollbar-width:thin}
}
@media (max-width:900px){
  html.wgf-coinflip-w .shell>main>.intro{margin:2px 0 8px}
  html.wgf-coinflip-w .shell>main>.intro .eyebrow{display:none}
  html.wgf-coinflip-w .shell>main>.intro h1{font-size:22px}
  html.wgf-coinflip-w .wgf-rules-btn{min-height:28px}
}
/* Coin Flip */
html.wgf-coinflip-w .panel .side-choice button{min-height:38px}
@media (min-width:901px){
  html.wgf-coinflip-w .shell>main>.game>.stage{min-height:0;container-type:size}
  html.wgf-coinflip-w .stage .rings{width:min(436px,74cqh);height:min(436px,74cqh)}
  html.wgf-coinflip-w .stage .wc-wrap{width:min(240px,42cqh)}
  html.wgf-coinflip-w .stage .coin{width:min(72%,345px,62cqh)}
  html.wgf-coinflip-w .stage .stage-caption strong{font-size:clamp(18px,4cqh,26px)}
}
@media (max-width:900px){
  html.wgf-coinflip-w .shell>main>.game>.stage{min-height:300px}
}

/* ===== duel-w.css ===== */
/* Дуэль: create | arena | open + mine challenges, one screen; rules and long hints in the modal. */
html.wgf-duel-w .shell>main>.hero{display:block;margin:0;padding:0;min-height:0;background:none;border:0;box-shadow:none}
html.wgf-duel-w .shell>main>.hero>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:0}
html.wgf-duel-w .shell>main>.hero .eyebrow{font-size:11px;letter-spacing:.14em}
html.wgf-duel-w .shell>main>.hero h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.03em}
html.wgf-duel-w .shell>main>.hero>img{display:none}
html.wgf-duel-w .panel{padding:12px 14px}
html.wgf-duel-w .panel h2{font-size:17px;margin:2px 0 8px}
html.wgf-duel-w .panel .eyebrow{font-size:10px}
html.wgf-duel-w .section-title{margin-bottom:6px;align-items:center}
html.wgf-duel-w .section-title .quiet{min-height:34px;padding:6px 12px}
html.wgf-duel-w .create .pool{padding:8px 12px;margin:6px 0}
html.wgf-duel-w .create .pool strong{font-size:22px}
html.wgf-duel-w .create .sbar{margin:8px 0;padding:8px}
html.wgf-duel-w .create .wg-guest-play{margin-top:6px}
html.wgf-duel-w .wgdf-panel{margin:0}
html.wgf-duel-w .wgdf-bar{padding-top:6px;padding-bottom:6px}
@media (min-width:901px){
  html.wgf-duel-w body .shell{height:100dvh;max-width:none;display:flex;flex-direction:column;padding-top:10px;padding-bottom:12px;box-sizing:border-box}
  html.wgf-duel-w body .shell>header,html.wgf-duel-w body .shell>.wgt-strip{flex:0 0 auto}
  html.wgf-duel-w body .shell>main{flex:1 1 auto;min-height:0;margin-top:10px;display:grid;gap:10px;
    grid-template-columns:clamp(270px,22vw,330px) minmax(0,1fr) clamp(280px,25vw,360px);
    grid-template-rows:auto minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"hero hero hero" "create arena open" "create arena own"}
  html.wgf-duel-w .shell>main>.hero{grid-area:hero}
  html.wgf-duel-w .shell>main>.wgdf-panel{grid-area:arena;min-height:0;display:flex;flex-direction:column}
  html.wgf-duel-w .wgdf-arena{flex:1 1 auto;height:auto;min-height:0}
  html.wgf-duel-w .shell>main>.columns{display:contents}
  html.wgf-duel-w .columns>.create{grid-area:create;min-height:0;overflow:auto;scrollbar-width:thin;margin:0}
  html.wgf-duel-w .columns>.panel:not(.create){grid-area:open}
  html.wgf-duel-w .shell>main>.own{grid-area:own;margin:0}
  html.wgf-duel-w .columns>.panel:not(.create),html.wgf-duel-w .shell>main>.own{min-height:0;display:flex;flex-direction:column;overflow:hidden;margin:0}
  html.wgf-duel-w #open-list,html.wgf-duel-w #mine-list{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:thin;grid-template-columns:1fr}
}
@media (min-width:901px) and (max-height:820px){
  html.wgf-duel-w .create .sbar-step{width:38px;height:38px}
  html.wgf-duel-w .create .sbar-main{grid-template-columns:38px minmax(0,1fr) 38px}
  html.wgf-duel-w .create .sbar-amount{min-height:38px}
  html.wgf-duel-w .create .sbar-chip{min-height:30px}
  html.wgf-duel-w .create .wg-guest-play a{min-height:42px}
}
@media (max-width:900px){
  html.wgf-duel-w .shell>main>.hero .eyebrow{display:none}
  html.wgf-duel-w .shell>main>.hero h1{font-size:22px}
  html.wgf-duel-w .shell>main>.hero{margin:2px 0 8px}
  html.wgf-duel-w .wgdf-arena{height:200px}
  html.wgf-duel-w .wgdf-panel{margin-bottom:10px}
  html.wgf-duel-w .wgf-rules-btn{min-height:28px}
}

/* ===== flying-pickaxe.css ===== */
/* shared one-screen frame (intro | .game = stage + panel); extra blocks live in the «Правила» modal */
html.wgf-flying-pickaxe .shell>main>.intro{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;max-width:none}
html.wgf-flying-pickaxe .shell>main>.intro .eyebrow{font-size:11px;letter-spacing:.14em}
html.wgf-flying-pickaxe .shell>main>.intro h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.03em}
html.wgf-flying-pickaxe .panel{padding:14px 16px}
html.wgf-flying-pickaxe .panel .mode{min-height:0;padding:6px 10px;font-size:12px}
html.wgf-flying-pickaxe .panel h2{font-size:15px;margin:10px 0 6px}
html.wgf-flying-pickaxe .panel h3{font-size:13px;margin:10px 0 6px}
html.wgf-flying-pickaxe .panel .payout{padding:6px 12px;margin-top:8px;min-height:0}
html.wgf-flying-pickaxe .panel .stake-hint{margin:4px 0;font-size:12px}
html.wgf-flying-pickaxe .panel .payout strong{font-size:20px}
@media (min-width:901px) and (max-height:820px){html.wgf-flying-pickaxe .panel{padding:10px 12px} html.wgf-flying-pickaxe .panel .sbar-step{width:38px;height:38px} html.wgf-flying-pickaxe .panel .sbar-main{grid-template-columns:38px minmax(0,1fr) 38px} html.wgf-flying-pickaxe .panel .sbar-amount{min-height:38px} html.wgf-flying-pickaxe .panel .sbar-chip{min-height:30px} html.wgf-flying-pickaxe .panel .wg-guest-play a{min-height:42px}}
html.wgf-flying-pickaxe .panel .message{margin:8px 0 0;font-size:13px}
html.wgf-flying-pickaxe .panel .sbar{margin:8px 0;padding:8px}
html.wgf-flying-pickaxe .panel .sbar-grid{gap:6px}
html.wgf-flying-pickaxe .panel .sbar-left{gap:6px}
html.wgf-flying-pickaxe .panel .wg-guest-play{margin-top:8px}
html.wgf-flying-pickaxe .panel .wg-guest-play small{font-size:11px}
@media (min-width:901px){
  html.wgf-flying-pickaxe body .shell{height:100dvh;max-width:none;display:flex;flex-direction:column;padding-top:10px;padding-bottom:12px;box-sizing:border-box}
  html.wgf-flying-pickaxe body .shell>header,html.wgf-flying-pickaxe body .shell>.wgt-strip{flex:0 0 auto}
  html.wgf-flying-pickaxe body .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin-top:10px}
  html.wgf-flying-pickaxe .shell>main>.game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(290px,24vw,340px);gap:12px}
  html.wgf-flying-pickaxe .shell>main>.game>.stage{min-height:0;height:auto;overflow:hidden}
  html.wgf-flying-pickaxe .shell>main>.game>.panel{min-height:0;overflow:auto;scrollbar-width:thin}
}
@media (max-width:900px){
  html.wgf-flying-pickaxe .shell>main>.intro{margin:2px 0 8px}
  html.wgf-flying-pickaxe .shell>main>.intro .eyebrow{display:none}
  html.wgf-flying-pickaxe .shell>main>.intro h1{font-size:22px}
  html.wgf-flying-pickaxe .wgf-rules-btn{min-height:28px}
}
/* Flying Pickaxe: the 16:9 game stage takes the whole free height (its controls are inside the stage). */
@media (min-width:901px){
  html.wgf-flying-pickaxe.wgf .fp-page main{max-width:none}
  html.wgf-flying-pickaxe #wrap{flex:1 1 auto;min-height:0;margin:0;display:flex;justify-content:center;align-items:flex-start}
  html.wgf-flying-pickaxe #stage{width:min(100%,calc((100dvh - 180px) * 16 / 9));max-height:none;margin:0 auto}
}

/* ===== jackpot.css ===== */
/* Джекпот: one screen. Rows: intro | rooms | stage + bet | players + winners; rules/proof/footer in the modal. */
html.wgf-jackpot .jp-intro{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;max-width:none}
html.wgf-jackpot .jp-intro .eyebrow{font-size:11px;letter-spacing:.14em}
html.wgf-jackpot .jp-intro h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.03em}
html.wgf-jackpot .jp-intro h1 em{font-size:inherit}
html.wgf-jackpot .jp-room{grid-template-columns:40px 1fr;padding:8px 12px;column-gap:10px}
html.wgf-jackpot .jp-room-ico{width:40px;height:40px}
html.wgf-jackpot .jp-room-ico svg{width:32px;height:32px}
html.wgf-jackpot .jp-room-text b{font-size:14px}
html.wgf-jackpot .jp-room-pot{font-size:16px}
html.wgf-jackpot .jp-room-meta{font-size:11px}
html.wgf-jackpot .jp-stage{padding:12px 16px}
html.wgf-jackpot .jp-head{flex-wrap:nowrap;align-items:flex-end}
html.wgf-jackpot .jp-pot-box{min-width:0}
html.wgf-jackpot .jp-time{flex:0 0 auto}
html.wgf-jackpot .jp-pot-box strong{font-size:clamp(30px,4.2vh,44px)}
html.wgf-jackpot .jp-pot-box .jp-bonus{margin-top:4px;padding:3px 10px}
html.wgf-jackpot .jp-prize{margin-top:3px}
html.wgf-jackpot .jp-time strong{font-size:28px}
html.wgf-jackpot .jp-timeline{margin:8px 0}
html.wgf-jackpot .jp-share{margin-top:8px}
html.wgf-jackpot .jp-banner{margin-top:8px;padding:8px 12px}
html.wgf-jackpot .jp-card{padding:12px 14px}
html.wgf-jackpot .jp-card h2{margin-bottom:8px;font-size:15px}
html.wgf-jackpot .jp-quick{gap:4px}
html.wgf-jackpot .jp-quick button{min-height:34px;padding:0 2px;font-size:12px;letter-spacing:-.02em}
html.wgf-jackpot .jp-input input{height:40px;font-size:18px}
html.wgf-jackpot .jp-play{min-height:46px;margin-top:8px}
html.wgf-jackpot .jp-mine,html.wgf-jackpot .jp-limits,html.wgf-jackpot .jp-msg{margin-top:6px;font-size:12px}
html.wgf-jackpot .jp-bal{margin-bottom:8px}

@media (min-width:901px){
  html.wgf-jackpot body .shell{height:100dvh;max-width:none;display:flex;flex-direction:column;padding-top:10px;padding-bottom:12px;box-sizing:border-box}
  html.wgf-jackpot body .shell>header,html.wgf-jackpot body .shell>.wgt-strip{flex:0 0 auto}
  html.wgf-jackpot body .jp-main{flex:1 1 auto;min-height:0;margin-top:10px;display:grid;gap:10px;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) clamp(280px,24vw,340px);
    grid-template-rows:auto auto auto minmax(0,1fr);
    grid-template-areas:"intro intro intro" "rooms rooms rooms" "stage stage bet" "pl hist bet"}
  html.wgf-jackpot .jp-intro{grid-area:intro}
  html.wgf-jackpot .jp-rooms{grid-area:rooms;gap:10px}
  html.wgf-jackpot .jp-stage{grid-area:stage;min-height:0;overflow:auto;scrollbar-width:thin}
  html.wgf-jackpot .jp-grid{display:contents}
  html.wgf-jackpot .jp-grid>.jp-card-bet{grid-area:bet;min-height:0;overflow:auto;scrollbar-width:thin}
  html.wgf-jackpot .jp-grid>.jp-card:nth-child(2){grid-area:pl}
  html.wgf-jackpot .jp-grid>.jp-card:nth-child(3){grid-area:hist}
  html.wgf-jackpot .jp-grid>.jp-card:not(.jp-card-bet){min-height:0;display:flex;flex-direction:column;overflow:hidden}
  html.wgf-jackpot .jp-grid>.jp-card:not(.jp-card-bet) .jp-list{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;scrollbar-width:thin}
}
/* short desktop screens (768/720): tighter stage */
@media (min-width:901px) and (max-height:820px){
  html.wgf-jackpot .jp-room-ico{display:none}
  html.wgf-jackpot .jp-room{grid-template-columns:1fr;padding:6px 12px;row-gap:0}
  html.wgf-jackpot .jp-room-meta{display:none}
  html.wgf-jackpot .jp-stage{padding:10px 14px}
  html.wgf-jackpot .jp-pot-box strong{font-size:32px}
  html.wgf-jackpot .jp-time strong{font-size:24px}
  html.wgf-jackpot .jp-prize{display:inline-block;margin-left:8px}
  html.wgf-jackpot .jp-limits{display:none}
}
/* phone */
@media (max-width:900px){
  html.wgf-jackpot .jp-intro{margin:2px 0 0}
  html.wgf-jackpot .jp-intro .eyebrow{display:none}
  html.wgf-jackpot .jp-intro h1{font-size:22px}
  html.wgf-jackpot .wgf-rules-btn{min-height:28px}
  html.wgf-jackpot #jp-bet-title{display:none}
  html.wgf-jackpot .jp-prize{font-size:12px}
  html.wgf-jackpot .jp-timeline{margin:6px 0}
  html.wgf-jackpot .jp-pot-box .jp-bonus{font-size:12px}
  html.wgf-jackpot .jp-main{gap:10px}
  html.wgf-jackpot .jp-rooms{gap:6px}
  html.wgf-jackpot .jp-room{grid-template-columns:1fr;padding:6px 8px;text-align:center;justify-items:center}
  html.wgf-jackpot .jp-room-ico,html.wgf-jackpot .jp-room-meta,html.wgf-jackpot .jp-room-text small{display:none}
  html.wgf-jackpot .jp-room-text b{font-size:12px;white-space:normal}
  html.wgf-jackpot .jp-room-pot{font-size:14px}
  html.wgf-jackpot .jp-stage{padding:10px 12px}
  html.wgf-jackpot .jp-pot-box strong{font-size:30px}
  html.wgf-jackpot .jp-time{min-width:0}
  html.wgf-jackpot .jp-time strong{font-size:22px}
  html.wgf-jackpot .jp-grid{gap:10px}
  html.wgf-jackpot .jp-grid .jp-list{max-height:220px}
}

/* ===== ladder-w.css ===== */
/* shared one-screen frame (intro | .game = stage + panel); extra blocks live in the «Правила» modal */
html.wgf-ladder-w .shell>main>.intro{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;max-width:none}
html.wgf-ladder-w .shell>main>.intro .eyebrow{font-size:11px;letter-spacing:.14em}
html.wgf-ladder-w .shell>main>.intro h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.03em}
html.wgf-ladder-w .panel{padding:14px 16px}
html.wgf-ladder-w .panel .mode{min-height:0;padding:6px 10px;font-size:12px}
html.wgf-ladder-w .panel h2{font-size:15px;margin:10px 0 6px}
html.wgf-ladder-w .panel h3{font-size:13px;margin:10px 0 6px}
html.wgf-ladder-w .panel .payout{padding:6px 12px;margin-top:8px;min-height:0}
html.wgf-ladder-w .panel .stake-hint{margin:4px 0;font-size:12px}
html.wgf-ladder-w .panel .payout strong{font-size:20px}
@media (min-width:901px) and (max-height:820px){html.wgf-ladder-w .panel{padding:10px 12px} html.wgf-ladder-w .panel .sbar-step{width:38px;height:38px} html.wgf-ladder-w .panel .sbar-main{grid-template-columns:38px minmax(0,1fr) 38px} html.wgf-ladder-w .panel .sbar-amount{min-height:38px} html.wgf-ladder-w .panel .sbar-chip{min-height:30px} html.wgf-ladder-w .panel .wg-guest-play a{min-height:42px}}
html.wgf-ladder-w .panel .message{margin:8px 0 0;font-size:13px}
html.wgf-ladder-w .panel .sbar{margin:8px 0;padding:8px}
html.wgf-ladder-w .panel .sbar-grid{gap:6px}
html.wgf-ladder-w .panel .sbar-left{gap:6px}
html.wgf-ladder-w .panel .wg-guest-play{margin-top:8px}
html.wgf-ladder-w .panel .wg-guest-play small{font-size:11px}
@media (min-width:901px){
  html.wgf-ladder-w body .shell{height:100dvh;max-width:none;display:flex;flex-direction:column;padding-top:10px;padding-bottom:12px;box-sizing:border-box}
  html.wgf-ladder-w body .shell>header,html.wgf-ladder-w body .shell>.wgt-strip{flex:0 0 auto}
  html.wgf-ladder-w body .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin-top:10px}
  html.wgf-ladder-w .shell>main>.game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(290px,24vw,340px);gap:12px}
  html.wgf-ladder-w .shell>main>.game>.stage{min-height:0;height:auto;overflow:hidden}
  html.wgf-ladder-w .shell>main>.game>.panel{min-height:0;overflow:auto;scrollbar-width:thin}
}
@media (max-width:900px){
  html.wgf-ladder-w .shell>main>.intro{margin:2px 0 8px}
  html.wgf-ladder-w .shell>main>.intro .eyebrow{display:none}
  html.wgf-ladder-w .shell>main>.intro h1{font-size:22px}
  html.wgf-ladder-w .wgf-rules-btn{min-height:28px}
}
/* Лесенка */
html.wgf-ladder-w .panel .g3-traps button{min-height:36px}
html.wgf-ladder-w .panel .g3-history{margin:8px 0 0;min-height:0}
html.wgf-ladder-w .panel .g3-history span{height:24px;min-width:26px}
@media (min-width:901px){
  html.wgf-ladder-w .g3-game .stage{min-height:0;container-type:size}
  html.wgf-ladder-w .g3-stage-inner{flex:1 1 auto;min-height:0;padding:8px 0 4px}
  html.wgf-ladder-w .g3-ladder{width:min(94%,560px,calc(100cqh - 70px));padding:10px 12px;gap:5px}
  html.wgf-ladder-w .g3-step{gap:5px}
  html.wgf-ladder-w .stage .stage-caption{padding-bottom:8px}
  html.wgf-ladder-w .stage .stage-caption strong{font-size:clamp(16px,3.4cqh,26px)}
}
@media (max-width:900px){
  html.wgf-ladder-w .g3-game .stage{min-height:0}
  html.wgf-ladder-w .g3-stage-inner{padding:6px 0 4px}
  html.wgf-ladder-w .stage .stage-caption{position:static;transform:none;margin:0 auto 8px;width:auto}
  html.wgf-ladder-w .stage .stage-caption strong{font-size:16px}
  html.wgf-ladder-w .g3-ladder{padding:8px 10px;gap:4px}
  html.wgf-ladder-w .g3-cell{aspect-ratio:1.6}
  html.wgf-ladder-w .panel>h2:first-of-type{display:none}
}

/* ===== plates-cases.css ===== */
/* Кейсы номеров: one screen — compact head row, the case grid / opening view scrolls inside its own area. */
html.wgf-plates-cases .wgf-modal-body .mp-footer{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 0 0!important;border-top:1px solid rgba(255,255,255,.1);font-size:12.5px;background:none}
html.wgf-plates-cases .wgf-modal-body .mp-footer div{display:flex;flex-wrap:wrap;gap:6px 14px}
html.wgf-plates-cases .pzk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;flex:0 0 auto}
html.wgf-plates-cases .pzk-brand{min-width:0}
html.wgf-plates-cases .pzk-title{margin:0;line-height:0}
html.wgf-plates-cases .pzk-logo{width:auto;height:52px;max-width:100%}
html.wgf-plates-cases .pzk-head-tools{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
html.wgf-plates-cases main#pz-root{display:flex;flex-direction:column;box-sizing:border-box;flex:0 0 auto;min-height:0}
html.wgf-plates-cases main#pz-root>.wg-live-strip{margin:0 0 8px;flex:0 0 auto}
html.wgf-plates-cases main#pz-root>.wg-guest-play{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 8px;flex:0 0 auto}
html.wgf-plates-cases main#pz-root>.wg-guest-play a{min-height:36px!important;height:auto!important;padding:6px 26px!important;width:auto!important;flex:0 0 auto;font-size:15px}
html.wgf-plates-cases main#pz-root>.wg-guest-play small{margin:0!important}
html.wgf-plates-cases #pzk-view{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:16px}
html.wgf-plates-cases .pzk-grid{gap:12px}
@media (min-width:821px){
  html.wgf-plates-cases main#pz-root{height:calc(100dvh - 62px);padding:10px 20px 12px}
  html.wgf-plates-cases .pzk-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}
@media (min-width:821px) and (max-height:820px){
  html.wgf-plates-cases .pzk-logo{height:44px}
  html.wgf-plates-cases .pzk-art{max-height:150px}
}
@media (max-width:820px){
  html.wgf-plates-cases .mp-wrap{min-height:0!important}
  html.wgf-plates-cases main#pz-root{height:calc(100dvh - 127px);padding:8px 10px 6px}
  html.wgf-plates-cases .pzk-logo{height:40px}
  html.wgf-plates-cases .pzk-head-tools .pzk-exit{display:none}
  html.wgf-plates-cases .pzk-head{flex-wrap:nowrap;flex-direction:row}
  html.wgf-plates-cases .pzk-head-tools{flex:0 1 auto;min-width:0}
  html.wgf-plates-cases .wgf-rules-btn{padding:4px 5px}
  html.wgf-plates-cases .wgf-rules-label{display:none}
  html.wgf-plates-cases main#pz-root>.wg-guest-play{gap:10px;margin:0 0 6px}
  html.wgf-plates-cases main#pz-root>.wg-guest-play a{min-height:38px!important;padding:6px 16px!important;font-size:14px}
  html.wgf-plates-cases main#pz-root>.wg-guest-play small{font-size:11px;line-height:1.25;text-align:left}
  html.wgf-plates-cases .pzk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
/* opening view: back button + title in one row, smaller art — ribbon and «Открыть» stay on the first screen */
html.wgf-plates-cases .pzk-case .pzk-case-top{display:flex!important;flex-direction:row!important;align-items:center;gap:16px;margin-bottom:8px}
html.wgf-plates-cases .pzk-case-top .pzk-back{flex:0 0 auto}
html.wgf-plates-cases .pzk-case .pzk-case-title{flex:1 1 auto;min-width:0;display:flex!important;align-items:center;justify-content:flex-start;gap:12px;margin:0;text-align:left}
html.wgf-plates-cases .pzk-case-title .pzk-art{flex:0 0 auto;width:96px!important;height:70px!important;min-height:0}
html.wgf-plates-cases .pzk-case-title h2,html.wgf-plates-cases .pzk-case-title h3{margin:0}
html.wgf-plates-cases .pzk-case .pzk-stage{padding-top:12px;padding-bottom:8px}
html.wgf-plates-cases .pzk-case .pzk-actions{margin-top:8px}

/* ===== plates-inventory.css ===== */
/* Инвентарь номеров: wrap = one screen, the tab view (plates grid / market / trades / history) scrolls inside. */
html.wgf-plates-inventory .mp-wrap{height:100dvh;min-height:0!important;display:flex;flex-direction:column}
html.wgf-plates-inventory .mp-wrap>.mp-topbar,html.wgf-plates-inventory .mp-wrap>.mp-footer{flex:0 0 auto}
html.wgf-plates-inventory main#pinv-root{flex:1 1 0;min-height:0;display:flex;flex-direction:column;box-sizing:border-box;padding-top:12px;padding-bottom:12px}
html.wgf-plates-inventory main#pinv-root>*{flex:0 0 auto}
html.wgf-plates-inventory main#pinv-root.pz-404{justify-content:center}
html.wgf-plates-inventory .pinv-head{margin-bottom:8px}
html.wgf-plates-inventory .pinv-head h1{font-size:clamp(22px,2.2vw,30px);margin:2px 0}
html.wgf-plates-inventory .pinv-head p{margin:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
html.wgf-plates-inventory .pinv-summary,html.wgf-plates-inventory .pinv-tabs,html.wgf-plates-inventory .pinv-bar{margin-bottom:8px}
html.wgf-plates-inventory main#pinv-root>#pinv-view{flex:1 1 0;min-height:120px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
html.wgf-plates-inventory .pinv-note{margin:6px 0 0;font-size:11.5px}
@media (min-width:821px) and (max-height:800px){
  html.wgf-plates-inventory .pinv-stats>div{padding-top:6px;padding-bottom:6px}
  html.wgf-plates-inventory .mp-footer{padding-top:10px;padding-bottom:10px}
}
@media (max-width:820px){
  html.wgf-plates-inventory .mp-wrap{height:calc(100dvh - 66px)}
  html.wgf-plates-inventory .mp-wrap>.mp-footer{display:none}
}

/* ===== plates.css ===== */
/* Номера: stage fills the screen under the top bar + live strip; footer lives in the «i» sheet. */
html.wgf-plates .wgf-in-sheet{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:4px 0 0!important;padding:10px 0 0!important;
  border-top:1px solid rgba(255,255,255,.1);background:none!important;font-size:12.5px}
html.wgf-plates .wgf-in-sheet div{display:flex;flex-wrap:wrap;gap:6px 14px}
html.wgf-plates .wgf-in-sheet a{color:#ffd677}
@media (min-width:821px){
  html.wgf-plates main#pz-root{height:calc(100dvh - 62px);min-height:0;display:flex;flex-direction:column;box-sizing:border-box;padding:10px 20px 12px}
  html.wgf-plates main#pz-root>.wg-live-strip{margin:0 0 8px;flex:0 0 auto}
  html.wgf-plates main#pz-root>.wg-guest-play{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 8px;flex:0 0 auto}
  html.wgf-plates main#pz-root>.wg-guest-play a{min-height:36px!important;height:auto!important;padding:6px 26px!important;width:auto!important;flex:0 0 auto;font-size:15px}
  html.wgf-plates main#pz-root>.wg-guest-play small{margin:0!important}
  html.wgf-plates #pz-stage.pzg{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none;margin:0}
}
@media (min-width:821px) and (max-height:860px){
  html.wgf-plates .pz-art .pzg.pz-stage{padding:12px 16px 8px}
  html.wgf-plates .pzg .pz-prev{height:0;overflow:hidden}
  html.wgf-plates .pz-art .pzg-fbtn{min-height:0;flex:1 1 0}
  html.wgf-plates .pzg-side{gap:10px;padding-top:8px;min-height:0}
  html.wgf-plates .pzg-logo{width:clamp(150px,15vw,210px)}
  html.wgf-plates .pzg-top{padding-bottom:2px}
  html.wgf-plates .pz-art .pzg-bar{padding:4px 8px 16px}
  html.wgf-plates .pz-patterns{min-height:30px}
}
@media (max-width:820px){
  html.wgf-plates .mp-wrap{min-height:0!important}
  html.wgf-plates main#pz-root{height:calc(100dvh - 127px);flex:0 0 auto;min-height:0;display:flex;flex-direction:column;box-sizing:border-box;padding:8px 10px 6px}
  html.wgf-plates main#pz-root>.wg-live-strip{margin:0 0 6px;flex:0 0 auto}
  html.wgf-plates main#pz-root>.wg-guest-play{display:flex;align-items:center;gap:10px;margin:0 0 6px;flex:0 0 auto}
  html.wgf-plates main#pz-root>.wg-guest-play a{min-height:38px!important;height:auto!important;padding:6px 16px!important;width:auto!important;flex:0 0 auto;font-size:14px}
  html.wgf-plates main#pz-root>.wg-guest-play small{margin:0!important;font-size:11px;line-height:1.25;text-align:left}
  html.wgf-plates #pz-stage.pzg{flex:1 1 0;min-height:0!important;height:auto!important;margin:0}
  html.wgf-plates .pzg .pz-prev{height:0;overflow:hidden}
  html.wgf-plates .pz-patterns{min-height:24px}
}

/* ===== rooms.css ===== */
/* Комнаты: the page already fits on desktop. Phones: body keeps 66px for the bottom bar, so the wrap must not add a full 100dvh on top. */
@media (max-width:820px){
  html.wgf-rooms .mp-wrap{min-height:calc(100dvh - 66px)!important}
  html.wgf-rooms main.mp-content{padding-top:12px;padding-bottom:16px}
}

/* ===== roulette-live.css ===== */
/* Live Рулетка / Колесо (fork B): one screen = header + compact title + [stage | bet panel]. CSS layer only. */
@media (min-width:761px){
  html.wgf-roulette-live body{min-height:0}
  html.wgf-roulette-live .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;box-sizing:border-box;max-width:1680px}
  html.wgf-roulette-live .shell>header{flex:0 0 auto;margin-bottom:0}
  html.wgf-roulette-live .shell>footer{display:none}
  html.wgf-roulette-live .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
  html.wgf-roulette-live .intro{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin:8px 0 0;max-width:none}
  html.wgf-roulette-live .intro .eyebrow{font-size:10.5px;letter-spacing:.16em;white-space:nowrap;order:0}
  html.wgf-roulette-live .intro h1{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin:0;white-space:nowrap;order:-1}
  html.wgf-roulette-live .intro .wgf-rules-btn{order:1}
  html.wgf-roulette-live .g3-game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(330px,27vw,400px);gap:12px;margin:0}
  html.wgf-roulette-live .g3-game .stage{min-height:0!important;height:auto}
  html.wgf-roulette-live .g3-game .panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
  html.wgf-roulette-live .g3-game .panel>*{margin-top:0!important;margin-bottom:0!important}
  html.wgf-roulette-live .g3-game .panel h2{font-size:18px;margin:0}
  html.wgf-roulette-live .g3-game .panel .mode{padding:7px 10px}
  html.wgf-roulette-live .g3-game .g3-board{gap:6px}
  html.wgf-roulette-live .g3-game .g3-bet{min-height:52px;padding:7px 10px;border-radius:13px}
  html.wgf-roulette-live .g3-game .g3-bet b{font-size:18px}
  html.wgf-roulette-live .g3-game .g3-bet small{font-size:11px}
  html.wgf-roulette-live .g3-game .stakes button{min-height:40px}
  html.wgf-roulette-live .g3-game .play{min-height:46px}
  html.wgf-roulette-live .g3-game .panel .message{font-size:12px;margin:0}
  /* caption: a slim glass bar instead of a 100px block over the wheel */
  html.wgf-roulette-live.wgf-roulette-live .stage .stage-caption{left:50%;right:auto;transform:translateX(-50%);bottom:8px;width:auto;max-width:calc(100% - 24px);padding:5px 16px;gap:1px;border-radius:13px}
  html.wgf-roulette-live.wgf-roulette-live .stage .stage-caption span{font-size:10px;letter-spacing:.14em}
  html.wgf-roulette-live.wgf-roulette-live .stage .stage-caption strong{font-size:clamp(15px,1.25vw,19px);line-height:1.2;text-wrap:balance}
  html.wgf-roulette-live .lv-history{bottom:58px}
}
@media (min-width:761px) and (max-height:800px){
  html.wgf-roulette-live .intro{margin-top:4px}
  html.wgf-roulette-live .intro h1{font-size:26px}
  html.wgf-roulette-live .g3-game .g3-bet{min-height:46px;padding:5px 9px}
  html.wgf-roulette-live .g3-game .g3-bet b{font-size:16px}
  html.wgf-roulette-live .g3-game .panel{padding:10px 12px;gap:6px}
  html.wgf-roulette-live .g3-game .panel h2{display:none}
  html.wgf-roulette-live .g3-game .g3-board:not(.three){grid-template-columns:repeat(3,minmax(0,1fr))}
  html.wgf-roulette-live .g3-game .g3-board:not(.three) .g3-bet small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
/* phone: compact title, stage shorter so bets + play come up early */
@media (max-width:760px){
  html.wgf-roulette-live .intro{margin:10px 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
  html.wgf-roulette-live .intro .eyebrow{display:none}
  html.wgf-roulette-live .intro h1{font-size:24px;line-height:1.1;margin:0;letter-spacing:-.03em}
  html.wgf-roulette-live .g3-game .stage{min-height:min(78vw,330px)!important}
  html.wgf-roulette-live .g3-game .panel{padding:12px}
  html.wgf-roulette-live .g3-game .panel>*{margin-top:0!important}
  html.wgf-roulette-live .g3-game .panel{display:flex;flex-direction:column;gap:8px}
  html.wgf-roulette-live .g3-game .panel h2{display:none}
  html.wgf-roulette-live .g3-game .g3-bet{min-height:50px;padding:6px 9px}
  html.wgf-roulette-live .g3-game .g3-bet b{font-size:16px}
  html.wgf-roulette-live .shell>footer{display:none}
}

/* ===== roulette-w.css ===== */
/* Live Рулетка / Колесо (fork B): one screen = header + compact title + [stage | bet panel]. CSS layer only. */
@media (min-width:761px){
  html.wgf-roulette-w body{min-height:0}
  html.wgf-roulette-w .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;box-sizing:border-box;max-width:1680px}
  html.wgf-roulette-w .shell>header{flex:0 0 auto;margin-bottom:0}
  html.wgf-roulette-w .shell>footer{display:none}
  html.wgf-roulette-w .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
  html.wgf-roulette-w .intro{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin:8px 0 0;max-width:none}
  html.wgf-roulette-w .intro .eyebrow{font-size:10.5px;letter-spacing:.16em;white-space:nowrap;order:0}
  html.wgf-roulette-w .intro h1{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin:0;white-space:nowrap;order:-1}
  html.wgf-roulette-w .intro .wgf-rules-btn{order:1}
  html.wgf-roulette-w .g3-game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(330px,27vw,400px);gap:12px;margin:0}
  html.wgf-roulette-w .g3-game .stage{min-height:0!important;height:auto}
  html.wgf-roulette-w .g3-game .panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
  html.wgf-roulette-w .g3-game .panel>*{margin-top:0!important;margin-bottom:0!important}
  html.wgf-roulette-w .g3-game .panel h2{font-size:18px;margin:0}
  html.wgf-roulette-w .g3-game .panel .mode{padding:7px 10px}
  html.wgf-roulette-w .g3-game .g3-board{gap:6px}
  html.wgf-roulette-w .g3-game .g3-bet{min-height:52px;padding:7px 10px;border-radius:13px}
  html.wgf-roulette-w .g3-game .g3-bet b{font-size:18px}
  html.wgf-roulette-w .g3-game .g3-bet small{font-size:11px}
  html.wgf-roulette-w .g3-game .stakes button{min-height:40px}
  html.wgf-roulette-w .g3-game .play{min-height:46px}
  html.wgf-roulette-w .g3-game .panel .message{font-size:12px;margin:0}
  /* caption: a slim glass bar instead of a 100px block over the wheel */
  html.wgf-roulette-w.wgf-roulette-w .stage .stage-caption{left:50%;right:auto;transform:translateX(-50%);bottom:8px;width:auto;max-width:calc(100% - 24px);padding:5px 16px;gap:1px;border-radius:13px}
  html.wgf-roulette-w.wgf-roulette-w .stage .stage-caption span{font-size:10px;letter-spacing:.14em}
  html.wgf-roulette-w.wgf-roulette-w .stage .stage-caption strong{font-size:clamp(15px,1.25vw,19px);line-height:1.2;text-wrap:balance}
  html.wgf-roulette-w .lv-history{bottom:58px}
}
@media (min-width:761px) and (max-height:800px){
  html.wgf-roulette-w .intro{margin-top:4px}
  html.wgf-roulette-w .intro h1{font-size:26px}
  html.wgf-roulette-w .g3-game .g3-bet{min-height:46px;padding:5px 9px}
  html.wgf-roulette-w .g3-game .g3-bet b{font-size:16px}
  html.wgf-roulette-w .g3-game .panel{padding:10px 12px;gap:6px}
  html.wgf-roulette-w .g3-game .panel h2{display:none}
  html.wgf-roulette-w .g3-game .g3-board:not(.three){grid-template-columns:repeat(3,minmax(0,1fr))}
  html.wgf-roulette-w .g3-game .g3-board:not(.three) .g3-bet small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
/* phone: compact title, stage shorter so bets + play come up early */
@media (max-width:760px){
  html.wgf-roulette-w .intro{margin:10px 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
  html.wgf-roulette-w .intro .eyebrow{display:none}
  html.wgf-roulette-w .intro h1{font-size:24px;line-height:1.1;margin:0;letter-spacing:-.03em}
  html.wgf-roulette-w .g3-game .stage{min-height:min(78vw,330px)!important}
  html.wgf-roulette-w .g3-game .panel{padding:12px}
  html.wgf-roulette-w .g3-game .panel>*{margin-top:0!important}
  html.wgf-roulette-w .g3-game .panel{display:flex;flex-direction:column;gap:8px}
  html.wgf-roulette-w .g3-game .panel h2{display:none}
  html.wgf-roulette-w .g3-game .g3-bet{min-height:50px;padding:6px 9px}
  html.wgf-roulette-w .g3-game .g3-bet b{font-size:16px}
  html.wgf-roulette-w .shell>footer{display:none}
}

/* ===== wheel-live.css ===== */
/* Live Рулетка / Колесо (fork B): one screen = header + compact title + [stage | bet panel]. CSS layer only. */
@media (min-width:761px){
  html.wgf-wheel-live body{min-height:0}
  html.wgf-wheel-live .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;box-sizing:border-box;max-width:1680px}
  html.wgf-wheel-live .shell>header{flex:0 0 auto;margin-bottom:0}
  html.wgf-wheel-live .shell>footer{display:none}
  html.wgf-wheel-live .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
  html.wgf-wheel-live .intro{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin:8px 0 0;max-width:none}
  html.wgf-wheel-live .intro .eyebrow{font-size:10.5px;letter-spacing:.16em;white-space:nowrap;order:0}
  html.wgf-wheel-live .intro h1{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin:0;white-space:nowrap;order:-1}
  html.wgf-wheel-live .intro .wgf-rules-btn{order:1}
  html.wgf-wheel-live .g3-game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(330px,27vw,400px);gap:12px;margin:0}
  html.wgf-wheel-live .g3-game .stage{min-height:0!important;height:auto}
  html.wgf-wheel-live .g3-game .panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
  html.wgf-wheel-live .g3-game .panel>*{margin-top:0!important;margin-bottom:0!important}
  html.wgf-wheel-live .g3-game .panel h2{font-size:18px;margin:0}
  html.wgf-wheel-live .g3-game .panel .mode{padding:7px 10px}
  html.wgf-wheel-live .g3-game .g3-board{gap:6px}
  html.wgf-wheel-live .g3-game .g3-bet{min-height:52px;padding:7px 10px;border-radius:13px}
  html.wgf-wheel-live .g3-game .g3-bet b{font-size:18px}
  html.wgf-wheel-live .g3-game .g3-bet small{font-size:11px}
  html.wgf-wheel-live .g3-game .stakes button{min-height:40px}
  html.wgf-wheel-live .g3-game .play{min-height:46px}
  html.wgf-wheel-live .g3-game .panel .message{font-size:12px;margin:0}
  /* caption: a slim glass bar instead of a 100px block over the wheel */
  html.wgf-wheel-live.wgf-wheel-live .stage .stage-caption{left:50%;right:auto;transform:translateX(-50%);bottom:8px;width:auto;max-width:calc(100% - 24px);padding:5px 16px;gap:1px;border-radius:13px}
  html.wgf-wheel-live.wgf-wheel-live .stage .stage-caption span{font-size:10px;letter-spacing:.14em}
  html.wgf-wheel-live.wgf-wheel-live .stage .stage-caption strong{font-size:clamp(15px,1.25vw,19px);line-height:1.2;text-wrap:balance}
  html.wgf-wheel-live .lv-history{bottom:58px}
}
@media (min-width:761px) and (max-height:800px){
  html.wgf-wheel-live .intro{margin-top:4px}
  html.wgf-wheel-live .intro h1{font-size:26px}
  html.wgf-wheel-live .g3-game .g3-bet{min-height:46px;padding:5px 9px}
  html.wgf-wheel-live .g3-game .g3-bet b{font-size:16px}
  html.wgf-wheel-live .g3-game .panel{padding:10px 12px;gap:6px}
  html.wgf-wheel-live .g3-game .panel h2{display:none}
  html.wgf-wheel-live .g3-game .g3-board:not(.three){grid-template-columns:repeat(3,minmax(0,1fr))}
  html.wgf-wheel-live .g3-game .g3-board:not(.three) .g3-bet small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
/* phone: compact title, stage shorter so bets + play come up early */
@media (max-width:760px){
  html.wgf-wheel-live .intro{margin:10px 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
  html.wgf-wheel-live .intro .eyebrow{display:none}
  html.wgf-wheel-live .intro h1{font-size:24px;line-height:1.1;margin:0;letter-spacing:-.03em}
  html.wgf-wheel-live .g3-game .stage{min-height:min(78vw,330px)!important}
  html.wgf-wheel-live .g3-game .panel{padding:12px}
  html.wgf-wheel-live .g3-game .panel>*{margin-top:0!important}
  html.wgf-wheel-live .g3-game .panel{display:flex;flex-direction:column;gap:8px}
  html.wgf-wheel-live .g3-game .panel h2{display:none}
  html.wgf-wheel-live .g3-game .g3-bet{min-height:50px;padding:6px 9px}
  html.wgf-wheel-live .g3-game .g3-bet b{font-size:16px}
  html.wgf-wheel-live .shell>footer{display:none}
}

/* ===== wheel-w.css ===== */
/* Live Рулетка / Колесо (fork B): one screen = header + compact title + [stage | bet panel]. CSS layer only. */
@media (min-width:761px){
  html.wgf-wheel-w body{min-height:0}
  html.wgf-wheel-w .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;box-sizing:border-box;max-width:1680px}
  html.wgf-wheel-w .shell>header{flex:0 0 auto;margin-bottom:0}
  html.wgf-wheel-w .shell>footer{display:none}
  html.wgf-wheel-w .shell>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
  html.wgf-wheel-w .intro{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin:8px 0 0;max-width:none}
  html.wgf-wheel-w .intro .eyebrow{font-size:10.5px;letter-spacing:.16em;white-space:nowrap;order:0}
  html.wgf-wheel-w .intro h1{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin:0;white-space:nowrap;order:-1}
  html.wgf-wheel-w .intro .wgf-rules-btn{order:1}
  html.wgf-wheel-w .g3-game{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) clamp(330px,27vw,400px);gap:12px;margin:0}
  html.wgf-wheel-w .g3-game .stage{min-height:0!important;height:auto}
  html.wgf-wheel-w .g3-game .panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
  html.wgf-wheel-w .g3-game .panel>*{margin-top:0!important;margin-bottom:0!important}
  html.wgf-wheel-w .g3-game .panel h2{font-size:18px;margin:0}
  html.wgf-wheel-w .g3-game .panel .mode{padding:7px 10px}
  html.wgf-wheel-w .g3-game .g3-board{gap:6px}
  html.wgf-wheel-w .g3-game .g3-bet{min-height:52px;padding:7px 10px;border-radius:13px}
  html.wgf-wheel-w .g3-game .g3-bet b{font-size:18px}
  html.wgf-wheel-w .g3-game .g3-bet small{font-size:11px}
  html.wgf-wheel-w .g3-game .stakes button{min-height:40px}
  html.wgf-wheel-w .g3-game .play{min-height:46px}
  html.wgf-wheel-w .g3-game .panel .message{font-size:12px;margin:0}
  /* caption: a slim glass bar instead of a 100px block over the wheel */
  html.wgf-wheel-w.wgf-wheel-w .stage .stage-caption{left:50%;right:auto;transform:translateX(-50%);bottom:8px;width:auto;max-width:calc(100% - 24px);padding:5px 16px;gap:1px;border-radius:13px}
  html.wgf-wheel-w.wgf-wheel-w .stage .stage-caption span{font-size:10px;letter-spacing:.14em}
  html.wgf-wheel-w.wgf-wheel-w .stage .stage-caption strong{font-size:clamp(15px,1.25vw,19px);line-height:1.2;text-wrap:balance}
  html.wgf-wheel-w .lv-history{bottom:58px}
}
@media (min-width:761px) and (max-height:800px){
  html.wgf-wheel-w .intro{margin-top:4px}
  html.wgf-wheel-w .intro h1{font-size:26px}
  html.wgf-wheel-w .g3-game .g3-bet{min-height:46px;padding:5px 9px}
  html.wgf-wheel-w .g3-game .g3-bet b{font-size:16px}
  html.wgf-wheel-w .g3-game .panel{padding:10px 12px;gap:6px}
  html.wgf-wheel-w .g3-game .panel h2{display:none}
  html.wgf-wheel-w .g3-game .g3-board:not(.three){grid-template-columns:repeat(3,minmax(0,1fr))}
  html.wgf-wheel-w .g3-game .g3-board:not(.three) .g3-bet small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
/* phone: compact title, stage shorter so bets + play come up early */
@media (max-width:760px){
  html.wgf-wheel-w .intro{margin:10px 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
  html.wgf-wheel-w .intro .eyebrow{display:none}
  html.wgf-wheel-w .intro h1{font-size:24px;line-height:1.1;margin:0;letter-spacing:-.03em}
  html.wgf-wheel-w .g3-game .stage{min-height:min(78vw,330px)!important}
  html.wgf-wheel-w .g3-game .panel{padding:12px}
  html.wgf-wheel-w .g3-game .panel>*{margin-top:0!important}
  html.wgf-wheel-w .g3-game .panel{display:flex;flex-direction:column;gap:8px}
  html.wgf-wheel-w .g3-game .panel h2{display:none}
  html.wgf-wheel-w .g3-game .g3-bet{min-height:50px;padding:6px 9px}
  html.wgf-wheel-w .g3-game .g3-bet b{font-size:16px}
  html.wgf-wheel-w .shell>footer{display:none}
}
