/* Explicit stop affordance so the active control never looks like AUTO. */
@media (max-width:680px), (max-width:900px) and (orientation:landscape) {
  body[data-studio-game] .studio-mobile-dock .mobile-dock-auto[data-state="running"] {
    background:#7a173d;border-color:#ff7899;color:#fff;
  }
  body[data-studio-game] .studio-mobile-dock .mobile-dock-auto[data-state="stopping"] {
    background:#352034;border-color:#ad7a9b;color:#e5bed5;font-size:10px;
  }
}
/* Shared studio navigation and information panel design system.
   Keep each game's artwork, mechanics, and signature colors. */
body[data-studio-game] .studio-lobby-exit {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;padding:8px 13px;border:1px solid #ff7899;
  border-radius:10px;background:#2b1025e8;color:#fff;
  text-decoration:none;font-size:12px;font-weight:900;
  letter-spacing:.1em;white-space:nowrap;box-shadow:0 0 18px #f42a5a44;
  flex-shrink:0;
}
body[data-studio-game] .studio-lobby-exit span[aria-hidden] {
  font-size:23px;line-height:1;
}
body[data-studio-game] .studio-lobby-exit:hover,
body[data-studio-game] .studio-lobby-exit:focus-visible {
  border-color:#ffc6df;background:#71304f;
}
body[data-studio-game] .studio-lobby-exit:focus-visible {
  outline:3px solid #fff3bf;outline-offset:3px;
}
body[data-studio-game] .panel,
body[data-studio-game] .hud .stat,
body[data-studio-game="blackout-run"] .controls .stat {
  border:1px solid #89518a;
  border-radius:12px;
  background:linear-gradient(155deg,rgba(34,18,43,.93),rgba(14,11,27,.93));
  box-shadow:inset 0 1px #ffffff12,0 5px 22px #0005;
}
body[data-studio-game] .panel > small,
body[data-studio-game] .panel > h2,
body[data-studio-game] .panel > h3,
body[data-studio-game] .hud .stat > small {
  color:#edb9db;letter-spacing:.11em;
}
@media(max-width:680px), (max-width:900px) and (orientation:landscape) {
  body[data-studio-game] .studio-lobby-exit {
    min-height:44px;padding:8px 10px;font-size:11px;
  }
}

