/* Mobile layout only; the original action bar owns bindings and execution. */
.mobile-skill-dock {display:none}
#mobile-skill-dock[hidden],#mobile-skill-dock [hidden] {display:none!important}

html.mobile-hud #world-hud {
  --mobile-skill-slot:33px;
  --mobile-skill-gap:2.25px;
  --mobile-skill-rail:var(--mobile-skill-slot);
  --mobile-skill-step:calc(var(--mobile-skill-slot) + var(--mobile-skill-gap));
  --mobile-skill-expanded-height:calc(2 * var(--mobile-skill-slot) + var(--mobile-skill-gap));
  --mobile-skill-dock-width:calc(8 * var(--mobile-skill-slot) + 7 * var(--mobile-skill-gap));
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock {
  position:fixed;
  inset:auto auto var(--mobile-skill-bottom,max(8px,env(safe-area-inset-bottom))) 50%;
  z-index:6;
  display:grid;
  grid-template-columns:var(--mobile-skill-rail) auto var(--mobile-skill-rail);
  align-items:end;
  gap:var(--mobile-skill-gap);
  width:max-content;
  max-width:calc(100vw - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)));
  margin:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
  transform:translateX(-50%);
  direction:ltr;
  color:#fcfdf9;
  font:600 10px/1 "Segoe UI",Arial,sans-serif;
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-rows {
  grid-column:2;
  display:grid;
  gap:var(--mobile-skill-gap);
  min-width:0;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.action-slots,.reserve-slots) {
  position:static;
  inset:auto;
  display:grid;
  grid-template-columns:repeat(6,var(--mobile-skill-slot));
  gap:var(--mobile-skill-gap);
  width:max-content;
  height:auto;
  margin:0;
  padding:0;
  transform:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot {
  position:relative;
  inset:auto;
  display:grid;
  place-items:center;
  width:var(--mobile-skill-slot);
  min-width:var(--mobile-skill-slot);
  height:var(--mobile-skill-slot);
  min-height:var(--mobile-skill-slot);
  margin:0;
  padding:0;
  border:1px solid rgb(234 216 177 / .36);
  border-radius:4px;
  background:rgb(13 15 14 / .72);
  box-shadow:none;
  transform:none;
  color:#fcfdf9;
  font:inherit;
  text-shadow:none;
  touch-action:manipulation;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot :is(.action-art,img) {
  width:calc(var(--mobile-skill-slot) - 2px);
  height:calc(var(--mobile-skill-slot) - 2px);
  max-width:100%;
  max-height:100%;
  border-radius:3px;
  box-shadow:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-art {overflow:hidden}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-art img {object-fit:contain;image-rendering:auto}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot :is(kbd,.empty-slot) {color:#d2d5cd}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot kbd {display:none}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .empty-slot {font:400 15px/1 "Segoe UI",Arial,sans-serif}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .slot-amount {
  position:absolute;
  z-index:2;
  inset:auto 2px 2px auto;
  max-width:calc(100% - 4px);
  overflow:hidden;
  color:#fff;
  font:700 9px/1 "Segoe UI",Arial,sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:0 1px 2px #000,1px 0 2px #000;
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot[data-cooling]::after {
  position:absolute;
  z-index:1;
  inset:0;
  border-radius:inherit;
  background:rgb(0 0 0 / .48);
  content:"";
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot[data-cooling] .slot-amount {
  inset:0;
  display:grid;
  place-items:center;
  max-width:none;
  font-size:11px;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot.unavailable:not([data-cooling]) .action-art {filter:brightness(.48)}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-slot[data-active-effect] {border-color:#8ce8a3;box-shadow:inset 0 0 0 1px rgb(140 232 163 / .55)}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.mobile-skill-active,.mobile-skill-auto) {
  position:absolute;
  z-index:3;
  display:grid;
  place-items:center;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#152019;
  color:#a1efb5;
  font:700 8px/1 Arial,sans-serif;
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-active {right:2px;bottom:2px}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-auto {right:2px;top:2px;border-radius:2px}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.mobile-skill-consumables,.mobile-skill-rail) {
  position:relative;
  align-self:end;
  width:var(--mobile-skill-rail);
  min-width:0;
  height:var(--mobile-skill-rail);
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-consumables {grid-column:1;grid-row:1}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-rail {grid-column:3;grid-row:1}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.action-page,.mobile-skill-collapse) {
  position:relative;
  isolation:isolate;
  inset:auto;
  display:grid;
  place-items:center;
  width:var(--mobile-skill-rail);
  min-width:var(--mobile-skill-rail);
  height:var(--mobile-skill-rail);
  min-height:var(--mobile-skill-rail);
  margin:0;
  padding:0;
  border:0;
  border-radius:4px;
  background:none;
  box-shadow:none;
  transform:none;
  color:#ead8b1;
  font:600 10px/1 "Segoe UI",Arial,sans-serif;
  touch-action:manipulation;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .action-page {position:absolute;right:0;bottom:var(--mobile-skill-step)}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.action-page,.mobile-skill-collapse)::before {
  position:absolute;
  z-index:-1;
  inset:5px;
  border:1px solid rgb(234 216 177 / .36);
  border-radius:4px;
  background:rgb(0 0 0 / .64);
  content:"";
  pointer-events:none;
}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-collapse svg {--icon-size:14px;width:14px;height:14px}
html.mobile-hud #world-hud #action-bar #mobile-skill-dock :is(.action-slot,.action-page,.mobile-skill-collapse):focus-visible {outline:2px solid #ead8b1;outline-offset:1px}
html.mobile-hud[data-hud-input="touch"] #world-hud #action-bar #mobile-skill-dock button:focus-visible {outline:0}
html.mobile-hud #world-hud:has(#mobile-skill-dock:not([hidden])) #auxiliary-bar {display:none!important}

@media (max-width:419px) {
  html.mobile-hud #world-hud #action-bar #mobile-skill-dock {grid-template-columns:auto}
  html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-rows {grid-column:1}
  html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-consumables {position:absolute;bottom:calc(100% + var(--mobile-skill-gap));left:0}
  html.mobile-hud #world-hud #action-bar #mobile-skill-dock .mobile-skill-rail {position:absolute;bottom:calc(100% + var(--mobile-skill-gap));right:0}
}
