/* BeanBot TEST — restore the approved Nov 1 Emberfall Level 1 traversal pad.
   Source: DEXUS square-Emberfall control pass and two-row primary/utility layout.
   CSS presentation only: existing data-key handlers, unlocks, gameplay and boss
   combat are untouched. Wrappers flatten outside Level 1 to preserve grids. */

#controls .dexus-utility-buttons,
#controls .dexus-primary-buttons { display:contents; }

/* Only the playable Level 1 map; never recolour PvP / DexRun boss controls. */
body[data-dexrun-level="1"] #controls {
  --dexus-button-size:clamp(50px,min(17vw,12dvh),74px);
  position:fixed!important;
  inset:auto 0 calc(max(8px,env(safe-area-inset-bottom)) + 42px)!important;
  padding:0 calc(clamp(6px,2.5vw,16px) + 14px + env(safe-area-inset-right)) 0 calc(clamp(6px,2.5vw,16px) + 14px + env(safe-area-inset-left))!important;
  display:flex!important;justify-content:space-between!important;
  align-items:flex-end!important;
  gap:clamp(6px,2vw,16px)!important;
  z-index:3;
}
body[data-dexrun-level="1"] #controls .pad {
  position:static!important;display:flex!important;flex:0 0 auto;
  align-items:center!important;gap:clamp(6px,1.8vw,12px)!important;
}
body[data-dexrun-level="1"] #controls .actions {
  position:static!important;display:flex!important;
  flex-direction:column!important;align-items:flex-end!important;
  justify-content:flex-end!important;flex:0 0 auto;
  gap:8px!important;
}
body[data-dexrun-level="1"] #controls .dexus-utility-buttons,
body[data-dexrun-level="1"] #controls .dexus-primary-buttons {
  display:grid!important;
  grid-template-columns:repeat(2,var(--dexus-button-size))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:var(--dexus-button-size)!important;
  justify-content:end!important;align-items:center!important;
  gap:clamp(6px,1.8vw,10px)!important;
}
body[data-dexrun-level="1"] #controls .ctl {
  grid-column:auto!important;grid-row:auto!important;
  width:var(--dexus-button-size)!important;
  height:var(--dexus-button-size)!important;
  min-width:50px;min-height:50px;max-width:74px;max-height:74px;
  display:grid!important;place-items:center!important;padding:0!important;
  border:2px solid #ff7b3c!important;border-radius:15px!important;
  background:linear-gradient(150deg,rgba(61,29,28,.94),rgba(20,20,31,.96))!important;
  color:#ffc064!important;
  box-shadow:0 5px 20px #0009!important;
  font-size:clamp(24px,7vw,33px)!important;line-height:1!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  touch-action:none!important;cursor:pointer;
  -webkit-user-select:none;user-select:none;
}
body[data-dexrun-level="1"] #controls .actions .ctl.hidebtn {
  display:none!important;
}
body[data-dexrun-level="1"] #controls .dexus-primary-buttons .ctl {
  border-color:#77e53d!important;
  box-shadow:inset 0 0 20px #7cff3817,0 4px 20px #000b!important;
}
body[data-dexrun-level="1"] #controls #jumpBtn {
  border-color:#ffd54a!important;background:#33290c!important;color:#ffe27e!important;
}
body[data-dexrun-level="1"] #controls .ctl.on,
body[data-dexrun-level="1"] #controls .ctl:active {
  border-color:#fff!important;
  box-shadow:0 0 15px #7cff3870,inset 0 0 20px #7cff3825!important;
  transform:scale(.96);
}
body[data-dexrun-level="1"] #controls .ctl:focus-visible {
  outline:3px solid #ffe079!important;outline-offset:3px!important;
}
@media (max-height:520px) and (orientation:landscape) {
 body[data-dexrun-level="1"] #controls {--dexus-button-size:50px;gap:6px!important;}
 body[data-dexrun-level="1"] #controls .actions {gap:5px!important;}
}
