.explore-mount,
.explore-experience {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.explore-experience {
  --explore-fg: #f4f6fb;
  --explore-panel: rgba(13,14,20,.90);
  --explore-border: rgba(255,255,255,.18);
  --explore-hover: rgba(255,255,255,.10);
  --explore-selected: rgba(255,255,255,.18);
  background: #070719;
  color: var(--explore-fg);
}

body[data-theme="day"] .explore-experience {
  --explore-fg: #18283a;
  --explore-panel: rgba(247,248,246,.92);
  --explore-border: rgba(24,40,58,.18);
  --explore-hover: rgba(24,40,58,.08);
  --explore-selected: rgba(24,40,58,.14);
}

.explore-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

.explore-status {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border: 1px solid var(--explore-border);
  border-radius: 999px;
  background: var(--explore-panel);
  color: var(--explore-fg);
  font: 600 13px/1.2 system-ui, sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.explore-status[hidden],
.explore-popover[hidden],
.explore-help-modal[hidden] {
  display: none !important;
}

.explore-control-button {
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--explore-border);
  border-radius: 12px;
  background: var(--explore-panel);
  color: var(--explore-fg);
  font: 400 21px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.explore-control-button:hover,
.explore-control-button:focus-visible,
.explore-control-button.selected,
.explore-control-button.active {
  background: var(--explore-selected);
  border-color: color-mix(in srgb, var(--explore-fg) 42%, transparent);
}

.explore-control-group {
  position: absolute;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explore-picker {
  position: relative;
  display: contents;
}

.explore-theme-toggle {
  display: none !important;
}

.explore-morph-controls {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

.explore-scroll-controls {
  right: 28px;
  top: 50%;
  flex-direction: column;
  transform: translateY(-50%);
}

.explore-text-size-controls {
  right: 28px;
  bottom: 28px;
}

.explore-help-controls {
  position: absolute;
  z-index: 31;
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explore-menu-button {
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--explore-border);
  border-radius: 12px;
  background: url("../assets/bracketeer_logo.jpg") center / cover no-repeat;
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
  cursor: pointer;
}

.explore-menu-button:hover,
.explore-menu-button:focus-visible {
  border-color: color-mix(in srgb, var(--explore-fg) 42%, transparent);
}

.explore-popover {
  position: absolute;
  z-index: 45;
  display: flex;
  gap: 6px;
  width: max-content;
  padding: 7px;
  border: 1px solid var(--explore-border);
  border-radius: 14px;
  background: var(--explore-panel);
  box-shadow: 0 16px 44px rgba(0,0,0,.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.explore-morph-speed-menu {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

.explore-scroll-speed-menu {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}

.explore-text-size-menu {
  right: 0;
  bottom: calc(100% + 8px);
}

.explore-emoji-option {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--explore-fg);
  font: 400 22px/1 system-ui, sans-serif;
  cursor: pointer;
}

.explore-emoji-option:hover,
.explore-emoji-option:focus-visible,
.explore-emoji-option.selected {
  border-color: var(--explore-border);
  background: var(--explore-selected);
}

/* ==========================================================
   ORIGINAL-STYLE HELP MODAL
   ========================================================== */

.explore-help-modal {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.explore-help-card {
  position: relative;
  width: min(560px, calc(100vw - 40px));
  padding: 26px 26px 24px;
  border: 1px solid var(--explore-border);
  border-radius: 18px;
  background: var(--explore-panel);
  color: var(--explore-fg);
  box-shadow: 0 18px 58px rgba(0,0,0,.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.explore-help-card h2 {
  margin: 0 0 20px;
  font: 700 22px/1.1 system-ui, sans-serif;
}

.explore-help-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--explore-fg);
  font: 300 28px/1 system-ui, sans-serif;
  cursor: pointer;
}

.explore-help-grid {
  display: grid;
  grid-template-columns: 102px minmax(0,1fr);
  align-items: center;
  gap: 12px 16px;
  font: 500 14px/1.35 system-ui, sans-serif;
}

.explore-help-grid kbd {
  min-width: 72px;
  justify-self: center;
  padding: 8px 10px;
  border: 1px solid var(--explore-border);
  border-radius: 9px;
  background: var(--explore-hover);
  color: var(--explore-fg);
  font: 600 17px/1 system-ui, sans-serif;
  text-align: center;
}

/* ==========================================================
   MOBILE SETTINGS — same compact grouped layout as original
   ========================================================== */

.explore-mobile-settings-button,
.explore-mobile-settings-panel {
  display: none;
}

@media (max-width: 720px) {
  .explore-theme-toggle,
  .explore-morph-controls,
  .explore-scroll-controls,
  .explore-text-size-controls {
    display: none;
  }

  .explore-help-controls {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 5px;
  }

  .explore-menu-button,
  .explore-help-controls .explore-control-button,
  .explore-mobile-settings-button,
  .explore-mobile-settings-panel .explore-control-button {
    width: 42px;
    height: 42px;
  }

  .explore-menu-button {
    border-radius: 11px;
  }

  .explore-mobile-settings-button {
    position: absolute;
    z-index: 72;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
  }

  .explore-mobile-settings-panel {
    position: absolute;
    z-index: 73;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
    display: none;
    width: min(330px, calc(100vw - 24px));
    padding: 12px 14px;
    border: 1px solid var(--explore-border);
    border-radius: 18px;
    background: var(--explore-panel);
    color: var(--explore-fg);
    box-shadow: 0 18px 54px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .explore-mobile-settings-panel.open {
    display: block;
  }

  .explore-mobile-settings-title {
    padding: 5px 4px 9px;
    font: 700 13px/1.2 system-ui, sans-serif;
    letter-spacing: .04em;
    opacity: .86;
  }

  .explore-mobile-settings-group {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--explore-border);
  }

  .explore-mobile-settings-group:last-child {
    border-bottom: 0;
  }

  .explore-mobile-settings-label {
    font: 500 12px/1.2 system-ui, sans-serif;
    opacity: .72;
  }

  .explore-mobile-settings-slot {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .explore-mobile-rebracket-slot {
    flex-wrap: wrap;
  }

  .explore-mobile-picker {
    position: relative;
    display: block;
  }

  .explore-mobile-settings-panel .explore-popover {
    left: auto;
    right: 0;
    top: auto;
    bottom: calc(100% + 7px);
    transform: none;
    flex-wrap: wrap;
    max-width: min(286px, calc(100vw - 44px));
    z-index: 80;
  }

  .explore-help-card {
    width: min(510px, calc(100vw - 24px));
    padding: 22px 16px 18px;
  }

  .explore-help-grid {
    grid-template-columns: 84px minmax(0,1fr);
    gap: 10px 12px;
    font-size: 12px;
  }

  .explore-help-grid kbd {
    min-width: 60px;
    padding: 7px 6px;
    font-size: 15px;
  }
}


/* Explore uses the shell-owned appearance control in the upper-right. */
.explore-mobile-theme-button {
  display: none !important;
}

/* ==========================================================
   EXPLORE SAFE TEXT GUTTER + LOWER CONTROL BAR
   ========================================================== */

.explore-experience {
  --explore-text-left-inset: 98px;
  --explore-text-right-inset: 98px;
  --explore-bottom-bar-height: 86px;
}

.explore-bottom-bar {
  position: absolute;
  z-index: 26;

  left: 0;
  right: 0;
  bottom: 0;

  height:
    var(
      --explore-bottom-bar-height
    );

  pointer-events: none;

  border-top:
    1px solid
    rgba(255,255,255,.10);

  background:
    linear-gradient(
      to bottom,
      rgba(3,4,8,.88),
      rgba(3,4,8,.97)
    );

  box-shadow:
    0 -12px 34px
    rgba(0,0,0,.20);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);
}

.explore-morph-controls,
.explore-text-size-controls,
.explore-help-controls {
  bottom: 20px;
}

.explore-scroll-controls {
  right: 24px;

  top:
    calc(
      (
        100%
        - var(
            --explore-bottom-bar-height
          )
      )
      / 2
    );
}

.explore-scroll-speed-menu {
  left: auto;
  right: calc(100% + 8px);

  top: 50%;
  bottom: auto;

  flex-direction: column;

  transform:
    translateY(-50%);
}

.explore-text-size-controls {
  right: 24px;
}

body[data-theme="day"]
.explore-bottom-bar {
  border-top-color:
    rgba(255,255,255,.12);

  background:
    linear-gradient(
      to bottom,
      rgba(12,14,18,.88),
      rgba(9,11,14,.96)
    );
}

@media (max-width: 720px) {
  .explore-experience {
    --explore-text-left-inset: 64px;
    --explore-text-right-inset: 64px;
    --explore-bottom-bar-height: 68px;
  }

  .explore-help-controls {
    bottom:
      max(
        12px,
        env(
          safe-area-inset-bottom
        )
      );
  }

  .explore-mobile-settings-button {
    bottom:
      max(
        12px,
        env(
          safe-area-inset-bottom
        )
      );
  }

  .explore-mobile-settings-panel {
    bottom:
      max(
        76px,
        calc(
          env(
            safe-area-inset-bottom
          )
          + 76px
        )
      );
  }
}

/* ==========================================================
   SINGLE-CANVAS EXPLORE + VICTORY
   ========================================================== */

body[data-shell-mode="explore"] .explore-layer,
body[data-shell-mode="victory"] .explore-layer {
  visibility: visible;
  opacity: 1;
  transition: opacity 220ms ease;
}

body[data-shell-mode="explore"] .explore-layer {
  pointer-events: auto;
}

body[data-shell-mode="victory"] .explore-layer {
  pointer-events: none;
}

body[data-shell-mode="victory"] .explore-bottom-bar,
body[data-shell-mode="victory"] .explore-morph-controls,
body[data-shell-mode="victory"] .explore-scroll-controls,
body[data-shell-mode="victory"] .explore-text-size-controls,
body[data-shell-mode="victory"] .explore-help-controls,
body[data-shell-mode="victory"] .explore-mobile-settings-button,
body[data-shell-mode="victory"] .explore-mobile-settings-panel,
body[data-shell-mode="victory"] .explore-status {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The shell victory layer supplies only the title/actions overlay. */
body[data-shell-mode="victory"] .victory-layer {
  background: transparent;
}

body[data-shell-mode="victory"] .victory-text-stage {
  visibility: hidden;
  pointer-events: none;
}

body[data-shell-mode="victory"] .victory-surface {
  pointer-events: none;
}

body[data-shell-mode="victory"] .victory-puzzle-title,
body[data-shell-mode="victory"] .victory-actions {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}


/* === PRERENDERED EXPLORE PROJECTOR V1 === */

/*
 * This layer is intentionally underneath the existing Explore UI.
 * The old controls keep their original styling and stacking.
 */
.explore-prerendered-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.explore-prerendered-motion {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.explore-prerendered-scale {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: top center;
  will-change: transform;
}

.explore-prerendered-bank {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.explore-prerendered-tile {
  position: absolute;
  left: 0;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
}

/*
 * Canvas remains the gesture surface, but no wall or morph is
 * rendered into it anymore.
 */
.explore-canvas {
  z-index: 1;
  background: transparent !important;
}

/* ==========================================================
   RESTORE V2/V3 EXPLORE CONTROL GEOMETRY
   The prerendered projector stays untouched.
   ========================================================== */

@media (min-width: 721px) {

  /*
   * The later v4 lower-control-bar experiment is no longer
   * part of the Explore presentation.
   */
  .explore-bottom-bar {
    display: none !important;
  }

  /*
   * Restore the original free-floating control groups.
   */
  .explore-control-group {
    position: absolute !important;
    z-index: 31 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Rebracketing: centered along bottom edge. */
  .explore-morph-controls {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 28px !important;
    flex-direction: row !important;
    transform: translateX(-50%) !important;
  }

  /* Scrolling: vertical group, centered on right edge. */
  .explore-scroll-controls {
    left: auto !important;
    right: 28px !important;
    top: 50% !important;
    bottom: auto !important;
    flex-direction: column !important;
    transform: translateY(-50%) !important;
  }

  /* Text size: bottom-right. */
  .explore-text-size-controls {
    left: auto !important;
    right: 28px !important;
    top: auto !important;
    bottom: 28px !important;
    flex-direction: row !important;
    transform: none !important;
  }

  /* Menu / help / theme: bottom-left. */
  .explore-help-controls {
    position: absolute !important;
    z-index: 31 !important;
    left: 28px !important;
    right: auto !important;
    top: auto !important;
    bottom: 28px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transform: none !important;
  }

  /*
   * Picker menus return to their natural relationship with
   * their buttons instead of the lower-bar geometry.
   */
  .explore-scroll-speed-menu {
    left: auto !important;
    right: calc(100% + 8px) !important;
    top: 50% !important;
    bottom: auto !important;
    flex-direction: column !important;
    transform: translateY(-50%) !important;
  }
}


/* ==========================================================
   ORIGINAL V2/V3 EXPLORE CONTROL PRESENTATION
   Target: original pill-mounted controls shown in reference.
   Does not affect the prerendered reel.
   ========================================================== */

@media (min-width: 721px) {

  /*
   * Mobile settings must never leak into desktop Explore.
   */
  .explore-mobile-settings-button,
  .explore-mobile-settings-panel {
    display: none !important;
  }

  /*
   * Restore the original lower dark control shelf.
   */
  .explore-experience {
    --explore-bottom-bar-height: 86px;
  }

  .explore-bottom-bar {
    display: block !important;
    position: absolute !important;
    z-index: 26 !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    height: var(--explore-bottom-bar-height) !important;

    pointer-events: none !important;

    border-top: 1px solid rgba(255,255,255,.10) !important;

    background:
      linear-gradient(
        to bottom,
        rgba(3,4,8,.72),
        rgba(3,4,8,.97)
      ) !important;

    box-shadow:
      0 -12px 34px
      rgba(0,0,0,.20) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /*
   * The four original pill housings.
   */
  .explore-morph-controls,
  .explore-scroll-controls,
  .explore-text-size-controls,
  .explore-help-controls {
    position: absolute !important;
    z-index: 31 !important;

    display: flex !important;
    align-items: center !important;

    box-sizing: border-box !important;

    gap: 6px !important;
    padding: 7px !important;

    border:
      1px solid
      rgba(255,255,255,.18) !important;

    border-radius:
      999px !important;

    background:
      rgba(12,13,19,.76) !important;

    box-shadow:
      0 8px 28px
      rgba(0,0,0,.32) !important;

    backdrop-filter:
      blur(14px) !important;

    -webkit-backdrop-filter:
      blur(14px) !important;
  }

  /*
   * Individual buttons inside the housings.
   */
  .explore-control-button {
    box-sizing: border-box !important;

    width: 46px !important;
    height: 46px !important;

    min-width: 46px !important;
    min-height: 46px !important;

    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    border:
      1px solid
      rgba(255,255,255,.18) !important;

    border-radius:
      50% !important;

    background:
      rgba(255,255,255,.10) !important;

    color:
      #f4f6fb !important;

    font:
      400 21px/1
      system-ui,
      sans-serif !important;

    cursor: pointer !important;

    box-shadow:
      inset 0 1px 0
      rgba(255,255,255,.05) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .explore-control-button:hover,
  .explore-control-button:focus-visible,
  .explore-control-button.selected,
  .explore-control-button.active {
    background:
      rgba(255,255,255,.18) !important;

    border-color:
      rgba(255,255,255,.32) !important;
  }

  /*
   * Bottom-left [b] button stays the original rounded square.
   */
  .explore-menu-button {
    box-sizing: border-box !important;

    width: 46px !important;
    height: 46px !important;

    min-width: 46px !important;
    min-height: 46px !important;

    padding: 0 !important;

    border:
      1px solid
      rgba(255,255,255,.22) !important;

    border-radius:
      12px !important;

    background:
      url("../assets/bracketeer_logo.jpg")
      center / cover
      no-repeat !important;

    box-shadow:
      inset 0 1px 0
      rgba(255,255,255,.08) !important;

    cursor:
      pointer !important;
  }

  /*
   * Exact original cluster locations.
   */

  /* Rebracketing pill — bottom center. */
  .explore-morph-controls {
    left: 50% !important;
    right: auto !important;

    top: auto !important;
    bottom: 12px !important;

    flex-direction: row !important;

    transform:
      translateX(-50%) !important;
  }

  /* Movement pill — vertically centered at right. */
  .explore-scroll-controls {
    left: auto !important;
    right: 24px !important;

    top:
      calc(
        (
          100%
          - var(--explore-bottom-bar-height)
        )
        / 2
      ) !important;

    bottom: auto !important;

    flex-direction:
      column !important;

    transform:
      translateY(-50%) !important;
  }

  /* Text-size pill — bottom-right. */
  .explore-text-size-controls {
    left: auto !important;
    right: 78px !important;

    top: auto !important;
    bottom: 12px !important;

    flex-direction: row !important;

    transform:
      none !important;
  }

  /* [b] + ? pill — bottom-left. */
  .explore-help-controls {
    left: 78px !important;
    right: auto !important;

    top: auto !important;
    bottom: 12px !important;

    flex-direction: row !important;

    transform:
      none !important;
  }

  /*
   * Popovers must escape their pill visually.
   */
  .explore-picker {
    position: relative !important;
  }

  .explore-popover {
    z-index: 70 !important;

    padding: 7px !important;

    border:
      1px solid
      rgba(255,255,255,.18) !important;

    border-radius:
      14px !important;

    background:
      rgba(12,13,19,.94) !important;

    box-shadow:
      0 16px 44px
      rgba(0,0,0,.35) !important;

    backdrop-filter:
      blur(18px) !important;

    -webkit-backdrop-filter:
      blur(18px) !important;
  }

  .explore-morph-speed-menu {
    left: 50% !important;
    right: auto !important;

    top: auto !important;
    bottom:
      calc(100% + 8px) !important;

    transform:
      translateX(-50%) !important;
  }

  .explore-scroll-speed-menu {
    left: auto !important;
    right:
      calc(100% + 8px) !important;

    top: 50% !important;
    bottom: auto !important;

    flex-direction:
      column !important;

    transform:
      translateY(-50%) !important;
  }

  .explore-text-size-menu {
    left: auto !important;
    right: 0 !important;

    top: auto !important;
    bottom:
      calc(100% + 8px) !important;
  }
}

/*
 * Preserve the existing dedicated mobile control system.
 */
@media (max-width: 720px) {
  .explore-mobile-settings-panel:not(.open) {
    display: none !important;
  }
}


/* Hide every generation of the mobile Explore settings UI on desktop. */
@media (min-width: 721px) {
  .explore-mobile-settings-button,
  .explore-mobile-settings-panel,
  #mobileExploreSettingsButton,
  #mobileExploreSettingsPanel {
    display: none !important;
  }
}


/* ==========================================================
   ORIGINAL ROUND EXPLORE PICKERS · RESTORED 2026-09-09
   ========================================================== */

@media (min-width: 721px) {
  /*
   * One continuous rounded glass pill around the animal choices.
   */
  .explore-popover {
    gap: 7px !important;
    padding: 8px !important;

    border: 1px solid var(--explore-border) !important;
    border-radius: 999px !important;

    background: var(--explore-panel) !important;

    box-shadow:
      0 14px 42px
      rgba(0,0,0,.38) !important;

    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }

  /*
   * Individual choices return to circular buttons rather
   * than the current square/rectangular cells.
   */
  .explore-popover .explore-emoji-option {
    box-sizing: border-box !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    border:
      1px solid
      var(--explore-border) !important;

    border-radius: 999px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 7%,
        transparent
      ) !important;

    color: var(--explore-fg) !important;

    font:
      400 21px/1
      system-ui,
      sans-serif !important;

    box-shadow: none !important;
  }

  .explore-popover .explore-emoji-option:hover,
  .explore-popover .explore-emoji-option:focus-visible {
    background:
      color-mix(
        in srgb,
        var(--explore-fg) 13%,
        transparent
      ) !important;
  }

  .explore-popover .explore-emoji-option.selected,
  .explore-popover .explore-emoji-option.active,
  .explore-popover .explore-emoji-option[aria-pressed="true"] {
    background:
      color-mix(
        in srgb,
        var(--explore-fg) 20%,
        transparent
      ) !important;

    box-shadow:
      inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--explore-fg) 22%,
        transparent
      ) !important;
  }

  /*
   * Original rebracketing picker: horizontal pill above
   * the center control group.
   */
  .explore-morph-speed-menu {
    left: 50% !important;
    right: auto !important;

    top: auto !important;
    bottom: calc(100% + 14px) !important;

    flex-direction: row !important;

    transform:
      translateX(-50%) !important;
  }

  /*
   * Scroll choices remain a vertical pill to the left
   * of the right-side scroll controls.
   */
  .explore-scroll-speed-menu {
    left: auto !important;
    right: calc(100% + 14px) !important;

    top: 50% !important;
    bottom: auto !important;

    flex-direction: column !important;

    transform:
      translateY(-50%) !important;
  }

  /*
   * Text-size choices form the same rounded horizontal pill.
   */
  .explore-text-size-menu {
    left: auto !important;
    right: 0 !important;

    top: auto !important;
    bottom: calc(100% + 14px) !important;

    flex-direction: row !important;
  }
}

/* ==========================================================
   EXPLORE PICKER POSITIONING · FINAL OVERRIDE
   ========================================================== */

@media (min-width: 721px) {

  /*
   * A picker must be a REAL positioning box.
   * display:contents was the source of the giant misplaced menus.
   */
  .explore-picker {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
  }

  /*
   * Every desktop option menu is one horizontal pill.
   */
  .explore-popover {
    position: absolute !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    gap: 7px !important;
    padding: 8px !important;

    border: 1px solid var(--explore-border) !important;
    border-radius: 999px !important;

    background: var(--explore-panel) !important;

    box-shadow:
      0 14px 42px
      rgba(0,0,0,.38) !important;

    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;

    white-space: nowrap !important;
  }

  /*
   * Individual choices are circular.
   */
  .explore-popover > button,
  .explore-popover .explore-emoji-option {
    box-sizing: border-box !important;

    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    border: 1px solid var(--explore-border) !important;
    border-radius: 999px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 7%,
        transparent
      ) !important;

    color: var(--explore-fg) !important;

    font:
      400 21px/1
      system-ui,
      sans-serif !important;
  }

  .explore-popover > button:hover,
  .explore-popover > button:focus-visible,
  .explore-popover > button.selected,
  .explore-popover .explore-emoji-option.selected {
    background:
      color-mix(
        in srgb,
        var(--explore-fg) 21%,
        transparent
      ) !important;
  }

  /*
   * REBRACKETING SPEED
   * Horizontal, centered ABOVE the turtle button.
   */
  .explore-morph-speed-menu {
    left: 50% !important;
    right: auto !important;

    top: auto !important;
    bottom: calc(100% + 14px) !important;

    transform: translateX(-50%) !important;
  }

  /*
   * SCROLL SPEED
   * Horizontal, immediately LEFT of the scooter button.
   */
  .explore-scroll-speed-menu {
    left: auto !important;
    right: calc(100% + 14px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;
  }

  /*
   * TEXT SIZE
   * Horizontal, immediately LEFT of its animal button.
   */
  .explore-text-size-menu {
    left: auto !important;
    right: calc(100% + 14px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;
  }
}

/* ==========================================================
   EXPLORE PICKER VISIBILITY · FINAL
   ========================================================== */

@media (min-width: 721px) {
  /*
   * Picker geometry rules deliberately use display:flex.
   * Visibility is a separate state: closed menus do not render.
   */
  .explore-popover,
  .explore-popover[hidden] {
    display: none !important;
  }

  .explore-popover.open:not([hidden]) {
    display: flex !important;
  }
}

/* ==========================================================
   EXPLORE PICKER PILL BACKGROUND
   ========================================================== */

@media (min-width: 721px) {
  .explore-popover.open:not([hidden]) {
    background:
      rgba(12, 13, 19, .97) !important;

    border:
      1px solid
      rgba(255,255,255,.20) !important;

    box-shadow:
      0 14px 42px rgba(0,0,0,.48) !important;

    backdrop-filter:
      blur(18px) !important;

    -webkit-backdrop-filter:
      blur(18px) !important;
  }

  body[data-theme="day"]
  .explore-popover.open:not([hidden]) {
    background:
      rgba(247, 248, 246, .97) !important;

    border-color:
      rgba(24,40,58,.20) !important;

    box-shadow:
      0 14px 42px rgba(0,0,0,.20) !important;
  }
}

/* ==========================================================
   EXPLORE INTERACTION POLISH
   ========================================================== */

/* Every genuinely clickable Explore button gets the hand cursor. */
.explore-experience button:not(:disabled) {
  cursor: pointer !important;
}

/*
 * Explicitly separate Help's hidden/open states.
 * Keep it above the wall, controls and picker popovers.
 */
.explore-help-modal[hidden] {
  display: none !important;
}

.explore-help-modal:not([hidden]) {
  position: absolute !important;
  z-index: 1000 !important;

  inset: 0 !important;

  display: grid !important;
  place-items: center !important;

  pointer-events: auto !important;

  background:
    rgba(0, 0, 0, .42) !important;

  backdrop-filter:
    blur(4px) !important;

  -webkit-backdrop-filter:
    blur(4px) !important;
}

.explore-help-modal:not([hidden]) .explore-help-card {
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
}

/* ==========================================================
   EXPLORE UI POLISH · HELP / LABELS / TOOLTIPS
   ========================================================== */

/*
 * The three buttons that open option menus have visible labels.
 * Ordinary action buttons remain circular.
 */
@media (min-width: 721px) {
  .explore-scroll-speed-button,
  .explore-morph-speed-button,
  .explore-text-size-button {
    width: auto !important;
    max-width: none !important;
    min-width: 46px !important;

    padding:
      0 13px !important;

    border-radius:
      999px !important;

    white-space:
      nowrap !important;

    font:
      600 13px/1
      system-ui,
      sans-serif !important;
  }
}

/*
 * Tooltips should require a small intentional hover.
 * Removing the pointer immediately removes the delay.
 */
.explore-experience [data-tooltip]::before,
.explore-experience [data-tooltip]::after {
  transition-delay:
    0s !important;
}

.explore-experience [data-tooltip]:hover::before,
.explore-experience [data-tooltip]:hover::after {
  transition-delay:
    180ms !important;
}

/* ==========================================================
   HELP MODAL
   ========================================================== */

.explore-help-modal[hidden] {
  display:
    none !important;
}

.explore-help-modal:not([hidden]) {
  position:
    absolute !important;

  z-index:
    1000 !important;

  inset:
    0 !important;

  box-sizing:
    border-box !important;

  display:
    grid !important;

  place-items:
    center !important;

  padding:
    24px !important;

  overflow:
    auto !important;

  background:
    rgba(0,0,0,.58) !important;

  backdrop-filter:
    blur(7px) !important;

  -webkit-backdrop-filter:
    blur(7px) !important;

  pointer-events:
    auto !important;
}

.explore-help-card {
  position:
    relative !important;

  box-sizing:
    border-box !important;

  width:
    min(620px, calc(100vw - 48px)) !important;

  max-height:
    min(720px, calc(100vh - 48px)) !important;

  overflow:
    auto !important;

  padding:
    26px 28px 28px !important;

  border:
    1px solid
    rgba(255,255,255,.18) !important;

  border-radius:
    20px !important;

  background:
    rgba(12,13,19,.97) !important;

  color:
    #f4f6fb !important;

  box-shadow:
    0 24px 80px
    rgba(0,0,0,.58) !important;
}

.explore-help-card h2 {
  margin:
    0 44px 22px 0 !important;

  font:
    700 22px/1.15
    system-ui,
    sans-serif !important;
}

.explore-help-close {
  position:
    absolute !important;

  top:
    14px !important;

  right:
    14px !important;

  box-sizing:
    border-box !important;

  width:
    36px !important;

  height:
    36px !important;

  padding:
    0 !important;

  display:
    grid !important;

  place-items:
    center !important;

  border:
    1px solid
    rgba(255,255,255,.18) !important;

  border-radius:
    50% !important;

  background:
    rgba(255,255,255,.10) !important;

  color:
    inherit !important;

  font:
    500 20px/1
    system-ui,
    sans-serif !important;

  cursor:
    pointer !important;
}

.explore-help-grid {
  display:
    grid !important;

  grid-template-columns:
    max-content minmax(0, 1fr) !important;

  align-items:
    center !important;

  gap:
    12px 18px !important;

  font:
    400 14px/1.45
    system-ui,
    sans-serif !important;
}

.explore-help-grid kbd {
  box-sizing:
    border-box !important;

  min-width:
    70px !important;

  padding:
    7px 10px !important;

  border:
    1px solid
    rgba(255,255,255,.15) !important;

  border-radius:
    9px !important;

  background:
    rgba(255,255,255,.08) !important;

  color:
    inherit !important;

  text-align:
    center !important;

  white-space:
    nowrap !important;

  font:
    600 13px/1.2
    system-ui,
    sans-serif !important;
}

.explore-help-grid span {
  min-width:
    0 !important;
}

/*
 * Corresponding light appearance.
 */
body[data-theme="day"] .explore-help-modal:not([hidden]) {
  background:
    rgba(230,232,234,.58) !important;
}

body[data-theme="day"] .explore-help-card {
  border-color:
    rgba(24,40,58,.18) !important;

  background:
    rgba(250,250,248,.98) !important;

  color:
    #18212b !important;

  box-shadow:
    0 24px 80px
    rgba(20,28,38,.24) !important;
}

body[data-theme="day"] .explore-help-close,
body[data-theme="day"] .explore-help-grid kbd {
  border-color:
    rgba(24,40,58,.16) !important;

  background:
    rgba(24,40,58,.07) !important;
}

@media (max-width: 720px) {
  .explore-help-modal:not([hidden]) {
    padding:
      14px !important;
  }

  .explore-help-card {
    width:
      min(100%, 560px) !important;

    padding:
      22px 18px 24px !important;
  }

  .explore-help-grid {
    grid-template-columns:
      1fr !important;

    gap:
      6px !important;
  }

  .explore-help-grid kbd {
    justify-self:
      start !important;

    margin-top:
      8px !important;
  }
}

/* Picker buttons remain round; names belong in tooltips. */
@media (min-width: 721px) {
  .explore-scroll-speed-button,
  .explore-morph-speed-button,
  .explore-text-size-button {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;

    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;

    padding: 0 !important;
    border-radius: 50% !important;

    font:
      400 21px/1
      system-ui,
      sans-serif !important;
  }
}


/* BG V4 EXPLORE SIDE GLOW M1 2026-09-14 */
.explore-side-glow {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 120ms linear;
}

.explore-side-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity;
}

.explore-side-glow-upper {
  opacity: var(--explore-upper-glow-alpha, 1);
  background:
    linear-gradient(90deg, rgba(18,122,255,.68) 0%, rgba(18,122,255,.34) 3%, rgba(18,122,255,.16) 8%, rgba(18,122,255,.075) 18%, rgba(18,122,255,.032) 32%, rgba(18,122,255,.012) 42%, rgba(18,122,255,0) 50%),
    linear-gradient(270deg, rgba(18,122,255,.68) 0%, rgba(18,122,255,.34) 3%, rgba(18,122,255,.16) 8%, rgba(18,122,255,.075) 18%, rgba(18,122,255,.032) 32%, rgba(18,122,255,.012) 42%, rgba(18,122,255,0) 50%);
}

.explore-side-glow-lower {
  opacity: var(--explore-lower-glow-alpha, 0);
  background:
    linear-gradient(90deg, rgba(255,112,0,.68) 0%, rgba(255,112,0,.34) 3%, rgba(255,112,0,.16) 8%, rgba(255,112,0,.075) 18%, rgba(255,112,0,.032) 32%, rgba(255,112,0,.012) 42%, rgba(255,112,0,0) 50%),
    linear-gradient(270deg, rgba(255,112,0,.68) 0%, rgba(255,112,0,.34) 3%, rgba(255,112,0,.16) 8%, rgba(255,112,0,.075) 18%, rgba(255,112,0,.032) 32%, rgba(255,112,0,.012) 42%, rgba(255,112,0,0) 50%);
}

/* BG V4 EXPLORE SIDE GLOW M2 2026-09-14 START */
/*
 * Long-tail halfpipe version:
 * keep the same edge punch, but let a faint tint hover all the
 * way to the midpoint instead of dropping to nothing too early.
 */
.explore-experience :is(
  .explore-side-glow-upper,
  .explore-side-glow.upper,
  .explore-upper-side-glow,
  .explore-upper-glow,
  .explore-glow-upper,
  .explore-paragraph-glow-upper,
  .explore-paragraph-glow.upper,
  .explore-upper-paragraph-glow,
  [data-glow-band="upper"],
  [class*="upper"][class*="glow"]
) {
  background: linear-gradient(
    90deg,
    rgba(70, 125, 255, 0.32) 0%,
    rgba(70, 125, 255, 0.18) 10%,
    rgba(70, 125, 255, 0.085) 24%,
    rgba(70, 125, 255, 0.035) 38%,
    rgba(70, 125, 255, 0.012) 50%,
    rgba(70, 125, 255, 0.035) 62%,
    rgba(70, 125, 255, 0.085) 76%,
    rgba(70, 125, 255, 0.18) 90%,
    rgba(70, 125, 255, 0.32) 100%
  ) !important;
}

.explore-experience :is(
  .explore-side-glow-lower,
  .explore-side-glow.lower,
  .explore-lower-side-glow,
  .explore-lower-glow,
  .explore-glow-lower,
  .explore-paragraph-glow-lower,
  .explore-paragraph-glow.lower,
  .explore-lower-paragraph-glow,
  [data-glow-band="lower"],
  [class*="lower"][class*="glow"]
) {
  background: linear-gradient(
    90deg,
    rgba(255, 150, 55, 0.32) 0%,
    rgba(255, 150, 55, 0.18) 10%,
    rgba(255, 150, 55, 0.085) 24%,
    rgba(255, 150, 55, 0.035) 38%,
    rgba(255, 150, 55, 0.012) 50%,
    rgba(255, 150, 55, 0.035) 62%,
    rgba(255, 150, 55, 0.085) 76%,
    rgba(255, 150, 55, 0.18) 90%,
    rgba(255, 150, 55, 0.32) 100%
  ) !important;
}
/* BG V4 EXPLORE SIDE GLOW M2 2026-09-14 END */

/* BG V4 LIGHT HALFPIPE PLUS10 M3 2026-09-14 */
body[data-theme="day"] .explore-side-glow-upper { background: linear-gradient(90deg, rgba(70,125,255,.42) 0%, rgba(70,125,255,.28) 10%, rgba(70,125,255,.185) 24%, rgba(70,125,255,.135) 38%, rgba(70,125,255,.112) 50%, rgba(70,125,255,.135) 62%, rgba(70,125,255,.185) 76%, rgba(70,125,255,.28) 90%, rgba(70,125,255,.42) 100%) !important; }
body[data-theme="day"] .explore-side-glow-lower { background: linear-gradient(90deg, rgba(255,150,55,.42) 0%, rgba(255,150,55,.28) 10%, rgba(255,150,55,.185) 24%, rgba(255,150,55,.135) 38%, rgba(255,150,55,.112) 50%, rgba(255,150,55,.135) 62%, rgba(255,150,55,.185) 76%, rgba(255,150,55,.28) 90%, rgba(255,150,55,.42) 100%) !important; }

/* BG V4 TEXT-SIZE HALFPIPE WIDTH M4 2026-09-14 */

/* Dark — upper / blue */
.explore-side-glow-upper {
  background: linear-gradient(
    90deg,
    rgba(70,125,255,.32) 0%,
    rgba(70,125,255,.18) var(--explore-glow-p10, 10%),
    rgba(70,125,255,.085) var(--explore-glow-p24, 24%),
    rgba(70,125,255,.035) var(--explore-glow-p38, 38%),
    rgba(70,125,255,.012) 50%,
    rgba(70,125,255,.035) calc(100% - var(--explore-glow-p38, 38%)),
    rgba(70,125,255,.085) calc(100% - var(--explore-glow-p24, 24%)),
    rgba(70,125,255,.18) calc(100% - var(--explore-glow-p10, 10%)),
    rgba(70,125,255,.32) 100%
  ) !important;
}

/* Dark — lower / orange */
.explore-side-glow-lower {
  background: linear-gradient(
    90deg,
    rgba(255,150,55,.32) 0%,
    rgba(255,150,55,.18) var(--explore-glow-p10, 10%),
    rgba(255,150,55,.085) var(--explore-glow-p24, 24%),
    rgba(255,150,55,.035) var(--explore-glow-p38, 38%),
    rgba(255,150,55,.012) 50%,
    rgba(255,150,55,.035) calc(100% - var(--explore-glow-p38, 38%)),
    rgba(255,150,55,.085) calc(100% - var(--explore-glow-p24, 24%)),
    rgba(255,150,55,.18) calc(100% - var(--explore-glow-p10, 10%)),
    rgba(255,150,55,.32) 100%
  ) !important;
}

/* Light — same shape, approved +10-point lift */
body[data-theme="day"] .explore-side-glow-upper {
  background: linear-gradient(
    90deg,
    rgba(70,125,255,.42) 0%,
    rgba(70,125,255,.28) var(--explore-glow-p10, 10%),
    rgba(70,125,255,.185) var(--explore-glow-p24, 24%),
    rgba(70,125,255,.135) var(--explore-glow-p38, 38%),
    rgba(70,125,255,.112) 50%,
    rgba(70,125,255,.135) calc(100% - var(--explore-glow-p38, 38%)),
    rgba(70,125,255,.185) calc(100% - var(--explore-glow-p24, 24%)),
    rgba(70,125,255,.28) calc(100% - var(--explore-glow-p10, 10%)),
    rgba(70,125,255,.42) 100%
  ) !important;
}

body[data-theme="day"] .explore-side-glow-lower {
  background: linear-gradient(
    90deg,
    rgba(255,150,55,.42) 0%,
    rgba(255,150,55,.28) var(--explore-glow-p10, 10%),
    rgba(255,150,55,.185) var(--explore-glow-p24, 24%),
    rgba(255,150,55,.135) var(--explore-glow-p38, 38%),
    rgba(255,150,55,.112) 50%,
    rgba(255,150,55,.135) calc(100% - var(--explore-glow-p38, 38%)),
    rgba(255,150,55,.185) calc(100% - var(--explore-glow-p24, 24%)),
    rgba(255,150,55,.28) calc(100% - var(--explore-glow-p10, 10%)),
    rgba(255,150,55,.42) 100%
  ) !important;
}

/* BG V4 ANIMATED TEXT-SIZE HALFPIPE M5 2026-09-14 */

@property --explore-glow-p10 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 10%;
}

@property --explore-glow-p24 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 24%;
}

@property --explore-glow-p38 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 38%;
}

.explore-side-glow {
  transition:
    opacity 120ms linear,
    --explore-glow-p10 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    --explore-glow-p24 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    --explore-glow-p38 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* DARK — BLUE / UPPER */
.explore-side-glow-upper {
  background: linear-gradient(
    90deg,
    rgba(70,125,255,.32) 0%,
    rgba(70,125,255,.18) var(--explore-glow-p10),
    rgba(70,125,255,.085) var(--explore-glow-p24),
    rgba(70,125,255,.035) var(--explore-glow-p38),
    rgba(70,125,255,.012) 50%,
    rgba(70,125,255,.035) calc(100% - var(--explore-glow-p38)),
    rgba(70,125,255,.085) calc(100% - var(--explore-glow-p24)),
    rgba(70,125,255,.18) calc(100% - var(--explore-glow-p10)),
    rgba(70,125,255,.32) 100%
  ) !important;
}

/* DARK — ORANGE / LOWER */
.explore-side-glow-lower {
  background: linear-gradient(
    90deg,
    rgba(255,150,55,.32) 0%,
    rgba(255,150,55,.18) var(--explore-glow-p10),
    rgba(255,150,55,.085) var(--explore-glow-p24),
    rgba(255,150,55,.035) var(--explore-glow-p38),
    rgba(255,150,55,.012) 50%,
    rgba(255,150,55,.035) calc(100% - var(--explore-glow-p38)),
    rgba(255,150,55,.085) calc(100% - var(--explore-glow-p24)),
    rgba(255,150,55,.18) calc(100% - var(--explore-glow-p10)),
    rgba(255,150,55,.32) 100%
  ) !important;
}

/* LIGHT — BLUE / UPPER, SAME +10 LIFT */
body[data-theme="day"] .explore-side-glow-upper {
  background: linear-gradient(
    90deg,
    rgba(70,125,255,.42) 0%,
    rgba(70,125,255,.28) var(--explore-glow-p10),
    rgba(70,125,255,.185) var(--explore-glow-p24),
    rgba(70,125,255,.135) var(--explore-glow-p38),
    rgba(70,125,255,.112) 50%,
    rgba(70,125,255,.135) calc(100% - var(--explore-glow-p38)),
    rgba(70,125,255,.185) calc(100% - var(--explore-glow-p24)),
    rgba(70,125,255,.28) calc(100% - var(--explore-glow-p10)),
    rgba(70,125,255,.42) 100%
  ) !important;
}

/* LIGHT — ORANGE / LOWER, SAME +10 LIFT */
body[data-theme="day"] .explore-side-glow-lower {
  background: linear-gradient(
    90deg,
    rgba(255,150,55,.42) 0%,
    rgba(255,150,55,.28) var(--explore-glow-p10),
    rgba(255,150,55,.185) var(--explore-glow-p24),
    rgba(255,150,55,.135) var(--explore-glow-p38),
    rgba(255,150,55,.112) 50%,
    rgba(255,150,55,.135) calc(100% - var(--explore-glow-p38)),
    rgba(255,150,55,.185) calc(100% - var(--explore-glow-p24)),
    rgba(255,150,55,.28) calc(100% - var(--explore-glow-p10)),
    rgba(255,150,55,.42) 100%
  ) !important;
}

/* BG V4 V3-STYLE MOBILE EXPLORE M10 2026-09-14 */
@media (max-width: 720px) {

  /*
   * V3 resting layout:
   * [b] menu launcher left
   * automatic rebracketing play/pause center
   * settings gear right
   */

  body[data-shell-mode="explore"] #shellThemeToggle {
    display: none !important;
  }

  .explore-mobile-text-size-group {
    display: none !important;
  }

  .explore-mobile-settings-panel
  .explore-mobile-morph-toggle {
    display: none !important;
  }

  .explore-help-controls
  .explore-help-button {
    display: none !important;
  }

  .explore-help-controls {
    left:
      max(
        12px,
        env(safe-area-inset-left)
      ) !important;

    right: auto !important;

    bottom:
      max(
        12px,
        env(safe-area-inset-bottom)
      ) !important;

    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    z-index: 72 !important;
  }

  .explore-help-controls
  .explore-menu-button {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
  }

  /*
   * Reuse the real desktop morph toggle as the persistent
   * center mobile button. Its M8 state syncing therefore remains
   * the single source of truth.
   */
  .explore-morph-controls {
    position: absolute !important;

    left: 50% !important;
    right: auto !important;
    top: auto !important;

    bottom:
      max(
        12px,
        env(safe-area-inset-bottom)
      ) !important;

    transform:
      translateX(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;

    height: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    z-index: 72 !important;
  }

  .explore-morph-controls
  .explore-manual-switch,

  .explore-morph-controls
  .explore-picker {
    display: none !important;
  }

  .explore-morph-controls
  .explore-morph-toggle {
    display: grid !important;
    place-items: center !important;

    width: 48px !important;
    min-width: 48px !important;

    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
  }

  /*
   * V3-style gear dock.
   */
  .explore-mobile-settings-button {
    position: absolute !important;

    right:
      max(
        12px,
        env(safe-area-inset-right)
      ) !important;

    bottom:
      max(
        12px,
        env(safe-area-inset-bottom)
      ) !important;

    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;

    border-radius: 999px !important;

    z-index: 74 !important;
  }

  /*
   * Closely match the v3 settings-card proportions.
   */
  .explore-mobile-settings-panel {
    right:
      max(
        12px,
        env(safe-area-inset-right)
      ) !important;

    bottom:
      max(
        70px,
        calc(
          env(safe-area-inset-bottom)
          + 70px
        )
      ) !important;

    width:
      min(
        336px,
        calc(100vw - 24px)
      ) !important;

    max-height:
      min(
        66dvh,
        520px
      ) !important;

    overflow: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;

    padding:
      10px 12px !important;

    z-index: 73 !important;
  }

  .explore-mobile-theme-toggle {
    display: grid !important;
    place-items: center !important;
  }

  /*
   * The 96%-wide video leaves 2% of the viewport exposed at each
   * edge. Make those outer 2% carry the strongest sidewall color,
   * then let the halfpipe fade rapidly inward.
   *
   * !important intentionally beats the M5 per-text-size inline
   * custom properties on mobile, since mobile no longer has a
   * text-size control.
   */
  .explore-side-glow {
    --explore-glow-p10: 2% !important;
    --explore-glow-p24: 6% !important;
    --explore-glow-p38: 14% !important;
  }
}
/* BG V4 V3-STYLE MOBILE EXPLORE M10 2026-09-14 END */

/* BG V4 MOBILE V3 SHELF M11 2026-09-14 */
@media (max-width: 720px) {

  /*
   * V3-style lower Explore control shelf.
   * The wall remains visible behind the upper part of the fade,
   * then resolves into the dark control area at the bottom.
   */
  .explore-experience {
    --explore-bottom-bar-height: 176px !important;
  }

  .explore-bottom-bar {
    display: block !important;

    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    height:
      var(--explore-bottom-bar-height) !important;

    z-index: 60 !important;
    pointer-events: none !important;

    border: 0 !important;

    background:
      linear-gradient(
        to bottom,
        rgba(4,5,10,0) 0%,
        rgba(4,5,10,.18) 18%,
        rgba(4,5,10,.58) 38%,
        rgba(4,5,10,.90) 58%,
        rgba(4,5,10,.975) 74%,
        rgba(4,5,10,.995) 100%
      ) !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /*
   * Day mode gets the same physical shelf/fade but in the
   * lighter v3-style appearance.
   */
  body[data-theme="day"]
  .explore-bottom-bar {
    background:
      linear-gradient(
        to bottom,
        rgba(242,244,241,0) 0%,
        rgba(236,239,236,.18) 18%,
        rgba(232,235,232,.52) 40%,
        rgba(230,233,230,.86) 62%,
        rgba(229,232,229,.96) 78%,
        rgba(229,232,229,.99) 100%
      ) !important;
  }

  /*
   * Make the existing menu launcher unambiguously visible.
   * The markup and asset already exist; this merely wins the
   * mobile cascade.
   */
  .explore-help-controls {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    z-index: 72 !important;
  }

  .explore-help-controls
  .explore-menu-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    box-sizing: border-box !important;

    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    border:
      1px solid
      rgba(255,255,255,.28) !important;

    border-radius: 12px !important;

    background:
      url("../assets/bracketeer_logo.jpg")
      center / cover
      no-repeat !important;

    box-shadow:
      0 5px 18px
      rgba(0,0,0,.32) !important;

    pointer-events: auto !important;
  }

  /*
   * The open settings menu should be a real floating card,
   * not labels/buttons visually sitting directly on the wall.
   */
  .explore-mobile-settings-panel.open {
    display: block !important;

    border:
      1px solid
      rgba(255,255,255,.18) !important;

    border-radius: 18px !important;

    background:
      rgba(13,14,20,.94) !important;

    color: #f4f4f4 !important;

    box-shadow:
      0 18px 54px
      rgba(0,0,0,.38) !important;

    backdrop-filter:
      blur(18px) !important;

    -webkit-backdrop-filter:
      blur(18px) !important;
  }

  body[data-theme="day"]
  .explore-mobile-settings-panel.open {
    border-color:
      rgba(24,40,58,.20) !important;

    background:
      rgba(247,248,246,.96) !important;

    color: #18283a !important;
  }

  /*
   * Keep all three resting controls visually above the shelf.
   */
  .explore-help-controls,
  .explore-morph-controls,
  .explore-mobile-settings-button {
    z-index: 72 !important;
  }

  .explore-mobile-settings-button {
    z-index: 74 !important;
  }

  .explore-mobile-settings-panel {
    z-index: 73 !important;
  }
}
/* BG V4 MOBILE V3 SHELF M11 2026-09-14 END */

/* BG V4 MOBILE SETTINGS INNER CARD M12 2026-09-14 */
@media (max-width: 720px) {

  /*
   * Outer element only positions the menu.
   * It intentionally owns no visual presentation.
   */
  .explore-mobile-settings-panel,
  .explore-mobile-settings-panel.open {
    position: absolute !important;

    left:
      max(
        12px,
        env(safe-area-inset-left)
      ) !important;

    right:
      max(
        12px,
        env(safe-area-inset-right)
      ) !important;

    top: auto !important;

    bottom:
      max(
        82px,
        calc(
          env(safe-area-inset-bottom)
          + 82px
        )
      ) !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: inherit !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    overflow: visible !important;

    z-index: 90 !important;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .explore-mobile-settings-panel:not(.open) {
    display: none !important;
  }

  .explore-mobile-settings-panel.open {
    display: block !important;
  }

  /*
   * This is now the actual visible Settings container.
   */
  .explore-mobile-settings-card {
    box-sizing: border-box !important;

    width:
      min(
        336px,
        100%
      ) !important;

    margin:
      0 0 0 auto !important;

    padding:
      12px 14px 10px !important;

    display: flex !important;
    flex-direction: column !important;

    border:
      1px solid
      rgba(255,255,255,.20) !important;

    border-radius:
      18px !important;

    background:
      rgba(12,13,18,.97) !important;

    color:
      #f5f5f5 !important;

    box-shadow:
      0 18px 54px
      rgba(0,0,0,.52) !important;

    backdrop-filter:
      blur(18px) !important;

    -webkit-backdrop-filter:
      blur(18px) !important;

    overflow: visible !important;
  }

  body[data-theme="day"]
  .explore-mobile-settings-card {
    border-color:
      rgba(24,40,58,.20) !important;

    background:
      rgba(247,248,246,.98) !important;

    color:
      #18283a !important;

    box-shadow:
      0 18px 54px
      rgba(0,0,0,.20) !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-settings-title {
    box-sizing: border-box !important;

    display: block !important;

    width: 100% !important;

    padding:
      3px 4px 10px !important;

    margin: 0 !important;

    font:
      700 13px/1.2
      system-ui,
      sans-serif !important;

    letter-spacing:
      .04em !important;

    text-align:
      left !important;

    opacity:
      .88 !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-settings-group {
    box-sizing: border-box !important;

    position: relative !important;

    display: grid !important;

    grid-template-columns:
      104px minmax(0,1fr) !important;

    align-items:
      center !important;

    width: 100% !important;

    gap:
      10px !important;

    padding:
      10px 2px !important;

    margin: 0 !important;

    border: 0 !important;

    border-top:
      1px solid
      rgba(255,255,255,.13) !important;
  }

  body[data-theme="day"]
  .explore-mobile-settings-card
  .explore-mobile-settings-group {
    border-top-color:
      rgba(24,40,58,.13) !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-settings-group:first-of-type {
    border-top: 0 !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-text-size-group {
    display: none !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-settings-label {
    box-sizing: border-box !important;

    position: static !important;

    display: block !important;

    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    font:
      500 12px/1.25
      system-ui,
      sans-serif !important;

    text-align:
      left !important;

    white-space:
      nowrap !important;

    opacity:
      .72 !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-settings-slot {
    box-sizing: border-box !important;

    position: static !important;

    min-width: 0 !important;

    display: flex !important;

    align-items:
      center !important;

    justify-content:
      flex-end !important;

    flex-wrap:
      nowrap !important;

    gap:
      6px !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-picker {
    position: relative !important;
    display: block !important;
  }

  .explore-mobile-settings-card
  .explore-control-button {
    box-sizing: border-box !important;

    width: 44px !important;
    min-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    border:
      1px solid
      rgba(255,255,255,.16) !important;

    border-radius:
      13px !important;

    background:
      rgba(255,255,255,.08) !important;

    font:
      400 22px/1
      system-ui,
      sans-serif !important;

    color:
      inherit !important;
  }

  body[data-theme="day"]
  .explore-mobile-settings-card
  .explore-control-button {
    border-color:
      rgba(24,40,58,.14) !important;

    background:
      rgba(24,40,58,.06) !important;
  }

  .explore-mobile-settings-card
  .explore-mobile-morph-toggle {
    display: none !important;
  }

  /*
   * Popovers belong visually to the card and open above
   * the individual selector button.
   */
  .explore-mobile-settings-card
  .explore-popover {
    z-index: 100 !important;
  }
}
/* BG V4 MOBILE SETTINGS INNER CARD M12 2026-09-14 END */

/* BG V4 MOBILE MINIMAL FLOATING SETTINGS M65 */
@media (max-width: 720px) {

  /*
   * Bigger custom gear.
   */
  .explore-mobile-settings-button {
    width: 56px !important;
    height: 56px !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
  }

  .explore-mobile-settings-gear {
    display: block;
    width: 34px;
    height: 34px;
    overflow: visible;
  }

  /*
   * The settings "panel" is now only a positioning grid.
   * It has no visible container at all.
   *
   *     [       ] [scroll speed] [↑]
   *     [ moon  ] [rebracket   ] [↓]
   */
  .explore-mobile-settings-panel,
  .explore-mobile-settings-panel.open {
    position: absolute !important;

    left: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;

    top: auto !important;
    bottom:
      max(
        78px,
        calc(env(safe-area-inset-bottom) + 78px)
      ) !important;

    width: max-content !important;
    height: max-content !important;
    max-width: none !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    overflow: visible !important;

    grid-template-columns: repeat(3, 42px) !important;
    grid-template-rows: repeat(2, 42px) !important;

    column-gap: 8px !important;
    row-gap: 8px !important;

    pointer-events: none !important;

    z-index: 100 !important;
  }

  .explore-mobile-settings-panel:not(.open) {
    display: none !important;
  }

  .explore-mobile-settings-panel.open {
    display: grid !important;
  }

  /*
   * Preserve the old DOM only for its existing behavior wiring.
   * Visually there are no cards, groups, labels, or containers.
   */
  .explore-mobile-settings-card,
  .explore-mobile-settings-group,
  .explore-mobile-settings-slot {
    display: contents !important;
  }

  .explore-mobile-settings-title,
  .explore-mobile-settings-label,
  .explore-mobile-text-size-group,
  .explore-mobile-manual-switch,
  .explore-mobile-morph-toggle {
    display: none !important;
  }

  /*
   * Five surviving controls.
   */
  .explore-mobile-settings-panel .explore-control-button {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }

  .explore-mobile-scroll-speed-picker {
    grid-column: 2 !important;
    grid-row: 1 !important;

    position: relative !important;
    display: block !important;

    width: 42px !important;
    height: 42px !important;

    pointer-events: auto !important;
  }

  .explore-mobile-scroll-up {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .explore-mobile-theme-toggle {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .explore-mobile-morph-speed-picker {
    grid-column: 2 !important;
    grid-row: 2 !important;

    position: relative !important;
    display: block !important;

    width: 42px !important;
    height: 42px !important;

    pointer-events: auto !important;
  }

  .explore-mobile-scroll-down {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  /*
   * Speed choices extend outward LEFT from the button that was tapped,
   * rather than opening another settings container.
   */
  .explore-mobile-scroll-speed-picker .explore-popover,
  .explore-mobile-morph-speed-picker .explore-popover {
    position: absolute !important;

    left: auto !important;
    right: calc(100% + 8px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;

    width: max-content !important;
    max-width: calc(100vw - 80px) !important;

    flex-wrap: nowrap !important;

    z-index: 120 !important;
    pointer-events: auto !important;
  }
}


/* BG V4 MOBILE VERTICAL MINIMAL SETTINGS M66 */
@media (max-width: 720px) {

  /*
   * Slightly smaller custom SVG gear.
   */
  body .explore-experience
  .explore-mobile-settings-button {
    width: 50px !important;
    height: 50px !important;

    padding: 0 !important;

    display: grid !important;
    place-items: center !important;
  }

  body .explore-experience
  .explore-mobile-settings-button
  .explore-mobile-settings-gear {
    width: 29px !important;
    height: 29px !important;
  }

  /*
   * Absolutely no visible settings container.
   */
  body .explore-experience
  .explore-mobile-settings-panel,
  body .explore-experience
  .explore-mobile-settings-panel.open {
    position: absolute !important;

    left: auto !important;
    right:
      max(
        16px,
        env(safe-area-inset-right)
      ) !important;

    top: auto !important;
    bottom:
      max(
        74px,
        calc(
          env(safe-area-inset-bottom)
          + 74px
        )
      ) !important;

    width: 42px !important;
    height: auto !important;

    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    overflow: visible !important;

    pointer-events: none !important;

    z-index: 100 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel:not(.open) {
    display: none !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel.open {
    display: grid !important;

    grid-template-columns: 42px !important;
    grid-template-rows:
      repeat(5, 42px) !important;

    gap: 7px !important;
  }

  /*
   * Old structural wrappers continue to exist only so the existing
   * JavaScript bindings remain intact. They render no box at all.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-settings-card,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-settings-group,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-settings-slot {
    display: contents !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
  }

  /*
   * Remove every label/title and every unwanted control.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-settings-title,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-settings-label,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-text-size-group,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-manual-switch,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-toggle {
    display: none !important;
  }

  /*
   * Five-button vertical line:
   *
   *   ↑
   *   scroll speed
   *   moon
   *   rebracket speed
   *   ↓
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-up {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-theme-toggle {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-down {
    grid-column: 1 !important;
    grid-row: 5 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-picker {
    position: relative !important;

    width: 42px !important;
    height: 42px !important;

    display: block !important;

    pointer-events: auto !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-control-button {
    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;

    pointer-events: auto !important;
  }

  /*
   * Speed menu grows horizontally outward from the selected button.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover {
    position: absolute !important;

    left: auto !important;
    right: calc(100% + 8px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform:
      translateY(-50%) !important;

    width: max-content !important;
    max-width:
      calc(100vw - 76px) !important;

    flex-wrap: nowrap !important;

    z-index: 120 !important;

    pointer-events: auto !important;
  }
}


/* BG V4 MOBILE CONTROL ORDER + PILL MENUS M67 */
@media (max-width: 720px) {

  /*
   * Final vertical order:
   *
   *   ↑
   *   scroll speed
   *   ↓
   *
   *   rebracket speed
   *
   *   dark mode
   *
   * The first three retain the tight spacing.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    display: grid !important;

    grid-template-columns: 42px !important;
    grid-template-rows:
      42px
      42px
      42px
      42px
      42px !important;

    row-gap: 7px !important;
    column-gap: 0 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-up {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-down {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker {
    grid-column: 1 !important;
    grid-row: 4 !important;

    margin-top: 10px !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-theme-toggle {
    grid-column: 1 !important;
    grid-row: 5 !important;

    margin-top: 20px !important;
  }

  /*
   * Speed choices are always one horizontal row.
   * The popover itself is the pill.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover {
    position: absolute !important;

    left: auto !important;
    right: calc(100% + 8px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 5px !important;

    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;

    height: auto !important;

    padding: 6px !important;
    margin: 0 !important;

    white-space: nowrap !important;

    border:
      1px solid
      var(--explore-border) !important;

    border-radius: 999px !important;

    background:
      var(--explore-panel) !important;

    box-shadow:
      0 10px 30px
      rgba(0,0,0,.34) !important;

    backdrop-filter:
      blur(14px) !important;

    -webkit-backdrop-filter:
      blur(14px) !important;

    overflow: visible !important;

    z-index: 140 !important;

    pointer-events: auto !important;
  }

  /*
   * Keep every choice compact enough that the complete picker remains
   * a single pill rather than wrapping.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover
  .explore-control-button {
    flex: 0 0 38px !important;

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    height: 38px !important;

    margin: 0 !important;
  }
}

/* BG V4 MOBILE COMPACT CONDITIONAL PILLS M68 */
@media (max-width: 720px) {

  /*
   * Whole opened control stack is 7% transparent.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    opacity: .93 !important;
  }

  /*
   * Hidden means HIDDEN. This overrides M67's forced flex display.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover[hidden] {
    display: none !important;
  }

  /*
   * A called speed picker becomes one compact horizontal pill.
   * Its width is deliberately bounded so it cannot run off-screen.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    position: absolute !important;

    left: auto !important;
    right: calc(100% + 6px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: stretch !important;

    gap: 2px !important;

    width: min(220px, calc(100vw - 76px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 76px) !important;

    height: 38px !important;

    padding: 3px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;

    border: 1px solid var(--explore-border) !important;
    border-radius: 999px !important;

    background: var(--explore-panel) !important;

    box-shadow:
      0 8px 24px
      rgba(0,0,0,.30) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    overflow: hidden !important;

    z-index: 140 !important;
    pointer-events: auto !important;
  }

  /*
   * Let all choices compress evenly inside the pill.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover:not([hidden])
  .explore-control-button {
    flex: 1 1 0 !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    font-size: 18px !important;
  }
}

/* BG V4 MOBILE DESKTOP-STYLE SPEED PICKERS M69 */
@media (max-width: 720px) {

  /*
   * Preserve the requested 7% transparency.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    opacity: .93 !important;
  }

  /*
   * Picker menus must truly disappear until called.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover[hidden] {
    display: none !important;
  }

  /*
   * Same basic presentation as desktop:
   * one natural-width rounded glass pill.
   *
   * The option diameter scales only when the viewport is narrow enough
   * that all seven morph-speed choices would otherwise leave the screen.
   */
  body .explore-experience
  .explore-mobile-settings-panel {
    --bg-mobile-picker-option:
      clamp(
        28px,
        calc((100vw - 112px) / 7),
        38px
      );
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    position: absolute !important;

    left: auto !important;
    right: calc(100% + 6px) !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    gap: 4px !important;
    padding: 6px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;

    border:
      1px solid
      var(--explore-border) !important;

    border-radius: 999px !important;

    background:
      var(--explore-panel) !important;

    box-shadow:
      0 14px 42px
      rgba(0,0,0,.38) !important;

    backdrop-filter:
      blur(15px) !important;

    -webkit-backdrop-filter:
      blur(15px) !important;

    overflow: visible !important;

    z-index: 140 !important;

    pointer-events: auto !important;
  }

  /*
   * Desktop-style individual circular speed choices.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover
  .explore-emoji-option {
    box-sizing: border-box !important;

    flex:
      0 0
      var(--bg-mobile-picker-option) !important;

    width:
      var(--bg-mobile-picker-option) !important;

    height:
      var(--bg-mobile-picker-option) !important;

    min-width:
      var(--bg-mobile-picker-option) !important;

    min-height:
      var(--bg-mobile-picker-option) !important;

    max-width:
      var(--bg-mobile-picker-option) !important;

    max-height:
      var(--bg-mobile-picker-option) !important;

    padding: 0 !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    border:
      1px solid
      var(--explore-border) !important;

    border-radius: 999px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 7%,
        transparent
      ) !important;

    color:
      var(--explore-fg) !important;

    font:
      400
      min(
        20px,
        calc(
          var(--bg-mobile-picker-option)
          * .58
        )
      ) / 1
      system-ui,
      sans-serif !important;

    box-shadow: none !important;

    overflow: visible !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover
  .explore-emoji-option.selected,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover
  .explore-emoji-option.active,

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover
  .explore-emoji-option[aria-pressed="true"] {
    background:
      color-mix(
        in srgb,
        var(--explore-fg) 20%,
        transparent
      ) !important;

    box-shadow:
      inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--explore-fg) 22%,
        transparent
      ) !important;
  }
}

/* BG V4 MOBILE LIGHT SETTINGS CONTAINERS M70 */
@media (max-width: 720px) {

  /*
   * Lift the entire opened settings stack slightly farther
   * away from the gear.
   */
  body .explore-experience
  .explore-mobile-settings-panel,
  body .explore-experience
  .explore-mobile-settings-panel.open {
    bottom:
      max(
        90px,
        calc(
          env(safe-area-inset-bottom)
          + 90px
        )
      ) !important;
  }

  /*
   * Very light rounded backing behind the five-button settings stack.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    padding: 7px !important;

    border:
      1px solid
      color-mix(
        in srgb,
        var(--explore-fg) 10%,
        transparent
      ) !important;

    border-radius: 18px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 5%,
        transparent
      ) !important;

    box-shadow:
      0 8px 24px
      rgba(0,0,0,.10) !important;

    backdrop-filter:
      blur(8px) !important;

    -webkit-backdrop-filter:
      blur(8px) !important;

    overflow: visible !important;
  }

  /*
   * Match the speed submenus to that same very light treatment.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    border:
      1px solid
      color-mix(
        in srgb,
        var(--explore-fg) 10%,
        transparent
      ) !important;

    border-radius: 999px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 5%,
        transparent
      ) !important;

    box-shadow:
      0 8px 24px
      rgba(0,0,0,.10) !important;

    backdrop-filter:
      blur(8px) !important;

    -webkit-backdrop-filter:
      blur(8px) !important;
  }
}

/* BG V4 MOBILE LIGHT SETTINGS CONTAINERS M70 */
@media (max-width: 720px) {

  /*
   * Lift the entire opened settings stack slightly farther
   * away from the gear.
   */
  body .explore-experience
  .explore-mobile-settings-panel,
  body .explore-experience
  .explore-mobile-settings-panel.open {
    bottom:
      max(
        90px,
        calc(
          env(safe-area-inset-bottom)
          + 90px
        )
      ) !important;
  }

  /*
   * Very light rounded backing behind the five-button settings stack.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    padding: 7px !important;

    border:
      1px solid
      color-mix(
        in srgb,
        var(--explore-fg) 10%,
        transparent
      ) !important;

    border-radius: 18px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 5%,
        transparent
      ) !important;

    box-shadow:
      0 8px 24px
      rgba(0,0,0,.10) !important;

    backdrop-filter:
      blur(8px) !important;

    -webkit-backdrop-filter:
      blur(8px) !important;

    overflow: visible !important;
  }

  /*
   * Match the speed submenus to that same very light treatment.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    border:
      1px solid
      color-mix(
        in srgb,
        var(--explore-fg) 10%,
        transparent
      ) !important;

    border-radius: 999px !important;

    background:
      color-mix(
        in srgb,
        var(--explore-fg) 5%,
        transparent
      ) !important;

    box-shadow:
      0 8px 24px
      rgba(0,0,0,.10) !important;

    backdrop-filter:
      blur(8px) !important;

    -webkit-backdrop-filter:
      blur(8px) !important;
  }
}

/* BG V4 MOBILE VISIBLE LIGHT CONTAINERS M71 */
@media (max-width: 720px) {

  /*
   * Main five-button settings container.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    box-sizing: content-box !important;

    padding: 8px !important;

    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 20px !important;

    background: rgba(255,255,255,.11) !important;

    box-shadow:
      0 8px 24px rgba(0,0,0,.16) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    overflow: visible !important;
  }

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel.open {
    border-color: rgba(20,30,45,.16) !important;
    background: rgba(255,255,255,.42) !important;

    box-shadow:
      0 8px 24px rgba(0,0,0,.10) !important;
  }

  /*
   * Speed submenu containers.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    padding: 6px !important;

    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 999px !important;

    background: rgba(255,255,255,.11) !important;

    box-shadow:
      0 8px 24px rgba(0,0,0,.16) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    border-color: rgba(20,30,45,.16) !important;
    background: rgba(255,255,255,.48) !important;

    box-shadow:
      0 8px 24px rgba(0,0,0,.10) !important;
  }
}

/* BG V4 MOBILE ALIGNED CONTROLS + FROSTED PICKERS M72 */
@media (max-width: 720px) {

  /*
   * Smaller, grayer settings gear.
   *
   * Gear center from the right edge:
   *   safe inset + 12px + 22px = +34px
   */
  body .explore-experience
  .explore-mobile-settings-button {
    right:
      max(
        12px,
        calc(env(safe-area-inset-right) + 12px)
      ) !important;

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;

    color: rgba(178,182,188,.78) !important;
  }

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-button {
    color: rgba(72,78,86,.70) !important;
  }

  body .explore-experience
  .explore-mobile-settings-button
  .explore-mobile-settings-gear {
    width: 24px !important;
    height: 24px !important;
  }

  /*
   * The settings buttons have a 42px width.
   * With 5px container padding + 1px border, setting right=7px
   * puts their centers on the exact same vertical axis as the
   * 44px gear above.
   *
   * Move the whole stack farther away from the gear as well.
   */
  body .explore-experience
  .explore-mobile-settings-panel,
  body .explore-experience
  .explore-mobile-settings-panel.open {
    right:
      max(
        7px,
        calc(env(safe-area-inset-right) + 7px)
      ) !important;

    bottom:
      max(
        100px,
        calc(env(safe-area-inset-bottom) + 100px)
      ) !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel.open {
    box-sizing: content-box !important;

    padding: 5px !important;

    /*
     * Keep the main five-button backing light.
     */
    border:
      1px solid
      rgba(255,255,255,.20) !important;

    border-radius: 18px !important;

    background:
      rgba(255,255,255,.11) !important;

    overflow: visible !important;
  }

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel.open {
    border-color:
      rgba(28,34,44,.16) !important;

    background:
      rgba(255,255,255,.42) !important;
  }

  /*
   * Speed submenus:
   * much more substantial glass than the main settings backing.
   * Keep M69's natural width, circular options and one-row layout.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    background:
      rgba(24,26,32,.80) !important;

    border:
      1px solid
      rgba(255,255,255,.25) !important;

    border-radius:
      999px !important;

    box-shadow:
      0 12px 34px
      rgba(0,0,0,.30) !important;

    backdrop-filter:
      blur(20px)
      saturate(145%) !important;

    -webkit-backdrop-filter:
      blur(20px)
      saturate(145%) !important;

    overflow: visible !important;
  }

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker
  .explore-popover:not([hidden]),

  body[data-theme="day"]
  .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker
  .explore-popover:not([hidden]) {
    background:
      rgba(248,249,250,.84) !important;

    border-color:
      rgba(28,34,44,.20) !important;

    box-shadow:
      0 12px 32px
      rgba(0,0,0,.15) !important;
  }

  /*
   * Do not let any later visual rule accidentally reveal
   * an unopened picker.
   */
  body .explore-experience
  .explore-mobile-settings-panel
  .explore-popover[hidden] {
    display: none !important;
  }
}

/* BG V4 MOBILE SETTINGS TRUE GRID HEIGHT M74 */
@media (max-width: 720px) {

  /*
   * Put ALL vertical spacing into real grid tracks.
   *
   *   ↑
   *   7px
   *   scroll speed
   *   7px
   *   ↓
   *   17px
   *   rebracket speed
   *   17px
   *   night mode
   *
   * Because the gaps are now actual rows, the rounded settings
   * container correctly includes the entire final button.
   */
  body .explore-experience
  .explore-mobile-settings-panel.open {
    grid-template-columns: 42px !important;

    grid-template-rows:
      42px
      7px
      42px
      7px
      42px
      17px
      42px
      17px
      42px !important;

    row-gap: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-up {
    grid-row: 1 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-speed-picker {
    grid-row: 3 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-scroll-down {
    grid-row: 5 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-morph-speed-picker {
    grid-row: 7 !important;
    margin-top: 0 !important;
  }

  body .explore-experience
  .explore-mobile-settings-panel
  .explore-mobile-theme-toggle {
    grid-row: 9 !important;
    margin-top: 0 !important;
  }
}


/* BG MOBILE ANCHOR M91 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-align: center !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::before {
  content: "⚓";
  display: block;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-1px);
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"] {
  outline: 2px solid currentColor !important;
  outline-offset: -3px !important;
  background: rgba(127, 127, 127, 0.24) !important;
  box-shadow:
    inset 0 0 0 1px rgba(127, 127, 127, 0.4) !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="false"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="false"] {
  outline: none !important;
}


/* BG MOBILE ANCHOR M92 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  position: relative !important;
  overflow: visible !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::before {
  content: "⚓";
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 27px !important;
  height: 27px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 27px !important;
  line-height: 27px !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* BG MOBILE ANCHOR PRESSED M96 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  border: 1px solid rgba(255,255,255,.34) !important;
  background: rgba(0,0,0,.18) !important;
  color: rgba(255,255,255,.82) !important;
  outline: none !important;
  box-shadow:
    0 2px 3px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  transition:
    background-color 90ms ease,
    color 90ms ease,
    border-color 90ms ease,
    box-shadow 90ms ease,
    transform 90ms ease !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::before {
  content: "⚓︎" !important;
  font-family:
    Arial,
    "Helvetica Neue",
    sans-serif !important;
  font-size: 29px !important;
  font-weight: 400 !important;
  color: currentColor !important;
  line-height: 1 !important;
}

/*
 * DOWN / ANCHORED
 *
 * White face, dark anchor, inset shadow,
 * and the whole face moves down slightly.
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"] {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
  outline: none !important;
  transform: translateY(2px) !important;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.40),
    inset 0 0 0 1px rgba(0,0,0,.18),
    0 0 0 rgba(0,0,0,0) !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"]::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"]::before {
  transform:
    translate(
      -50%,
      calc(-50% + 2px)
    ) !important;
}

/*
 * UP / UNANCHORED
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="false"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="false"] {
  background: rgba(0,0,0,.18) !important;
  color: rgba(255,255,255,.82) !important;
  border-color: rgba(255,255,255,.34) !important;
  transform: translateY(0) !important;
  box-shadow:
    0 2px 3px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}


/* BG MOBILE ANCHOR CHAIN M97 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  position: relative !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 82px !important;
  min-height: 82px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,.62) !important;
  transform: none !important;
}

/*
 * Chain
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: -2px !important;
  width: 12px !important;
  height: 22px !important;
  transform: translateX(-50%) !important;
  opacity: .9 !important;
  background:
    radial-gradient(
      ellipse at center,
      currentColor 0 38%,
      transparent 42%
    )
    center top / 12px 12px repeat-y !important;
  transition:
    height 220ms cubic-bezier(.2,.75,.2,1),
    opacity 140ms ease,
    filter 140ms ease !important;
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,.25)) !important;
}

/*
 * Anchor
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle::after,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::after {
  content: "⚓︎" !important;
  position: absolute !important;
  left: 50% !important;
  top: 20px !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  font-family:
    Arial,
    "Helvetica Neue",
    sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: currentColor !important;
  -webkit-text-stroke: 1.15px currentColor !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 3px 6px rgba(0,0,0,.28) !important;
  transition:
    transform 220ms cubic-bezier(.2,.75,.2,1),
    color 140ms ease,
    filter 140ms ease !important;
}

/*
 * UNANCHORED / raised
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="false"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="false"] {
  color: rgba(255,255,255,.62) !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="false"]::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="false"]::before {
  height: 22px !important;
  opacity: .72 !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="false"]::after,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="false"]::after {
  transform:
    translateX(-50%)
    translateY(0)
    scale(1) !important;
  filter:
    brightness(.96)
    drop-shadow(0 3px 6px rgba(0,0,0,.28)) !important;
}

/*
 * ANCHORED / dropped
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"],
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"] {
  color: #ffffff !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"]::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"]::before {
  height: 40px !important;
  opacity: 1 !important;
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,.18)) !important;
}

html.bg-mobile-wall-v2-input
.explore-morph-toggle[aria-pressed="true"]::after,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle[aria-pressed="true"]::after {
  transform:
    translateX(-50%)
    translateY(16px)
    scale(1.08) !important;
  filter:
    brightness(1.16)
    drop-shadow(0 0 8px rgba(255,255,255,.16))
    drop-shadow(0 4px 8px rgba(0,0,0,.20)) !important;
}

/*
 * Slightly reduce any leftover legacy button chrome.
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  backdrop-filter: none !important;
}


/* BG MOBILE NAUTICAL ANCHOR M98 */

/*
 * The real control keeps its hit box,
 * but no longer looks like a button.
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: transparent !important;
  transform: none !important;
}

/*
 * Disable all earlier pseudo-element anchor artwork.
 */
html.bg-mobile-wall-v2-input
.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-morph-toggle::after,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::before,
html.bg-mobile-wall-v2-input
.explore-mobile-morph-toggle::after {
  content: none !important;
  display: none !important;
}

/*
 * Viewport-level nautical rig.
 */
#bgMobileNauticalAnchorRig {
  --bg-anchor-metal: rgba(215, 222, 226, .88);

  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  overflow: hidden;
}

/*
 * CHAIN
 *
 * Each repeated oval suggests a linked chain
 * instead of a solid rope/line.
 */
#bgMobileNauticalAnchorRig
.bg-nautical-chain {
  position: absolute;

  left:
    calc(
      var(--bg-anchor-x)
      - 5px
    );

  top:
    var(--bg-anchor-start-y);

  width: 10px;
  height: 18px;

  opacity: .72;

  background:
    radial-gradient(
      ellipse at center,
      transparent 38%,
      var(--bg-anchor-metal) 41%,
      var(--bg-anchor-metal) 55%,
      transparent 58%
    )
    center top /
    10px 13px
    repeat-y;

  filter:
    drop-shadow(
      0 1px 1px
      rgba(0,0,0,.34)
    );

  transform-origin:
    top center;

  transition:
    height 650ms
      cubic-bezier(.16,.72,.18,1),
    opacity 160ms ease;
}

/*
 * ANCHOR
 */
#bgMobileNauticalAnchorRig
.bg-nautical-anchor {
  position: absolute;

  left:
    var(--bg-anchor-x);

  top:
    calc(
      var(--bg-anchor-start-y)
      + 22px
    );

  transform:
    translate(-50%, -50%);

  transform-origin:
    center center;

  color:
    var(--bg-anchor-metal);

  font-family:
    Arial,
    "Helvetica Neue",
    sans-serif;

  font-size: 46px;
  font-weight: 900;
  line-height: 1;

  -webkit-text-stroke:
    1.35px
    var(--bg-anchor-metal);

  text-shadow:
    0 2px 1px rgba(0,0,0,.42),
    0 5px 8px rgba(0,0,0,.22);

  filter:
    drop-shadow(
      0 2px 2px
      rgba(0,0,0,.30)
    );

  transition:
    top 650ms
      cubic-bezier(.16,.72,.18,1);
}

/*
 * RAISED:
 * only a short bit of chain is visible.
 */
#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-chain {
  height: 18px;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-anchor {
  top:
    calc(
      var(--bg-anchor-start-y)
      + 24px
    );
}

/*
 * DEPLOYED:
 * chain unspools and anchor sinks almost
 * to the viewport bottom.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-chain {
  height:
    var(--bg-anchor-chain-length);

  opacity: .9;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  top:
    var(--bg-anchor-drop-y);

  animation:
    bgAnchorImpact
    360ms
    650ms
    both;
}

/*
 * Small impact:
 * hit bottom, compress slightly, settle.
 */
@keyframes bgAnchorImpact {
  0% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  28% {
    transform:
      translate(-50%, -43%)
      scale(1.10, .90);
  }

  58% {
    transform:
      translate(-50%, -54%)
      scale(.97, 1.04);
  }

  100% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }
}

/*
 * BUBBLES
 */
#bgMobileNauticalAnchorRig
.bg-anchor-bubbles {
  position: absolute;

  left:
    var(--bg-anchor-x);

  top:
    calc(
      var(--bg-anchor-drop-y)
      - 5px
    );

  width: 1px;
  height: 1px;

  pointer-events: none;
}

#bgMobileNauticalAnchorRig
.bg-anchor-bubbles i {
  position: absolute;

  width: 5px;
  height: 5px;

  border:
    1px solid
    rgba(215, 235, 245, .68);

  border-radius: 50%;

  opacity: 0;
}

/*
 * Bubbles only happen when the anchor lands.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(1) {
  animation:
    bgAnchorBubbleLeft
    1000ms
    690ms
    ease-out
    both;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(2) {
  width: 4px;
  height: 4px;

  animation:
    bgAnchorBubbleRight
    1150ms
    740ms
    ease-out
    both;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(3) {
  width: 3px;
  height: 3px;

  animation:
    bgAnchorBubbleLeft
    900ms
    820ms
    ease-out
    both;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(4) {
  width: 6px;
  height: 6px;

  animation:
    bgAnchorBubbleRight
    1200ms
    880ms
    ease-out
    both;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(5) {
  width: 3px;
  height: 3px;

  animation:
    bgAnchorBubbleCenter
    950ms
    960ms
    ease-out
    both;
}

@keyframes bgAnchorBubbleLeft {
  0% {
    opacity: 0;
    transform:
      translate(
        -9px,
        4px
      )
      scale(.6);
  }

  20% {
    opacity: .72;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        -25px,
        -42px
      )
      scale(1.05);
  }
}

@keyframes bgAnchorBubbleRight {
  0% {
    opacity: 0;
    transform:
      translate(
        8px,
        5px
      )
      scale(.55);
  }

  20% {
    opacity: .68;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        28px,
        -48px
      )
      scale(1);
  }
}

@keyframes bgAnchorBubbleCenter {
  0% {
    opacity: 0;
    transform:
      translate(
        2px,
        3px
      );
  }

  20% {
    opacity: .65;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        7px,
        -38px
      );
  }
}


/* BG MOBILE NAUTICAL ANCHOR M99 */

/*
 * The original control is now ONLY a hit target.
 *
 * These selectors deliberately outrank the older M96
 * [aria-pressed=true] white-button rules.
 */
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle,

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle[aria-pressed="true"],
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle[aria-pressed="true"],

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle[aria-pressed="false"],
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle[aria-pressed="false"],

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle.active,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle.active,

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle:hover,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle:hover,

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle:focus,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle:focus,

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle:focus-visible,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle:focus-visible,

html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle:active,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle:active {
  -webkit-appearance: none !important;
  appearance: none !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-color: transparent !important;

  outline: 0 !important;

  box-shadow: none !important;

  color: transparent !important;

  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transform: none !important;
}

/*
 * Absolutely no legacy anchor artwork survives on
 * the actual button.
 */
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle::before,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-morph-toggle::after,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle::before,
html.bg-mobile-wall-v2-input
body.bg-mobile-wall-v2-input
button.explore-mobile-morph-toggle::after {
  content: none !important;
  display: none !important;
}

/*
 * The RESTING anchor should sit where the old control
 * visually lived, rather than hanging below it.
 */
#bgMobileNauticalAnchorRig
.bg-nautical-chain {
  top:
    calc(
      var(--bg-anchor-start-y)
      - 27px
    ) !important;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-chain {
  height: 27px !important;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-anchor {
  top:
    var(--bg-anchor-start-y) !important;
}

/*
 * Deployed position is supplied by JS from visualViewport.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  top:
    var(--bg-anchor-drop-y) !important;
}


/* BG MOBILE FOUR-LINK ANCHOR M100 */

/*
 * Resting geometry:
 *
 * chain top = top of [b]
 * anchor hangs 27px below that.
 */
#bgMobileNauticalAnchorRig
.bg-nautical-chain {
  top:
    calc(
      var(--bg-anchor-start-y)
      - 27px
    ) !important;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-chain {
  height: 27px !important;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-anchor {
  top:
    var(--bg-anchor-start-y) !important;
}

/*
 * Deployed geometry is supplied by JS:
 *
 * 4 links × 13px = 52px downward.
 *
 * Total chain height:
 * 27px resting + 52px deployed = 79px.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-chain {
  height:
    var(--bg-anchor-chain-length) !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  top:
    var(--bg-anchor-drop-y) !important;
}


/* BG MOBILE OVERLAPPING CHAIN M101 */

/*
 * Smaller links with heavier metal.
 *
 * The oval itself is taller than the 8px repeat pitch,
 * causing adjacent links to visually overlap rather than
 * appearing as isolated beads.
 */
#bgMobileNauticalAnchorRig
.bg-nautical-chain {
  width: 9px !important;

  left:
    calc(
      var(--bg-anchor-x)
      - 4.5px
    ) !important;

  background:
    radial-gradient(
      ellipse 4px 6px at 50% 50%,
      transparent 0 34%,
      var(--bg-anchor-metal) 37% 67%,
      transparent 70% 100%
    )
    center top /
    9px 8px
    repeat-y !important;

  /*
   * Slightly heavier than before without changing
   * the anchor's metal color.
   */
  filter:
    drop-shadow(
      0 1px 0
      rgba(0,0,0,.38)
    )
    drop-shadow(
      0 0 .35px
      var(--bg-anchor-metal)
    ) !important;
}

/*
 * Four NEW link pitches are now:
 *
 *   4 × 8px = 32px
 *
 * Resting chain height is unchanged, so the entire
 * rig still starts at the approved M100 position.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-chain {
  height:
    var(--bg-anchor-chain-length) !important;
}


/* BG MOBILE HALF-DROP ANCHOR M102
 *
 * Four deployed links × 4px pitch = 16px total travel.
 * The link artwork remains physically larger than its repeat
 * pitch, so links overlap strongly like an actual chain.
 */


/* BG MOBILE SHALLOW ANCHOR M103
 *
 * Visual chain is restored to M101:
 *   9px wide / 8px repeat pitch
 *   small, thick, overlapping links
 *
 * Deployment travel is independent and fixed at only 8px.
 */


/* BG MOBILE ANCHOR IMPACT + GRAY M104 */

/*
 * One fixed steel-gray color in BOTH states.
 * No brightening, whitening, glow, or opacity change
 * when the anchor is deployed.
 */
#bgMobileNauticalAnchorRig {
  --bg-anchor-metal: #92999d !important;
}

#bgMobileNauticalAnchorRig
.bg-nautical-anchor,
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor,
#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-anchor {
  color:
    var(--bg-anchor-metal) !important;

  -webkit-text-stroke:
    1.35px
    var(--bg-anchor-metal) !important;

  filter:
    drop-shadow(
      0 2px 2px
      rgba(0,0,0,.34)
    ) !important;

  text-shadow:
    0 2px 1px rgba(0,0,0,.42),
    0 4px 6px rgba(0,0,0,.20) !important;
}

#bgMobileNauticalAnchorRig
.bg-nautical-chain,
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-chain,
#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-chain {
  opacity: .82 !important;

  filter:
    drop-shadow(
      0 1px 0
      rgba(0,0,0,.38)
    )
    drop-shadow(
      0 0 .35px
      var(--bg-anchor-metal)
    ) !important;
}

/*
 * The old drop transition is 650ms with a strong ease-out.
 * Visually, the anchor appears to reach bottom before 650ms.
 *
 * Begin the impact at 500ms so the bounce begins at the
 * perceived moment of contact instead of after a pause.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  animation:
    bgAnchorImpact
    300ms
    500ms
    both !important;
}

/*
 * Release bubbles essentially WITH the impact.
 * Stagger them only slightly so they read as bubbles,
 * not as a delayed second event.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(1) {
  animation:
    bgAnchorBubbleLeft
    900ms
    515ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(2) {
  width: 4px;
  height: 4px;

  animation:
    bgAnchorBubbleRight
    1020ms
    545ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(3) {
  width: 3px;
  height: 3px;

  animation:
    bgAnchorBubbleLeft
    820ms
    575ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(4) {
  width: 6px;
  height: 6px;

  animation:
    bgAnchorBubbleRight
    1050ms
    610ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(5) {
  width: 3px;
  height: 3px;

  animation:
    bgAnchorBubbleCenter
    850ms
    650ms
    ease-out
    both !important;
}

/*
 * Bubbles use the same cool-gray family rather than
 * bright white/blue.
 */
#bgMobileNauticalAnchorRig
.bg-anchor-bubbles i {
  border-color:
    rgba(146,153,157,.72) !important;
}


/* BG MOBILE ANCHOR IMPACT EARLIER M105 */

/*
 * Start the impact earlier so it visually coincides
 * with the anchor reaching the bottom of its short drop.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  animation:
    bgAnchorImpact
    300ms
    400ms
    both !important;
}

/*
 * Bubbles begin essentially at impact.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(1) {
  animation:
    bgAnchorBubbleLeft
    900ms
    410ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(2) {
  animation:
    bgAnchorBubbleRight
    1020ms
    435ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(3) {
  animation:
    bgAnchorBubbleLeft
    820ms
    460ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(4) {
  animation:
    bgAnchorBubbleRight
    1050ms
    485ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(5) {
  animation:
    bgAnchorBubbleCenter
    850ms
    510ms
    ease-out
    both !important;
}


/* BG MOBILE ANCHOR IMPACT 300MS M107 */

/*
 * Impact now begins at 300ms.
 * Mechanical anchoring uses the same 300ms delay.
 */
#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  animation:
    bgAnchorImpact
    300ms
    300ms
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(1) {
  animation:
    bgAnchorBubbleLeft
    900ms
    310ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(2) {
  animation:
    bgAnchorBubbleRight
    1020ms
    335ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(3) {
  animation:
    bgAnchorBubbleLeft
    820ms
    360ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(4) {
  animation:
    bgAnchorBubbleRight
    1050ms
    385ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(5) {
  animation:
    bgAnchorBubbleCenter
    850ms
    410ms
    ease-out
    both !important;
}


/* BG MOBILE ANCHOR IMPACT 200MS M108 */

#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-anchor {
  animation:
    bgAnchorImpact
    300ms
    200ms
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(1) {
  animation:
    bgAnchorBubbleLeft
    900ms
    210ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(2) {
  animation:
    bgAnchorBubbleRight
    1020ms
    235ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(3) {
  animation:
    bgAnchorBubbleLeft
    820ms
    260ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(4) {
  animation:
    bgAnchorBubbleRight
    1050ms
    285ms
    ease-out
    both !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-anchor-bubbles i:nth-child(5) {
  animation:
    bgAnchorBubbleCenter
    850ms
    310ms
    ease-out
    both !important;
}


/* BG MOBILE ANCHOR CHAIN FEEDS FROM TOP M109 */

/*
 * Existing geometry remains authoritative:
 *
 *   chain top = top of [b]
 *   raised chain = 27px
 *   deployed chain = 35px
 *   anchor travel = 8px
 *
 * Previously, increasing only the chain element's height made
 * the additional repeated link appear at the BOTTOM.
 *
 * The chain artwork repeats every 8px. During deployment,
 * slide that repeating artwork downward exactly one 8px pitch
 * while the element gains the same 8px of height.
 *
 * Result:
 *   - top attachment point stays fixed
 *   - a fresh link feeds in from ABOVE
 *   - the existing chain visually travels downward
 *   - anchor still moves only the approved M103 8px
 *   - final static artwork is unchanged because 8px is one
 *     complete repeat period
 */

#bgMobileNauticalAnchorRig
.bg-nautical-chain {
  background-position:
    center 0px !important;

  transition:
    height 650ms
      cubic-bezier(.16,.72,.18,1),
    background-position 650ms
      cubic-bezier(.16,.72,.18,1),
    opacity 160ms ease !important;

  transform-origin:
    top center !important;
}

#bgMobileNauticalAnchorRig:not(.is-anchored)
.bg-nautical-chain {
  background-position:
    center 0px !important;
}

#bgMobileNauticalAnchorRig.is-anchored
.bg-nautical-chain {
  /*
   * One complete M101/M103 link pitch.
   * This is what makes the visible chain feed downward
   * from its fixed top attachment rather than sprouting
   * another link beside the anchor.
   */
  background-position:
    center 8px !important;
}



/* BG TOOLTIP MAX LIFETIME M106 */
.explore-experience
[data-tooltip].explore-tooltip-expired::before,
.explore-experience
[data-tooltip].explore-tooltip-expired::after {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* BG TOOLTIP MAX LIFETIME M106 END */


/* ============================================================
   BG V2-STYLE VICTORY MENU COMPOSITE M110
   ============================================================ */

/*
 * Retire the old dedicated Victory overlay visually.
 * The focused Explore publication itself is the Victory text.
 */
body[data-shell-mode="victory"]
#victoryLayer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/*
 * Explore remains the visual substrate.
 * The full layer itself does not accept gestures in Victory;
 * the rebracketing pill opts itself back into pointer input.
 */
body[data-shell-mode="victory"]
.explore-layer {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 40 !important;
}

/*
 * Restore only the lower v2-style shelf and basic rebracketing
 * cluster. Everything else stays hidden.
 */
body[data-shell-mode="victory"]
.explore-bottom-bar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body[data-shell-mode="victory"]
.explore-morph-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  position: absolute !important;
  z-index: 80 !important;

  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 12px !important;

  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;

  box-sizing: border-box !important;
  padding: 7px !important;

  border:
    1px solid
    rgba(255,255,255,.18) !important;

  border-radius: 999px !important;

  background:
    rgba(13,14,20,.72) !important;

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.08),
    0 8px 26px
      rgba(0,0,0,.24) !important;

  backdrop-filter:
    blur(13px) !important;

  -webkit-backdrop-filter:
    blur(13px) !important;

  transform:
    translateX(-50%) !important;
}

body[data-theme="day"][data-shell-mode="victory"]
.explore-morph-controls {
  background:
    rgba(244,245,242,.72) !important;

  border-color:
    rgba(20,26,31,.16) !important;
}

/*
 * Only these three controls survive:
 *   rebracket / pause-play / morph speed
 */
body[data-shell-mode="victory"]
.explore-morph-controls
.explore-manual-switch,

body[data-shell-mode="victory"]
.explore-morph-controls
.explore-morph-toggle,

body[data-shell-mode="victory"]
.explore-morph-controls
.explore-morph-speed-button {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/*
 * Hide every other Explore control surface.
 */
body[data-shell-mode="victory"]
.explore-scroll-controls,

body[data-shell-mode="victory"]
.explore-text-size-controls,

body[data-shell-mode="victory"]
.explore-help-controls,

body[data-shell-mode="victory"]
.explore-mobile-settings-button,

body[data-shell-mode="victory"]
.explore-mobile-settings-panel,

body[data-shell-mode="victory"]
.explore-status {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/*
 * Mobile ordinarily repurposes the desktop morph toggle as the
 * nautical anchor. Victory specifically returns it to pause/play.
 */
html.bg-mobile-wall-v2-input
body[data-shell-mode="victory"]
button.explore-morph-toggle {
  display: grid !important;

  width: 42px !important;
  min-width: 42px !important;

  height: 42px !important;
  min-height: 42px !important;

  padding: 0 !important;

  font-size: 18px !important;
  line-height: 1 !important;

  border:
    1px solid
    var(--explore-border) !important;

  border-radius: 50% !important;

  background:
    var(--explore-panel) !important;

  color:
    var(--explore-fg) !important;

  box-shadow:
    0 6px 22px
    rgba(0,0,0,.15) !important;
}

html.bg-mobile-wall-v2-input
body[data-shell-mode="victory"]
button.explore-morph-toggle::before,

html.bg-mobile-wall-v2-input
body[data-shell-mode="victory"]
button.explore-morph-toggle::after {
  content: none !important;
  display: none !important;
}

/*
 * On mobile, normal Explore hides the desktop morph cluster.
 * Victory deliberately revives just this compact three-control pill.
 */
@media (max-width: 720px) {
  body[data-shell-mode="victory"]
  .explore-experience {
    --explore-bottom-bar-height:
      92px !important;
  }

  body[data-shell-mode="victory"]
  .explore-bottom-bar {
    height:
      var(
        --explore-bottom-bar-height
      ) !important;

    z-index: 60 !important;

    background:
      linear-gradient(
        to bottom,
        rgba(4,5,10,0) 0%,
        rgba(4,5,10,.30) 25%,
        rgba(4,5,10,.84) 64%,
        rgba(4,5,10,.985) 100%
      ) !important;
  }

  body[data-theme="day"][data-shell-mode="victory"]
  .explore-bottom-bar {
    background:
      linear-gradient(
        to bottom,
        rgba(242,244,241,0) 0%,
        rgba(236,239,236,.30) 25%,
        rgba(230,233,230,.84) 64%,
        rgba(229,232,229,.985) 100%
      ) !important;
  }

  body[data-shell-mode="victory"]
  .explore-morph-controls {
    bottom:
      max(
        12px,
        env(safe-area-inset-bottom)
      ) !important;
  }

  body[data-shell-mode="victory"]
  .explore-morph-controls
  .explore-picker {
    display: contents !important;
  }

  body[data-shell-mode="victory"]
  .explore-morph-controls
  .explore-control-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

/*
 * While the menu disappears into Explore, keep its wall substrate
 * alive. enterFromVictory() supplies the actual surrounding-text
 * fade, so CSS does not fake or replace that transition.
 */
body.victory-to-explore-composite[data-shell-mode="victory"]
.explore-layer {
  visibility: visible !important;
  opacity: 1 !important;
}


/* BG LIGHT EXPLORE WALL BLUE TINT 2026-10-03 */
body[data-theme="day"] .explore-prerendered-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: #b4c5d6;
  mix-blend-mode: multiply;
}
