.mobile-game-dock { display:none; }
@media(max-width:760px) {
  .mobile-game-dock:not([hidden]) { display:grid;gap:6px;position:fixed;z-index:70;bottom:0;left:0;right:0;box-sizing:border-box;padding:6px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid #554065;background:#181320;box-shadow:0 -5px 18px #0006;color:#f6efff;font-family:var(--game-font); }
  .mobile-game-dock-error { color:#ffbdce;font:500 13px/1.3 var(--game-font);max-height:64px;overflow:auto; }
  .mobile-game-dock-top { display:flex;justify-content:space-between;gap:8px;min-width:0; }
  .mobile-game-dock-top button { min-height:36px;border:0;padding:4px 8px;color:#ddcaed;background:#251b32;border-radius:6px;font:600 13px/1.2 var(--game-font);cursor:pointer; }
  .mobile-game-dock-settings { min-width:0;overflow-wrap:anywhere;text-align:left; }
  .mobile-game-dock-actions { display:flex;gap:6px; }
  .mobile-game-dock-actions button { flex:1;min-width:0;min-height:48px;border:1px solid #ad75db;border-radius:8px;background:#9750d9;color:#fff;padding:8px 5px;font:750 14px/1.25 var(--game-font);touch-action:manipulation;cursor:pointer; }
  .mobile-game-dock-actions button:disabled { background:#3d304d;border-color:#51435f;color:#a99bb7;cursor:not-allowed; }
  .mobile-game-dock button:focus-visible { outline:2px solid #e3b9ff;outline-offset:2px; }
  body.has-mobile-game-dock { padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
  body .royal-home.royal-game-shell :is(.royal-game-heading,.bj-heading,.arrow-heading,.roulette-topline,.cases-page-heading) { min-height:48px;margin-bottom:8px;padding:8px 12px; }
  body .royal-home.royal-game-shell :is(.royal-controls,.keno-controls,.mines-panel) { gap:10px;padding:12px; }
  body .royal-home.royal-game-shell :is(input,select) { font-size:16px; }
  body .royal-home.royal-game-shell :is(.auto-bet-mode,.dice-direction) button { min-height:44px; }
  body .royal-home.royal-game-shell .crash-stage { min-height:280px; }
  body .royal-home.royal-game-shell .dice-stage { min-height:280px;padding:20px 12px; }
  body .royal-home.royal-game-shell .keno-grid { grid-template-columns:repeat(6,minmax(0,1fr));gap:5px; }
  body .royal-home.royal-game-shell .keno-number { min-height:44px;height:44px;aspect-ratio:auto; }
  body .royal-home.royal-game-shell .keno-board-panel > .game-win-slot { min-height:44px; }
  body .royal-home.royal-game-shell .mines-game { min-height:0;padding:12px; }
  body .royal-home.royal-game-shell .mines-grid { gap:6px; }
  body .royal-home.royal-game-shell .mines-cell { min-height:44px; }
  body .royal-home.royal-game-shell .round-bets-panel { max-height:220px; }
  /* Embedded Originals use the same file, while the outer page owns the dock. */
  #game .game-heading { min-height:48px;padding:8px 12px;margin-bottom:8px; }
  #game .controls { padding:12px;gap:10px; }
  #game .control-row { gap:10px; }
  #game :is(.mode-tabs,.segmented) button { min-height:44px; }
  #game .limbo-stage { min-height:260px;height:260px;padding-bottom:90px!important; }
  #game .limbo-eyebrow { top:18%; }
  #game .limbo-meter { bottom:24px;left:8%;right:8%; }
  #game .plinko-stage { min-height:280px;height:auto;padding:12px 8px 24px; }
  #game .plinko-stage #board { max-height:300px; }
  #game .tower-stage { min-height:0;padding:12px; }
  #game #towerGrid button { min-height:40px; }
}
