/* Footer docking is intentionally isolated from the base Constellation Dial
   interaction stylesheet. Normal hover/drag behavior remains the updates56
   contract; this file only describes the explicit compact footer state. */
@media only screen and (orientation: portrait), only screen and (max-width: 1023.98px), only screen and (max-height: 599.98px) {
  /* Keep the help control visually associated with the normal mobile Dial. */
  .constellation-dial__help {
    left: calc(50% + 76px);
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial {
    --constellation-footer-dock-size: 112px;
    --constellation-footer-wheel-size: 92px;
    --constellation-footer-dock-right: calc(clamp(8px, 2.2vmin, 14px) + 12px + env(safe-area-inset-right, 0px));
    --constellation-footer-dock-bottom: calc(clamp(8px, 2.2vmin, 14px) + 12px + env(safe-area-inset-bottom, 0px));
    width: var(--constellation-footer-dock-size);
    height: var(--constellation-footer-dock-size);
    bottom: var(--constellation-footer-dock-bottom);
    grid-template-rows: 0 var(--constellation-footer-wheel-size) 0 0;
    gap: 0;
    align-content: center;
    opacity: 0.9;
    pointer-events: none !important;
    touch-action: auto !important;
    transform: translate3d(
      calc(-50% + 50vw - var(--constellation-footer-dock-right) - 56px),
      0,
      0
    ) scale(1);
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial.is-visible,
  .case-overlay.is-constellation-footer-compact > .constellation-dial.is-visible.is-scroll-quiet {
    transform: translate3d(
      calc(-50% + 50vw - var(--constellation-footer-dock-right) - 56px),
      0,
      0
    ) scale(1);
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial::before {
    left: 50%;
    top: 50%;
    width: 126px;
    max-width: none;
    height: 108px;
    border-radius: 50%;
    opacity: 0.92;
    filter: blur(17px);
    transform: translate3d(-50%, -50%, 0);
    background:
      radial-gradient(circle at 50% 50%, rgba(4, 7, 12, 0.86) 0 42%, rgba(4, 7, 12, 0.58) 62%, transparent 82%),
      radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--constellation-dial-aura) 22%, transparent), transparent 70%);
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__viewport {
    width: var(--constellation-footer-wheel-size);
    height: var(--constellation-footer-wheel-size);
    pointer-events: none !important;
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__dots {
    width: var(--constellation-footer-wheel-size);
    height: var(--constellation-footer-wheel-size);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__label,
  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__preview,
  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__cancel,
  .case-overlay.is-constellation-footer-compact > .constellation-dial .constellation-dial__keyboard-hint,
  .case-overlay.is-constellation-footer-compact > .constellation-dial__help,
  .case-overlay.is-constellation-footer-compact > .constellation-dial__help-tip,
  .case-overlay.is-constellation-footer-compact .case-overlay__scroll-affordance {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .constellation-footer-restore {
    position: absolute;
    z-index: 14;
    right: calc(clamp(8px, 2.2vmin, 14px) + 12px + env(safe-area-inset-right, 0px));
    bottom: calc(clamp(8px, 2.2vmin, 14px) + 12px + env(safe-area-inset-bottom, 0px));
    width: 112px;
    height: 112px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    cursor: pointer;
    touch-action: manipulation;
  }

  .constellation-footer-restore[hidden] {
    display: none !important;
  }
}
