/* 888 PLAYER V186 — compact QTech Exit Game overlay (presentation only).
   V185's full-height game iframe remains full-height. Remove the reserved
   full-width dark Exit Game row while keeping Exit accessible above the game.
   Only applies after a successful QTech launch; not internal Lotto/lobby.
   Never read, resize or modify cross-origin provider DOM. */
body.qtech-immersive-v182 #gameRuntime {
  position: fixed !important;
  top: var(--v184-header-h) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: calc(100vh - var(--v184-header-h)) !important;
  height: calc(100dvh - var(--v184-header-h)) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
/* Toolbar is a compact transparent overlay, NOT a full-width row. */
body.qtech-immersive-v182 #gameRuntime > .game-runtime-toolbar {
  display: flex !important;
  position: absolute !important;
  top: max(8px, env(safe-area-inset-top, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
  bottom: auto !important;
  left: auto !important;
  width: max-content !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100vw - 20px) !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 10 !important;
}
body.qtech-immersive-v182 #gameRuntime > .game-runtime-toolbar #exitGameButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  min-width: 102px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 12px !important;
  background: rgba(42, 8, 16, .96) !important;
  border: 1px solid rgba(223, 178, 91, .7) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5) !important;
  pointer-events: auto !important;
}
/* This overrides V185's 48px/44px reserved toolbar slot. */
body.qtech-immersive-v182 #gameRuntime > #gameFrame {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
@media (max-width: 860px) {
  body.qtech-immersive-v182 #gameRuntime > .game-runtime-toolbar {
    top: max(6px, env(safe-area-inset-top, 0px)) !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
  }
  body.qtech-immersive-v182 #gameRuntime > .game-runtime-toolbar #exitGameButton {
    height: 36px !important;
    min-height: 36px !important;
  }
}
