/* Myeongun bottom navigation, subtle champagne glow, build 07616.
   Presentation only. The existing .bb.on route state owns the selection.
   Do not move the bar, alter its safe-area padding, or load image assets. */
.bottombar .bb {
  position: relative;
  transition: color 180ms ease, transform 120ms ease;
}

.bottombar .bb .bi {
  position: relative;
  isolation: isolate;
}

/* A soft, compact pool of light behind the icon, not behind its label. */
.bottombar .bb .bi::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 46px;
  height: 32px;
  top: -5px;
  left: 50%;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(235, 211, 159, .46), rgba(240, 222, 184, .20) 62%, rgba(247, 237, 215, 0) 100%);
  box-shadow: 0 0 14px 2px rgba(193, 153, 77, .10), inset 0 1px 0 rgba(255, 255, 255, .54);
  opacity: 0;
  transform: translateX(-50%) scale(.88);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2, .7, .3, 1);
}

/* Small gold glint above the active item, restrained within the existing bar. */
.bottombar .bb::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 2px;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(173, 132, 54, 0), rgba(163, 119, 39, .68), rgba(173, 132, 54, 0));
  opacity: 0;
  transform: translateX(-50%) scaleX(.65);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2, .7, .3, 1);
}

.bottombar .bb.on .bi::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.bottombar .bb.on::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.bottombar .bb .bi > svg {
  position: relative;
  transform-origin: 50% 65%;
}

.bottombar .bb.on .bi > svg {
  animation: cdx-nav-soft-wake 340ms cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes cdx-nav-soft-wake {
  0% { transform: translateY(1px) scale(.94); }
  55% { transform: translateY(-1px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}

/* Keep a stable selected glow while removing movement for this preference. */
@media (prefers-reduced-motion: reduce) {
  .bottombar .bb,
  .bottombar .bb::after,
  .bottombar .bb .bi::before {
    transition: none;
  }
  .bottombar .bb.on .bi > svg {
    animation: none;
  }
  .bottombar .bb:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .bottombar .bb::after,
  .bottombar .bb .bi::before {
    display: none;
  }
  .bottombar .bb.on {
    color: Highlight;
    outline: 1px solid Highlight;
    outline-offset: -4px;
  }
}
