/**/
/* THIS FILE AUTOGENERATED FROM CSS in ./web/css/ */ 
/**/
/* ==========================================================================
   8 Ball Pool - Scoped Saito Game Styles
   All rules are strictly scoped to html.game.pool / #pool-saito-mount so
   attaching Pool stylesheets in Arcade or RedSquare never affects global DOM.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src:
    url('/pool/css/Montserrat-Black.woff2') format('woff2'),
    url('/pool/css/Montserrat-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   1. Splash / Entry Page Mode (/pool when no game is active)
   -------------------------------------------------------------------------- */
html.game.pool #game-loader-screen,
html.game.pool #saito-loader-container {
  display: none !important;
}

html.game.pool body:not(.pool-in-game) {
  overflow-y: auto;
}

html.game.pool body:not(.pool-in-game) .scrollable-page {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: var(--saito-header-height, 7rem);
  background: radial-gradient(circle at 50% 0%, #0d2b34 0%, #061318 65%, #03090c 100%);
  color: #f3f6f8;
}

html.game.pool body:not(.pool-in-game) .saito-splash-section-title h1,
html.game.pool body:not(.pool-in-game) .saito-splash-section-title h2,
html.game.pool body:not(.pool-in-game) .saito-splash-section-title h3,
html.game.pool body:not(.pool-in-game) .splash-page-game-introduction {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

html.game.pool body:not(.pool-in-game) .saito-splash-nav {
  background-image: none !important;
  background-color: transparent !important;
}

@media (min-width: 601px) {
  html.game.pool body:not(.pool-in-game) .saito-splash-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 45 !important;
  }
}

html.game.pool body:not(.pool-in-game) .saito-splash-nav ul li a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
}

html.game.pool body:not(.pool-in-game) .saito-splash-nav ul li:has(#create-game-button),
html.game.pool body:not(.pool-in-game) #create-game-button,
html.game.pool body:not(.pool-in-game) #create-game-button-mobile,
html.game.pool body:not(.pool-in-game) #mobile-anchor {
  display: none !important;
}

.arcade-game-info .leaderboard {
  padding-top: 28px !important;
}

@media (max-width: 600px) {
  html.game.pool body:not(.pool-in-game) .scrollable-page {
    padding-top: calc(var(--saito-header-height, 70px) + 44px) !important;
  }

  html.game.pool body:not(.pool-in-game) .saito-splash-nav {
    display: block !important;
    position: fixed !important;
    top: var(--saito-header-height, 70px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 40 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 6px 10px !important;
    background: rgba(6, 19, 24, 0.92) !important;
    border-bottom: 1px solid rgba(218, 182, 107, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    box-sizing: border-box !important;
  }

  html.game.pool body:not(.pool-in-game) .saito-splash-nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.game.pool body:not(.pool-in-game) .saito-splash-nav ul li {
    width: auto !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  html.game.pool body:not(.pool-in-game) .saito-splash-nav ul li:has(#create-game-button) {
    display: none !important;
  }

  html.game.pool body:not(.pool-in-game) .saito-splash-nav ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(218, 182, 107, 0.16) !important;
    border: 1px solid rgba(218, 182, 107, 0.45) !important;
    color: #ffe29a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
  }

  html.game.pool body:not(.pool-in-game) #create-game-button-mobile {
    bottom: 64px !important;
    right: 16px !important;
    z-index: 60 !important;
  }
}

/* --------------------------------------------------------------------------
   2. Active In-Game Mode (body.pool-in-game)
   -------------------------------------------------------------------------- */
html.game.pool body.pool-in-game {
  background-color: #000 !important;
  background-image: none !important;
  overflow: hidden !important;
  margin: 0;
  padding: 0;
}

html.game.pool body.pool-in-game .scrollable-page,
html.game.pool body.pool-in-game .footer,
html.game.pool body.pool-in-game #game-loader-screen {
  display: none !important;
}

#pool-saito-mount,
#pool-saito-mount * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#pool-saito-mount #canvas_game,
#pool-saito-mount #canvas_3d,
#pool-saito-mount #canvas_upper_3d {
  position: fixed;
}

#pool-saito-mount #canvas_3d,
#pool-saito-mount #canvas_upper_3d {
  pointer-events: none;
}

#pool-saito-mount canvas {
  -ms-touch-action: none;
  touch-action: none;
}

#pool-saito-mount .ani_hack {
  -webkit-perspective: 1000;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#pool-saito-mount .upper_3d {
  z-index: 2;
}

#pool-saito-mount .check-fonts {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

#pool-saito-mount .check-font-1 {
  font-family: 'Montserrat';
}

/* --------------------------------------------------------------------------
   3. Top-Left Saito Game Menu & Top-Right Wallet Hamburger (In-Game)
   -------------------------------------------------------------------------- */
html.game.pool #game-share {
  display: none !important;
}

html.game.pool #game-share,
html.game.pool body.pool-in-game #game-menu-toggle,
html.game.pool body.pool-in-game .game-menu-mobile-toggle,
html.game.pool body.pool-in-game .game-menu-mobile-header,
html.game.pool body.pool-in-game #game-menu-fullscreen,
html.game.pool body.pool-in-game #game-debug,
html.game.pool body.pool-in-game .game-debug,
html.game.pool body.pool-in-game #game-export,
html.game.pool body.pool-in-game .game-export,
html.game.pool body.pool-in-game .game-menu:not(:has(#game-game)),
html.game.pool body.pool-in-game .game-menu > ul:not(:has(#game-game)) {
  display: none !important;
}

html.game.pool body.pool-in-game #saito-header,
html.game.pool body.pool-in-game #saito-header.game {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 650 !important;
}

html.game.pool body.pool-in-game #saito-header:has(.saito-header-hamburger-contents.show-menu),
html.game.pool body.pool-in-game #saito-header.game:has(.saito-header-hamburger-contents.show-menu) {
  z-index: 3200 !important;
}

html.game.pool body.pool-in-game #saito-header .saito-header-logo-wrapper,
html.game.pool body.pool-in-game #saito-header #header-msg,
html.game.pool body.pool-in-game #saito-header.game .saito-header-logo-wrapper,
html.game.pool body.pool-in-game #saito-header.game #header-msg {
  display: none !important;
}

