/**/
/* THIS FILE AUTOGENERATED FROM CSS in ./web/css/ */ 
/**/
/* Saito Neon Slots Styling - Ultra-Premium Cyberpunk / Las Vegas Neon Standard */
@import url("/saito/css-imports/saito-chat.css");

/* Suppress Saito Default Loader Overlays, Game & Chat menu items, & blank GameHUD2 box */
html.game.slots #game-loader-screen,
html.game.slots #saito-loader-container,
html.game.slots .scrollable-page,
html.game.slots .saito-splash-image,
html.game.slots .saito-splash-nav,
html.game.slots #game-hud2,
html.game.slots .game-hud2,
html.game.slots #hud-visual-menu,
html.game.slots #game-game,
html.game.slots #game-social,
html.game.slots #game-chat {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  background-image: url("/slots/png/casino.png") !important;
  background-color: #06070a !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: #fff;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
   1. STANDARD SAITO HEADER, GAMEMENU & GAMESCOREBOARD INTEGRATION
   ========================================================================== */
#saito-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 54px !important;
  min-height: 54px !important;
  background: rgba(8, 10, 16, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 18px !important;
  z-index: 3100 !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 242, 254, 0.12) !important;
}

#saito-header .saito-header-logo-wrapper,
#saito-header.game .saito-header-logo-wrapper {
  order: -2 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-right: 0.85rem !important;
  cursor: pointer !important;
}

#saito-header .saito-header-logo,
#saito-header.game .saito-header-logo {
  width: 155px !important;
  height: auto !important;
  max-height: 30px !important;
  cursor: pointer !important;
}

#saito-header .game-menu,
#game-menu,
.game-menu {
  order: -1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: 54px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1002 !important;
}

.game-menu > ul {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 2px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.game-menu > ul > li {
  position: relative !important;
  width: auto !important;
  min-width: unset !important;
  max-width: none !important;
  height: 54px !important;
  line-height: 54px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.game-menu > ul > li.game-menu-mobile-header {
  display: none !important;
}

.game-menu > ul > li > .game-menu-option-label {
  height: 54px !important;
  line-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.game-menu > ul > li:hover {
  color: #00f2fe !important;
  background: rgba(0, 242, 254, 0.12) !important;
}

.game-menu .game-menu-sub-options,
.game-menu > ul > li > ul {
  position: absolute !important;
  top: 54px !important;
  left: 0 !important;
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  min-width: 225px !important;
  width: max-content !important;
  max-width: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  z-index: 1010 !important;
}

.game-menu .game-menu-sub-sub-options {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  min-width: 215px !important;
  width: max-content !important;
  max-width: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  z-index: 1015 !important;
}

.game-menu ul.game-menu-sub-options li,
.game-menu ul.game-menu-sub-sub-options li,
.game-menu > ul > li > ul > li {
  position: relative !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

.game-menu ul.game-menu-sub-options li:last-child,
.game-menu ul.game-menu-sub-sub-options li:last-child {
  border-bottom: none !important;
}

.game-menu .game-menu-sub-option > .game-menu-option-label,
.game-menu .game-menu-sub-sub-option > .game-menu-option-label {
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 16px !important;
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.game-menu ul.game-menu-sub-options li:hover,
.game-menu ul.game-menu-sub-sub-options li:hover,
.game-menu > ul > li > ul > li:hover {
  background: rgba(0, 242, 254, 0.18) !important;
  color: #00f2fe !important;
}

#game-scoreboard, .game-scoreboard {
  order: 1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 12px 0 auto !important;
  height: 54px !important;
  z-index: 1001 !important;
}

#saito-header .hamburger-container {
  order: 2 !important;
}

.slots-score-pill {
  background: rgba(15, 18, 26, 0.9);
  border-radius: 18px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.slots-score-pill .sb-label {
  color: #94a3b8;
}

.pill-credits {
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.pill-credits .val {
  color: #00f2fe;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.pill-saito {
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.pill-saito .val {
  color: #10b981;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.pill-wallet {
  border: 1px solid rgba(245, 176, 65, 0.45);
  box-shadow: 0 0 10px rgba(245, 176, 65, 0.15);
}

.pill-wallet .val {
  color: #f5b041;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(245, 176, 65, 0.5);
}

.pill-spins {
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.pill-spins .val {
  color: #c4b5fd;
  font-weight: 800;
}

.slots-score-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.slots-sb-btn {
  border-radius: 18px !important;
  padding: 6px 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: unset !important;
  height: 32px !important;
  line-height: 1 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-guide {
  background: rgba(139, 92, 246, 0.18) !important;
  border: 1px solid #8b5cf6 !important;
  color: #ddd6fe !important;
}

.btn-guide:hover {
  background: rgba(139, 92, 246, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5) !important;
}

.btn-pf {
  background: rgba(0, 242, 254, 0.15) !important;
  border: 1px solid #00f2fe !important;
  color: #00f2fe !important;
}

.btn-pf:hover {
  background: rgba(0, 242, 254, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.6) !important;
}

.btn-rebuy-top {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid #10b981 !important;
  color: #6ee7b7 !important;
}

.btn-rebuy-top:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #fff !important;
}

.btn-cashout {
  background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%) !important;
  border: 1px solid #f39c12 !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(245, 176, 65, 0.45) !important;
}

.btn-cashout:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 20px rgba(245, 176, 65, 0.85) !important;
}

/* ==========================================================================
   2. CASINO STATUS TICKER BAR
   ========================================================================== */
#casino-ticker-bar {
  position: fixed;
  top: 54px;
  left: 0;
  width: 100%;
  height: 28px;
  background: rgba(6, 10, 18, 0.96);
  border-bottom: 1px solid rgba(0, 242, 254, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 999;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ticker-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-message {
  color: #f8fafc !important;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.35);
  text-align: left;
  flex: 1;
  margin: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-stats {
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-divider {
  color: #444;
}

/* ==========================================================================
   3. SLOTS CANVAS CONTAINER
   ========================================================================== */
#slots-container {
  position: absolute !important;
  top: 82px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 82px) !important;
  height: calc(100dvh - 82px) !important;
  max-height: calc(100dvh - 82px) !important;
  display: block !important;
  overflow: hidden !important;
  z-index: 10;
}

#slots-container canvas {
  display: block;
  box-shadow: none;
  border-radius: 0;
  touch-action: manipulation;
}

/* ==========================================================================
   4. MODALS (STRICT PX & GLASSMORPHISM)
   ========================================================================== */
.casino-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 54px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500 !important;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.casino-modal-content,
.guide-modal-content.rules-overlay {
  background: rgba(14, 17, 24, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  width: 620px;
  max-width: 92vw;
  max-height: calc(100dvh - 80px);
  overflow: hidden !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.2);
  padding: 20px 24px;
  display: flex !important;
  flex-direction: column !important;
}

.casino-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.casino-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.75);
}

html body .casino-modal-content > .casino-modal-body,
html body .casino-modal-content > .guide-body,
#guide-modal .casino-modal-body,
#guide-modal .guide-body,
#pf-modal .casino-modal-body,
#rebuy-modal .casino-modal-body,
#cashout-modal .casino-modal-body,
.casino-modal-body,
.guide-body {
  flex: 1 1 0% !important;
  flex-shrink: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

.casino-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.btn-modal-action,
.casino-modal-footer .saito-button-primary,
.slots-overlay-footer .saito-button-primary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px !important;
  padding: 9px 18px !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.btn-modal-action:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-modal-action.btn-gold {
  background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%);
  color: #000;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 176, 65, 0.4);
}

.btn-modal-action.btn-gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.7);
}

/* ==========================================================================
   5. GUIDE MODAL (TABS & CARDS)
   ========================================================================== */
.guide-modal-content {
  width: min(820px, 95vw) !important;
  max-width: 820px !important;
}

.guide-tabs,
.slots-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  flex-shrink: 0 !important;
}

.guide-tab,
.slots-guide-tabs .guide-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa;
  border-radius: 8px;
  min-height: 30px !important;
  line-height: 1.25 !important;
  padding: 6px 12px !important;
  flex-shrink: 0 !important;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.guide-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.guide-tab-pane {
  display: none;
}

.guide-tab-pane.active {
  display: block;
}

.guide-tab-pane h4 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #f5b041;
}

.guide-tab-pane p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.guide-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.45;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.guide-card .g-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.guide-card h5 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #fff;
}

.guide-card p {
  font-size: 11px;
  color: #aaa;
  line-height: 1.4;
  margin: 0;
}

.entropy-box {
  background: #080a0e;
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0 14px 0;
  text-align: center;
}

.entropy-box code {
  color: #00f2fe;
  font-size: 13px;
  font-weight: 700;
}

.guide-list {
  padding-left: 20px;
  margin: 0;
  font-size: 12px;
  color: #ccc;
  line-height: 1.7;
}

.symbols-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sym-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

/* ==========================================================================
   6. PROVABLY FAIR MODAL SPECIFICS
   ========================================================================== */
.pf-row {
  margin-bottom: 14px;
}

.pf-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-copy-row code, .pf-formula {
  background: #07090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  color: #00f2fe;
  font-family: monospace;
  font-size: 12px;
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
}

.highlight {
  font-size: 16px;
  font-weight: 800;
  color: #f5b041;
}

.highlight-cyan {
  font-size: 14px;
  font-weight: 700;
  color: #00f2fe;
}

.pf-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* ==========================================================================
   7. CASH OUT RECEIPT MODAL (CELEBRATORY & DUAL ACTIONS)
   ========================================================================== */
.celebratory-content {
  border-color: rgba(245, 176, 65, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 176, 65, 0.25);
}

.celebratory-content h3 {
  color: #f5b041;
  text-shadow: 0 0 12px rgba(245, 176, 65, 0.5);
}

.cashout-hero {
  text-align: center;
  background: radial-gradient(circle at center, rgba(245, 176, 65, 0.15) 0%, transparent 70%);
  padding: 16px 0;
  margin-bottom: 16px;
  border-radius: 12px;
}

.hero-label {
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 1px;
}

.hero-amount {
  font-size: 36px;
  font-weight: 900;
  color: #f5b041;
  text-shadow: 0 0 20px rgba(245, 176, 65, 0.7);
  margin-top: 4px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.receipt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rc-label {
  font-size: 12px;
  color: #888;
}

.rc-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.highlight-green {
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.receipt-status {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #10b981;
  text-align: center;
  font-weight: 600;
}

.dual-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.btn-rebuy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-rebuy:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
}

.btn-arcade-return {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.btn-arcade-return:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   8. BUY-IN / STAKE SELECTION MODAL & STRICT WALLET CHECK UI
   ========================================================================== */
.rebuy-content {
  width: 560px;
}

.wallet-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 22, 34, 0.95);
  border: 1px solid rgba(245, 176, 65, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(245, 176, 65, 0.12);
}

.wb-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wb-title,
.wb-label {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.6px;
}

.wb-addr,
.wb-address {
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.wb-amount {
  font-size: 20px;
  font-weight: 900;
  color: #f5b041;
  text-shadow: 0 0 10px rgba(245, 176, 65, 0.45);
}

.insufficient-banner,
.insufficient-funds-alert {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.45;
}

.rebuy-subtitle,
#rebuy-modal-desc {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0 0 12px 0;
}

.stake-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

:root:root:root body #rebuy-modal .btn-stake-tier,
:root:root:root body #rebuy-modal .btn-stake-tier:disabled,
.btn-stake-tier {
  background: rgba(16, 24, 40, 0.92) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.55) !important;
  border-radius: 12px !important;
  padding: 15px 14px !important;
  cursor: pointer !important;
  text-align: center !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(0, 242, 254, 0.08) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier:hover:not(.disabled-stake):not(:disabled),
.btn-stake-tier:hover:not(.disabled-stake):not(:disabled) {
  background: rgba(0, 242, 254, 0.18) !important;
  border-color: #00f2fe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.45) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.featured:not(.disabled-stake),
:root:root:root body #rebuy-modal .btn-stake-tier.featured:disabled:not(.disabled-stake):not(.is-confirming-stake),
.btn-stake-tier.featured:not(.disabled-stake) {
  border-color: #f5b041 !important;
  background: rgba(245, 176, 65, 0.16) !important;
  box-shadow: 0 4px 16px rgba(245, 176, 65, 0.22), inset 0 0 12px rgba(245, 176, 65, 0.1) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.featured:hover:not(.disabled-stake):not(:disabled),
.btn-stake-tier.featured:hover:not(.disabled-stake):not(:disabled) {
  box-shadow: 0 0 22px rgba(245, 176, 65, 0.55) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.is-confirming-stake,
:root:root:root body #rebuy-modal .btn-stake-tier.featured.is-confirming-stake,
.btn-stake-tier.is-confirming-stake {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45), inset 0 0 14px rgba(16, 185, 129, 0.15) !important;
  opacity: 1 !important;
  cursor: wait !important;
  transform: none !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.is-unselected-stake,
:root:root:root body #rebuy-modal .btn-stake-tier:disabled:not(.is-confirming-stake):not(.disabled-stake),
.btn-stake-tier.is-unselected-stake,
.btn-stake-tier:disabled:not(.is-confirming-stake):not(.disabled-stake) {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.disabled-stake,
:root:root:root body #rebuy-modal .btn-stake-tier.disabled-stake:disabled,
.btn-stake-tier.disabled-stake {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(15, 18, 26, 0.6) !important;
  transform: none !important;
  box-shadow: none !important;
}

.st-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #f5b041;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.st-saito {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 3px;
}

.st-credits {
  font-size: 12px !important;
  color: #00f2fe !important;
  font-weight: 700 !important;
  margin-bottom: 4px;
}

.st-status {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981 !important;
}

.btn-stake-tier.disabled-stake .st-status {
  color: #f87171 !important;
}

.demo-mode-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 8px 0;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.demo-select-row {
  margin-top: 4px;
}

.btn-demo-tier {
  width: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32) 0%, rgba(0, 242, 254, 0.24) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.65) !important;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: center;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

.btn-demo-tier strong {
  color: #00f2fe !important;
  font-weight: 800 !important;
}

.btn-demo-tier:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.48) 0%, rgba(0, 242, 254, 0.38) 100%) !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45) !important;
  transform: translateY(-1px);
}

