.dock-glass, .dock-outline, .dock-orb { display: none; }

@media (max-width: 740px) {
  .mobile {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 64px;
    padding: 0 6px;
    border-radius: 32px;
  }

  .mobile.dock-positioned {
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .dock-positioned .dock-glass,
  .dock-positioned .dock-outline {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .dock-glass {
    background: linear-gradient(180deg, rgba(48, 59, 68, .72), rgba(32, 41, 51, .82) 58%, rgba(75, 87, 96, .68));
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-clip-path: url(#atlas-dock-clip);
    clip-path: url(#atlas-dock-clip);
  }

  .dock-outline {
    overflow: visible;
    filter: drop-shadow(0 2px 4px #0007);
  }

  .mobile button {
    min-height: 64px;
    justify-content: center;
    gap: 4px;
    padding: 7px 0 4px;
    color: #c1cad2;
  }

  .mobile .nav-icon { height: 22px; }
  .mobile svg { width: 20px; height: 20px; }
  .mobile .dock-outline { width: 100%; height: 100%; }
  .dock-positioned button.active .nav-icon { visibility: hidden; }
  .dock-positioned button.active::after {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 50%;
  }

  .dock-positioned .dock-orb {
    position: absolute;
    z-index: 2;
    top: -5px;
    left: var(--dock-center);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--bronze);
    border-radius: 50%;
    background: radial-gradient(circle at 40% 13%, #8b704d, #59452f 56%, #33291f);
    color: var(--white);
    box-shadow: inset 0 1px 2px #f1ddc34a, 0 3px 10px #0008, 0 0 15px #b99b7025;
    pointer-events: none;
  }

  .dock-orb svg { width: 21px; height: 21px; animation: dock-icon-in 200ms var(--ease-atlas) both; }
  .page.enter.section-enter { animation: dock-section-in 320ms var(--ease-atlas) both; }
}

@keyframes dock-icon-in {
  from { opacity: .5; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes dock-section-in {
  from { opacity: .36; transform: translate3d(calc(var(--screen-direction, 1) * 24px), 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dock-orb svg { animation: none; }
}
