/* AssetShop Life :: the realm HUD, R673 (hud-r673.js owns the behavior; this sheet owns the geometry).
   Resting screen, every width: the menu button top left, the minimap under it, the joystick bottom left (on a wide screen
   with a mouse, the engine's keyboard legend in its place), the area label and the action pills centered above the bottom
   row, a dock of at most three round buttons bottom right. Nothing else.
   Sheets: a bottom sheet under 768px; from 768px a popover beside the dock (sound, profile, motion) or a right side panel
   (the menu). The older layers (hud-phone-governor.js, hud-layout-manager.js, realm-hud-polish.js, the elite bar and the
   legacy shell in the bundles, hud-fit.css, hud-normalize-v562.css, realm-r664.js) stand down for these rules at their
   source. The !important flags left below beat inline styles that other modules write onto their own elements (a readout's
   position:fixed, a chip's display:flex), never another stylesheet of the HUD. */

:root {
  --hud-bg: rgba(8, 10, 22, .84);
  --hud-sheet: rgba(10, 13, 24, .97);
  --hud-line: rgba(122, 220, 236, .32);
  --hud-line-soft: #1B2230;
  --hud-text: #DCE6F0;
  --hud-muted: #9FB0C6;
  --hud-accent: #7ADCEC;
  --hud-gap: 12px;
  --hud-btn: 48px;
  --hud-l: calc(12px + env(safe-area-inset-left, 0px));
  --hud-r: calc(12px + env(safe-area-inset-right, 0px));
  --hud-t: calc(12px + env(safe-area-inset-top, 0px));
  --hud-b: calc(16px + env(safe-area-inset-bottom, 0px));
  /* the bottom row is as tall as the dock: three 48px buttons and two 12px gaps (the joystick is 124px) */
  --hud-row: 168px;
  --hud-z: 1400;
  --hud-z-scrim: 2147483090;
  --hud-z-sheet: 2147483100;
}

/* ---------------------------------------------------------------- the menu button, top left */
html body #as-hud-menu-btn {
  position: fixed; top: var(--hud-t); left: var(--hud-l); right: auto; bottom: auto; transform: none; margin: 0; padding: 0;
  width: var(--hud-btn); height: var(--hud-btn); min-width: var(--hud-btn); display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--hud-bg); border: 1px solid var(--hud-line); color: var(--hud-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); z-index: var(--hud-z); touch-action: manipulation; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html body #as-hud-menu-btn .menu-icon { display: none; }
html body #as-hud-menu-btn:active { transform: scale(.96); }
html body #as-hud-menu-btn:focus-visible { outline: 2px solid var(--hud-accent); outline-offset: 2px; border-radius: 14px; }

/* ---------------------------------------------------------------- the minimap under it, 88px; a button when a map exists */
html body #as-realm-minimap {
  position: fixed; top: calc(var(--hud-t) + var(--hud-btn) + 10px); left: var(--hud-l); right: auto; bottom: auto; margin: 0; transform: none;
  width: 88px; height: 88px; border-radius: 50%; z-index: var(--hud-z); pointer-events: none;
}
html body #as-realm-minimap.as-hud-tap { pointer-events: auto; cursor: pointer; touch-action: manipulation; }
html body #as-realm-minimap:focus-visible { outline: 2px solid var(--hud-accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- the joystick, bottom left; its MOVE caption goes after the first move */
html body #as-realm-stick { left: var(--hud-l); bottom: var(--hud-b); top: auto; right: auto; z-index: var(--hud-z); }
@media not all and (min-width: 900px) and (pointer: fine) and (hover: hover) {
  html body #as-realm-stick.as-hud-moved::after { content: none; display: none; }
}

/* ---------------------------------------------------------------- the dock, bottom right */
#as-hud-dock {
  position: fixed; right: var(--hud-r); bottom: var(--hud-b); z-index: var(--hud-z);
  display: flex; flex-direction: column; align-items: center; gap: var(--hud-gap); margin: 0; padding: 0; pointer-events: none;
}
#as-hud-dock > button {
  position: relative; flex: 0 0 auto; pointer-events: auto; box-sizing: border-box;
  width: var(--hud-btn); height: var(--hud-btn); min-width: var(--hud-btn); min-height: var(--hud-btn); margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--hud-bg); border: 1px solid var(--hud-line); color: var(--hud-text); cursor: pointer; font: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .32); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#as-hud-dock > button[hidden] { display: none; }