.demo-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.demo-sub {
  font-size: 11px;
  color: #cbd5e1;
}

/* ==========================================================================
   9. STANDARD SAITO OVERLAYS, STATS TABLES & GAME LOG STYLING
   ========================================================================== */
.saito-overlay-backdrop {
  z-index: 3300 !important;
}

.saito-overlay {
  z-index: 3310 !important;
}

.saito-overlay:has(.slots-rules-overlay),
.saito-overlay:has(.solitaire-stats-overlay) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 3310 !important;
  background: transparent !important;
  width: min(760px, 95vw) !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
  overflow: visible !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox,
.saito-overlay:has(.solitaire-stats-overlay) .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: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3350 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.75) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox:hover,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox:hover {
  background: #ef4444 !important;
  transform: scale(1.06) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.solitaire-stats-overlay) .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(.slots-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox-btn,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox-btn {
  display: none !important;
}

.saito-overlay > .saito-overlay-panel.slots-rules-overlay,
.saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
.slots-rules-overlay,
.solitaire-stats-overlay {
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 16px !important;
  color: #f8fafc !important;
  padding: 1.8rem 1.6rem !important;
  box-sizing: border-box !important;
  width: min(760px, 94vw) !important;
  max-width: 780px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.2) !important;
}

.slots-rules-overlay h1,
.solitaire-stats-overlay h1,
.solitaire-stats-overlay h3 {
  color: #f5b041 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
  padding-right: 48px !important;
  text-shadow: none !important;
  letter-spacing: 0.3px !important;
}

.slots-overlay-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.slots-rules-header p {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 0 !important;
}

.slots-rules-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 680px) {
  .slots-rules-grid {
    grid-template-columns: 1fr !important;
  }
}

.slots-rules-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(0, 242, 254, 0.22) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

.slots-rules-card h2 {
  color: #00f2fe !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
}

.slots-rules-card p {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 0 0 6px 0 !important;
}

.slots-rules-list,
.slots-rules-overlay ul {
  margin: 0 !important;
  padding-left: 18px !important;
  color: #e2e8f0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.slots-rules-list li,
.slots-rules-overlay ul li {
  margin-bottom: 4px !important;
}

.solitaire-stats-overlay hr {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin: 0 0 14px 0 !important;
}

.slots-rules-overlay > h2 {
  color: #00f2fe !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  margin: 4px 0 8px 0 !important;
}

.slots-code-banner {
  background: #07090d;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  text-align: center;
  color: #00f2fe;
  font-family: monospace;
  font-size: 11.5px;
}

.saito-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 11, 18, 0.92);
}

.saito-table-header {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  background: rgba(0, 242, 254, 0.16);
  color: #00f2fe !important;
  font-weight: 800;
  font-size: 12.5px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  align-items: center;
}

.saito-table-header:has(> .saito-table-row) {
  display: block;
  padding: 0;
}

.saito-table-header > .saito-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  padding: 8px 14px;
  color: #00f2fe !important;
  font-weight: 800;
  font-size: 12.5px;
  align-items: center;
}

.saito-table-body .saito-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.saito-table-body .saito-table-row div {
  color: #f1f5f9 !important;
  font-weight: 600;
}

.saito-table-body .saito-table-row .saito-table-label {
  color: #94a3b8 !important;
  font-weight: 700;
}

#pf-modal .saito-table-body .saito-table-row {
  grid-template-columns: 1fr auto;
}

.saito-table-body .saito-table-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

#log-wrapper:not(.log-lock) {
  right: -450px !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#log-wrapper.log-lock {
  position: fixed !important;
  top: 82px !important;
  right: 0 !important;
  width: min(380px, 94vw) !important;
  height: calc(100dvh - 82px) !important;
  background: rgba(10, 14, 22, 0.98) !important;
  border-left: 1px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: -10px 10px 35px rgba(0, 0, 0, 0.9) !important;
  z-index: 2650 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  #log-wrapper.log-lock {
    top: 104px !important;
    height: calc(100dvh - 168px) !important;
  }
}

.slots-log-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  flex-shrink: 0 !important;
}

.slots-log-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #00f2fe !important;
  letter-spacing: 0.4px !important;
}

.slots-log-close {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.22) !important;
  border: 1px solid rgba(239, 68, 68, 0.65) !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.slots-log-close:hover {
  background: #ef4444 !important;
}

#log-wrapper #log,
#game-log,
.game-log {
  flex: 1 1 auto !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  overflow-y: auto !important;
  background: transparent !important;
  border: none !important;
  color: #e2e8f0 !important;
  font-family: 'Segoe UI', Roboto, monospace !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  padding: 12px 16px !important;
}

#log-wrapper #log *,
#game-log *,
.game-log * {
  color: #e2e8f0 !important;
}

.slots-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(0, 242, 254, 0.25) !important;
}

.slots-wallet-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(0, 242, 254, 0.14) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  color: #00f2fe !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.slots-wallet-back-btn:hover {
  background: rgba(0, 242, 254, 0.26) !important;
}

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

/* ==========================================================================
   10. SHARE -> RECORD GAME WIZARD STYLING (#screenrecord-wizard)
   ========================================================================== */
#screenrecord-wizard,
.screenrecord-wizard {
  width: min(480px, 92vw) !important;
  padding: 26px 28px !important;
  background: rgba(14, 18, 28, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.22) !important;
  color: #f8fafc !important;
}

.screenrecord-wizard-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #00f2fe !important;
  text-align: center !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: 0.4px !important;
}

.screenrecord-wizard .record-mode {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin: 0 !important;
  font-size: 16px !important;
}

.screenrecord-wizard .record-mode-option {
  margin: 0 !important;
  padding: 24px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.screenrecord-wizard .record-mode-option:hover {
  background: rgba(0, 242, 254, 0.14) !important;
  border-color: #00f2fe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3) !important;
}

.screenrecord-wizard .record-mode-option i {
  font-size: 38px !important;
  padding: 0 !important;
  min-width: unset !important;
  color: #00f2fe !important;
  line-height: 1 !important;
}

.screenrecord-wizard .record-mode-option label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  text-align: center !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* ==========================================================================
   11. DRAGGABLE, RESIZABLE & NON-OVERLAPPING CHAT WINDOWS (Desktop > 600px)
       & FULL-SCREEN MOBILE CHAT OVERLAY (Mobile <= 600px)
   ========================================================================== */
@media screen and (min-width: 601px) {
  .chat-container {
    position: fixed;
    right: 20px;
    bottom: 16px;
    width: 370px;
    height: 450px;
    min-width: 280px;
    min-height: 220px;
    max-width: 92vw;
    max-height: calc(100vh - 96px);
    background: rgba(12, 16, 26, 0.97) !important;
    border: 1px solid rgba(0, 242, 254, 0.45) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.92), 0 0 22px rgba(0, 242, 254, 0.18) !important;
    color: #f1f5f9 !important;
    z-index: 2600;
    resize: both !important;
    overflow: hidden !important;
    transition: none !important;
    display: grid !important;
    grid-template-rows: 42px minmax(0, 1fr) auto !important;
  }

  .chat-container.minimized {
    height: 42px !important;
    min-height: 42px !important;
    resize: none !important;
    grid-template-rows: 42px !important;
  }

  .chat-container .chat-header {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-bottom: 1px solid rgba(0, 242, 254, 0.28) !important;
    color: #00f2fe !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: move !important;
    user-select: none !important;
  }

  .chat-container .chat-group-name,
  .chat-container .chat-header .saito-address {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #00f2fe !important;
  }

  .chat-container .chat-header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .chat-container .chat-header-nav i {
    font-size: 13px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
  }

  .chat-container .chat-header-nav i:hover {
    color: #00f2fe !important;
  }

  .chat-container .chat-body {
    font-size: 13px !important;
    padding: 10px 12px !important;
    color: #e2e8f0 !important;
    overflow-y: auto !important;
    background: rgba(10, 14, 22, 0.9) !important;
  }

  .chat-container .chat-footer {
    padding: 8px 10px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-top: 1px solid rgba(0, 242, 254, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .chat-container .chat-footer .text-input,
  .chat-container .chat-footer input,
  .chat-container .chat-footer textarea {
    font-size: 13px !important;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    min-height: 32px !important;
  }

  .chat-manager-overlay {
    position: fixed;
    left: 16px;
    top: 58px;
    right: auto;
    bottom: auto;
    width: 320px;
    min-width: 260px;
    max-width: 90vw;
    max-height: calc(100vh - 80px);
    background: rgba(12, 16, 26, 0.98) !important;
    border: 1px solid rgba(0, 242, 254, 0.45) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.92), 0 0 22px rgba(0, 242, 254, 0.18) !important;
    z-index: 2610;
    resize: both !important;
    overflow: hidden !important;
    transition: none !important;
    color: #f1f5f9 !important;
  }

  .chat-manager-overlay .chat-manager-header,
  .chat-manager-overlay .saito-sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-bottom: 1px solid rgba(0, 242, 254, 0.28) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #00f2fe !important;
    cursor: move !important;
  }

  .chat-manager-overlay .chat-manager-list {
    padding: 8px !important;
    min-height: 140px !important;
    max-height: 360px !important;
    overflow-y: auto !important;
  }

  .chat-manager-overlay .saito-user {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    cursor: pointer !important;
  }

  .chat-manager-overlay .saito-user:hover {
    background: rgba(0, 242, 254, 0.12) !important;
  }

  .chat-manager-overlay .saito-identicon-box,
  .chat-manager-overlay .saito-identicon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  .chat-manager-overlay .saito-address {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
  }

  .chat-manager-overlay .saito-userline {
    font-size: 12px !important;
    color: #94a3b8 !important;
  }
}

@media screen and (max-width: 600px) {
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header {
    min-height: 48px !important;
    height: 48px !important;
    flex-wrap: nowrap !important;
  }

  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header #game-menu,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header .game-menu,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header #game-scoreboard,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header .game-scoreboard {
    display: none !important;
  }

  .chat-manager-overlay {
    position: fixed !important;
    top: var(--chat-manager-overlay-top, 48px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: var(--saito-background, #0f0f12) !important;
    z-index: 3050 !important;
  }

  .chat-container {
    z-index: 3150 !important;
  }
}

/* ==========================================================================
   12. MOBILE-FRIENDLY RESPONSIVE LAYOUT & TOUCH CONTROL DECK
   ========================================================================== */
.mobile-slot-controls {
  display: none;
}

/* Ensure hamburger toggle button is always interactive on Desktop, Tablet, Mobile Portrait & Landscape */
#saito-header.game #saito-header-menu-toggle,
#saito-header #saito-header-menu-toggle,
#saito-header-menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 3160 !important;
}

/* Ensure closed hamburger QR drawer is never visible on screen unless .show-menu is active */
#saito-header.game .saito-header-hamburger-contents:not(.show-menu),
#saito-header .saito-header-hamburger-contents:not(.show-menu),
.saito-header-hamburger-contents:not(.show-menu) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#saito-header.game .saito-header-hamburger-contents.show-menu,
#saito-header .saito-header-hamburger-contents.show-menu,
.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: 54px !important;
  right: 0 !important;
  left: auto !important;
  width: min(400px, 96vw) !important;
  height: calc(100dvh - 54px) !important;
  max-height: calc(100dvh - 54px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--saito-card, rgba(12, 16, 26, 0.98)) !important;
  color: var(--saito-foreground, #e7e9ea) !important;
  border-left: 1px solid rgba(0, 242, 254, 0.35) !important;
  border-radius: 0 0 0 12px !important;
  box-shadow: -10px 14px 40px rgba(0, 0, 0, 0.9) !important;
  z-index: 3150 !important;
}

#saito-header.game .saito-header-backdrop.menu-visible,
#saito-header .saito-header-backdrop.menu-visible,
.saito-header-backdrop.menu-visible {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 54px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100dvh - 54px) !important;
  z-index: 3140 !important;
}

/* Keep Game, Info, Chat, Share inline in top header instead of Saito's legacy offscreen drawer */
#saito-header .game-menu,
#game-menu,
.game-menu,
.game-menu.mobile-saito-visible {
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

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

.game-menu .game-menu-mobile-toggle,
.game-menu-mobile-header,
.game-menu-accordion-icon,
.mobile-log-tab,
#game-share,
#sub-menu-game-share {
  display: none !important;
}

/* Keep closed game-log completely off-screen until opened via Info -> Log */
#log-wrapper:not(.log-lock) {
  right: -110vw !important;
  display: none !important;
}

