/* R46 + R74/R78: all dimensions below are within the existing scaled canvas. */
html.gala-polish-wide:not(.phone) .nav {
  grid-template-columns: minmax(110px,16%) minmax(0,30%) minmax(0,27%) minmax(0,1fr) !important;
  align-items:center !important;
  gap:8px !important;
}
html.gala-polish-wide:not(.phone) .nav .nav-links {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.3fr) !important;
  grid-template-rows:44px !important;
  align-items:center !important;
  gap:5px !important;
  min-width:0;
  padding:0 !important;
}
html.gala-polish-wide:not(.phone) .nav-links #halls { grid-column:1!important; grid-row:1!important; }
html.gala-polish-wide:not(.phone) .nav-links #chat { grid-column:2!important; grid-row:1!important; }
html.gala-polish-wide:not(.phone) .nav-links #halls,
html.gala-polish-wide:not(.phone) .nav-links #chat { height:36px!important; min-width:0!important; padding:2px!important; }
html.gala-polish-wide:not(.phone) .nav #galaDailyRewards {
  grid-column:3 !important; grid-row:1 !important;
  width:100% !important; height:44px !important;
  min-width:0 !important; min-height:0 !important; max-width:none !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; background:none !important; box-shadow:none !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
html.gala-polish-wide:not(.phone) #galaDailyRewards img {
  display:block; width:100%; height:100%; object-fit:contain;
}
html.gala-polish-wide:not(.phone) .nav-prizes { min-width:0; gap:6px!important; }
html.gala-polish-wide:not(.phone) .nav-prize { min-width:0!important; padding-inline:4px!important; }
html.gala-polish-wide:not(.phone) .nav-account { min-width:0; gap:4px!important; padding:0!important; }
html.gala-polish-wide:not(.phone) .nav-account .wallet { min-width:0!important; padding-inline:5px!important; }
html.gala-polish-wide:not(.phone) .game-info { justify-content:space-between!important; }
html.gala-polish-wide:not(.phone) .game-info .info-heading {
  margin-top:clamp(3px,.6cqh,6px)!important;
  margin-bottom:clamp(5px,1.4cqh,14px)!important;
}
html.gala-polish-wide:not(.phone) .game-info .details-actions { margin-top:0!important; }
html.gala-polish-wide:not(.phone) body:has(> #game) {
  background:#500c22 url('./hall-background.webp') center/cover no-repeat fixed!important;
}
/* The outer host has a separate background and inline hall-theme colours. */
html.gala-polish-wide:not(.phone) .gala-game-stage[data-room-theme]::before {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:#500c22 url('./hall-background.webp') center/cover no-repeat!important;
  filter:none!important;
}
html.gala-polish-wide:not(.phone) .gala-game-stage > iframe { z-index:1; }
html.phone #galaDailyRewards { display:none!important; }

/* Gala hall/rewards correction 1 */
html:not(.phone) #modal.hall-chooser .hall-lounges {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;align-items:stretch;
}
html:not(.phone) #modal.hall-chooser .hall-lounge {
 display:grid;grid-template-rows:subgrid;grid-row:1 / span 2;min-width:0;
}
html:not(.phone) #modal.hall-chooser .hall-lounge:first-child {grid-column:1;}
html:not(.phone) #modal.hall-chooser .hall-lounge:nth-child(2) {grid-column:2;}
html:not(.phone) #modal.hall-chooser .hall-lounge header {height:auto;align-self:stretch;min-width:0;}
html:not(.phone) #modal.hall-chooser .hall-lounge header>div {min-width:0;}
html:not(.phone) #modal.hall-chooser .hall-prices {
 grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:1fr;align-content:center;align-items:stretch;
}
html:not(.phone) #modal.hall-chooser .hall-prices>.hall-price {grid-column:span 2;justify-content:center;}
html:not(.phone) #modal.hall-chooser .hall-prices:has(>.hall-price:nth-child(5):last-child)>.hall-price:nth-child(4) {grid-column:2 / span 2;}
html:not(.phone) #modal.hall-chooser .hall-prices:has(>.hall-price:nth-child(5):last-child)>.hall-price:nth-child(5) {grid-column:4 / span 2;}
@supports not (grid-template-rows:subgrid) {
 html:not(.phone) #modal.hall-chooser .hall-lounge {grid-template-rows:auto 1fr;}
 html:not(.phone) #modal.hall-chooser .hall-lounge h3 {min-height:2.4em;display:flex;align-items:center;}
 html:not(.phone) #modal.hall-chooser .hall-lounge header p {min-height:3em;}
}

/* Equal toolbar buttons 1 */
html.gala-polish-wide:not(.phone) #game .nav .nav-links {
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-template-rows:36px!important;align-items:stretch!important;
}
html.gala-polish-wide:not(.phone) #game .nav .nav-links #halls,
html.gala-polish-wide:not(.phone) #game .nav .nav-links #chat,
html.gala-polish-wide:not(.phone) #game .nav .nav-links #galaDailyRewards {
 width:100%!important;height:36px!important;min-height:36px!important;
 min-width:0!important;max-width:none!important;margin:0!important;
 box-sizing:border-box!important;padding:3px 4px!important;
 align-self:stretch!important;display:flex!important;
 align-items:center!important;justify-content:center!important;
}
html.gala-polish-wide:not(.phone) #game .nav .nav-links #galaDailyRewards {
 border:1px solid #b89342!important;border-radius:7px!important;
 background:linear-gradient(#35202b,#160c13)!important;
 box-shadow:inset 0 1px #f8db7833!important;
 color:#ffe4a0;gap:4px;line-height:1.1;
}
html.gala-polish-wide:not(.phone) #game #galaDailyRewards img {display:none!important;}
html.gala-polish-wide:not(.phone) #game #galaDailyRewards::before {
 content:'';display:block;flex:0 0 clamp(12px,1.2vw,18px);
 width:clamp(12px,1.2vw,18px);aspect-ratio:1;
 background:url('/assets/reward-sprites.webp') 0 0/200% 200% no-repeat;
}
html.gala-polish-wide:not(.phone) #game #galaDailyRewards::after {
 content:'DAILY REWARDS';min-width:0;white-space:normal;text-align:center;
}
html.gala-polish-wide:not(.phone) #game .nav .nav-links #galaDailyRewards:hover {
 border-color:#ffe49a!important;background:#29200f!important;
}