html.game.pool body.pool-in-game #saito-header .hamburger-container,
html.game.pool body.pool-in-game #saito-header #saito-header-menu-toggle,
html.game.pool body.pool-in-game #saito-header .saito-header-hamburger-contents,
html.game.pool body.pool-in-game #saito-header.game .hamburger-container,
html.game.pool body.pool-in-game #saito-header.game #saito-header-menu-toggle,
html.game.pool body.pool-in-game #saito-header.game .saito-header-hamburger-contents,
html.game.pool body.pool-in-game .game-menu,
html.game.pool body.pool-in-game .game-menu * {
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game .game-menu {
  position: fixed !important;
  top: 8px !important;
  left: 10px !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  z-index: 650 !important;
  font-size: 14px !important;
  color: #f4f7f8 !important;
}

html.game.pool body.pool-in-game .game-menu > ul {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  transform: none !important;
  overflow: visible !important;
  background: linear-gradient(180deg, rgba(13, 39, 47, 0.94) 0%, rgba(6, 20, 25, 0.96) 100%) !important;
  border: 1px solid rgba(218, 182, 107, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65) !important;
}

html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-option,
html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-icon {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  min-width: 68px !important;
  max-width: 140px !important;
  width: auto !important;
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  color: #f4f7f8 !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-icon {
  min-width: 38px !important;
  width: 38px !important;
  max-width: 38px !important;
  padding: 0 4px !important;
  line-height: 34px !important;
}

html.game.pool body.pool-in-game .game-menu > ul > li:hover {
  background-color: rgba(218, 182, 107, 0.18) !important;
  color: #ffe29a !important;
}

html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options,
html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-sub-options {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 210px !important;
  width: max-content !important;
  max-height: none !important;
  overflow: visible !important;
  background: rgba(8, 25, 31, 0.98) !important;
  border: 1px solid rgba(218, 182, 107, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 660 !important;
}

html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options::before,
html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-sub-options::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}

html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-option > .game-menu-option-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 100% !important;
  min-height: 0 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-option .game-menu-accordion-icon {
  display: none !important;
}

html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options li {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 14px !important;
  line-height: 1.35 !important;
  font-size: 13.5px !important;
  color: #f4f7f8 !important;
  border-bottom: 1px solid rgba(218, 182, 107, 0.18) !important;
  text-align: left !important;
  cursor: pointer !important;
}

html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options .game-menu-option-label,
html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options .game-menu-option-label span {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.35 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

html.game.pool body.pool-in-game .game-menu ul.game-menu-sub-options li:last-child {
  border-bottom: none !important;
}

html.game.pool body.pool-in-game .game-menu-sub-option:hover,
html.game.pool body.pool-in-game .game-menu-sub-sub-option:hover {
  background-color: rgba(218, 182, 107, 0.22) !important;
  color: #ffe29a !important;
}

html.game.pool body.pool-in-game #saito-header .hamburger-container,
html.game.pool body.pool-in-game #saito-header.game .hamburger-container {
  position: fixed !important;
  top: 8px !important;
  right: 10px !important;
  z-index: 3210 !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game #saito-header #saito-header-menu-toggle,
html.game.pool body.pool-in-game #saito-header.game #saito-header-menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  background: linear-gradient(180deg, rgba(13, 39, 47, 0.94) 0%, rgba(6, 20, 25, 0.96) 100%) !important;
  border: 1px solid rgba(218, 182, 107, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65) !important;
  color: #f4f7f8 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game #saito-header #saito-header-menu-toggle i,
html.game.pool body.pool-in-game #saito-header.game #saito-header-menu-toggle .fa-bars {
  border: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
  width: auto !important;
  height: auto !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #f4f7f8 !important;
}

html.game.pool body.pool-in-game #saito-header #saito-header-menu-toggle:hover,
html.game.pool body.pool-in-game #saito-header.game #saito-header-menu-toggle:hover {
  border-color: #ffe29a !important;
  color: #ffe29a !important;
}

html.game.pool body.pool-in-game #saito-header .saito-header-hamburger-contents:not(.show-menu),
html.game.pool body.pool-in-game #saito-header.game .saito-header-hamburger-contents:not(.show-menu) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.game.pool body.pool-in-game #saito-header .saito-header-hamburger-contents.show-menu,
html.game.pool body.pool-in-game #saito-header.game .saito-header-hamburger-contents.show-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  position: fixed !important;
  top: 52px !important;
  right: 0 !important;
  left: auto !important;
  width: min(400px, 100vw) !important;
  max-width: 100vw !important;
  height: calc(100dvh - 52px) !important;
  max-height: calc(100dvh - 52px) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: rgba(8, 20, 26, 0.98) !important;
  border-left: 1px solid rgba(218, 182, 107, 0.45) !important;
  box-shadow: -10px 14px 40px rgba(0, 0, 0, 0.9) !important;
  z-index: 3220 !important;
}