@media (max-width: 960px) {
  #saito-header {
    height: auto !important;
    min-height: 78px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 4px 8px !important;
    gap: 2px 4px !important;
    align-items: center !important;
  }

  .casino-modal {
    padding: 86px 8px 14px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content {
    max-height: calc(100dvh - 102px) !important;
  }

  .saito-overlay-backdrop {
    z-index: 3300 !important;
  }

  .saito-overlay {
    z-index: 3310 !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    top: calc(43px + 50dvh) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    max-height: calc(100dvh - 102px) !important;
    z-index: 3310 !important;
  }

  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    max-height: calc(100dvh - 102px) !important;
  }

  #saito-header.game .saito-header-hamburger-contents.show-menu,
  #saito-header .saito-header-hamburger-contents.show-menu,
  .saito-header-hamburger-contents.show-menu {
    top: 78px !important;
    right: 0 !important;
    left: auto !important;
    width: min(400px, 100vw) !important;
    height: calc(100dvh - 78px) !important;
    max-height: calc(100dvh - 78px) !important;
  }

  #saito-header.game .saito-header-backdrop.menu-visible,
  #saito-header .saito-header-backdrop.menu-visible,
  .saito-header-backdrop.menu-visible {
    top: 78px !important;
    height: calc(100dvh - 78px) !important;
  }

  #saito-header .saito-header-logo-wrapper,
  #saito-header.game .saito-header-logo-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    transform: none !important;
    width: 92px !important;
    height: 32px !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  #saito-header .saito-header-logo,
  #saito-header.game .saito-header-logo {
    width: 118px !important;
    max-width: none !important;
    height: 22.5px !important;
    max-height: 22.5px !important;
  }

  #saito-header .game-menu,
  #game-menu,
  .game-menu {
    display: flex !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: calc(100vw - 148px) !important;
  }

  #game-game,
  #game-social,
  #game-chat {
    display: none !important;
  }

  /* On Mobile, keep ONLY Session Statistics and Toggle Game Log in Game Info dropdown */
  #game-menu #game-info ul.game-menu-sub-options > li#game-rules,
  #game-menu #game-info ul.game-menu-sub-options > li#game-paytable,
  #game-menu #game-info ul.game-menu-sub-options > li#game-pf,
  #game-menu #game-info ul.game-menu-sub-options > li#game-security,
  #game-menu #game-info ul.game-menu-sub-options > li#game-terms {
    display: none !important;
  }

  .game-menu > ul {
    display: flex !important;
    flex-direction: row !important;
    height: 36px !important;
    gap: 2px !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .game-menu > ul > li {
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 9px !important;
    font-size: 12.5px !important;
    border-bottom: none !important;
  }

  .game-menu > ul > li > .game-menu-option-label {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    width: auto !important;
  }

  #game-menu-fullscreen {
    display: none !important;
  }

  .game-menu .game-menu-sub-options,
  .game-menu > ul > li > ul {
    position: absolute !important;
    top: 36px !important;
    left: 0 !important;
    min-width: 195px !important;
    max-width: 86vw !important;
    background: rgba(12, 16, 26, 0.98) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  }

  #game-share .game-menu-sub-options,
  #game-share > ul {
    left: 0 !important;
    right: auto !important;
  }

  .game-menu .game-menu-sub-sub-options {
    position: static !important;
    left: 0 !important;
    top: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
    border-top: 1px solid rgba(0, 242, 254, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(6, 9, 16, 0.96) !important;
    padding-left: 10px !important;
  }

  #saito-header .hamburger-container {
    order: 2 !important;
    margin-left: auto !important;
  }

  #saito-header.game #saito-header-menu-toggle,
  #saito-header-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 32px !important;
    height: 32px !important;
    margin-left: auto !important;
  }

  #saito-header.game #saito-header-menu-toggle .fa-bars,
  #saito-header-menu-toggle .fa-bars {
    border: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  /* Row 2 of mobile header: Compact Scoreboard */
  #game-scoreboard, .game-scoreboard {
    order: 3 !important;
    width: 100% !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  #game-scoreboard::-webkit-scrollbar {
    display: none;
  }

  .slots-score-pill {
    padding: 3px 7px !important;
    font-size: 11px !important;
    gap: 3px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .slots-score-actions {
    gap: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .slots-sb-btn {
    padding: 3px 8px !important;
    font-size: 10px !important;
    min-height: 0 !important;
    height: 26px !important;
    max-height: 26px !important;
    line-height: 1 !important;
    border-radius: 13px !important;
  }

  .slots-pill-btn {
    min-height: 0 !important;
    height: 26px !important;
    width: 28px !important;
    line-height: 1 !important;
  }

  /* Ticker bar sits directly under the 2-row mobile header */
  #casino-ticker-bar {
    top: 80px !important;
    height: 24px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(6, 10, 18, 0.98) !important;
  }

  .ticker-indicator {
    font-size: 9.5px !important;
    gap: 4px !important;
  }

  .ticker-message {
    margin: 0 6px !important;
    color: #f8fafc !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  /* Slot machine container sits between ticker bar (104px) and mobile touch deck (64px) */
  #slots-container {
    top: 104px !important;
    height: calc(100vh - 168px) !important;
    height: calc(100dvh - 168px) !important;
  }

  /* Symmetric 5-Column Bottom Mobile Touch Control Deck:
     [ AUDIO ] | [ BET ] | [ SPIN (Centered 50%) ] | [ STAKE ] | [ SETTLE ] */
  .mobile-slot-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.32fr 1fr 1fr !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: rgba(8, 11, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 242, 254, 0.14);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
    align-items: stretch;
    gap: 6px;
    z-index: 1005;
    user-select: none;
    -webkit-user-select: none;
  }

  .mob-ctrl-btn {
    background: rgba(18, 24, 36, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 12px;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .mob-ctrl-btn:active {
    transform: scale(0.95);
  }

  .mob-lbl {
    font-size: 8px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
  }

  .mob-val {
    font-size: 11px;
    font-weight: 800;
    color: #00f2fe;
    line-height: 1.25;
    white-space: nowrap;
  }

  .mob-btn-sound {
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.15);
  }

  .mob-btn-sound .mob-val {
    color: #ddd6fe;
  }

  .mob-btn-sound.is-muted {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
  }

  .mob-btn-sound.is-muted .mob-val {
    color: #94a3b8;
  }

  .mob-btn-bet {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(0, 242, 254, 0.12);
  }

  .mob-btn-spin {
    padding: 4px 8px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    border: 2px solid #fef08a !important;
    color: #090d16 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    box-shadow: 0 0 18px rgba(245, 176, 65, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  .mob-spin-text {
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #090d16;
  }

  .mob-btn-buyin {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.14);
  }

  .mob-btn-buyin .mob-val {
    color: #6ee7b7;
    font-size: 10.5px;
  }

  .mob-btn-cashout {
    border-color: rgba(245, 176, 65, 0.65);
    background: rgba(245, 176, 65, 0.16);
  }

  .mob-btn-cashout .mob-val {
    color: #f5b041;
    font-size: 10.5px;
  }
}

/* Narrow Mobile Phones (<= 768px): Ultra-clean single-glance scoreboard & modals */
@media (max-width: 768px) {
  .slots-pill-btn {
    min-height: 0 !important;
    height: 26px !important;
    width: 28px !important;
    line-height: 1 !important;
  }

  .slots-sb-btn {
    min-height: 0 !important;
    height: 26px !important;
    max-height: 26px !important;
    line-height: 1 !important;
  }
  #saito-header.game .saito-header-hamburger-contents.show-menu,
  #saito-header .saito-header-hamburger-contents.show-menu,
  .saito-header-hamburger-contents.show-menu {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-radius: 0 !important;
  }

  .slots-score-pill .sb-word,
  .slots-sb-btn .sb-word {
    display: none !important;
  }

  /* Spins is already shown in ticker bar; Buy-In & Cash Out are on the bottom touch bar */
  .pill-spins,
  #game-scoreboard .btn-rebuy-top,
  #game-scoreboard .btn-cashout {
    display: none !important;
  }

  .ticker-stats {
    display: none !important;
  }

  /* Responsive Modals on Mobile */
  .casino-modal {
    padding: 86px 8px 14px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content,
  .guide-modal-content.rules-overlay {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: calc(100dvh - 102px) !important;
    padding: 12px 14px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0 !important;
    padding: 0 !important;
    top: calc(43px + 50dvh) !important;
    max-height: calc(100dvh - 102px) !important;
  }

  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 102px) !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    gap: 8px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .casino-modal-body,
  .slots-modal-body {
    padding: 0 !important;
    gap: 8px !important;
  }

  .casino-modal-header {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    gap: 8px !important;
  }

  .casino-modal-footer {
    padding-top: 8px !important;
    margin-top: 8px !important;
  }

  .casino-modal-header h3 {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .slots-rules-overlay h1,
  .solitaire-stats-overlay h1 {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    padding-right: 46px !important;
  }

  .wallet-balance-banner {
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
  }

  .wb-amount {
    font-size: 15px !important;
  }

  .insufficient-banner,
  .insufficient-funds-alert {
    padding: 7px 10px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .rebuy-subtitle,
  #rebuy-modal-desc {
    font-size: 11.5px !important;
    margin: 0 0 6px 0 !important;
  }

  .stake-select-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .btn-stake-tier {
    padding: 7px 6px !important;
    min-height: 0 !important;
  }

  .st-saito {
    font-size: 14.5px !important;
  }

  .btn-demo-tier {
    padding: 9px 12px !important;
    min-height: 0 !important;
  }

  .rebuy-legal-notice {
    margin-top: 6px !important;
    font-size: 10px !important;
  }

  #pf-modal .pf-row {
    margin-bottom: 6px !important;
  }

  #pf-modal .pf-row label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  #pf-modal .code-copy-row code {
    padding: 5px 8px !important;
    font-size: 10.5px !important;
  }

  #pf-modal .btn-copy {
    padding: 4px 8px !important;
    min-height: 0 !important;
  }

  #pf-modal .pf-desc {
    margin-top: 6px !important;
    padding-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  #pf-modal .pf-verify-wrap {
    margin: 6px 0 0 0 !important;
  }

  .guide-grid,
  .guide-grid-4,
  .receipt-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .guide-tabs,
  .slots-guide-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
    gap: 5px !important;
  }

  .guide-tab,
  .slots-guide-tabs .guide-tab {
    min-height: 28px !important;
    line-height: 1.2 !important;
    padding: 5px 9px !important;
    flex-shrink: 0 !important;
    font-size: 10.5px !important;
  }

  .hero-amount {
    font-size: 26px !important;
  }

  .dual-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .dual-actions .btn-modal-action {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Mobile Landscape (short vertical height <= 520px): maximize slot machine height */
@media (max-height: 520px) and (orientation: landscape) {
  #saito-header {
    height: 40px !important;
    min-height: 40px !important;
    flex-wrap: nowrap !important;
    padding: 0 10px !important;
  }

  #game-menu, .game-menu,
  .game-menu > ul,
  .game-menu > ul > li,
  .game-menu > ul > li > .game-menu-option-label {
    height: 40px !important;
    line-height: 40px !important;
  }

  #game-scoreboard, .game-scoreboard {
    order: 2 !important;
    width: auto !important;
    height: 40px !important;
    border-top: none !important;
    margin: 0 6px 0 auto !important;
  }

  #saito-header .hamburger-container {
    order: 4 !important;
    margin-left: 4px !important;
  }

  .slots-score-pill .sb-word,
  .slots-sb-btn .sb-word,
  .pill-spins {
    display: none !important;
  }

  #casino-ticker-bar,
  .mobile-slot-controls {
    display: none !important;
  }

  #slots-container {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
    height: calc(100dvh - 40px) !important;
  }

  .casino-modal {
    padding: 46px 10px 8px 10px !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content,
  #cashout-modal .casino-modal-content,
  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    max-height: calc(100dvh - 56px) !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    top: calc(22px + 50dvh) !important;
    max-height: calc(100dvh - 56px) !important;
  }
}

/* Standard 13"/14" Laptop Viewports (961px - 1460px): Keep all 4 scoreboard pills & 4 buttons 100% unclipped */
@media (min-width: 961px) and (max-width: 1460px) {
  #saito-header {
    padding: 0 8px !important;
  }
  .game-menu > ul > li {
    padding: 0 9px !important;
    font-size: 12.5px !important;
  }
  #game-scoreboard, .game-scoreboard {
    margin: 0 8px 0 auto !important;
    gap: 5px !important;
  }
  .slots-score-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .slots-score-actions {
    gap: 5px !important;
    margin-left: 2px !important;
  }
  .slots-sb-btn {
    padding: 5px 9px !important;
    font-size: 10.5px !important;
  }
}

/* Interactive 1-Click SHA-256 Proof Verifier & Compact Mobile Cash-Out Receipt */
.pf-verify-wrap {
  margin: 10px 0;
  text-align: center;
}

.btn-verify-pf {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-verify-pf:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5));
  color: #ffffff;
  transform: translateY(-1px);
}

.pf-verify-badge {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.pf-verify-badge code {
  word-break: break-all;
}

.pf-verify-ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #d1fae5;
}

.pf-verify-pending {
  background: rgba(245, 176, 65, 0.14);
  border: 1px solid rgba(245, 176, 65, 0.45);
  color: #fde68a;
}

@media (max-width: 768px) {
  #cashout-modal .casino-modal-content {
    padding: 12px 14px !important;
    max-height: calc(100dvh - 102px) !important;
    overflow-y: auto !important;
  }
  #cashout-modal .cashout-hero {
    padding: 8px 0 !important;
    margin-bottom: 8px !important;
  }
  #cashout-modal .hero-amount {
    font-size: 26px !important;
  }
  #cashout-modal .receipt-grid {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  #cashout-modal .receipt-card {
    padding: 6px 10px !important;
  }
  #cashout-modal .pf-row {
    margin-bottom: 6px !important;
  }
  #cashout-modal .code-copy-row code {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
  }
}

/* ==========================================================================
   14. WIN PRESENTATION HUD BANNER, COIN BURST PARTICLES & CABINET AMBIENT GLOW
   ========================================================================== */

#slots-container.slots-state-spinning {
  box-shadow: inset 0 0 65px rgba(0, 242, 254, 0.14);
}

