/* One platform chapter; both original device renderers keep their own markup. */
#mobile { padding-block: 42px; }
#mobile > .chapter-heading { margin-bottom: 30px; }
#mobile > .chapter-heading p { max-width: none; }
#mobile .mobile-band { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(28px,3vw,56px); align-items: center; }
#mobile .mobile-touch, #mobile .gamepad-panel { min-width: 0; }
#mobile .mobile-device-stage { padding: 0; }
.presentation-page #mobile .mobile-device-stage .platform-devices { display: block; width: 100%; max-width: 540px; padding: 10px 0 65px; }
#mobile .mobile-copy { margin-top: 18px; text-align: center; }
.presentation-page #mobile .platform-badges { justify-content: center; margin: 0; gap: 8px; }
#mobile .mobile-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: 14px; }
#mobile .mobile-features li { margin: 0; padding-left: 16px; }
#mobile .gamepad-panel { padding-left: 28px; border-left: 1px solid #987a4138; }
#mobile .gamepad-panel .gp-toolbar { align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
#mobile .gamepad-panel .gp-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
#mobile .gamepad-panel .gp-label { width: 17.5%; }
#mobile .gamepad-panel .gp-label button { font-size: 10px; min-height: 26px; padding: 2px 0; gap: 4px; }
#mobile .gamepad-panel .gp-label img { width: 18px; height: 18px; }
#mobile .gamepad-panel .gp-label strong { font-size: 8px; }
#mobile .gamepad-panel .gp-aside { width: 100%; margin: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid #987a4138; text-align: center; }
#mobile .gamepad-panel .gp-aside h3 { margin: 5px 0; font-size: 19px; }
#mobile .gamepad-panel .gp-quickbar { margin: 16px auto 12px; }
#mobile .gamepad-panel .gp-aside .gp-status { margin-top: 10px; padding-top: 8px; }
/* Chapter-list dependency: Black Hole remains the left render after the removed
   Gamepad chapter; Titles remains on the right. Later shared CSS had overridden
   Black Hole's existing render-left class. Keep this correction desktop-only. */
@media (min-width: 900px) {
  .presentation-page #blackhole.render-left > .chapter-composition { grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr); }
  .presentation-page #blackhole.render-left .chapter-render { grid-column: 1; }
  .presentation-page #blackhole.render-left .chapter-content { grid-column: 2; }
}
@media (max-width: 899px) {
  #mobile .mobile-band { grid-template-columns: minmax(0,1fr); gap: 30px; }
  #mobile .mobile-touch, #mobile .gamepad-panel { width: 100%; max-width: 640px; margin-inline: auto; }
  #mobile .gamepad-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid #987a4138; }
  .presentation-page #mobile .mobile-device-stage .platform-devices { max-width: 500px; }
  .presentation-page #mobile .mobile-device-stage .platform-phone { position: absolute; bottom: 0; right: 0; width: 65%; margin: 0; transform: rotate(-3deg); }
}
@media (max-width: 700px) {
  #mobile { padding-block: 30px; }
  #mobile > .chapter-heading { margin-bottom: 20px; }
  #mobile > .chapter-heading p { font-size: 14px; }
  #mobile .mobile-features { font-size: 13px; gap: 6px 16px; }
  #mobile .gamepad-panel .gp-label { width: auto; }
  #mobile .gamepad-panel .gp-label button { min-height: 34px; font-size: 11px; gap: 6px; }
  #mobile .gamepad-panel .gp-label strong { font-size: 9px; }
  #mobile .gamepad-panel .gp-label img { width: 20px; height: 20px; }
}

/* Round 23: larger level chips (Prestige / Pet / Mount). */
.presentation-page :is(#prestige,#pets,#mounts) .client-presets { margin-bottom:12px; }
.presentation-page :is(#prestige,#pets,#mounts) .client-presets :is(.native-levels,.prestige-milestones) { gap:6px; }
.presentation-page :is(#prestige,#pets,#mounts) .client-presets button { min-width:58px; height:32px; padding:0 12px; font:700 14px/1 Tahoma,Verdana,sans-serif; border-width:1px; cursor:pointer; }
.presentation-page :is(#prestige,#pets,#mounts) .client-presets button:hover { border-color:#8f7646; color:#e0d4b6; }
.presentation-page :is(#prestige,#pets,#mounts) .client-presets button[aria-pressed=true] { background:#2b2412; box-shadow:0 0 0 1px #b1904b55, 0 0 10px #d7ae4533; }
@media (max-width:560px) {
  .presentation-page :is(#prestige,#pets,#mounts) .client-presets :is(.native-levels,.prestige-milestones) { gap:4px; }
  .presentation-page :is(#prestige,#pets,#mounts) .client-presets button { min-width:0; height:30px; padding:0 8px; font-size:12px; }
}

/* Round 23: bounty reward = the in-game 64px map button, no slot frame or pixel upscale. */
.presentation-page #bounty .bounty-reward .reward-chest { width:72px; height:72px; right:6px; bottom:6px; background:none; image-rendering:auto; }

/* Round 23: Atlas map pans and zooms like the client window. */
.presentation-page .client-window[data-replica=atlas] .atlas-scroll { cursor:grab; touch-action:none; user-select:none; background:rgba(8,8,10,.82); }
/* Client uiatlastree.py: flat BACKDROP_COLOR stays, the branch disc moves and zooms with the tree (no second static copy). */
.presentation-page .client-window[data-replica=atlas] .atlas-scroll.dragging { cursor:grabbing; }
.presentation-page .client-window[data-replica=atlas] .atlas-canvas { transform-origin:50% 50%; will-change:transform; }
.presentation-page .client-window[data-replica=atlas] .atlas-node-detail { cursor:auto; z-index:3; }
.presentation-page .client-window[data-replica=atlas] .atlas-zoom-hud { position:absolute; left:8px; top:8px; z-index:3; display:flex; gap:3px; align-items:center; }
.presentation-page .client-window[data-replica=atlas] .atlas-zoom-hud button { width:22px; height:22px; padding:0; border:1px solid #635438; background:#19170fcc; color:#e0d4b6; font:700 14px/1 Tahoma,Verdana,sans-serif; cursor:pointer; }
.presentation-page .client-window[data-replica=atlas] .atlas-zoom-hud output { min-width:38px; padding:3px 4px; background:#19170fcc; border:1px solid #3e3b2a; color:#bcb29a; font:10px/1 Tahoma,Verdana,sans-serif; text-align:center; }

/* Round 24: Sura centred in the render; first shadow twin on the left, second on the right. */
.presentation-page #prestige .chapter-render .prestige-main { left:1%; }
.presentation-page #prestige .chapter-render .twin-one { left:-27%; }
.presentation-page #prestige .chapter-render .twin-two { left:29%; }
.presentation-page #prestige .chapter-render .twin-two { translate:-12px 8px; }
.presentation-page #prestige .chapter-render[data-twins="2"] .twin-two { translate:0 0; }
.presentation-page #prestige .prestige-nameplate { left:40%; }

/* Round 24: bounty chest sits on the map frame's corner, overhanging it. */
.presentation-page #bounty .bounty-reward .reward-chest { width:92px; height:92px; right:-30px; bottom:-30px; }
@media (max-width:700px) { .presentation-page #prestige .chapter-render { overflow-x:clip; } }