@media screen and (max-width: 600px) {
  html.game.pool body.pool-in-game #saito-header .saito-header-hamburger-contents.show-menu,
  html.game.pool body.pool-in-game #saito-header.game .saito-header-hamburger-contents.show-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    border-left: none !important;
  }
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-profile,
html.game.pool #saito-header .saito-header-hamburger-contents .wallet-btn-container,
html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section,
html.game.pool #saito-header .saito-header-hamburger-contents .saito-menu {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .wallet-btn-container {
  padding: 0 12px !important;
  gap: 8px !important;
  margin: 8px 0 !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section {
  padding: 6px 14px 20px !important;
  gap: 14px !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-menu ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 10px !important;
  row-gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  justify-items: center !important;
  align-items: start !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-menu li:not([data-id="Support Saitoverse"]):not([data-id="Add App"]),
html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-header-appspace-option:not([data-id="Support Saitoverse"]):not([data-id="Add App"]) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 8px 4px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-header-appspace-option > i,
html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-menu li > i {
  font-size: 24px !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 auto 6px auto !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-module-menu-icon-wrap {
  width: 28px !important;
  height: 28px !important;
  margin: 0 auto 6px auto !important;
}

html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-menu-item-label,
html.game.pool #saito-header .saito-header-hamburger-contents .saito-header-menu-section .saito-menu li > span:not(.saito-module-menu-icon-wrap) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 2px 2px !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}

html.game.pool body.pool-in-game .game-menu.mobile-saito-visible > ul > .game-menu-icon,
html.game.pool body.pool-in-game .game-menu.mobile-saito-visible > ul > .game-menu-option {
  visibility: visible !important;
}

html.game.pool body.pool-in-game .game-menu.mobile-saito-visible {
  pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   4. Bottom Saito Game Over & Waiting HUD Bar (#hud / #game-hud2 / .game-hud2 / .hud)
   -------------------------------------------------------------------------- */
html.game.pool body.pool-in-game #hud,
html.game.pool body.pool-in-game #game-hud2,
html.game.pool body.pool-in-game .game-hud2,
html.game.pool body.pool-in-game .hud {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: 12px !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: min(460px, 92vw) !important;
  max-width: 94vw !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px 16px !important;
  background: linear-gradient(180deg, rgba(9, 31, 38, 0.96) 0%, rgba(5, 17, 22, 0.99) 100%) !important;
  border: 1px solid rgba(218, 182, 107, 0.78) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.85) !important;
  z-index: 600 !important;
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

html.game.pool body.pool-in-game #hud.pool-turn-hud,
html.game.pool body.pool-in-game #game-hud2.pool-turn-hud,
html.game.pool body.pool-in-game .game-hud2.pool-turn-hud,
html.game.pool body.pool-in-game .hud.pool-turn-hud,
html.game.pool body.pool-in-game #hud:not(:has(.hud-menu li)),
html.game.pool body.pool-in-game #game-hud2:not(:has(.hud-menu li)),
html.game.pool body.pool-in-game .game-hud2:not(:has(.hud-menu li)),
html.game.pool body.pool-in-game .hud:not(:has(.hud-menu li)) {
  bottom: 8px !important;
  width: max-content !important;
  min-width: 0 !important;
  padding: 5px 18px !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  z-index: 480 !important;
  gap: 0 !important;
}

html.game.pool body.pool-in-game #hud.pool-turn-hud .hud-menu,
html.game.pool body.pool-in-game #game-hud2.pool-turn-hud .hud-menu,
html.game.pool body.pool-in-game .game-hud2.pool-turn-hud .hud-menu,
html.game.pool body.pool-in-game .hud.pool-turn-hud .hud-menu,
html.game.pool body.pool-in-game #hud:not(:has(.hud-menu li)) .hud-menu,
html.game.pool body.pool-in-game #game-hud2:not(:has(.hud-menu li)) .hud-menu,
html.game.pool body.pool-in-game .game-hud2:not(:has(.hud-menu li)) .hud-menu,
html.game.pool body.pool-in-game .hud:not(:has(.hud-menu li)) .hud-menu {
  display: none !important;
}

html.game.pool body.pool-in-game #hud.pool-hud-hidden,
html.game.pool body.pool-in-game #game-hud2.pool-hud-hidden,
html.game.pool body.pool-in-game .game-hud2.pool-hud-hidden,
html.game.pool body.pool-in-game .hud.pool-hud-hidden {
  display: none !important;
}

html.game.pool body.pool-in-game #hud .hud-header,
html.game.pool body.pool-in-game #game-hud2 .hud-header,
html.game.pool body.pool-in-game .game-hud2 .hud-header,
html.game.pool body.pool-in-game .hud-header {
  display: none !important;
}

html.game.pool body.pool-in-game #hud .hud-status-row,
html.game.pool body.pool-in-game #game-hud2 .hud-status-row,
html.game.pool body.pool-in-game .game-hud2 .hud-status-row,
html.game.pool body.pool-in-game .hud-status-row {
  width: 100% !important;
  cursor: default !important;
}

html.game.pool body.pool-in-game #hud .hud-status,
html.game.pool body.pool-in-game #hud .status,
html.game.pool body.pool-in-game #game-hud2 .hud-status,
html.game.pool body.pool-in-game .game-hud2 .hud-status,
html.game.pool body.pool-in-game .hud-status {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffe29a !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  padding: 2px 6px !important;
  text-align: center !important;
}

html.game.pool body.pool-in-game:not(.pool-chat-opened) .chat-container {
  display: none !important;
}

html.game.pool body.pool-in-game.pool-chat-opened .chat-container {
  width: min(310px, 88vw) !important;
  min-width: min(280px, 84vw) !important;
  max-height: min(340px, 75vh) !important;
  border-radius: 12px 12px 0 0 !important;
  border: 1px solid rgba(218, 182, 107, 0.65) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
  z-index: 2600 !important;
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game.pool-chat-opened .chat-container.active {
  z-index: 2610 !important;
}

html.game.pool body.pool-in-game .chat-container,
html.game.pool body.pool-in-game .chat-container * {
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game .chat-container .saito-input,
html.game.pool body.pool-in-game .chat-container .saito-input *,
html.game.pool body.pool-in-game .chat-container .text-input,
html.game.pool body.pool-in-game .chat-container .chat-body,
html.game.pool body.pool-in-game .chat-container .chat-body *,
html.game.pool body.pool-in-game .chat-container input,
html.game.pool body.pool-in-game .chat-container textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

html.game.pool body.pool-in-game .chat-container .text-input,
html.game.pool body.pool-in-game .chat-container input,
html.game.pool body.pool-in-game .chat-container textarea {
  cursor: text !important;
}

html.game.pool body.pool-in-game #game-hud2 .hud-menu,
html.game.pool body.pool-in-game .game-hud2 .hud-menu,
html.game.pool body.pool-in-game .hud-menu {
  background: transparent !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html.game.pool body.pool-in-game #game-hud2 .hud-menu ul,
html.game.pool body.pool-in-game .game-hud2 .hud-menu ul,
html.game.pool body.pool-in-game .hud-menu ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.game.pool body.pool-in-game #game-hud2 .hud-menu li,
html.game.pool body.pool-in-game #game-hud2 .hud-menu .option,
html.game.pool body.pool-in-game .game-hud2 .hud-menu li,
html.game.pool body.pool-in-game .game-hud2 .hud-menu .option,
html.game.pool body.pool-in-game .hud-menu li,
html.game.pool body.pool-in-game .hud-menu .option {
  flex: 1 1 auto !important;
  min-width: 155px !important;
  max-width: 260px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 40px !important;
  line-height: 1.25 !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #18515e 0%, #0b2830 100%) !important;
  border: 1px solid rgba(218, 182, 107, 0.72) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}

html.game.pool body.pool-in-game #game-hud2 .hud-menu li:hover,
html.game.pool body.pool-in-game #game-hud2 .hud-menu .option:hover,
html.game.pool body.pool-in-game .game-hud2 .hud-menu li:hover,
html.game.pool body.pool-in-game .game-hud2 .hud-menu .option:hover,
html.game.pool body.pool-in-game .hud-menu li:hover,
html.game.pool body.pool-in-game .hud-menu .option:hover {
  background: linear-gradient(180deg, #216c7d 0%, #113e4a 100%) !important;
  border-color: #ffe29a !important;
  color: #ffe29a !important;
  transform: translateY(-1px);
}

html.game.pool body.pool-in-game #game-hud2 .hud-menu .option.pool-rematch-incoming,
html.game.pool body.pool-in-game .game-hud2 .hud-menu .option.pool-rematch-incoming {
  background: linear-gradient(180deg, #237a57 0%, #124530 100%) !important;
  border-color: #79f2c0 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(121, 242, 192, 0.4) !important;
}

/* --------------------------------------------------------------------------
   5. Rules Overlay & Game Options Styling
   -------------------------------------------------------------------------- */
.saito-overlay:has(.pool-rules-overlay) {
  right: auto !important;
  bottom: auto !important;
  width: min(540px, 94vw) !important;
}

.saito-overlay > .saito-overlay-panel.pool-rules-overlay,
.pool-rules-overlay,
.stake-info-overlay {
  padding: 2.2rem 2.4rem !important;
  box-sizing: border-box !important;
  color: #f4f7f8 !important;
  background: rgba(10, 26, 32, 0.98) !important;
  border: 1px solid rgba(218, 182, 107, 0.45);
  border-radius: 10px;
  line-height: 1.55;
  max-width: min(540px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
}

/* Inline Learn section on the Lobby splash page must never be cut short with an internal scrollbar */
.scrollable-page .pool-rules-overlay,
.scrollable-page .pool-rules-overlay.saito-overlay-size,
.saito-splash-learn .pool-rules-overlay {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

@media (max-width: 768px) {
  .saito-overlay > .saito-overlay-panel.pool-rules-overlay,
  .pool-rules-overlay {
    padding: 1.6rem 1.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }
}

.pool-rules-overlay .h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffe29a;
  margin-bottom: 1rem;
  padding-right: 4rem;
}

.pool-rules-footer {
  border-top: 1px solid rgba(218, 182, 107, 0.28);
  padding-top: 1.4rem;
  margin-top: 1.6rem;
  display: flex;
  justify-content: flex-end;
}

.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.75) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3350 !important;
}

.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox::before,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox::after,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox::before,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox::after,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox::before,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  transform-origin: center !important;
  display: block !important;
}

.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox::before,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox::before,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox::after,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox::after,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.saito-overlay:has(.pool-rules-overlay) .saito-overlay-closebox-btn,
.saito-overlay:has(.pool-rules-overlay) + .saito-overlay-closebox .saito-overlay-closebox-btn,
.saito-overlay:has(.arcade-wizard) .saito-overlay-closebox-btn,
.saito-overlay:has(.arcade-wizard) + .saito-overlay-closebox .saito-overlay-closebox-btn {
  display: none !important;
}

.pool-wallet-back-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 6px 10px 10px 10px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(218, 182, 107, 0.3) !important;
}

.pool-wallet-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(218, 182, 107, 0.16) !important;
  border: 1px solid rgba(218, 182, 107, 0.5) !important;
  color: #ffe29a !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.pool-wallet-close-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.22) !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  color: #fff !important;
  font-size: 1.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.pool-rules-overlay .h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #ffe29a;
  margin: 1.4rem 0 0.8rem;
}

.pool-rules-overlay p {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.pool-rules-overlay ul {
  padding-left: 2rem;
  margin: 0;
}

.pool-rules-overlay li {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  list-style: disc;
}

/* --------------------------------------------------------------------------
   6. Splash Leaderboard / Recent Activity Panels & Crypto Rake Notice
   -------------------------------------------------------------------------- */
.pool-splash-empty-panel {
  padding: 2.2rem 2.4rem;
  margin: 1rem auto;
  max-width: 720px;
  text-align: center;
  background: rgba(9, 31, 38, 0.72);
  border: 1px solid rgba(218, 182, 107, 0.35);
  border-radius: 10px;
}

.pool-splash-empty-title {
  font-size: 1.65rem;
  color: #ffe29a;
  margin-bottom: 0.6rem;
}

.pool-splash-empty-sub {
  font-size: 1.35rem;
  color: rgba(243, 246, 248, 0.82);
  line-height: 1.5;
}

.pool-splash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 720px;
  margin: 1rem auto;
}

.pool-splash-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.6rem;
  background: rgba(9, 31, 38, 0.78);
  border: 1px solid rgba(218, 182, 107, 0.32);
  border-radius: 8px;
  font-size: 1.4rem;
}

.pool-splash-activity-players {
  color: #f3f6f8;
}

.pool-splash-activity-meta {
  color: #ffe29a;
  font-size: 1.3rem;
}

.pool-splash-activity-badge {
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 1.2rem;
  background: rgba(218, 182, 107, 0.16);
  border: 1px solid rgba(218, 182, 107, 0.45);
  color: #ffe29a;
}

#stake-crypto-request-container .game-stake-label,
#stake-crypto-request-container label,
#approve-crypto-request-container label,
#approve-crypto-request-container .stake-amount {
  color: #f3f6f8 !important;
  opacity: 1 !important;
}

#stake-crypto-request-container .stake-mode-toggle {
  color: #93c5fd !important;
}

.pool-crypto-rake-note {
  color: #f3f6f8 !important;
  opacity: 1 !important;
  font-size: 1.35rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.pool-wizard-rake-note {
  color: #f3f6f8 !important;
  opacity: 1 !important;
  font-size: 1.3rem !important;
}

/* --------------------------------------------------------------------------
   7. In-Game Top Match Pill (Stake / Pot Badge, Turn Status & Shot Clock)
   -------------------------------------------------------------------------- */
.pool-top-match-pill {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 490;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(13, 39, 47, 0.92) 0%, rgba(6, 20, 25, 0.96) 100%);
  border: 1px solid rgba(218, 182, 107, 0.55);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  color: #f4f7f8;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
}

.pool-top-stake-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  color: #ffe29a;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.pool-top-stake-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.pool-top-divider {
  color: rgba(218, 182, 107, 0.45);
  font-size: 1.15rem;
}

.pool-top-turn-badge {
  color: rgba(244, 247, 248, 0.88);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.pool-top-turn-badge.is-my-turn {
  color: #79f2c0;
}

.pool-top-clock-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pool-top-clock-text {
  color: #ffe29a;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
}

.pool-top-clock-text.is-warning {
  color: #fbbf24;
}

.pool-top-clock-text.is-danger {
  color: #f87171;
  animation: poolClockPulse 0.7s ease-in-out infinite alternate;
}

@keyframes poolClockPulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.45;
  }
}