#slots-container.slots-state-winning {
  box-shadow: inset 0 0 85px rgba(245, 176, 65, 0.24), inset 0 0 32px rgba(0, 242, 254, 0.16);
}

#slots-container.slots-state-bigwin {
  box-shadow: inset 0 0 120px rgba(250, 204, 21, 0.42), inset 0 0 48px rgba(245, 158, 11, 0.28);
  animation: slotsCabinetPulse 0.85s ease-in-out infinite alternate;
}

#slots-container.slots-state-superwin {
  box-shadow: inset 0 0 145px rgba(244, 63, 94, 0.48), inset 0 0 70px rgba(250, 204, 21, 0.42), inset 0 0 35px rgba(217, 70, 239, 0.35);
  animation: slotsSuperCabinetPulse 0.65s ease-in-out infinite alternate;
}

#slots-container.slots-state-megawin {
  box-shadow: inset 0 0 175px rgba(250, 204, 21, 0.62), inset 0 0 90px rgba(168, 85, 247, 0.48), inset 0 0 45px rgba(0, 242, 254, 0.42);
  animation: slotsMegaCabinetPulse 0.5s ease-in-out infinite alternate;
}

#slots-container.slots-shake-big canvas {
  animation: slotsCabinetShakeBig 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

#slots-container.slots-shake-super canvas {
  animation: slotsCabinetShakeSuper 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

#slots-container.slots-shake-mega canvas {
  animation: slotsCabinetShakeMega 0.78s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

@keyframes slotsCabinetShakeBig {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
}

@keyframes slotsCabinetShakeSuper {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-6px, 4px); }
  30% { transform: translate(6px, -5px); }
  45% { transform: translate(-5px, -3px); }
  60% { transform: translate(5px, 4px); }
  75% { transform: translate(-3px, 2px); }
}

@keyframes slotsCabinetShakeMega {
  0%, 100% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-8px, 5px) scale(1.008); }
  25% { transform: translate(8px, -6px) scale(1.01); }
  38% { transform: translate(-7px, -4px) scale(1.006); }
  52% { transform: translate(7px, 5px) scale(1.008); }
  68% { transform: translate(-5px, 3px) scale(1.004); }
  84% { transform: translate(4px, -3px) scale(1.002); }
}

@keyframes slotsCabinetPulse {
  0% {
    box-shadow: inset 0 0 85px rgba(250, 204, 21, 0.28), inset 0 0 35px rgba(0, 242, 254, 0.18);
  }
  100% {
    box-shadow: inset 0 0 135px rgba(250, 204, 21, 0.48), inset 0 0 55px rgba(245, 158, 11, 0.32);
  }
}

@keyframes slotsSuperCabinetPulse {
  0% {
    box-shadow: inset 0 0 110px rgba(244, 63, 94, 0.36), inset 0 0 50px rgba(250, 204, 21, 0.32);
  }
  100% {
    box-shadow: inset 0 0 160px rgba(244, 63, 94, 0.56), inset 0 0 80px rgba(250, 204, 21, 0.52), inset 0 0 40px rgba(217, 70, 239, 0.38);
  }
}

@keyframes slotsMegaCabinetPulse {
  0% {
    box-shadow: inset 0 0 130px rgba(250, 204, 21, 0.45), inset 0 0 65px rgba(168, 85, 247, 0.38);
  }
  100% {
    box-shadow: inset 0 0 190px rgba(250, 204, 21, 0.72), inset 0 0 100px rgba(168, 85, 247, 0.58), inset 0 0 50px rgba(0, 242, 254, 0.48);
  }
}

#casino-ticker-bar.slots-state-winning,
#casino-ticker-bar.slots-state-bigwin,
#casino-ticker-bar.slots-state-superwin,
#casino-ticker-bar.slots-state-megawin {
  border-bottom-color: rgba(250, 204, 21, 0.65) !important;
  box-shadow: 0 4px 22px rgba(245, 176, 65, 0.28) !important;
}

/* ==========================================================================
   WIN CELEBRATION HUD BANNER & RADIAL COIN BURST OVERLAY (v25 First Layout)
   ========================================================================== */
.slots-win-hud-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -18px) scale(0.95);
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), top 0.25s ease;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.94) 0%, rgba(20, 28, 48, 0.96) 100%);
  border: 2px solid #f5b041;
  border-radius: 16px;
  padding: 10px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 28px rgba(245, 176, 65, 0.45), inset 0 0 18px rgba(245, 176, 65, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: min(820px, 95vw);
}

.slots-win-hud-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.slots-win-hud-banner.is-unlocked {
  top: 6px;
  padding: 7px 20px;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.90) 0%, rgba(20, 28, 48, 0.92) 100%);
}

.slots-win-hud-banner.is-big-win {
  border-color: #fde047;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.92), 0 0 42px rgba(250, 204, 21, 0.72), inset 0 0 24px rgba(250, 204, 21, 0.25);
}

.win-hud-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.win-hud-tier {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(202, 138, 4, 0.45) 100%);
  border: 1px solid rgba(250, 204, 21, 0.65);
  padding: 3px 11px;
  border-radius: 999px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

.slots-win-hud-banner.is-big-win .win-hud-tier {
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75);
}

.win-hud-amount {
  font-size: 24px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 18px rgba(250, 204, 21, 0.65);
}

.slots-win-hud-banner.is-big-win .win-hud-amount {
  font-size: 28px;
}

.win-hud-amount small {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-left: 4px;
}

.win-hud-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.win-line-chip {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--chip-color, #00f2fe);
  box-shadow: 0 0 10px color-mix(in srgb, var(--chip-color, #00f2fe) 35%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.win-line-chip b {
  color: #fde047;
  font-weight: 900;
  margin-left: 3px;
}

.win-line-chip.is-bonus {
  border-color: #c084fc;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35) 0%, rgba(192, 132, 252, 0.25) 100%);
  color: #f3e8ff;
}

.win-line-chip.is-more {
  border-color: #64748b;
  color: #cbd5e1;
}

/* Unified Bottom Casino Status Pill (Auto-Play Instructions, Free Spins, Auto-Spin, Win Lock) */
.slots-status-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 44;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.92) 0%, rgba(18, 25, 43, 0.95) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.42);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.72), 0 0 18px rgba(0, 242, 254, 0.16), inset 0 0 12px rgba(0, 242, 254, 0.08);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: min(760px, 95vw);
  font-family: inherit;
}

.slots-status-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.slots-status-pill .sp-badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  white-space: nowrap;
}

.slots-status-pill .sp-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.slots-status-pill .sp-main strong {
  color: #fde047;
  font-weight: 900;
}

.slots-status-pill .sp-counter {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 0 7px;
  border-radius: 999px;
  margin-left: 3px;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.slots-status-pill .sp-sep {
  color: rgba(148, 163, 184, 0.55);
  font-size: 11px;
}

.slots-status-pill .sp-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.slots-status-pill .sp-sub strong {
  color: #38bdf8;
  font-weight: 800;
}

/* Status Pill State Variants */
.slots-status-pill.is-freespins {
  border-color: rgba(192, 132, 252, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 24px rgba(168, 85, 247, 0.38), inset 0 0 14px rgba(192, 132, 252, 0.16);
}

.slots-status-pill.is-freespins .sp-badge {
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.45) 0%, rgba(234, 179, 8, 0.32) 100%);
  border-color: rgba(216, 180, 254, 0.7);
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.55);
}

.slots-status-pill.is-autospin {
  border-color: rgba(52, 211, 153, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.28), inset 0 0 12px rgba(52, 211, 153, 0.12);
}

.slots-status-pill.is-autospin .sp-badge {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
}

.slots-status-pill.is-winlock {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 24px rgba(250, 204, 21, 0.35), inset 0 0 14px rgba(250, 204, 21, 0.14);
}

.slots-status-pill.is-winlock .sp-badge {
  color: #fde047;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(250, 204, 21, 0.65);
}

.slots-status-pill.is-spinning {
  border-color: rgba(56, 189, 248, 0.45);
  opacity: 0.92;
}

/* Radial Coin & Sparkle Burst Layer */
#slots-coin-burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 42;
  overflow: hidden;
}

.slots-win-particle {
  position: absolute;
  left: 50%;
  top: 52%;
  opacity: 0;
  pointer-events: none;
  animation-name: slotsWinParticleBurst;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

.slots-win-particle.is-coin {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fef9c3 0%, #facc15 48%, #b45309 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.9);
}

.slots-win-particle.is-sparkle {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 3px;
  background: #00f2fe;
  box-shadow: 0 0 14px #00f2fe, 0 0 22px #fde047;
}

@keyframes slotsWinParticleBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--tx, 0px) * 0.45), calc(var(--ty, 0px) * 0.65)) scale(1.15) rotate(calc(var(--rot, 180deg) * 0.4));
  }
  70% {
    opacity: 0.95;
    transform: translate(calc(var(--tx, 0px) * 0.88), calc(var(--ty, 0px) * 0.88)) scale(1) rotate(calc(var(--rot, 180deg) * 0.8));
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + 90px)) scale(0.55) rotate(var(--rot, 180deg));
  }
}

/* Mobile Spin Button Locked State During Win Presentation */
.mob-btn-spin.is-win-locked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42) 0%, rgba(217, 119, 6, 0.55) 100%) !important;
  border-color: #fde047 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45) !important;
  cursor: not-allowed !important;
}

.mob-btn-spin.is-spinning {
  opacity: 0.72 !important;
  cursor: wait !important;
}

@media (max-width: 768px) {
  .slots-win-hud-banner {
    top: 4px;
    padding: 5px 10px;
    border-radius: 11px;
    gap: 3px;
    max-width: 94vw;
  }
  .slots-win-hud-banner.is-unlocked {
    top: 4px;
    padding: 4px 10px;
  }
  .win-hud-main {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .win-hud-tier,
  .slots-win-hud-banner.is-big-win .win-hud-tier {
    font-size: 10.5px;
    padding: 1.5px 7px;
    white-space: nowrap;
  }
  .win-hud-amount,
  .slots-win-hud-banner.is-big-win .win-hud-amount {
    font-size: 15px;
    white-space: nowrap;
  }
  .win-hud-amount small {
    font-size: 10px;
  }
  .win-hud-lines {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
    max-width: 90vw;
  }
  .win-line-chip {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
  .win-hud-lines .win-line-chip:nth-child(n+4):not(.is-bonus):not(.is-more) {
    display: none;
  }
  .slots-status-pill {
    bottom: 6px;
    padding: 4px 11px;
    gap: 6px;
    max-width: 96vw;
  }
  .slots-status-pill .sp-badge {
    font-size: 9px;
    padding: 1.5px 6px;
  }
  .slots-status-pill .sp-main {
    font-size: 10.5px;
  }
  .slots-status-pill .sp-counter {
    font-size: 11px;
    padding: 0 5px;
  }
  .slots-status-pill .sp-sep,
  .slots-status-pill .sp-sub {
    display: none;
  }
}

/* ==========================================================================
   SAITO SITE MESSAGE TOAST (INBOUND PAYMENT / CLIPBOARD CASINO TOAST PILL)
   ========================================================================== */
#site-message-wrapper {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 26px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 260px !important;
  max-width: min(520px, 92vw) !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(16, 28, 46, 0.96)) !important;
  border: 1px solid rgba(52, 211, 153, 0.58) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.82), 0 0 18px rgba(16, 185, 129, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ecfdf5 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  z-index: 9600 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

#site-message-wrapper.site-message-clickable,
#site-message-wrapper.message-clickable {
  pointer-events: auto !important;
  cursor: pointer !important;
}

#site-message-wrapper .site-message-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #a7f3d0 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 86vw !important;
}

#site-message-wrapper .site-message-message::before {
  content: "🪙";
  font-size: 14px;
  flex-shrink: 0;
}

#site-message-wrapper.fade-out {
  opacity: 0 !important;
  filter: opacity(0) !important;
  transform: translate(-50%, 8px) !important;
}

@media (max-width: 960px) {
  #site-message-wrapper {
    bottom: 76px !important;
    padding: 8px 15px !important;
    font-size: 12.5px !important;
    min-width: min(240px, 86vw) !important;
    max-width: 92vw !important;
  }
  #site-message-wrapper .site-message-message {
    font-size: 12.5px !important;
  }
}





/* Saito Neon Slots Styling - Ultra-Premium Cyberpunk / Las Vegas Neon Standard */
@import url("/saito/css-imports/saito-chat.css");

/* Suppress Saito Default Loader Overlays, Game & Chat menu items, & blank GameHUD2 box */
html.game.slots #game-loader-screen,
html.game.slots #saito-loader-container,
html.game.slots .scrollable-page,
html.game.slots .saito-splash-image,
html.game.slots .saito-splash-nav,
html.game.slots #game-hud2,
html.game.slots .game-hud2,
html.game.slots #hud-visual-menu,
html.game.slots #game-game,
html.game.slots #game-social,
html.game.slots #game-chat {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  background-image: url("/slots/png/casino.png") !important;
  background-color: #06070a !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: #fff;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
   1. STANDARD SAITO HEADER, GAMEMENU & GAMESCOREBOARD INTEGRATION
   ========================================================================== */
#saito-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 54px !important;
  min-height: 54px !important;
  background: rgba(8, 10, 16, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 18px !important;
  z-index: 3100 !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 242, 254, 0.12) !important;
}

#saito-header .saito-header-logo-wrapper,
#saito-header.game .saito-header-logo-wrapper {
  order: -2 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-right: 0.85rem !important;
  cursor: pointer !important;
}

#saito-header .saito-header-logo,
#saito-header.game .saito-header-logo {
  width: 155px !important;
  height: auto !important;
  max-height: 30px !important;
  cursor: pointer !important;
}

