/* V182 — No new navigation or dashboard. Restore V180 shell and polish existing buttons only. */
#playerSidebar > .sidebar-nav {
  padding-block: 4px 12px;
}
#playerSidebar > .sidebar-nav .nav-section-label {
  margin-block: 11px 5px;
  letter-spacing: .075em;
}
#playerSidebar > .sidebar-nav .nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 10px;
}
#playerSidebar > .sidebar-nav .nav-button .nav-icon {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#playerSidebar > .sidebar-nav .nav-button .nav-label {
  min-width: 0;
  line-height: 1.3;
}
/* Scope immersive view to an ACTUALLY LAUNCHED QTech game, not Internal Lotto. */
html:has(body.qtech-immersive-v182),
body.qtech-immersive-v182 { overflow: hidden !important; overscroll-behavior: none; }
body.qtech-immersive-v182 #portalScreen,
body.qtech-immersive-v182 #portalScreen .main-shell,
body.qtech-immersive-v182 #portalScreen main.content,
body.qtech-immersive-v182 #portalScreen #view-games {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}
body.qtech-immersive-v182 #portalScreen .topbar,
body.qtech-immersive-v182 #playerSidebar,
body.qtech-immersive-v182 #sidebarBackdrop,
body.qtech-immersive-v182 #mobileBottomNav,
body.qtech-immersive-v182 .dragon-background-stage171 {
  display: none !important;
}
body.qtech-immersive-v182 #gameRuntime {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #050505 !important;
  box-shadow: none !important;
}
body.qtech-immersive-v182 #gameRuntime .game-runtime-toolbar {
  position: absolute !important;
  top: max(10px, env(safe-area-inset-top, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
body.qtech-immersive-v182 #gameRuntime .game-runtime-title { display: none !important; }
body.qtech-immersive-v182 #exitGameButton {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 106px !important;
  min-height: 44px !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(238,196,117,.65) !important;
  border-radius: 12px !important;
  background: rgba(37,8,14,.94) !important;
  color: #fff5e7 !important;
  font: 700 13px/1.25 system-ui,sans-serif !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.42) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
body.qtech-immersive-v182 #exitGameButton svg { width: 16px !important; height: 16px !important; flex: 0 0 16px; }
body.qtech-immersive-v182 #exitGameButton:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }
body.qtech-immersive-v182 #gameFrame {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050505 !important;
}
@media(max-width: 860px) {
  body.qtech-immersive-v182 #exitGameButton { min-width: 94px !important; min-height: 44px !important; }
}