@media screen and (max-width: 720px) {
  .pool-top-match-pill {
    top: 48px;
    height: 28px;
    padding: 0 10px;
    font-size: 1.1rem;
    gap: 6px;
  }
  .pool-top-stake-btn,
  .pool-top-turn-badge,
  .pool-top-clock-text {
    font-size: 1.1rem;
  }
}

html.game.pool body.pool-in-game .game-menu #game-social > ul,
html.game.pool body.pool-in-game .game-menu .game-social > ul {
  display: none !important;
}

@media screen and (max-width: 960px), screen and (max-height: 550px) {
  html.game.pool body.pool-in-game #hud.pool-turn-hud,
  html.game.pool body.pool-in-game #game-hud2.pool-turn-hud,
  html.game.pool body.pool-in-game .game-hud2.pool-turn-hud,
  html.game.pool body.pool-in-game .hud.pool-turn-hud,
  html.game.pool body.pool-in-game #hud:not(.pool-gameover-hud):not(:has(.hud-menu li)),
  html.game.pool body.pool-in-game #game-hud2:not(.pool-gameover-hud):not(:has(.hud-menu li)),
  html.game.pool body.pool-in-game .game-hud2:not(.pool-gameover-hud):not(:has(.hud-menu li)),
  html.game.pool body.pool-in-game .hud:not(.pool-gameover-hud):not(:has(.hud-menu li)) {
    display: none !important;
  }

  html.game.pool body.pool-in-game .pool-top-match-pill {
    top: 2px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 7px !important;
    font-size: 9.5px !important;
    line-height: 18px !important;
    gap: 4px !important;
    background: rgba(6, 20, 25, 0.82) !important;
    border: 1px solid rgba(218, 182, 107, 0.38) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
    pointer-events: none !important;
  }

  html.game.pool body.pool-in-game #pool-top-stake-btn,
  html.game.pool body.pool-in-game .pool-top-stake-btn,
  html.game.pool body.pool-in-game .pool-top-match-pill > .pool-top-divider:first-of-type {
    display: none !important;
  }

  html.game.pool body.pool-in-game .pool-top-turn-badge,
  html.game.pool body.pool-in-game .pool-top-clock-text {
    font-size: 9.5px !important;
    line-height: 18px !important;
  }
}

