.bottom-nav {
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  background: rgba(15, 19, 26, 0.98);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.bottom-nav *,
.bottom-nav *::before,
.bottom-nav *::after {
  box-sizing: border-box;
}

.bottom-nav a {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 16px;
  padding: 6px 2px 5px;
  color: #9299a5;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.bottom-nav a::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.24));
}

.bottom-nav a > span {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.05;
}

.bottom-nav a.active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 0, 0.14),
    0 8px 22px rgba(255, 215, 0, 0.08);
}

.bottom-nav a.active::before {
  background: currentColor;
}

.bottom-nav a:active {
  transform: translateY(1px);
}

@media (min-width: 720px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(760px, 100%);
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
  }
}