#as-hud-dock > button:active { transform: scale(.94); }
#as-hud-dock > button:focus-visible { outline: 2px solid var(--hud-accent); outline-offset: 2px; border-radius: 50%; }
#as-hud-dock > button.as-hud-off { color: var(--hud-muted); border-color: rgba(220, 230, 240, .22); }
#as-hud-dock > #as-hud-profile { background-color: #0B0E16; background-size: cover; background-position: center 22%; border-color: rgba(122, 220, 236, .55); }

/* ---------------------------------------------------------------- the area label and the action pills, centered above the bottom row */
#as-hud-context {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--hud-b) + var(--hud-row) + 14px);
  width: max-content; max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; z-index: var(--hud-z); pointer-events: none;
}
#as-hud-context > * {
  position: static !important; inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
  transform: none !important; margin: 0 !important; max-width: 100% !important; box-sizing: border-box; white-space: normal !important;
  text-align: center; overflow-wrap: break-word;
}
#as-hud-context > * { pointer-events: auto; }
#as-hud-context > #as-life-district { pointer-events: none; }
#as-hud-context > #mr-tap:active { transform: scale(.92) !important; }
#as-hud-context > #as-life-district { font-size: 11px !important; letter-spacing: .16em !important; }

/* ---------------------------------------------------------------- realm readouts, top, clear of the menu button and the minimap */
/* the left edge clears the 88px minimap (not only the menu button), so a readout that wraps to a second row never covers it */
html body #as-dock-gamebar {
  position: fixed; top: var(--hud-t); left: calc(var(--hud-l) + 98px); right: var(--hud-r); bottom: auto; width: auto;
  display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: calc(var(--hud-z) - 2); pointer-events: none; transform: none; margin: 0;
}
@media (min-width: 768px) { html body #as-dock-gamebar { right: calc(var(--hud-r) + 98px); } }
html body #as-dock-gamebar:empty { display: none; }
html body #as-dock-gamebar > * {
  position: relative !important; inset: auto !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
  transform: none !important; margin: 0 !important; width: auto !important; max-width: 100% !important; min-width: 0 !important;
  box-sizing: border-box; pointer-events: auto; white-space: normal !important; overflow-wrap: break-word; text-align: center;
}
html body #as-dock-gamebar > #ctf-objective, html body #as-dock-gamebar > #rc-obj, html body #as-dock-gamebar > #mr-obj, html body #as-dock-gamebar > #sb-obj {
  font-size: 13px !important; line-height: 1.3 !important; padding: 8px 12px !important;
}
/* ---------------------------------------------------------------- world labels stay under the HUD */
/* the residents' name plates follow them through the engine's projection, as the realm signs do (z-index 90). They were layered
   at 9950, over every HUD control, so a plate passing the dock or the menu button took its taps; they now sit under the HUD. */
html body .as-npc-plate { z-index: 1300; }

/* a chip in the readout row opens a realm panel (stalls, storefront, bounty feed, briefs) in a sheet */
html body .as-hud-chip {
  flex: 0 0 auto; min-height: 44px; margin: 0; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hud-line); cursor: pointer;
  background: var(--hud-bg); color: var(--hud-text); font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase;
  pointer-events: auto; touch-action: manipulation; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html body .as-hud-chip:focus-visible { outline: 2px solid var(--hud-accent); outline-offset: 2px; }
/* the realm panel inside its sheet: its own fixed placement (inline) gives way to the sheet's flow */
.as-hud-sheet .as-hud-body > .as-hud-adopted {
  position: static !important; inset: auto !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
  width: auto !important; max-width: none !important; max-height: none !important; height: auto !important; transform: none !important;
  margin: 0 !important; z-index: auto !important; display: block !important; overflow: visible !important; box-sizing: border-box;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 0 4px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; opacity: 1 !important; visibility: visible !important;
}