/* Compact Landscape Mobile HUD (when height <= 500px) */
@media screen and (max-height: 500px) {
  html.game.pool body.pool-in-game .game-menu {
    top: 4px !important;
    left: 6px !important;
  }
  html.game.pool body.pool-in-game .game-menu > ul {
    height: 28px !important;
    padding: 0 2px !important;
  }
  html.game.pool body.pool-in-game .game-menu > ul > li {
    height: 26px !important;
    line-height: 26px !important;
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 1.15rem !important;
  }
  html.game.pool body.pool-in-game .game-menu > ul > li.game-menu-icon {
    min-width: 30px !important;
    width: 30px !important;
    max-width: 30px !important;
    line-height: 26px !important;
  }
  html.game.pool body.pool-in-game #saito-header .hamburger-container,
  html.game.pool body.pool-in-game #saito-header.game .hamburger-container {
    top: 4px !important;
    right: 6px !important;
  }
  html.game.pool body.pool-in-game #saito-header #saito-header-menu-toggle,
  html.game.pool body.pool-in-game #saito-header.game #saito-header-menu-toggle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
  html.game.pool body.pool-in-game .pool-top-match-pill {
    top: 2px !important;
    bottom: auto !important;
    max-width: min(240px, calc(100vw - 180px)) !important;
    height: 18px !important;
    padding: 0 7px !important;
    font-size: 9.5px !important;
    gap: 4px !important;
  }
  html.game.pool body.pool-in-game .pool-top-stake-btn,
  html.game.pool body.pool-in-game .pool-top-turn-badge,
  html.game.pool body.pool-in-game .pool-top-clock-text {
    font-size: 9.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

html.game.pool body.pool-in-game .site-message-wrapper,
html.game.pool body.pool-in-game #site-message-wrapper {
  position: fixed !important;
  bottom: 62px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: min(380px, 90vw) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(9, 31, 38, 0.96) 0%, rgba(5, 17, 22, 0.99) 100%) !important;
  border: 1px solid rgba(218, 182, 107, 0.65) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
  color: #f4f7f8 !important;
  z-index: 2500 !important;
  pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   8. Mobile Portrait Rotate-to-Landscape Overlay (.orientation-msg-container)
   -------------------------------------------------------------------------- */
#pool-saito-mount .orientation-msg-container {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 800 !important;
  background: radial-gradient(circle at 50% 30%, rgba(14, 45, 54, 0.97) 0%, rgba(4, 14, 18, 0.99) 100%) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

#pool-saito-mount .orientation-msg-container[style*="block"] {
  display: flex !important;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  html.game.pool body.pool-in-game #pool-saito-mount .orientation-msg-container {
    display: flex !important;
  }
}

@media screen and (orientation: landscape) {
  html.game.pool body.pool-in-game #pool-saito-mount .orientation-msg-container {
    display: none !important;
  }
}

#pool-saito-mount .orientation-msg-card {
  max-width: 340px;
  width: 100%;
  padding: 26px 22px;
  border-radius: 16px;
  background: rgba(9, 28, 35, 0.95);
  border: 1.5px solid rgba(218, 182, 107, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#pool-saito-mount .orientation-msg-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(218, 182, 107, 0.16);
  border: 1px solid rgba(218, 182, 107, 0.55);
  color: #ffe29a;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: poolRotatePhoneHint 1.8s ease-in-out infinite alternate;
}

@keyframes poolRotatePhoneHint {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-90deg); }
}

#pool-saito-mount .orientation-msg-title {
  margin: 0 !important;
  color: #ffe29a !important;
  font-family: var(--saito-font-medium, var(--saito-font, sans-serif)) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