#saito-header .game-menu,
#game-menu,
.game-menu {
  order: -1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: 54px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1002 !important;
}

.game-menu > ul {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 2px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.game-menu > ul > li {
  position: relative !important;
  width: auto !important;
  min-width: unset !important;
  max-width: none !important;
  height: 54px !important;
  line-height: 54px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.game-menu > ul > li.game-menu-mobile-header {
  display: none !important;
}

.game-menu > ul > li > .game-menu-option-label {
  height: 54px !important;
  line-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.game-menu > ul > li:hover {
  color: #00f2fe !important;
  background: rgba(0, 242, 254, 0.12) !important;
}

.game-menu .game-menu-sub-options,
.game-menu > ul > li > ul {
  position: absolute !important;
  top: 54px !important;
  left: 0 !important;
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  min-width: 225px !important;
  width: max-content !important;
  max-width: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  z-index: 1010 !important;
}

.game-menu .game-menu-sub-sub-options {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  min-width: 215px !important;
  width: max-content !important;
  max-width: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  z-index: 1015 !important;
}

.game-menu ul.game-menu-sub-options li,
.game-menu ul.game-menu-sub-sub-options li,
.game-menu > ul > li > ul > li {
  position: relative !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

.game-menu ul.game-menu-sub-options li:last-child,
.game-menu ul.game-menu-sub-sub-options li:last-child {
  border-bottom: none !important;
}

.game-menu .game-menu-sub-option > .game-menu-option-label,
.game-menu .game-menu-sub-sub-option > .game-menu-option-label {
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 16px !important;
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.game-menu ul.game-menu-sub-options li:hover,
.game-menu ul.game-menu-sub-sub-options li:hover,
.game-menu > ul > li > ul > li:hover {
  background: rgba(0, 242, 254, 0.18) !important;
  color: #00f2fe !important;
}

#game-scoreboard, .game-scoreboard {
  order: 1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 12px 0 auto !important;
  height: 54px !important;
  z-index: 1001 !important;
}

#saito-header .hamburger-container {
  order: 2 !important;
}

.slots-score-pill {
  background: rgba(15, 18, 26, 0.9);
  border-radius: 18px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.slots-score-pill .sb-label {
  color: #94a3b8;
}

.pill-credits {
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.pill-credits .val {
  color: #00f2fe;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.pill-saito {
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.pill-saito .val {
  color: #10b981;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.pill-wallet {
  border: 1px solid rgba(245, 176, 65, 0.45);
  box-shadow: 0 0 10px rgba(245, 176, 65, 0.15);
}

.pill-wallet .val {
  color: #f5b041;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(245, 176, 65, 0.5);
}

.pill-spins {
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.pill-spins .val {
  color: #c4b5fd;
  font-weight: 800;
}

.slots-score-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.slots-sb-btn {
  border-radius: 18px !important;
  padding: 6px 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: unset !important;
  height: 32px !important;
  line-height: 1 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-guide {
  background: rgba(139, 92, 246, 0.18) !important;
  border: 1px solid #8b5cf6 !important;
  color: #ddd6fe !important;
}

.btn-guide:hover {
  background: rgba(139, 92, 246, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5) !important;
}

.btn-pf {
  background: rgba(0, 242, 254, 0.15) !important;
  border: 1px solid #00f2fe !important;
  color: #00f2fe !important;
}

.btn-pf:hover {
  background: rgba(0, 242, 254, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.6) !important;
}

.btn-rebuy-top {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid #10b981 !important;
  color: #6ee7b7 !important;
}

.btn-rebuy-top:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #fff !important;
}

.btn-cashout {
  background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%) !important;
  border: 1px solid #f39c12 !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(245, 176, 65, 0.45) !important;
}

.btn-cashout:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 20px rgba(245, 176, 65, 0.85) !important;
}

/* ==========================================================================
   2. CASINO STATUS TICKER BAR
   ========================================================================== */
#casino-ticker-bar {
  position: fixed;
  top: 54px;
  left: 0;
  width: 100%;
  height: 28px;
  background: rgba(6, 10, 18, 0.96);
  border-bottom: 1px solid rgba(0, 242, 254, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 999;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ticker-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-message {
  color: #f8fafc !important;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.35);
  text-align: left;
  flex: 1;
  margin: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-stats {
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-divider {
  color: #444;
}

/* ==========================================================================
   3. SLOTS CANVAS CONTAINER
   ========================================================================== */
#slots-container {
  position: absolute !important;
  top: 82px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 82px) !important;
  height: calc(100dvh - 82px) !important;
  max-height: calc(100dvh - 82px) !important;
  display: block !important;
  overflow: hidden !important;
  z-index: 10;
}

#slots-container canvas {
  display: block;
  box-shadow: none;
  border-radius: 0;
  touch-action: manipulation;
}

/* ==========================================================================
   4. MODALS (STRICT PX & GLASSMORPHISM)
   ========================================================================== */
.casino-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 54px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500 !important;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.casino-modal-content,
.guide-modal-content.rules-overlay {
  background: rgba(14, 17, 24, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  width: 620px;
  max-width: 92vw;
  max-height: calc(100dvh - 80px);
  overflow: hidden !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.2);
  padding: 20px 24px;
  display: flex !important;
  flex-direction: column !important;
}

.casino-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.casino-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.75);
}

html body .casino-modal-content > .casino-modal-body,
html body .casino-modal-content > .guide-body,
#guide-modal .casino-modal-body,
#guide-modal .guide-body,
#pf-modal .casino-modal-body,
#rebuy-modal .casino-modal-body,
#cashout-modal .casino-modal-body,
.casino-modal-body,
.guide-body {
  flex: 1 1 0% !important;
  flex-shrink: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

.casino-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.btn-modal-action,
.casino-modal-footer .saito-button-primary,
.slots-overlay-footer .saito-button-primary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px !important;
  padding: 9px 18px !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.btn-modal-action:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-modal-action.btn-gold {
  background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%);
  color: #000;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 176, 65, 0.4);
}

.btn-modal-action.btn-gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.7);
}

/* ==========================================================================
   5. GUIDE MODAL (TABS & CARDS)
   ========================================================================== */
.guide-modal-content {
  width: min(820px, 95vw) !important;
  max-width: 820px !important;
}

.guide-tabs,
.slots-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  flex-shrink: 0 !important;
}

.guide-tab,
.slots-guide-tabs .guide-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa;
  border-radius: 8px;
  min-height: 30px !important;
  line-height: 1.25 !important;
  padding: 6px 12px !important;
  flex-shrink: 0 !important;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.guide-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.guide-tab-pane {
  display: none;
}

.guide-tab-pane.active {
  display: block;
}

.guide-tab-pane h4 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #f5b041;
}

.guide-tab-pane p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.guide-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.45;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.guide-card .g-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.guide-card h5 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #fff;
}

.guide-card p {
  font-size: 11px;
  color: #aaa;
  line-height: 1.4;
  margin: 0;
}

.entropy-box {
  background: #080a0e;
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0 14px 0;
  text-align: center;
}

.entropy-box code {
  color: #00f2fe;
  font-size: 13px;
  font-weight: 700;
}

.guide-list {
  padding-left: 20px;
  margin: 0;
  font-size: 12px;
  color: #ccc;
  line-height: 1.7;
}

.symbols-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sym-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

/* ==========================================================================
   6. PROVABLY FAIR MODAL SPECIFICS
   ========================================================================== */
.pf-row {
  margin-bottom: 14px;
}

.pf-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-copy-row code, .pf-formula {
  background: #07090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  color: #00f2fe;
  font-family: monospace;
  font-size: 12px;
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
}

.highlight {
  font-size: 16px;
  font-weight: 800;
  color: #f5b041;
}

.highlight-cyan {
  font-size: 14px;
  font-weight: 700;
  color: #00f2fe;
}

.pf-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* ==========================================================================
   7. CASH OUT RECEIPT MODAL (CELEBRATORY & DUAL ACTIONS)
   ========================================================================== */
.celebratory-content {
  border-color: rgba(245, 176, 65, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 176, 65, 0.25);
}

.celebratory-content h3 {
  color: #f5b041;
  text-shadow: 0 0 12px rgba(245, 176, 65, 0.5);
}

.cashout-hero {
  text-align: center;
  background: radial-gradient(circle at center, rgba(245, 176, 65, 0.15) 0%, transparent 70%);
  padding: 16px 0;
  margin-bottom: 16px;
  border-radius: 12px;
}

.hero-label {
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 1px;
}

.hero-amount {
  font-size: 36px;
  font-weight: 900;
  color: #f5b041;
  text-shadow: 0 0 20px rgba(245, 176, 65, 0.7);
  margin-top: 4px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.receipt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rc-label {
  font-size: 12px;
  color: #888;
}

.rc-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.highlight-green {
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.receipt-status {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #10b981;
  text-align: center;
  font-weight: 600;
}

.dual-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.btn-rebuy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-rebuy:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
}

.btn-arcade-return {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.btn-arcade-return:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   8. BUY-IN / STAKE SELECTION MODAL & STRICT WALLET CHECK UI
   ========================================================================== */
.rebuy-content {
  width: 560px;
}

.wallet-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 22, 34, 0.95);
  border: 1px solid rgba(245, 176, 65, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(245, 176, 65, 0.12);
}

.wb-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wb-title,
.wb-label {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.6px;
}

.wb-addr,
.wb-address {
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.wb-amount {
  font-size: 20px;
  font-weight: 900;
  color: #f5b041;
  text-shadow: 0 0 10px rgba(245, 176, 65, 0.45);
}

.insufficient-banner,
.insufficient-funds-alert {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.45;
}

.rebuy-subtitle,
#rebuy-modal-desc {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0 0 12px 0;
}

.stake-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

:root:root:root body #rebuy-modal .btn-stake-tier,
:root:root:root body #rebuy-modal .btn-stake-tier:disabled,
.btn-stake-tier {
  background: rgba(16, 24, 40, 0.92) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.55) !important;
  border-radius: 12px !important;
  padding: 15px 14px !important;
  cursor: pointer !important;
  text-align: center !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(0, 242, 254, 0.08) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier:hover:not(.disabled-stake):not(:disabled),
.btn-stake-tier:hover:not(.disabled-stake):not(:disabled) {
  background: rgba(0, 242, 254, 0.18) !important;
  border-color: #00f2fe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.45) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.featured:not(.disabled-stake),
:root:root:root body #rebuy-modal .btn-stake-tier.featured:disabled:not(.disabled-stake):not(.is-confirming-stake),
.btn-stake-tier.featured:not(.disabled-stake) {
  border-color: #f5b041 !important;
  background: rgba(245, 176, 65, 0.16) !important;
  box-shadow: 0 4px 16px rgba(245, 176, 65, 0.22), inset 0 0 12px rgba(245, 176, 65, 0.1) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.featured:hover:not(.disabled-stake):not(:disabled),
.btn-stake-tier.featured:hover:not(.disabled-stake):not(:disabled) {
  box-shadow: 0 0 22px rgba(245, 176, 65, 0.55) !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.is-confirming-stake,
:root:root:root body #rebuy-modal .btn-stake-tier.featured.is-confirming-stake,
.btn-stake-tier.is-confirming-stake {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45), inset 0 0 14px rgba(16, 185, 129, 0.15) !important;
  opacity: 1 !important;
  cursor: wait !important;
  transform: none !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.is-unselected-stake,
:root:root:root body #rebuy-modal .btn-stake-tier:disabled:not(.is-confirming-stake):not(.disabled-stake),
.btn-stake-tier.is-unselected-stake,
.btn-stake-tier:disabled:not(.is-confirming-stake):not(.disabled-stake) {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

:root:root:root body #rebuy-modal .btn-stake-tier.disabled-stake,
:root:root:root body #rebuy-modal .btn-stake-tier.disabled-stake:disabled,
.btn-stake-tier.disabled-stake {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(15, 18, 26, 0.6) !important;
  transform: none !important;
  box-shadow: none !important;
}

.st-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #f5b041;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.st-saito {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 3px;
}

.st-credits {
  font-size: 12px !important;
  color: #00f2fe !important;
  font-weight: 700 !important;
  margin-bottom: 4px;
}

.st-status {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981 !important;
}

.btn-stake-tier.disabled-stake .st-status {
  color: #f87171 !important;
}

.demo-mode-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 8px 0;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.demo-select-row {
  margin-top: 4px;
}

.btn-demo-tier {
  width: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32) 0%, rgba(0, 242, 254, 0.24) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.65) !important;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: center;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

.btn-demo-tier strong {
  color: #00f2fe !important;
  font-weight: 800 !important;
}

.btn-demo-tier:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.48) 0%, rgba(0, 242, 254, 0.38) 100%) !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45) !important;
  transform: translateY(-1px);
}

.demo-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.demo-sub {
  font-size: 11px;
  color: #cbd5e1;
}

/* ==========================================================================
   9. STANDARD SAITO OVERLAYS, STATS TABLES & GAME LOG STYLING
   ========================================================================== */
.saito-overlay-backdrop {
  z-index: 3300 !important;
}

.saito-overlay {
  z-index: 3310 !important;
}

.saito-overlay:has(.slots-rules-overlay),
.saito-overlay:has(.solitaire-stats-overlay) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 3310 !important;
  background: transparent !important;
  width: min(760px, 95vw) !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
  overflow: visible !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox,
.saito-overlay:has(.solitaire-stats-overlay) .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: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3350 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.75) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox:hover,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox:hover {
  background: #ef4444 !important;
  transform: scale(1.06) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.solitaire-stats-overlay) .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(.slots-rules-overlay) .saito-overlay-closebox::before,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox::after,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.saito-overlay:has(.slots-rules-overlay) .saito-overlay-closebox-btn,