/* ---------------------------------------------------------------- parked controls: kept in the page for their code and their keys, reached from the menu */
html body #as-audio-toggle, html body #as-jukebox, html body #as-jukebox-next, html body #av-speak-fab, html body #cj-fab, html body #as-avatar-mount,
html body #as-subtitles-toggle, html body #as-realm-help-btn, html body #as-map-button, html body #as-realm-map-overlay-btn, html body #as-haptics-toggle,
html body #as-xp-controls, html body #as-tutorial-pro-btn, html body .as-brand, html body #as-notif-bell, html body #as-progress-hud, html body #as-friends-quick,
html body #as-cam-toggle, html body #as-dock-camerabar, html body #as-camera-mode-pill, html body #as-life-strip, html body #as-elite-topbar, html body #as-elite-rail,
html body #dao-ai-fab, html body #as-p3-voice-button, html body #as-season-pill, html body #as-nl-launch, html body #as-fartifacts-launcher, html body #as-studio-fab,
html body #as-p3-npc-button, html body #mkt-fab, html body #as-wallet-fab, html body #as-wallet-pill, html body #as-comms-btn, html body #as-shell-menu,
html body #as-realm-immerse-btn, html body #as-trends-btn, html body #as-realm-create-btn, html body #as-profile-btn, html body #as-wardrobe-btn, html body #as-compass,
html body #as-emote-btn, html body #as-here-chip, html body #as-music-vol, html body #as-achievement-fab, html body #avn-fab, html body #trend-ai-fab,
html body #as-trending-ticker, html body #as-bounty-pill, html body #as-briefs-toggle, html body #as-dock-more,
html body #as-sprint-btn-r664, html body #as-sprint-btn, html body #as-tour-chip, html body #as-studio-fab-earnings,
/* the composer's Create button (the elite rail held it; its rail rule, position:relative, left it in the page flow at z-index
   9400, over the menu button in the marketplace) and the world search button (never placed: under the world, yet in the tab
   order); the menu has Create and Search */
html body #as-composer-launch, html body #as-world-search-btn {
  display: none !important;
}

/* ---------------------------------------------------------------- sheets */
html.as-hud-locked, html.as-hud-locked body { overflow: hidden; overscroll-behavior: none; }
/* the backdrop stops taking taps the moment it closes (pointer-events does not wait for the fade) */
#as-hud-scrim {
  position: fixed; inset: 0; z-index: var(--hud-z-scrim); background: rgba(3, 4, 10, .52); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s; touch-action: none; -webkit-tap-highlight-color: transparent;
}
#as-hud-scrim.as-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
/* the menu panel is the bundle's element, so it is named by id as well; the id rules of the bundle lose to these by specificity */
.as-hud-sheet, html body #as-hud-menu-panel.as-hud-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; height: auto; max-height: 82vh; max-height: 82dvh; margin: 0; box-sizing: border-box;
  display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); z-index: var(--hud-z-sheet);
  background: var(--hud-sheet); color: var(--hud-text); border: 1px solid rgba(122, 220, 236, .22); border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: 0 -14px 44px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: 400 14px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 1; visibility: hidden; pointer-events: none; transform: translateY(104%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
}
.as-hud-sheet.as-open, html body #as-hud-menu-panel.as-hud-sheet.as-open {
  visibility: visible; pointer-events: auto; transform: translateY(0); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.as-hud-sheet.as-dragging, html body #as-hud-menu-panel.as-hud-sheet.as-dragging { transition: none; }