#pool-saito-mount .orientation-msg-text,
#pool-saito-mount .orientation-msg-sub {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 0 !important;
  color: rgba(243, 246, 248, 0.88) !important;
  font-family: var(--saito-font, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

#pool-saito-mount .orientation-msg-back,
#pool-saito-mount .orientation-msg-back-btn {
  margin-top: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: rgba(218, 182, 107, 0.16) !important;
  border: 1px solid rgba(218, 182, 107, 0.55) !important;
  color: #ffe29a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   9. Hero Lobby Hub & Live Game Invites (Mobile + Desktop Splash)
   -------------------------------------------------------------------------- */
.pool-hero-lobby-hub {
  margin: 1.4rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
}

.pool-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#pool-hero-create-btn,
.pool-hero-create-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  border: 1.5px solid #fef08a !important;
  color: #06141b !important;
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.42), 0 2px 8px rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
}

#pool-hero-create-btn:hover,
.pool-hero-create-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.56), 0 3px 10px rgba(0, 0, 0, 0.6) !important;
}

.pool-hero-rules-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px !important;
  border-radius: 10px !important;
  background: rgba(9, 31, 38, 0.85) !important;
  border: 1px solid rgba(218, 182, 107, 0.55) !important;
  color: #ffe29a !important;
  font-size: 1.38rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.pool-hero-rules-btn:hover {
  background: rgba(218, 182, 107, 0.2) !important;
}

#pool-hero-ai-btn,
.pool-hero-ai-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 18px !important;
  border-radius: 10px !important;
  background: rgba(9, 31, 38, 0.82) !important;
  border: 1px solid rgba(218, 182, 107, 0.45) !important;
  color: rgba(241, 245, 249, 0.92) !important;
  font-size: 1.36rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

#pool-hero-ai-btn:hover,
.pool-hero-ai-btn:hover {
  background: rgba(218, 182, 107, 0.16) !important;
  border-color: rgba(218, 182, 107, 0.78) !important;
  color: #ffe29a !important;
  transform: translateY(-1px);
}

.pool-hero-ai-diff-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(6, 21, 27, 0.92) !important;
  border: 1px solid rgba(218, 182, 107, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.pool-hero-ai-diff-label {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: rgba(243, 246, 248, 0.85) !important;
  padding: 0 4px !important;
}

.pool-hero-ai-diff-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  min-height: 26px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(243, 246, 248, 0.82) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.pool-hero-ai-diff-pill:hover {
  color: #ffe29a !important;
  background: rgba(218, 182, 107, 0.12) !important;
}

.pool-hero-ai-diff-pill.active {
  background: rgba(218, 182, 107, 0.25) !important;
  border-color: rgba(218, 182, 107, 0.78) !important;
  color: #ffe29a !important;
}

.pool-wizard-ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.pool-wizard-ai-text {
  font-size: 1.2rem;
  color: rgba(203, 213, 225, 0.85);
  font-weight: 400;
}

.pool-wizard-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(218, 182, 107, 0.42);
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pool-wizard-ai-btn:hover {
  background: rgba(218, 182, 107, 0.16);
  border-color: rgba(218, 182, 107, 0.75);
  color: #ffe29a;
}

.pool-hero-invites-box {
  background: rgba(6, 21, 27, 0.92);
  border: 1px solid rgba(218, 182, 107, 0.45);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.pool-hero-invites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(218, 182, 107, 0.22);
}

.pool-hero-invites-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffe29a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pool-hero-invites-badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 600;
  background: rgba(218, 182, 107, 0.16);
  border: 1px solid rgba(218, 182, 107, 0.4);
  color: #ffe29a;
}

.pool-hero-invites-badge.has-live {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.65);
  color: #86efac;
}

.pool-hero-invites-empty {
  font-size: 1.3rem;
  color: rgba(243, 246, 248, 0.82);
  line-height: 1.45;
  padding: 0.4rem 0;
}

.pool-splash-activity-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pool-splash-activity-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pool-invite-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(218, 182, 107, 0.55);
  background: rgba(218, 182, 107, 0.16);
  color: #ffe29a;
  transition: transform 0.12s ease, background 0.12s ease;
}

.pool-invite-action-btn.is-join {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border-color: #86efac;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.4);
}

.pool-invite-action-btn.is-resume {
  background: linear-gradient(135deg, #f5d382 0%, #c89432 100%);
  border-color: #ffe8ad;
  color: #071920;
  font-weight: 700;
}

.pool-invite-action-btn.is-cancel {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.pool-invite-action-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  html.game.pool body:not(.pool-in-game) .saito-splash-section-title {
    width: min(92vw, 460px) !important;
    max-width: 92vw !important;
    box-sizing: border-box !important;
  }
  .pool-hero-lobby-hub {
    width: 100% !important;
    max-width: 100% !important;
  }
  .pool-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pool-hero-create-btn,
  .pool-hero-ai-btn,
  .pool-hero-rules-btn {
    width: 100%;
  }
  .pool-hero-ai-diff-row {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .pool-hero-invites-box {
    padding: 1rem 1.1rem;
  }
  .pool-splash-activity-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
  }
  .pool-splash-activity-info {
    align-items: center;
    text-align: center;
  }
  .pool-splash-activity-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .pool-splash-activity-actions .pool-invite-action-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-size: 1.2rem !important;
    white-space: nowrap !important;
  }
}

/* Confirmation / Alert Modal (#saito-alert-box) Responsive Button Row */
html.game.pool #saito-alert-box {
  width: min(500px, 92vw) !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
  padding: 20px !important;
}

html.game.pool #saito-alert-box .saito-button-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 14px !important;
}

html.game.pool #saito-alert-box .saito-button-row > button,
html.game.pool #saito-alert-box .saito-button-row > .saito-button-primary,
html.game.pool #saito-alert-box .saito-button-row > .saito-button-secondary {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 190px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   10. Controls, Spin & Aim Guide Overlay + On-Screen Callouts
   -------------------------------------------------------------------------- */
.pool-top-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(218, 182, 107, 0.2);
  border: 1px solid rgba(218, 182, 107, 0.65);
  color: #ffe29a;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.14s ease, background 0.14s ease;
}

.pool-top-help-btn:hover {
  background: rgba(218, 182, 107, 0.38);
  transform: scale(1.08);
}

@media screen and (max-width: 960px), screen and (max-height: 550px) {
  html.game.pool body.pool-in-game .pool-top-help-btn,
  html.game.pool body.pool-in-game .pool-top-help-divider {
    display: none !important;
  }
}