.saito-overlay:has(.solitaire-stats-overlay) .saito-overlay-closebox-btn {
  display: none !important;
}

.saito-overlay > .saito-overlay-panel.slots-rules-overlay,
.saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
.slots-rules-overlay,
.solitaire-stats-overlay {
  background: rgba(12, 16, 26, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 16px !important;
  color: #f8fafc !important;
  padding: 1.8rem 1.6rem !important;
  box-sizing: border-box !important;
  width: min(760px, 94vw) !important;
  max-width: 780px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.2) !important;
}

.slots-rules-overlay h1,
.solitaire-stats-overlay h1,
.solitaire-stats-overlay h3 {
  color: #f5b041 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
  padding-right: 48px !important;
  text-shadow: none !important;
  letter-spacing: 0.3px !important;
}

.slots-overlay-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.slots-rules-header p {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 0 !important;
}

.slots-rules-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 680px) {
  .slots-rules-grid {
    grid-template-columns: 1fr !important;
  }
}

.slots-rules-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(0, 242, 254, 0.22) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

.slots-rules-card h2 {
  color: #00f2fe !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
}

.slots-rules-card p {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 0 0 6px 0 !important;
}

.slots-rules-list,
.slots-rules-overlay ul {
  margin: 0 !important;
  padding-left: 18px !important;
  color: #e2e8f0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.slots-rules-list li,
.slots-rules-overlay ul li {
  margin-bottom: 4px !important;
}

.solitaire-stats-overlay hr {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin: 0 0 14px 0 !important;
}

.slots-rules-overlay > h2 {
  color: #00f2fe !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  margin: 4px 0 8px 0 !important;
}

.slots-code-banner {
  background: #07090d;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  text-align: center;
  color: #00f2fe;
  font-family: monospace;
  font-size: 11.5px;
}

.saito-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 11, 18, 0.92);
}

.saito-table-header {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  background: rgba(0, 242, 254, 0.16);
  color: #00f2fe !important;
  font-weight: 800;
  font-size: 12.5px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  align-items: center;
}

.saito-table-header:has(> .saito-table-row) {
  display: block;
  padding: 0;
}

.saito-table-header > .saito-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  padding: 8px 14px;
  color: #00f2fe !important;
  font-weight: 800;
  font-size: 12.5px;
  align-items: center;
}

.saito-table-body .saito-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.saito-table-body .saito-table-row div {
  color: #f1f5f9 !important;
  font-weight: 600;
}

.saito-table-body .saito-table-row .saito-table-label {
  color: #94a3b8 !important;
  font-weight: 700;
}

#pf-modal .saito-table-body .saito-table-row {
  grid-template-columns: 1fr auto;
}

.saito-table-body .saito-table-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

#log-wrapper:not(.log-lock) {
  right: -450px !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#log-wrapper.log-lock {
  position: fixed !important;
  top: 82px !important;
  right: 0 !important;
  width: min(380px, 94vw) !important;
  height: calc(100dvh - 82px) !important;
  background: rgba(10, 14, 22, 0.98) !important;
  border-left: 1px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: -10px 10px 35px rgba(0, 0, 0, 0.9) !important;
  z-index: 2650 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  #log-wrapper.log-lock {
    top: 104px !important;
    height: calc(100dvh - 168px) !important;
  }
}

.slots-log-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  flex-shrink: 0 !important;
}

.slots-log-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #00f2fe !important;
  letter-spacing: 0.4px !important;
}

.slots-log-close {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.22) !important;
  border: 1px solid rgba(239, 68, 68, 0.65) !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.slots-log-close:hover {
  background: #ef4444 !important;
}

#log-wrapper #log,
#game-log,
.game-log {
  flex: 1 1 auto !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  overflow-y: auto !important;
  background: transparent !important;
  border: none !important;
  color: #e2e8f0 !important;
  font-family: 'Segoe UI', Roboto, monospace !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  padding: 12px 16px !important;
}

#log-wrapper #log *,
#game-log *,
.game-log * {
  color: #e2e8f0 !important;
}

.slots-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(0, 242, 254, 0.25) !important;
}

.slots-wallet-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(0, 242, 254, 0.14) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  color: #00f2fe !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.slots-wallet-back-btn:hover {
  background: rgba(0, 242, 254, 0.26) !important;
}

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

/* ==========================================================================
   10. SHARE -> RECORD GAME WIZARD STYLING (#screenrecord-wizard)
   ========================================================================== */
#screenrecord-wizard,
.screenrecord-wizard {
  width: min(480px, 92vw) !important;
  padding: 26px 28px !important;
  background: rgba(14, 18, 28, 0.98) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.22) !important;
  color: #f8fafc !important;
}

.screenrecord-wizard-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #00f2fe !important;
  text-align: center !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: 0.4px !important;
}

.screenrecord-wizard .record-mode {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin: 0 !important;
  font-size: 16px !important;
}

.screenrecord-wizard .record-mode-option {
  margin: 0 !important;
  padding: 24px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.screenrecord-wizard .record-mode-option:hover {
  background: rgba(0, 242, 254, 0.14) !important;
  border-color: #00f2fe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3) !important;
}

.screenrecord-wizard .record-mode-option i {
  font-size: 38px !important;
  padding: 0 !important;
  min-width: unset !important;
  color: #00f2fe !important;
  line-height: 1 !important;
}

.screenrecord-wizard .record-mode-option label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  text-align: center !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* ==========================================================================
   11. DRAGGABLE, RESIZABLE & NON-OVERLAPPING CHAT WINDOWS (Desktop > 600px)
       & FULL-SCREEN MOBILE CHAT OVERLAY (Mobile <= 600px)
   ========================================================================== */
@media screen and (min-width: 601px) {
  .chat-container {
    position: fixed;
    right: 20px;
    bottom: 16px;
    width: 370px;
    height: 450px;
    min-width: 280px;
    min-height: 220px;
    max-width: 92vw;
    max-height: calc(100vh - 96px);
    background: rgba(12, 16, 26, 0.97) !important;
    border: 1px solid rgba(0, 242, 254, 0.45) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.92), 0 0 22px rgba(0, 242, 254, 0.18) !important;
    color: #f1f5f9 !important;
    z-index: 2600;
    resize: both !important;
    overflow: hidden !important;
    transition: none !important;
    display: grid !important;
    grid-template-rows: 42px minmax(0, 1fr) auto !important;
  }

  .chat-container.minimized {
    height: 42px !important;
    min-height: 42px !important;
    resize: none !important;
    grid-template-rows: 42px !important;
  }

  .chat-container .chat-header {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-bottom: 1px solid rgba(0, 242, 254, 0.28) !important;
    color: #00f2fe !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: move !important;
    user-select: none !important;
  }

  .chat-container .chat-group-name,
  .chat-container .chat-header .saito-address {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #00f2fe !important;
  }

  .chat-container .chat-header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .chat-container .chat-header-nav i {
    font-size: 13px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
  }

  .chat-container .chat-header-nav i:hover {
    color: #00f2fe !important;
  }

  .chat-container .chat-body {
    font-size: 13px !important;
    padding: 10px 12px !important;
    color: #e2e8f0 !important;
    overflow-y: auto !important;
    background: rgba(10, 14, 22, 0.9) !important;
  }

  .chat-container .chat-footer {
    padding: 8px 10px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-top: 1px solid rgba(0, 242, 254, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .chat-container .chat-footer .text-input,
  .chat-container .chat-footer input,
  .chat-container .chat-footer textarea {
    font-size: 13px !important;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    min-height: 32px !important;
  }

  .chat-manager-overlay {
    position: fixed;
    left: 16px;
    top: 58px;
    right: auto;
    bottom: auto;
    width: 320px;
    min-width: 260px;
    max-width: 90vw;
    max-height: calc(100vh - 80px);
    background: rgba(12, 16, 26, 0.98) !important;
    border: 1px solid rgba(0, 242, 254, 0.45) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.92), 0 0 22px rgba(0, 242, 254, 0.18) !important;
    z-index: 2610;
    resize: both !important;
    overflow: hidden !important;
    transition: none !important;
    color: #f1f5f9 !important;
  }

  .chat-manager-overlay .chat-manager-header,
  .chat-manager-overlay .saito-sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: rgba(6, 9, 15, 0.98) !important;
    border-bottom: 1px solid rgba(0, 242, 254, 0.28) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #00f2fe !important;
    cursor: move !important;
  }

  .chat-manager-overlay .chat-manager-list {
    padding: 8px !important;
    min-height: 140px !important;
    max-height: 360px !important;
    overflow-y: auto !important;
  }

  .chat-manager-overlay .saito-user {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    cursor: pointer !important;
  }

  .chat-manager-overlay .saito-user:hover {
    background: rgba(0, 242, 254, 0.12) !important;
  }

  .chat-manager-overlay .saito-identicon-box,
  .chat-manager-overlay .saito-identicon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  .chat-manager-overlay .saito-address {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
  }

  .chat-manager-overlay .saito-userline {
    font-size: 12px !important;
    color: #94a3b8 !important;
  }
}