.as-hud-sheet *, .as-hud-sheet *::before, .as-hud-sheet *::after { box-sizing: border-box; }
.as-hud-sheet:focus, html body #as-hud-menu-panel.as-hud-sheet:focus { outline: none; }
/* the handle: a 5px bar drawn in a full-width 22px strip that takes the drag (the page does not scroll from it) */
.as-hud-grab { position: relative; height: 22px; margin: 0 -16px; touch-action: none; cursor: grab; }
.as-hud-grab::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(220, 230, 240, .3); }
.as-hud-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; margin: 0 -16px; padding: 4px 16px; background: var(--hud-sheet); touch-action: none;
}
.as-hud-head h2 { margin: 0; font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--hud-text); }
.as-hud-x {
  flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  border-radius: 12px; border: 1px solid #2A3446; background: #0B0E16; color: var(--hud-text); cursor: pointer;
}
.as-hud-x:focus-visible, .as-hud-btn:focus-visible, .as-hud-switch:focus-visible, .as-hud-range:focus-visible, .as-hud-sheet summary:focus-visible, .as-hud-origin:focus-visible {
  outline: 2px solid var(--hud-accent); outline-offset: 2px;
}
.as-hud-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; margin: 0;
  border-radius: 12px; border: 1px solid #2A3446; background: #0F1420; color: var(--hud-text); cursor: pointer;
  font: 600 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; text-align: center; white-space: normal; text-decoration: none; max-width: 100%;
}
.as-hud-btn.as-hud-wide { display: flex; width: 100%; margin-top: 12px; }
.as-hud-btn.as-hud-primary { background: rgba(122, 220, 236, .14); border-color: rgba(122, 220, 236, .5); color: #EAF8FB; }

/* the sound sheet */
.as-hud-row { padding: 10px 0 12px; border-top: 1px solid var(--hud-line-soft); }
.as-hud-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.as-hud-row-label { font-weight: 600; font-size: 15px; }
.as-hud-switch {
  position: relative; flex: 0 0 auto; width: 60px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 22px;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.as-hud-switch::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 52px; height: 30px; border-radius: 15px; border: 1px solid #2A3446; background: #1A2130;
  box-sizing: border-box; transition: background .15s ease, border-color .15s ease;
}
.as-hud-switch::after { content: ""; position: absolute; left: 8px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: #9FB0C6; transition: transform .15s ease; }
.as-hud-switch[aria-checked="true"]::before { background: rgba(122, 220, 236, .55); border-color: var(--hud-accent); }
.as-hud-switch[aria-checked="true"]::after { transform: translateX(22px); background: #fff; }
.as-hud-range { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--hud-accent); cursor: pointer; }
.as-hud-range.as-hud-dim { opacity: .5; }
.as-hud-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hud-line-soft); }
.as-hud-now > div { min-width: 0; flex: 1 1 auto; }
.as-hud-now small { display: block; font: 600 10px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--hud-muted); margin-bottom: 4px; }
.as-hud-now .as-hud-now-title { display: block; font-size: 14px; overflow-wrap: break-word; }
.as-hud-now .as-hud-btn { flex: 0 0 auto; }
.as-hud-more { margin-top: 12px; border-top: 1px solid var(--hud-line-soft); padding-top: 4px; }
.as-hud-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--hud-muted); font-size: 13px; list-style: none; }
.as-hud-more summary::-webkit-details-marker { display: none; }
.as-hud-more summary::before { content: "+"; display: inline-block; width: 18px; color: var(--hud-accent); }
.as-hud-more[open] summary::before { content: "-"; }
.as-hud-level { padding: 4px 0; }
.as-hud-level label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.as-hud-level output { font: 600 12px ui-monospace, Menlo, monospace; color: var(--hud-muted); }
.as-hud-note { font-size: 12px; color: #7E8A9C; margin: 10px 0 0; }

/* the profile sheet: the identity card the avatar module keeps, laid out for reading */
#as-hud-profile-sheet #as-avatar-card {
  position: static; inset: auto; display: block; width: auto; max-width: none; opacity: 1; transform: none; margin: 0; padding: 0;
  background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--hud-text);
  font: 400 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}
