/* StakeQuiz 1.1.142: table-only layout. Mobile notices keep clear of KIÜL/LOBBY dock. */
body.game-page.sq-corner-ui-139 {
  --sq-corner-gap-139: 6px;
  --sq-corner-rail-139: calc(132px + env(safe-area-inset-right,0px));
  --sq-corner-safe-left-139: env(safe-area-inset-left,0px);
}
/* Leave real room for the dock: it is outside the scaled poker-table. */
html body.game-page.sq-corner-ui-139 .poker-table-wrap {
  box-sizing:border-box!important;
  width:calc(100% - var(--sq-corner-rail-139))!important;
  max-width:calc(100% - var(--sq-corner-rail-139))!important;
  align-self:flex-start!important;
  min-width:0!important;
  grid-template-columns:minmax(0,1fr)!important; grid-template-rows:minmax(0,1fr)!important;
}
html body.game-page.sq-corner-ui-139 .game-shell { grid-template-rows:minmax(0,1fr)!important; }
html body.game-page.sq-corner-ui-139 .game-area { min-height:0!important; }
html body.game-page.sq-corner-ui-139 #poker-table {
  min-width:0!important; max-width:min(calc(100% - 48px),var(--sq-corner-table-cap-139,1040px))!important;
}
html body.game-page.sq-corner-ui-139 .sq-seat-entry-dock {
  right:calc(var(--sq-corner-rail-139) + 6px)!important;
}
/* The existing notification function/timers and text are left intact. */
html body.game-page #toast-root.sq-notices-left-139 {
  position:fixed!important; right:auto!important; left:var(--sq-notice-left-139,6px)!important;
  top:auto!important; bottom:var(--sq-notice-bottom-139,42px)!important;
  width:var(--sq-notice-width-139,180px)!important; max-width:calc(100vw - 16px)!important;
  max-height:var(--sq-notice-height-139,88px)!important;
  display:flex!important; flex-direction:column!important; gap:4px!important;
  padding:0!important; margin:0!important; overflow:auto!important;
  scrollbar-width:thin; scrollbar-color:#476074 transparent;
  background:transparent!important; border:0!important; box-shadow:none!important;
  z-index:96!important; pointer-events:none!important; transform:none!important;
  overscroll-behavior:contain;
}
html body.game-page #toast-root.sq-notices-left-139 .toast {
  flex:0 0 auto!important; min-width:0!important; width:100%!important; max-width:100%!important;
  box-sizing:border-box!important; margin:0!important; padding:5px 7px!important;
  border-radius:7px!important; font-size:11px!important; line-height:1.3!important;
  font-weight:500!important; white-space:normal!important; overflow-wrap:anywhere!important;
  background:rgba(7,17,27,.90)!important; color:#e7eef8!important;
  box-shadow:none!important; border:1px solid rgba(100,170,190,.3)!important;
  border-left:3px solid #60bcd3!important; pointer-events:auto!important;
  transform:translateX(-6px); transition:opacity .15s,transform .15s!important;
}
html body.game-page #toast-root.sq-notices-left-139 .toast.show { transform:none!important; }
html body.game-page #toast-root.sq-notices-left-139 .toast.warning { border-left-color:#ecc16d!important; }
html body.game-page #toast-root.sq-notices-left-139 .toast.error { border-left-color:#ff8f9d!important; }
/* Last resort only: a reserved bottom band on very crowded/narrow layouts. */
html body.game-page.sq-corner-notice-band-139 .poker-table-wrap { padding-bottom:64px!important; }
/* A body-level portal is not affected by poker-table scale/transforms. */
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 {
  position:fixed!important; left:auto!important; top:auto!important;
  right:max(6px,env(safe-area-inset-right,0px))!important;
  bottom:max(6px,env(safe-area-inset-bottom,0px))!important;
  transform:none!important; margin:0!important; z-index:95!important;
  box-sizing:border-box!important; width:120px!important; padding:5px!important;
  max-height:calc(100dvh - 56px)!important; overflow:auto!important;
  border-radius:11px!important; background:rgba(4,9,18,.94)!important;
  border:1px solid rgba(88,220,255,.28)!important; box-shadow:0 5px 16px rgba(0,0,0,.25)!important;
  pointer-events:auto!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139[hidden] { display:none!important; }
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-currency-136 {
  display:block!important; margin:0 0 3px!important; padding:0!important;
  font-size:10px!important; line-height:1.2!important; font-weight:700!important;
  text-align:center!important; color:#cceaf5!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-list-125 {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:auto!important; gap:4px!important; margin:0!important; padding:0!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 {
  position:relative!important; box-sizing:border-box!important; width:100%!important;
  height:auto!important; min-height:52px!important; min-width:0!important;
  display:flex!important; flex-direction:column!important; align-items:center!important;
  justify-content:flex-start!important; gap:2px!important; padding:3px 1px!important;
  margin:0!important; touch-action:manipulation!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-picture-136 {
  position:relative!important; display:flex!important; align-items:center!important; justify-content:center!important;
  flex:0 0 28px!important; width:100%!important; height:28px!important;
  overflow:hidden!important; margin:0!important; padding:0!important; pointer-events:none!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 img {
  position:static!important; display:block!important; width:28px!important; height:28px!important;
  min-width:0!important; max-width:100%!important; object-fit:contain!important;
  margin:0!important; padding:0!important; opacity:1!important; visibility:visible!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 span {
  position:static!important; inset:auto!important; display:block!important; flex:0 0 auto!important;
  box-sizing:border-box!important; width:100%!important; height:auto!important;
  font-size:11px!important; line-height:1.2!important; font-weight:700!important;
  padding:0!important; margin:0!important; background:transparent!important;
  border:0!important; color:#f3df99!important; text-align:center!important;
  white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-missing-136 {
  max-width:100%!important; max-height:28px!important; font-size:10px!important; line-height:1.1!important;
  overflow:hidden!important; overflow-wrap:anywhere!important; color:#ffe1b5!important; text-align:center!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-picture-136 [hidden] { display:none!important; }
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-state-125 {
  font-size:10px!important; line-height:1.2!important; margin-top:4px!important; overflow-wrap:anywhere!important;
  color:#c3ceda!important; white-space:normal!important;
}
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-cancel-125 {
  top:1px!important; right:1px!important; width:18px!important; height:18px!important; font-size:12px!important;
}
@media(max-width:900px),(max-height:430px) {
  body.game-page.sq-corner-ui-139 { --sq-corner-rail-139:calc(116px + env(safe-area-inset-right,0px)); }
  html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 { width:104px!important; padding:4px!important; }
  html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-list-125 { gap:3px!important; }
  html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 { min-height:48px!important; }
  html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-picture-136 { flex-basis:26px!important; height:26px!important; }
  html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 img { width:26px!important; height:26px!important; }
  html body.game-page #toast-root.sq-notices-left-139 .toast { font-size:10px!important; padding:4px 6px!important; }
}
@media(orientation:portrait) and (max-width:900px) {
  body.game-page #sq-emoji-dock-133.sq-corner-emoji-139,
  body.game-page #toast-root.sq-notices-left-139 { visibility:hidden!important; }
}
@media(prefers-reduced-motion:reduce) {
  html body.game-page #toast-root.sq-notices-left-139 .toast { transition:none!important; transform:none!important; }
}
/* Older 133 catalog markup includes the currency inside the amount span. */
html body.game-page #sq-emoji-dock-133.sq-corner-emoji-139 .sq-emoji-btn-125 span:not(.sq-emoji-price-136) {
  font-size:9px!important; letter-spacing:0!important; line-height:1.3!important;
}

/* 1.1.142: hard mobile safety rail for notifications. The JS calculates the exact bottom offset. */
@media(max-width:900px),(max-height:430px){
  html body.game-page #toast-root.sq-notices-left-139{
    max-height:min(72px,22dvh)!important;
    z-index:94!important;
  }
  html body.game-page #sq-seat-entry-dock{
    z-index:98!important;
  }
}