.pool-controls-guide-overlay {
  width: min(740px, 94vw);
  max-width: 94vw;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 2.2rem 2.4rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 28, 35, 0.98) 0%, rgba(4, 14, 18, 0.99) 100%);
  border: 1px solid rgba(218, 182, 107, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.82);
  color: #f3f6f8;
}

.pool-controls-guide-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.pool-controls-guide-kicker {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(218, 182, 107, 0.16);
  border: 1px solid rgba(218, 182, 107, 0.48);
  color: #ffe29a;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pool-controls-guide-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.pool-controls-guide-sub {
  font-size: 1.28rem;
  color: rgba(226, 232, 240, 0.8);
  margin-top: 0.3rem;
}

.pool-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.pool-control-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 12px;
  background: rgba(13, 41, 50, 0.72);
  border: 1px solid rgba(218, 182, 107, 0.28);
}

.pool-control-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(5, 18, 23, 0.85);
  border: 1px solid rgba(218, 182, 107, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pool-control-body {
  min-width: 0;
  flex: 1;
}

.pool-control-step {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffe29a;
  margin-bottom: 0.35rem;
}

.pool-control-desc {
  font-size: 1.22rem;
  line-height: 1.42;
  color: rgba(241, 245, 249, 0.9);
}

.pool-control-desc kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.1rem;
  color: #ffe29a;
}

.pool-controls-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(218, 182, 107, 0.22);
}

.pool-controls-guide-hint {
  font-size: 1.18rem;
  color: rgba(226, 232, 240, 0.82);
}

.pool-controls-guide-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.pool-controls-secondary-btn {
  padding: 9px 15px;
  border-radius: 9px;
  background: rgba(15, 45, 55, 0.9);
  border: 1px solid rgba(218, 182, 107, 0.5);
  color: #ffe29a;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.pool-controls-primary-btn {
  padding: 9px 20px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #f5d382 0%, #c89432 100%) !important;
  border: 1px solid #ffe8ad !important;
  color: #071920 !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

@media screen and (max-height: 500px), screen and (max-width: 720px) {
  .pool-controls-guide-overlay {
    padding: 0.75rem 1.15rem;
    max-height: 92vh;
  }
  .pool-controls-guide-header {
    margin-bottom: 0.45rem;
  }
  .pool-controls-guide-kicker {
    padding: 2px 8px;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .pool-controls-guide-title {
    font-size: 1.38rem;
  }
  .pool-controls-guide-sub {
    font-size: 0.98rem;
    margin-top: 0.1rem;
  }
  .pool-controls-grid {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }
  .pool-control-card {
    padding: 0.55rem 0.75rem;
    gap: 0.6rem;
    border-radius: 9px;
  }
  .pool-control-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .pool-control-icon-wrap svg {
    width: 26px;
    height: 26px;
  }
  .pool-control-step {
    font-size: 1.08rem;
    margin-bottom: 0.12rem;
  }
  .pool-control-desc {
    font-size: 0.96rem;
    line-height: 1.24;
  }
  .pool-controls-guide-footer {
    padding-top: 0.5rem;
    gap: 0.5rem;
  }
  .pool-controls-guide-hint {
    font-size: 0.95rem;
  }
  .pool-controls-secondary-btn,
  .pool-controls-primary-btn {
    padding: 5px 12px !important;
    font-size: 1.08rem !important;
  }
}

@media screen and (max-width: 540px) {
  .pool-controls-grid {
    grid-template-columns: 1fr;
  }
}

/* Non-Blocking On-Screen Control Callouts (#pool-control-callouts) */
.pool-control-callouts {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 420;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pool-control-callouts.is-visible {
  opacity: 1;
}

.pool-callout-badge {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(6, 22, 28, 0.92);
  border: 1px solid rgba(245, 211, 130, 0.75);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  color: #f8fafc;
  pointer-events: none !important;
  backdrop-filter: blur(4px);
}

.pool-callout-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffe29a;
  line-height: 1.2;
}

.pool-callout-sub {
  font-size: 1.05rem;
  color: rgba(241, 245, 249, 0.9);
  line-height: 1.25;
  white-space: nowrap;
}

/* Positions on Desktop vs Mobile */
.pool-callout-spin {
  bottom: 72px;
  left: 33%;
  transform: translateX(-50%);
}

.pool-callout-desktop-aim {
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
}

.pool-callout-power {
  top: 50%;
  left: 72px;
  transform: translateY(-50%);
  display: none;
}

.pool-callout-fine-aim {
  bottom: 62px;
  right: 20px;
  display: none;
}

.pool-control-callouts.is-mobile-layout .pool-callout-desktop-aim {
  display: none !important;
}

.pool-control-callouts.is-mobile-layout .pool-callout-power,
.pool-control-callouts.is-mobile-layout .pool-callout-fine-aim {
  display: flex !important;
}

@media screen and (max-height: 500px) {
  .pool-callout-badge {
    padding: 4px 8px;
    border-radius: 7px;
  }
  .pool-callout-title {
    font-size: 10.5px;
  }
  .pool-callout-sub {
    font-size: 9.5px;
  }
  .pool-callout-spin {
    bottom: 50px;
    left: 33%;
  }
  .pool-callout-power {
    left: 56px;
    top: 48%;
  }
  .pool-callout-fine-aim {
    bottom: 52px;
    right: 14px;
  }
}

/* Responsive Lobby Leaderboard & Splash Info */
.saito-splash-section .saito-splash-info,
.saito-splash-info {
  width: min(56rem, 92vw) !important;
  max-width: min(62.5rem, 92vw) !important;
  box-sizing: border-box !important;
}

.splash-page-leaderboard {
  overflow: hidden !important;
  max-height: none !important;
}

.splash-page-leaderboard .league-leaderboard,
.splash-page-leaderboard .saito-table {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.splash-page-leaderboard .saito-table-body {
  max-height: min(520px, 62vh) !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.league-leaderboard .saito-table-header,
.league-leaderboard .saito-table-row {
  grid-template-columns: 4rem minmax(12rem, 1fr) 5.5rem 5.5rem 5rem !important;
  align-items: center !important;
}

.league-leaderboard .saito-table-row > div,
.league-leaderboard .saito-table-header > div {
  min-width: 0 !important;
}

.league-leaderboard .saito-table-row .saito-address {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  display: block !important;
  text-align: left !important;
}

@media screen and (max-width: 600px) {
  .saito-splash-section .saito-splash-info,
  .saito-splash-info {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 1.25rem 0.9rem !important;
    box-sizing: border-box !important;
  }

  .league-leaderboard .saito-table-header,
  .league-leaderboard .saito-table-body {
    font-size: 1.05rem !important;
  }

  .league-leaderboard .saito-table-header,
  .league-leaderboard .saito-table-row {
    grid-template-columns: 2.2rem minmax(8.5rem, 1fr) 3.4rem 3.8rem 3.2rem !important;
    grid-gap: 0.35rem !important;
    padding: 0.5rem 0.4rem !important;
    align-items: center !important;
  }

  .league-leaderboard .saito-table-row .saito-address {
    font-size: 1.08rem !important;
  }
}

/* 1P AI Practice Setup Modal (#pool-ai-setup-modal) */
.pool-ai-setup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3400;
  background: rgba(3, 12, 16, 0.82);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.pool-ai-setup-card {
  position: relative;
  width: min(640px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(8, 30, 38, 0.98) 0%, rgba(4, 15, 20, 0.99) 100%);
  border: 1px solid rgba(218, 182, 107, 0.65);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.88);
  color: #f3f6f8;
  text-align: center;
  box-sizing: border-box;
}

.pool-ai-setup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(218, 182, 107, 0.45);
  color: #ffe29a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pool-ai-setup-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(218, 182, 107, 0.16);
  border: 1px solid rgba(218, 182, 107, 0.5);
  color: #ffe29a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pool-ai-setup-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.pool-ai-setup-sub {
  margin: 6px 0 16px 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.84);
}

.pool-ai-setup-section {
  text-align: left;
  background: rgba(5, 19, 25, 0.72);
  border: 1px solid rgba(218, 182, 107, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.pool-ai-setup-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffe29a;
  margin-bottom: 9px;
}

.pool-ai-setup-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pool-ai-diff-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(12, 38, 48, 0.78);
  border: 1px solid rgba(218, 182, 107, 0.3);
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.pool-ai-diff-card:hover {
  border-color: rgba(251, 191, 36, 0.75);
  transform: translateY(-1px);
}

.pool-ai-diff-card.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.24) 0%, rgba(180, 83, 9, 0.22) 100%);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.28);
}