@media screen and (max-width: 600px) {
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header {
    min-height: 48px !important;
    height: 48px !important;
    flex-wrap: nowrap !important;
  }

  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header #game-menu,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header .game-menu,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header #game-scoreboard,
  body:has(.chat-manager-overlay[style*="visibility: visible"]) #saito-header .game-scoreboard {
    display: none !important;
  }

  .chat-manager-overlay {
    position: fixed !important;
    top: var(--chat-manager-overlay-top, 48px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: var(--saito-background, #0f0f12) !important;
    z-index: 3050 !important;
  }

  .chat-manager-overlay[style*="visibility: hidden"],
  .chat-manager-overlay[style*="visibility:hidden"],
  .chat-manager-overlay[style*="display: none"],
  .chat-manager-overlay[style*="display:none"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .chat-manager-overlay[style*="visibility: hidden"] *,
  .chat-manager-overlay[style*="visibility:hidden"] * {
    visibility: hidden !important;
  }

  .chat-container {
    z-index: 3150 !important;
  }

  .chat-container:not(.minimized) {
    height: var(--chat-viewport-height, 100dvh) !important;
    max-height: var(--chat-viewport-height, 100dvh) !important;
    min-height: var(--chat-viewport-height, 100dvh) !important;
    width: 100vw !important;
    top: var(--chat-viewport-top, 0px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}

/* ==========================================================================
   12. MOBILE-FRIENDLY RESPONSIVE LAYOUT & TOUCH CONTROL DECK
   ========================================================================== */
.mobile-slot-controls {
  display: none;
}

/* Ensure hamburger toggle button is always interactive on Desktop, Tablet, Mobile Portrait & Landscape */
#saito-header.game #saito-header-menu-toggle,
#saito-header #saito-header-menu-toggle,
#saito-header-menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 3160 !important;
}

/* Ensure closed hamburger QR drawer is never visible on screen unless .show-menu is active */
#saito-header.game .saito-header-hamburger-contents:not(.show-menu),
#saito-header .saito-header-hamburger-contents:not(.show-menu),
.saito-header-hamburger-contents:not(.show-menu) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#saito-header.game .saito-header-hamburger-contents.show-menu,
#saito-header .saito-header-hamburger-contents.show-menu,
.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: 54px !important;
  right: 0 !important;
  left: auto !important;
  width: min(400px, 96vw) !important;
  height: calc(100dvh - 54px) !important;
  max-height: calc(100dvh - 54px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--saito-card, rgba(12, 16, 26, 0.98)) !important;
  color: var(--saito-foreground, #e7e9ea) !important;
  border-left: 1px solid rgba(0, 242, 254, 0.35) !important;
  border-radius: 0 0 0 12px !important;
  box-shadow: -10px 14px 40px rgba(0, 0, 0, 0.9) !important;
  z-index: 3150 !important;
}

#saito-header.game .saito-header-backdrop.menu-visible,
#saito-header .saito-header-backdrop.menu-visible,
.saito-header-backdrop.menu-visible {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 54px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100dvh - 54px) !important;
  z-index: 3140 !important;
}

/* Keep Game, Info, Chat, Share inline in top header instead of Saito's legacy offscreen drawer */
#saito-header .game-menu,
#game-menu,
.game-menu,
.game-menu.mobile-saito-visible {
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

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

.game-menu .game-menu-mobile-toggle,
.game-menu-mobile-header,
.game-menu-accordion-icon,
.mobile-log-tab,
#game-share,
#sub-menu-game-share {
  display: none !important;
}

/* Keep closed game-log completely off-screen until opened via Info -> Log */
#log-wrapper:not(.log-lock) {
  right: -110vw !important;
  display: none !important;
}

@media (max-width: 1360px) {
  #saito-header {
    height: auto !important;
    min-height: 78px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 4px 8px !important;
    gap: 2px 4px !important;
    align-items: center !important;
  }

  .casino-modal {
    padding: 86px 8px 14px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content {
    max-height: calc(100dvh - 102px) !important;
    overflow-y: auto !important;
  }

  .saito-overlay-backdrop {
    z-index: 3300 !important;
  }

  .saito-overlay {
    z-index: 3310 !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    top: calc(43px + 50dvh) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    max-height: calc(100dvh - 102px) !important;
    z-index: 3310 !important;
  }

  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    max-height: calc(100dvh - 102px) !important;
  }

  #saito-header.game .saito-header-hamburger-contents.show-menu,
  #saito-header .saito-header-hamburger-contents.show-menu,
  .saito-header-hamburger-contents.show-menu {
    top: 78px !important;
    right: 0 !important;
    left: auto !important;
    width: min(400px, 100vw) !important;
    height: calc(100dvh - 78px) !important;
    max-height: calc(100dvh - 78px) !important;
  }

  #saito-header.game .saito-header-backdrop.menu-visible,
  #saito-header .saito-header-backdrop.menu-visible,
  .saito-header-backdrop.menu-visible {
    top: 78px !important;
    height: calc(100dvh - 78px) !important;
  }

  #saito-header .saito-header-logo-wrapper,
  #saito-header.game .saito-header-logo-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    transform: none !important;
    width: 92px !important;
    height: 32px !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  #saito-header .saito-header-logo,
  #saito-header.game .saito-header-logo {
    width: 118px !important;
    max-width: none !important;
    height: 22.5px !important;
    max-height: 22.5px !important;
  }

  #saito-header .game-menu,
  #game-menu,
  .game-menu {
    display: flex !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: calc(100vw - 148px) !important;
  }

  #game-game,
  #game-social,
  #game-chat {
    display: none !important;
  }

  /* On Mobile, keep ONLY Session Statistics and Toggle Game Log in Game Info dropdown */
  #game-menu #game-info ul.game-menu-sub-options > li#game-rules,
  #game-menu #game-info ul.game-menu-sub-options > li#game-paytable,
  #game-menu #game-info ul.game-menu-sub-options > li#game-pf,
  #game-menu #game-info ul.game-menu-sub-options > li#game-security,
  #game-menu #game-info ul.game-menu-sub-options > li#game-terms {
    display: none !important;
  }

  .game-menu > ul {
    display: flex !important;
    flex-direction: row !important;
    height: 36px !important;
    gap: 2px !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .game-menu > ul > li {
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 9px !important;
    font-size: 12.5px !important;
    border-bottom: none !important;
  }

  .game-menu > ul > li > .game-menu-option-label {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    width: auto !important;
  }

  #game-menu-fullscreen {
    display: none !important;
  }

  .game-menu .game-menu-sub-options,
  .game-menu > ul > li > ul {
    position: absolute !important;
    top: 36px !important;
    left: 0 !important;
    min-width: 195px !important;
    max-width: 86vw !important;
    background: rgba(12, 16, 26, 0.98) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92) !important;
  }

  #game-share .game-menu-sub-options,
  #game-share > ul {
    left: 0 !important;
    right: auto !important;
  }

  .game-menu .game-menu-sub-sub-options {
    position: static !important;
    left: 0 !important;
    top: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
    border-top: 1px solid rgba(0, 242, 254, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(6, 9, 16, 0.96) !important;
    padding-left: 10px !important;
  }

  #saito-header .hamburger-container {
    order: 2 !important;
    margin-left: auto !important;
  }

  #saito-header.game #saito-header-menu-toggle,
  #saito-header-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 32px !important;
    height: 32px !important;
    margin-left: auto !important;
  }

  #saito-header.game #saito-header-menu-toggle .fa-bars,
  #saito-header-menu-toggle .fa-bars {
    border: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  /* Row 2 of mobile header: Compact Scoreboard */
  #game-scoreboard, .game-scoreboard {
    order: 3 !important;
    width: 100% !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  #game-scoreboard::-webkit-scrollbar {
    display: none;
  }

  .slots-score-pill {
    padding: 3px 7px !important;
    font-size: 11px !important;
    gap: 3px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .slots-score-actions {
    gap: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .slots-sb-btn {
    padding: 3px 8px !important;
    font-size: 10px !important;
    min-height: 0 !important;
    height: 26px !important;
    max-height: 26px !important;
    line-height: 1 !important;
    border-radius: 13px !important;
  }

  .slots-pill-btn {
    min-height: 0 !important;
    height: 26px !important;
    width: 28px !important;
    line-height: 1 !important;
  }

  /* Ticker bar sits directly under the 2-row mobile header */
  #casino-ticker-bar {
    top: 80px !important;
    height: 24px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(6, 10, 18, 0.98) !important;
  }

  .ticker-indicator {
    font-size: 9.5px !important;
    gap: 4px !important;
  }

  .ticker-message {
    margin: 0 6px !important;
    color: #f8fafc !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  /* Slot machine container sits between ticker bar (104px) and mobile touch deck (64px) */
  #slots-container {
    top: 104px !important;
    height: calc(100vh - 168px) !important;
    height: calc(100dvh - 168px) !important;
  }

  /* Symmetric 5-Column Bottom Mobile Touch Control Deck:
     [ AUDIO ] | [ BET ] | [ SPIN (Centered 50%) ] | [ STAKE ] | [ SETTLE ] */
  .mobile-slot-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.32fr 1fr 1fr !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: rgba(8, 11, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 242, 254, 0.14);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
    align-items: stretch;
    gap: 6px;
    z-index: 1005;
    user-select: none;
    -webkit-user-select: none;
  }

  .mob-ctrl-btn {
    background: rgba(18, 24, 36, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 12px;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .mob-ctrl-btn:active {
    transform: scale(0.95);
  }

  .mob-lbl {
    font-size: 8px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
  }

  .mob-val {
    font-size: 11px;
    font-weight: 800;
    color: #00f2fe;
    line-height: 1.25;
    white-space: nowrap;
  }

  .mob-btn-sound {
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.15);
  }

  .mob-btn-sound .mob-val {
    color: #ddd6fe;
  }

  .mob-btn-sound.is-muted {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
  }

  .mob-btn-sound.is-muted .mob-val {
    color: #94a3b8;
  }

  .mob-btn-bet {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(0, 242, 254, 0.12);
  }

  .mob-btn-spin {
    padding: 4px 8px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    border: 2px solid #fef08a !important;
    color: #090d16 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    box-shadow: 0 0 18px rgba(245, 176, 65, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  .mob-spin-text {
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #090d16;
  }

  .mob-btn-buyin {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.14);
  }

  .mob-btn-buyin .mob-val {
    color: #6ee7b7;
    font-size: 10.5px;
  }

  .mob-btn-cashout {
    border-color: rgba(245, 176, 65, 0.65);
    background: rgba(245, 176, 65, 0.16);
  }

  .mob-btn-cashout .mob-val {
    color: #f5b041;
    font-size: 10.5px;
  }
}

/* Narrow Mobile Phones (<= 768px): Ultra-clean single-glance scoreboard & modals */
@media (max-width: 768px) {
  .slots-pill-btn {
    min-height: 0 !important;
    height: 26px !important;
    width: 28px !important;
    line-height: 1 !important;
  }

  .slots-sb-btn {
    min-height: 0 !important;
    height: 26px !important;
    max-height: 26px !important;
    line-height: 1 !important;
  }
  #saito-header.game .saito-header-hamburger-contents.show-menu,
  #saito-header .saito-header-hamburger-contents.show-menu,
  .saito-header-hamburger-contents.show-menu {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-radius: 0 !important;
  }

  .slots-score-pill .sb-word,
  .slots-sb-btn .sb-word {
    display: none !important;
  }

  /* Spins is already shown in ticker bar; Buy-In & Cash Out are on the bottom touch bar */
  .pill-spins,
  #game-scoreboard .btn-rebuy-top,
  #game-scoreboard .btn-cashout {
    display: none !important;
  }

  .ticker-stats {
    display: none !important;
  }

  /* Responsive Modals on Mobile */
  .casino-modal {
    padding: 86px 8px 14px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content,
  .guide-modal-content.rules-overlay {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: calc(100dvh - 102px) !important;
    padding: 12px 14px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0 !important;
    padding: 0 !important;
    top: calc(43px + 50dvh) !important;
    max-height: calc(100dvh - 102px) !important;
  }

  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 102px) !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    gap: 8px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .casino-modal-body,
  .slots-modal-body {
    padding: 0 !important;
    gap: 8px !important;
  }

  .casino-modal-header {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    gap: 8px !important;
  }

  .casino-modal-footer {
    padding-top: 8px !important;
    margin-top: 8px !important;
  }

  .casino-modal-header h3 {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .slots-rules-overlay h1,
  .solitaire-stats-overlay h1 {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    padding-right: 46px !important;
  }

  .wallet-balance-banner {
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
  }

  .wb-amount {
    font-size: 15px !important;
  }

  .insufficient-banner,
  .insufficient-funds-alert {
    padding: 7px 10px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .rebuy-subtitle,
  #rebuy-modal-desc {
    font-size: 11.5px !important;
    margin: 0 0 6px 0 !important;
  }

  .stake-select-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .btn-stake-tier {
    padding: 7px 6px !important;
    min-height: 0 !important;
  }

  .st-saito {
    font-size: 14.5px !important;
  }

  .btn-demo-tier {
    padding: 9px 12px !important;
    min-height: 0 !important;
  }

  .rebuy-legal-notice {
    margin-top: 6px !important;
    font-size: 10px !important;
  }

  #pf-modal .pf-row {
    margin-bottom: 6px !important;
  }

  #pf-modal .pf-row label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  #pf-modal .code-copy-row code {
    padding: 5px 8px !important;
    font-size: 10.5px !important;
  }

  #pf-modal .btn-copy {
    padding: 4px 8px !important;
    min-height: 0 !important;
  }

  #pf-modal .pf-desc {
    margin-top: 6px !important;
    padding-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  #pf-modal .pf-verify-wrap {
    margin: 6px 0 0 0 !important;
  }

  .guide-grid,
  .guide-grid-4,
  .receipt-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .guide-tabs,
  .slots-guide-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
    gap: 5px !important;
  }

  .guide-tab,
  .slots-guide-tabs .guide-tab {
    min-height: 28px !important;
    line-height: 1.2 !important;
    padding: 5px 9px !important;
    flex-shrink: 0 !important;
    font-size: 10.5px !important;
  }

  .hero-amount {
    font-size: 26px !important;
  }

  .dual-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .dual-actions .btn-modal-action {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Mobile Landscape (short vertical height <= 520px): maximize slot machine height */
@media (max-height: 520px) and (orientation: landscape) {
  #saito-header {
    height: 40px !important;
    min-height: 40px !important;
    flex-wrap: nowrap !important;
    padding: 0 10px !important;
  }

  #game-menu, .game-menu,
  .game-menu > ul,
  .game-menu > ul > li,
  .game-menu > ul > li > .game-menu-option-label {
    height: 40px !important;
    line-height: 40px !important;
  }

  #game-scoreboard, .game-scoreboard {
    order: 2 !important;
    width: auto !important;
    height: 40px !important;
    border-top: none !important;
    margin: 0 6px 0 auto !important;
  }

  #saito-header .hamburger-container {
    order: 4 !important;
    margin-left: 4px !important;
  }

  .slots-score-pill .sb-word,
  .slots-sb-btn .sb-word,
  .pill-spins {
    display: none !important;
  }

  #casino-ticker-bar,
  .mobile-slot-controls {
    display: none !important;
  }

  #slots-container {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
    height: calc(100dvh - 40px) !important;
  }

  .casino-modal {
    padding: 46px 10px 8px 10px !important;
  }

  .casino-modal-content,
  .slots-modal-card,
  .rebuy-content,
  .guide-modal-content,
  #cashout-modal .casino-modal-content,
  .saito-overlay > .saito-overlay-panel.slots-rules-overlay,
  .saito-overlay > .saito-overlay-panel.solitaire-stats-overlay,
  .slots-rules-overlay,
  .solitaire-stats-overlay {
    max-height: calc(100dvh - 56px) !important;
  }

  .saito-overlay:has(.slots-rules-overlay),
  .saito-overlay:has(.solitaire-stats-overlay) {
    top: calc(22px + 50dvh) !important;
    max-height: calc(100dvh - 56px) !important;
  }
}

/* Standard 13"/14" Laptop Viewports (961px - 1460px): Keep all 4 scoreboard pills & 4 buttons 100% unclipped */
@media (min-width: 961px) and (max-width: 1460px) {
  #saito-header {
    padding: 0 8px !important;
  }
  .game-menu > ul > li {
    padding: 0 9px !important;
    font-size: 12.5px !important;
  }
  #game-scoreboard, .game-scoreboard {
    margin: 0 8px 0 auto !important;
    gap: 5px !important;
  }
  .slots-score-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .slots-score-actions {
    gap: 5px !important;
    margin-left: 2px !important;
  }
  .slots-sb-btn {
    padding: 5px 9px !important;
    font-size: 10.5px !important;
  }
}

/* Interactive 1-Click SHA-256 Proof Verifier & Compact Mobile Cash-Out Receipt */
.pf-verify-wrap {
  margin: 10px 0;
  text-align: center;
}

.btn-verify-pf {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-verify-pf:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5));
  color: #ffffff;
  transform: translateY(-1px);
}

.pf-verify-badge {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.pf-verify-badge code {
  word-break: break-all;
}

.pf-verify-ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #d1fae5;
}

.pf-verify-pending {
  background: rgba(245, 176, 65, 0.14);
  border: 1px solid rgba(245, 176, 65, 0.45);
  color: #fde68a;
}

@media (max-width: 768px) {
  #cashout-modal .casino-modal-content {
    padding: 12px 14px !important;
    max-height: calc(100dvh - 102px) !important;
    overflow-y: auto !important;
  }
  #cashout-modal .cashout-hero {
    padding: 8px 0 !important;
    margin-bottom: 8px !important;
  }
  #cashout-modal .hero-amount {
    font-size: 26px !important;
  }
  #cashout-modal .receipt-grid {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  #cashout-modal .receipt-card {
    padding: 6px 10px !important;
  }
  #cashout-modal .pf-row {
    margin-bottom: 6px !important;
  }
  #cashout-modal .code-copy-row code {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
  }
}

/* ==========================================================================
   14. WIN PRESENTATION HUD BANNER, COIN BURST PARTICLES & CABINET AMBIENT GLOW
   ========================================================================== */

