:root {
  --bottom-nav-offset: calc(104px + constant(safe-area-inset-bottom));
  --bottom-nav-offset: calc(104px + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 35;
  width: min(100vw, 430px);
  height: 62px;
  padding: 6px 18px 7px;
  padding-bottom: calc(7px + constant(safe-area-inset-bottom));
  padding-bottom: calc(7px + env(safe-area-inset-bottom));
  height: calc(62px + constant(safe-area-inset-bottom));
  height: calc(62px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, .97);
  border-top: .5px solid rgba(224, 228, 236, .74);
  box-shadow: 0 -4px 18px rgba(23, 32, 52, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  contain: layout paint;
}

.bottom-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #252a31;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 0;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .1px;
  white-space: nowrap;
  border-radius: 18px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .12s ease;
}

.bottom-nav-item::before {
  content: none;
  display: none;
  position: absolute;
  left: 50%;
  top: 4px;
  width: 40px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  border: .5px solid transparent;
  transform: translateX(-50%);
  pointer-events: none;
}

.bottom-nav-icon {
  width: 34px;
  height: 27px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  background: transparent;
  position: relative;
  pointer-events: none;
  transition: color .12s ease;
}

.bottom-nav-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.bottom-nav-icon svg * {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.66;
}

.bottom-nav-item.active {
  color: #4c73ff;
  font-weight: 400;
}

.bottom-nav-item.active::before {
  background: transparent;
  border-color: transparent;
}

.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item:focus,
.bottom-nav-item:focus-visible {
  background: transparent;
  box-shadow: none;
}

.bottom-nav-item.active .bottom-nav-icon {
  color: #4c73ff;
  transform: none;
  filter: none;
}

.bottom-nav-item:active,
.bottom-nav-item:focus,
.bottom-nav-item:focus-visible,
.bottom-nav-item:active .bottom-nav-icon {
  outline: none;
  transform: none;
}