/* Portrait-first responsive skin shared by all four games, with a single quick-play dock. */
.studio-mobile-dock{display:none}
@media (max-width:680px), (max-width:900px) and (orientation:landscape){
  html{scroll-padding-bottom:90px;-webkit-text-size-adjust:100%}
  body[data-studio-game]{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));overflow-x:clip}
  body[data-studio-game].studio-intro-open{padding-bottom:0;overflow:hidden}
  body[data-studio-game] button,
  body[data-studio-game] select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  body[data-studio-game] .studio-mobile-dock{
    display:grid;grid-template-columns:minmax(0,1fr) 64px 66px;align-items:center;gap:7px;
    position:fixed;left:0;right:0;bottom:0;z-index:9;
    padding:9px max(8px,env(safe-area-inset-right,0px)) max(9px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    min-height:76px;border-top:1px solid #bf6d9e;
    background:linear-gradient(160deg,#170e23f7,#080811f8);
    box-shadow:0 -10px 35px #000c,0 -1px 20px #e43b8f2b;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
  }
  body[data-studio-game].studio-intro-open .studio-mobile-dock{display:none}
  .studio-mobile-dock button{margin:0;box-shadow:none;font-size:13px;font-weight:900;letter-spacing:0;
    min-height:48px;min-width:0;padding:4px;border:1px solid #a8698f;border-radius:10px;color:#fff;background:#39203c}
  .studio-mobile-dock button:disabled{opacity:.48}
  .studio-mobile-dock .mobile-dock-bet{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;
    min-width:0;min-height:50px;background:#140d1d;border:1px solid #704665;border-radius:10px;overflow:hidden}
  .studio-mobile-dock .mobile-dock-step{min-height:50px;min-width:44px;background:#2c1932;border:0;border-radius:0;font-size:22px}
  .studio-mobile-dock .mobile-dock-value{text-align:center;min-width:0;font-variant-numeric:tabular-nums}
  .studio-mobile-dock .mobile-dock-value small{display:block;font-size:9px;color:#e6b6d1;letter-spacing:.13em}
  .studio-mobile-dock .mobile-dock-value strong{display:block;font-size:13px;color:#fff;white-space:nowrap}
  .studio-mobile-dock .mobile-dock-spin{min-height:58px;background:linear-gradient(130deg,#f7276f,#a61f9b);
    border:2px solid #ffc6e7;border-radius:50%;box-shadow:0 0 19px #f529755b}
  .studio-mobile-dock .mobile-dock-auto{min-height:48px;background:#29142f;font-size:11px}
  body[data-studio-game="neon-heist"] .casino-scene .game,
  body[data-studio-game="blackout-run"] .game{backdrop-filter:none;-webkit-backdrop-filter:none}
  body[data-studio-game="neon-heist"] .game-entry,
  body[data-studio-game="blackout-run"] .veil,
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro{
    position:fixed;inset:0;z-index:60;width:100%;height:100dvh;min-height:0;overflow-y:auto;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
    padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));
    border-radius:0;background-size:cover;background-position:center
  }
  body[data-studio-game="neon-heist"] .shell{min-height:auto;padding:5px}
  body[data-studio-game="neon-heist"] .casino-scene{padding:6px}
  body[data-studio-game="neon-heist"] .game-heading{padding:4px 0 6px}
  body[data-studio-game="neon-heist"] .game-heading h1{font-size:clamp(28px,8vw,44px);margin:2px 0}
  body[data-studio-game="neon-heist"] .sub{font-size:9px;letter-spacing:.08em}
  body[data-studio-game="neon-heist"] .grid{gap:2px;padding:4px}
  body[data-studio-game="neon-heist"] .tile{border-radius:4px}
  body[data-studio-game="neon-heist"] .game-entry{background:linear-gradient(#120817d9,#160a1fdd),url('/neon-heist-scene-v2.webp') center/cover}
  body[data-studio-game="neon-heist"] .entry-title{font-size:clamp(39px,11vw,63px)}
  body[data-studio-game="neon-heist"] .game-entry .entry-start{min-height:52px}
  body[data-studio-game="neon-heist"] .bet-dock .icon-btn{min-width:44px;min-height:44px}
  body[data-studio-game="blackout-run"] .stage{padding:5px;align-items:flex-start;background-attachment:scroll}
  body[data-studio-game="blackout-run"] .game{padding:9px 6px;border-radius:13px}
  body[data-studio-game="blackout-run"] .top{padding:6px 3px 9px}
  body[data-studio-game="blackout-run"] .logo{font-size:clamp(24px,7.5vw,34px)}
  body[data-studio-game="blackout-run"] .toolbutton{min-height:44px;min-width:44px}
  body[data-studio-game="blackout-run"] .veil{background:linear-gradient(#140a1ae5,#130919dd),url('/blackout-scene-v2.webp') center/cover}
  body[data-studio-game="blackout-run"] .veil .enter{min-height:52px}
  body[data-studio-game="blackout-run"] .controls{gap:8px}
  body[data-studio-game="blackout-run"] .reel-frame{padding:5px}
  body[data-studio-game="nightshift-vault"] .scene{background-attachment:scroll}
  body[data-studio-game="nightshift-vault"] .top{padding:8px 10px;flex-wrap:wrap;gap:6px}
  body[data-studio-game="nightshift-vault"] .brand{font-size:14px;letter-spacing:.17em}
  body[data-studio-game="nightshift-vault"] .wallet{font-size:10px}
  body[data-studio-game="nightshift-vault"] .wrap{width:100%;padding:7px 7px 12px;gap:10px}
  body[data-studio-game="nightshift-vault"] .header{margin-bottom:6px}
  body[data-studio-game="nightshift-vault"] .eyebrow{font-size:9px;letter-spacing:.21em}
  body[data-studio-game="nightshift-vault"] .title{font-size:clamp(27px,8vw,37px);letter-spacing:.055em}
  body[data-studio-game="nightshift-vault"] .subtitle{font-size:9px;letter-spacing:.12em}
  body[data-studio-game="nightshift-vault"] .machine{padding:6px}
  body[data-studio-game="nightshift-vault"] .status{margin-top:6px;min-height:34px;padding:7px;font-size:11px}
  body[data-studio-game="nightshift-vault"] .under{gap:5px;font-size:8px;letter-spacing:0}
  body[data-studio-game="nightshift-vault"] .panel{padding:12px}
  body[data-studio-game="nightshift-vault"] .panel h2{margin-bottom:8px}
  body[data-studio-game="nightshift-vault"] .mode button,
  body[data-studio-game="nightshift-vault"] .betrow button{min-height:44px;min-width:44px}
  body[data-studio-game="nightshift-vault"] .overlay{padding:6px}
  body[data-studio-game="nightshift-vault"] .modal{max-height:calc(100dvh - 12px);padding:14px}
  body[data-studio-game="nightshift-vault"] .close{min-width:44px;min-height:44px}
  body[data-studio-game="outcast-after-hours"] .stage{padding:5px;background-attachment:scroll}
  body[data-studio-game="outcast-after-hours"] .top{padding:7px 2px}
  body[data-studio-game="outcast-after-hours"] .heading{margin:5px auto 8px}
  body[data-studio-game="outcast-after-hours"] .heading h1{font-size:clamp(32px,9.5vw,52px)}
  body[data-studio-game="outcast-after-hours"] .machine{padding:7px}
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro{background:linear-gradient(#10091ac9,#190b26df),url('/outcast-scene.webp') center/cover}
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro h2{font-size:clamp(37px,10.5vw,62px)}
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro .btn{min-height:52px}
  body[data-studio-game="outcast-after-hours"] .modal{max-height:calc(100dvh - 12px);width:calc(100vw - 12px);padding:13px}
  body[data-studio-game="outcast-after-hours"] .close{min-width:44px;min-height:44px}
}
@media (max-width:900px) and (orientation:landscape){
  body[data-studio-game] .studio-mobile-dock{
    left:50%;right:auto;width:min(520px,100vw);transform:translateX(-50%);
    border-left:1px solid #bf6d9e;border-right:1px solid #bf6d9e;border-radius:13px 13px 0 0
  }
  body[data-studio-game="blackout-run"] .playfield,
  body[data-studio-game="outcast-after-hours"] .play,
  body[data-studio-game="nightshift-vault"] .wrap{grid-template-columns:1fr}
  body[data-studio-game="outcast-after-hours"] .side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  body[data-studio-game="blackout-run"] .side{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  body[data-studio-game="neon-heist"] .casino-scene .game{max-width:320px}
  body[data-studio-game="neon-heist"] .game-heading{padding:0;margin:2px 0}
  body[data-studio-game="neon-heist"] .game-heading-kicker,
  body[data-studio-game="neon-heist"] .sub{display:none}
  body[data-studio-game="blackout-run"] .top{padding:2px 3px}
  body[data-studio-game="blackout-run"] .subtitle,
  body[data-studio-game="blackout-run"] .switch{display:none}
  body[data-studio-game="blackout-run"] .toolrow{margin-bottom:5px}
  body[data-studio-game="blackout-run"] .reel-frame{width:min(100%,300px);margin-inline:auto}
  body[data-studio-game="nightshift-vault"] .machine{max-width:300px}
  body[data-studio-game="nightshift-vault"] .top{padding:4px 10px}
  body[data-studio-game="nightshift-vault"] .header{margin-bottom:2px}
  body[data-studio-game="nightshift-vault"] .eyebrow,
  body[data-studio-game="nightshift-vault"] .subtitle{display:none}
  body[data-studio-game="outcast-after-hours"] .top{padding:3px 2px}
  body[data-studio-game="outcast-after-hours"] .heading{margin:2px auto 5px}
  body[data-studio-game="outcast-after-hours"] .heading .kicker,
  body[data-studio-game="outcast-after-hours"] .heading p{display:none}
  body[data-studio-game="outcast-after-hours"] .heading h1{font-size:32px;margin:0}
  body[data-studio-game="outcast-after-hours"] .reelbox{width:min(100%,300px);margin-inline:auto}
  body[data-studio-game="neon-heist"] .game-entry,
  body[data-studio-game="blackout-run"] .veil,
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro{gap:8px;padding:10px 18px}
  body[data-studio-game="neon-heist"] .entry-title,
  body[data-studio-game="blackout-run"] .veil h1,
  body[data-studio-game="outcast-after-hours"] .intro,
  body[data-studio-game="old-quarter-midnight"] .intro h2{font-size:clamp(30px,7vh,43px)}
  .studio-mobile-dock .mobile-dock-spin{min-height:50px}
}
@media(prefers-reduced-motion:reduce){
  body[data-studio-game] .studio-mobile-dock{backdrop-filter:none;-webkit-backdrop-filter:none}
}


/* One visible wager control surface on mobile.
   Keep the underlying original DOM controls for delegated click/change events.
   Do not hide secondary controls such as rules, turbo, history or Nightshift
   autoplay configuration. */
@media (max-width:680px), (max-width:900px) and (orientation:landscape) {
  body[data-studio-game="neon-heist"] .actions {
    display:none !important;
  }
  body[data-studio-game="blackout-run"] .controls > label.stat,
  body[data-studio-game="blackout-run"] .controls > #spin,
  body[data-studio-game="blackout-run"] .controls > .auto-controls {
    display:none !important;
  }
  body[data-studio-game="nightshift-vault"] .panel .controls > div:first-child,
  body[data-studio-game="nightshift-vault"] .panel .controls > #spin,
  body[data-studio-game="nightshift-vault"] .panel > #autoplay {
    display:none !important;
  }
  body[data-studio-game="outcast-after-hours"] .controls > label:first-child,
  body[data-studio-game="outcast-after-hours"] .controls > #spin,
  body[data-studio-game="outcast-after-hours"] .controls > #auto,
  body[data-studio-game="old-quarter-midnight"] .controls > label:first-child,
  body[data-studio-game="old-quarter-midnight"] .controls > #spin,
  body[data-studio-game="old-quarter-midnight"] .controls > #auto {
    display:none !important;
  }
  body[data-studio-game="blackout-run"] .controls {
    justify-content:space-between;
  }
}