.pool-ai-diff-tier {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
}

.pool-ai-diff-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.pool-ai-diff-desc {
  font-size: 11.5px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.3;
}

.pool-ai-controls-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pool-ai-ctrl-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(11, 35, 44, 0.65);
  border: 1px solid rgba(218, 182, 107, 0.22);
}

.pool-ai-ctrl-key {
  font-size: 12px;
  font-weight: 700;
  color: #ffe29a;
}

.pool-ai-ctrl-txt {
  font-size: 11.5px;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.32;
}

.pool-ai-setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.pool-ai-setup-rules-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(12, 38, 48, 0.9);
  border: 1px solid rgba(218, 182, 107, 0.5);
  color: #ffe29a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pool-ai-setup-start-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border: 1.5px solid #fef08a;
  color: #06141b;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.42);
}

@media (max-width: 600px) {
  .pool-ai-setup-diff-grid,
  .pool-ai-controls-mini-grid {
    grid-template-columns: 1fr;
  }
  .pool-ai-setup-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* [POOL-02] Hide floating coachmarks when any modal/overlay or Game dropdown is open */
body:has(.saito-overlay[style*="block"]) #pool-power-coachmark,
body:has(.saito-overlay[style*="block"]) #pool-spin-coachmark,
body:has(.saito-overlay[style*="block"]) .pool-coachmark,
body:has(.saito-overlay-backdrop[style*="block"]) #pool-power-coachmark,
body:has(.saito-overlay-backdrop[style*="block"]) #pool-spin-coachmark,
body:has(.saito-overlay-backdrop[style*="block"]) .pool-coachmark,
body:has(#pool-ai-game-dropdown[style*="flex"]) #pool-power-coachmark,
body:has(#pool-ai-game-dropdown[style*="flex"]) #pool-spin-coachmark,
body:has(#pool-ai-game-dropdown[style*="flex"]) .pool-coachmark {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* [POOL-03] Prevent Stake Info Overlay first column from wrapping word-by-word */
.stake-info-overlay .player-table td:first-child,
.stake-info-overlay .player-table div:first-child {
  white-space: nowrap !important;
  min-width: 145px !important;
}

/* [GAMES-02] Mobile Landscape AI Setup Card scrollability */
@media (max-width: 932px) and (max-height: 500px) {
  .pool-ai-setup-card {
    max-height: 88dvh !important;
    overflow-y: auto !important;
    padding: 14px 18px !important;
  }
  .pool-ai-setup-actions {
    position: sticky;
    bottom: 0;
    background: rgba(6, 20, 27, 0.96);
    padding-top: 8px;
    z-index: 2;
  }
}









html.game.pool body.pool-in-game {
  background-color: #000 !important;
}

/*ios fullscreen*/
.xxx-game-iframe-iphone-se {
  height: 226px !important;
}

.xxx-ios-fullscreen-message {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
}

.xxx-ios-fullscreen-scroll {
  width: 100vw;
  height: 120vh;
  position: absolute;
  z-index: 10001;
  top: 0;
  left: 0;
  display: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
}

.xxx-ios-fullscreen-swipe {
  width: 30%;
  height: 30%;
  background-image: url(../sprites/swipe.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  transform: translate(-50%, -50%) !important;
  animation: xxx-animation-ios-swipe 1.5s ease infinite;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
}

@keyframes xxx-animation-ios-swipe {
  0%,
  100% {
    top: 40%;
  }
  50% {
    top: 60%;
  }
}/* Pool renders on HTML5 Canvas; do not reset global Saito DOM tags */
.orientation-msg-container{
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    background-color: #000;
    z-index: 2;
}

.orientation-msg-text{
    font-size: 40px;
    font-family: "Arial";
    color: #fff;
    text-align: center;
    width: 80%;
    
    position: fixed;
    top: 50%;
    -webkit-transform: translate(15%,-50%);
    -moz-transform: translate(15%,-50%);
    -ms-transform: translate(15%,-50%);
    transform: translate(15%,-50%);
    
        
}

@media (max-width: 767px) {
    .orientation-msg-text{    
        font-size: 30px;  
    }
}


@media (max-width: 500px) {
    .orientation-msg-text{    
        font-size: 30px;  
    }
}