#as-hud-profile-sheet #as-avatar-card h4 { font: 600 10px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--hud-accent); margin: 14px 0 8px; }
#as-hud-profile-sheet #as-avatar-card .name { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 2px; overflow-wrap: break-word; }
#as-hud-profile-sheet #as-avatar-card .sub { font-size: 12px; color: var(--hud-muted); letter-spacing: .04em; margin: 0; }
#as-hud-profile-sheet #as-avatar-card .reps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
#as-hud-profile-sheet #as-avatar-card .rep { padding: 8px 10px; border-radius: 10px; background: #0F1420; border: 1px solid var(--hud-line-soft); min-width: 0; }
#as-hud-profile-sheet #as-avatar-card .rep-label { font: 600 10px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--hud-muted); overflow-wrap: break-word; }
#as-hud-profile-sheet #as-avatar-card .rep-val { font: 600 16px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; color: #fff; }
#as-hud-profile-sheet #as-avatar-card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
#as-hud-profile-sheet #as-avatar-card .action {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; text-align: center;
  border: 1px solid #2A3446; background: #0F1420; color: var(--hud-text); font: 600 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em; text-transform: none; transform: none; cursor: pointer; width: 100%; margin: 0;
}
#as-hud-profile-sheet #as-avatar-card .action.primary { background: rgba(122, 220, 236, .14); border-color: rgba(122, 220, 236, .5); color: #EAF8FB; box-shadow: none; }
#as-hud-profile-sheet #as-avatar-card .as-hud-minor { display: flex; flex-wrap: wrap; gap: 8px; }
#as-hud-profile-sheet #as-avatar-card .as-hud-minor .action { flex: 1 1 130px; width: auto; font-weight: 500; color: var(--hud-muted); }
.as-hud-origin {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 14px 0 0; padding: 8px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(122, 220, 236, .35); background: #0B0E16; color: var(--hud-text); text-align: left; font: 600 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}
.as-hud-origin i { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background-size: cover; background-position: center 22%; }
.as-hud-origin small { display: block; font-weight: 400; color: var(--hud-muted); font-size: 12px; }

/* the motion and feel panel (the page's own #as-sense) inside a sheet */
#as-hud-sense-sheet #as-sense { position: static; inset: auto; width: auto; max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; z-index: auto; }
#as-hud-sense-sheet #as-sense .ss-h { display: none; }

/* wide screens: the sound, profile and motion sheets become popovers beside the dock */
@media (min-width: 768px) {
  .as-hud-sheet.as-hud-pop {
    left: auto; right: calc(var(--hud-r) + var(--hud-btn) + 14px); bottom: var(--hud-b); width: 360px; max-height: min(76vh, 620px);
    border-radius: 16px; border-bottom: 1px solid rgba(122, 220, 236, .22); padding-bottom: 16px;
    opacity: 0; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .as-hud-sheet.as-hud-pop.as-open { opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease; }
  .as-hud-sheet.as-hud-pop .as-hud-grab { display: none; }
  #as-hud-scrim.as-hud-light { background: rgba(3, 4, 10, .22); }
}

/* ---------------------------------------------------------------- the menu: a bottom sheet under 768px, a right panel of 360px from 768px */
html body #as-hud-menu-panel.as-hud-sheet { font: 400 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; }
@media (min-width: 768px) {
  html body #as-hud-menu-panel.as-hud-sheet {
    left: auto; top: 0; right: 0; bottom: 0; width: 360px; height: 100%; max-height: none;
    border-radius: 20px 0 0 20px; border-bottom: 1px solid rgba(122, 220, 236, .22); border-right: 0;
    padding: env(safe-area-inset-top, 0px) calc(16px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) 16px;
    transform: translateX(104%);
  }
  html body #as-hud-menu-panel.as-hud-sheet.as-open { transform: translateX(0); }
  html body #as-hud-menu-panel.as-hud-sheet .as-hud-grab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .as-hud-sheet, html body #as-hud-menu-panel.as-hud-sheet, .as-hud-sheet.as-open, html body #as-hud-menu-panel.as-hud-sheet.as-open,
  .as-hud-sheet.as-hud-pop, .as-hud-sheet.as-hud-pop.as-open, #as-hud-scrim, #as-hud-scrim.as-on, .as-hud-switch::before, .as-hud-switch::after { transition: none; }
  /* a11y-fixes.css gives every element a 0.01ms transition under reduced motion; on a sheet's contents that turned the
     inherited visibility of an opening sheet into a transition that waits for a frame, so its buttons came alive late */
  .as-hud-sheet *, html body #as-hud-menu-panel * { transition-property: none; }
  #as-hud-dock > button:active, html body #as-hud-menu-btn:active { transform: none; }
}