#slots-container.slots-state-spinning {
  box-shadow: inset 0 0 65px rgba(0, 242, 254, 0.14);
}

#slots-container.slots-state-winning {
  box-shadow: inset 0 0 85px rgba(245, 176, 65, 0.24), inset 0 0 32px rgba(0, 242, 254, 0.16);
}

#slots-container.slots-state-bigwin {
  box-shadow: inset 0 0 120px rgba(250, 204, 21, 0.42), inset 0 0 48px rgba(245, 158, 11, 0.28);
  animation: slotsCabinetPulse 0.85s ease-in-out infinite alternate;
}

#slots-container.slots-state-superwin {
  box-shadow: inset 0 0 145px rgba(244, 63, 94, 0.48), inset 0 0 70px rgba(250, 204, 21, 0.42), inset 0 0 35px rgba(217, 70, 239, 0.35);
  animation: slotsSuperCabinetPulse 0.65s ease-in-out infinite alternate;
}

#slots-container.slots-state-megawin {
  box-shadow: inset 0 0 175px rgba(250, 204, 21, 0.62), inset 0 0 90px rgba(168, 85, 247, 0.48), inset 0 0 45px rgba(0, 242, 254, 0.42);
  animation: slotsMegaCabinetPulse 0.5s ease-in-out infinite alternate;
}

#slots-container.slots-shake-big canvas {
  animation: slotsCabinetShakeBig 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

#slots-container.slots-shake-super canvas {
  animation: slotsCabinetShakeSuper 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

#slots-container.slots-shake-mega canvas {
  animation: slotsCabinetShakeMega 0.78s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

@keyframes slotsCabinetShakeBig {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
}

@keyframes slotsCabinetShakeSuper {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-6px, 4px); }
  30% { transform: translate(6px, -5px); }
  45% { transform: translate(-5px, -3px); }
  60% { transform: translate(5px, 4px); }
  75% { transform: translate(-3px, 2px); }
}

@keyframes slotsCabinetShakeMega {
  0%, 100% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-8px, 5px) scale(1.008); }
  25% { transform: translate(8px, -6px) scale(1.01); }
  38% { transform: translate(-7px, -4px) scale(1.006); }
  52% { transform: translate(7px, 5px) scale(1.008); }
  68% { transform: translate(-5px, 3px) scale(1.004); }
  84% { transform: translate(4px, -3px) scale(1.002); }
}

@keyframes slotsCabinetPulse {
  0% {
    box-shadow: inset 0 0 85px rgba(250, 204, 21, 0.28), inset 0 0 35px rgba(0, 242, 254, 0.18);
  }
  100% {
    box-shadow: inset 0 0 135px rgba(250, 204, 21, 0.48), inset 0 0 55px rgba(245, 158, 11, 0.32);
  }
}

@keyframes slotsSuperCabinetPulse {
  0% {
    box-shadow: inset 0 0 110px rgba(244, 63, 94, 0.36), inset 0 0 50px rgba(250, 204, 21, 0.32);
  }
  100% {
    box-shadow: inset 0 0 160px rgba(244, 63, 94, 0.56), inset 0 0 80px rgba(250, 204, 21, 0.52), inset 0 0 40px rgba(217, 70, 239, 0.38);
  }
}

@keyframes slotsMegaCabinetPulse {
  0% {
    box-shadow: inset 0 0 130px rgba(250, 204, 21, 0.45), inset 0 0 65px rgba(168, 85, 247, 0.38);
  }
  100% {
    box-shadow: inset 0 0 190px rgba(250, 204, 21, 0.72), inset 0 0 100px rgba(168, 85, 247, 0.58), inset 0 0 50px rgba(0, 242, 254, 0.48);
  }
}

#casino-ticker-bar.slots-state-winning,
#casino-ticker-bar.slots-state-bigwin,
#casino-ticker-bar.slots-state-superwin,
#casino-ticker-bar.slots-state-megawin {
  border-bottom-color: rgba(250, 204, 21, 0.65) !important;
  box-shadow: 0 4px 22px rgba(245, 176, 65, 0.28) !important;
}

/* ==========================================================================
   WIN CELEBRATION HUD BANNER & RADIAL COIN BURST OVERLAY (v25 First Layout)
   ========================================================================== */
.slots-win-hud-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -18px) scale(0.95);
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), top 0.25s ease;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.94) 0%, rgba(20, 28, 48, 0.96) 100%);
  border: 2px solid #f5b041;
  border-radius: 16px;
  padding: 10px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 28px rgba(245, 176, 65, 0.45), inset 0 0 18px rgba(245, 176, 65, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: min(820px, 95vw);
}

.slots-win-hud-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.slots-win-hud-banner.is-unlocked {
  top: 6px;
  padding: 7px 20px;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.90) 0%, rgba(20, 28, 48, 0.92) 100%);
}

.slots-win-hud-banner.is-big-win {
  border-color: #fde047;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.92), 0 0 42px rgba(250, 204, 21, 0.72), inset 0 0 24px rgba(250, 204, 21, 0.25);
}

.win-hud-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.win-hud-tier {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(202, 138, 4, 0.45) 100%);
  border: 1px solid rgba(250, 204, 21, 0.65);
  padding: 3px 11px;
  border-radius: 999px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

.slots-win-hud-banner.is-big-win .win-hud-tier {
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75);
}

.win-hud-amount {
  font-size: 24px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 18px rgba(250, 204, 21, 0.65);
}

.slots-win-hud-banner.is-big-win .win-hud-amount {
  font-size: 28px;
}

.win-hud-amount small {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-left: 4px;
}

.win-hud-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.win-line-chip {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--chip-color, #00f2fe);
  box-shadow: 0 0 10px color-mix(in srgb, var(--chip-color, #00f2fe) 35%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.win-line-chip b {
  color: #fde047;
  font-weight: 900;
  margin-left: 3px;
}

.win-line-chip.is-bonus {
  border-color: #c084fc;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35) 0%, rgba(192, 132, 252, 0.25) 100%);
  color: #f3e8ff;
}

.win-line-chip.is-more {
  border-color: #64748b;
  color: #cbd5e1;
}

/* Unified Bottom Casino Status Pill (Auto-Play Instructions, Free Spins, Auto-Spin, Win Lock) */
.slots-status-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 44;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.92) 0%, rgba(18, 25, 43, 0.95) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.42);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.72), 0 0 18px rgba(0, 242, 254, 0.16), inset 0 0 12px rgba(0, 242, 254, 0.08);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: min(760px, 95vw);
  font-family: inherit;
}

.slots-status-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.slots-status-pill .sp-badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  white-space: nowrap;
}

.slots-status-pill .sp-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.slots-status-pill .sp-main strong {
  color: #fde047;
  font-weight: 900;
}

.slots-status-pill .sp-counter {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 0 7px;
  border-radius: 999px;
  margin-left: 3px;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.slots-status-pill .sp-sep {
  color: rgba(148, 163, 184, 0.55);
  font-size: 11px;
}

.slots-status-pill .sp-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.slots-status-pill .sp-sub strong {
  color: #38bdf8;
  font-weight: 800;
}

/* Status Pill State Variants */
.slots-status-pill.is-freespins {
  border-color: rgba(192, 132, 252, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 24px rgba(168, 85, 247, 0.38), inset 0 0 14px rgba(192, 132, 252, 0.16);
}

.slots-status-pill.is-freespins .sp-badge {
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.45) 0%, rgba(234, 179, 8, 0.32) 100%);
  border-color: rgba(216, 180, 254, 0.7);
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.55);
}

.slots-status-pill.is-autospin {
  border-color: rgba(52, 211, 153, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.28), inset 0 0 12px rgba(52, 211, 153, 0.12);
}

.slots-status-pill.is-autospin .sp-badge {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
}

.slots-status-pill.is-winlock {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 24px rgba(250, 204, 21, 0.35), inset 0 0 14px rgba(250, 204, 21, 0.14);
}

.slots-status-pill.is-winlock .sp-badge {
  color: #fde047;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(250, 204, 21, 0.65);
}

.slots-status-pill.is-spinning {
  border-color: rgba(56, 189, 248, 0.45);
  opacity: 0.92;
}

/* Radial Coin & Sparkle Burst Layer */
#slots-coin-burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 42;
  overflow: hidden;
}

.slots-win-particle {
  position: absolute;
  left: 50%;
  top: 52%;
  opacity: 0;
  pointer-events: none;
  animation-name: slotsWinParticleBurst;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

.slots-win-particle.is-coin {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fef9c3 0%, #facc15 48%, #b45309 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.9);
}

.slots-win-particle.is-sparkle {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 3px;
  background: #00f2fe;
  box-shadow: 0 0 14px #00f2fe, 0 0 22px #fde047;
}

@keyframes slotsWinParticleBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--tx, 0px) * 0.45), calc(var(--ty, 0px) * 0.65)) scale(1.15) rotate(calc(var(--rot, 180deg) * 0.4));
  }
  70% {
    opacity: 0.95;
    transform: translate(calc(var(--tx, 0px) * 0.88), calc(var(--ty, 0px) * 0.88)) scale(1) rotate(calc(var(--rot, 180deg) * 0.8));
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + 90px)) scale(0.55) rotate(var(--rot, 180deg));
  }
}

/* Mobile Spin Button Locked State During Win Presentation */
.mob-btn-spin.is-win-locked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42) 0%, rgba(217, 119, 6, 0.55) 100%) !important;
  border-color: #fde047 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45) !important;
  cursor: not-allowed !important;
}

.mob-btn-spin.is-spinning {
  opacity: 0.72 !important;
  cursor: wait !important;
}

@media (max-width: 768px) {
  .slots-win-hud-banner {
    top: 4px;
    padding: 5px 10px;
    border-radius: 11px;
    gap: 3px;
    max-width: 94vw;
  }
  .slots-win-hud-banner.is-unlocked {
    top: 4px;
    padding: 4px 10px;
  }
  .win-hud-main {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .win-hud-tier,
  .slots-win-hud-banner.is-big-win .win-hud-tier {
    font-size: 10.5px;
    padding: 1.5px 7px;
    white-space: nowrap;
  }
  .win-hud-amount,
  .slots-win-hud-banner.is-big-win .win-hud-amount {
    font-size: 15px;
    white-space: nowrap;
  }
  .win-hud-amount small {
    font-size: 10px;
  }
  .win-hud-lines {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
    max-width: 90vw;
  }
  .win-line-chip {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
  .win-hud-lines .win-line-chip:nth-child(n+4):not(.is-bonus):not(.is-more) {
    display: none;
  }
  .slots-status-pill {
    bottom: 6px;
    padding: 4px 11px;
    gap: 6px;
    max-width: 96vw;
  }
  .slots-status-pill .sp-badge {
    font-size: 9px;
    padding: 1.5px 6px;
  }
  .slots-status-pill .sp-main {
    font-size: 10.5px;
  }
  .slots-status-pill .sp-counter {
    font-size: 11px;
    padding: 0 5px;
  }
  .slots-status-pill .sp-sep,
  .slots-status-pill .sp-sub {
    display: none;
  }
}

/* ==========================================================================
   SAITO SITE MESSAGE TOAST (INBOUND PAYMENT / CLIPBOARD CASINO TOAST PILL)
   ========================================================================== */
#site-message-wrapper {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 26px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 260px !important;
  max-width: min(520px, 92vw) !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(16, 28, 46, 0.96)) !important;
  border: 1px solid rgba(52, 211, 153, 0.58) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.82), 0 0 18px rgba(16, 185, 129, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ecfdf5 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  z-index: 9600 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

#site-message-wrapper.site-message-clickable,
#site-message-wrapper.message-clickable {
  pointer-events: auto !important;
  cursor: pointer !important;
}

#site-message-wrapper .site-message-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #a7f3d0 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 86vw !important;
}

#site-message-wrapper .site-message-message::before {
  content: "🪙";
  font-size: 14px;
  flex-shrink: 0;
}

#site-message-wrapper.fade-out {
  opacity: 0 !important;
  filter: opacity(0) !important;
  transform: translate(-50%, 8px) !important;
}

@media (max-width: 960px) {
  #site-message-wrapper {
    bottom: 76px !important;
    padding: 8px 15px !important;
    font-size: 12.5px !important;
    min-width: min(240px, 86vw) !important;
    max-width: 92vw !important;
  }
  #site-message-wrapper .site-message-message {
    font-size: 12.5px !important;
  }
}

/* ==========================================================================
   14. 18+ ELIGIBILITY & EXPERIMENTAL WEB3 SOFTWARE CLICK-WRAP MODAL (#liability-modal)
   ========================================================================== */
.liability-modal-content {
  width: min(560px, 94vw) !important;
  max-width: min(560px, 94vw) !important;
  border-color: rgba(245, 176, 65, 0.52) !important;
}

.liability-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.liability-intro {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
}

.liability-list {
  margin: 0;
  padding: 12px 14px 12px 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.45;
}

.liability-list li strong {
  color: #f8fafc;
}

.liability-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(245, 176, 65, 0.1);
  border: 1px solid rgba(245, 176, 65, 0.42);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 12.5px;
  line-height: 1.42;
  cursor: pointer;
  user-select: none;
}

.liability-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #f5b041;
  cursor: pointer;
}

#btn-confirm-liability:disabled {
  opacity: 0.42 !important;
  filter: grayscale(0.35);
  cursor: default !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .liability-modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
  }
  .liability-intro {
    font-size: 12px;
  }
  .liability-list {
    padding: 10px 12px 10px 24px;
    font-size: 11.5px;
    gap: 7px;
  }
  .liability-checkbox-row {
    padding: 9px 11px;
    font-size: 11.5px;
  }
}






