.app-shell{padding-bottom:124px}

.bottom-nav{
  --active-shift:0%;
  position:fixed;
  z-index:10;
  left:50%;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  width:min(calc(100% - 28px),548px);
  height:76px;
  padding:7px 6px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:center;
  justify-content:initial;
  border:1px solid rgba(212,173,86,.42);
  border-radius:999px;
  background:linear-gradient(110deg,rgba(7,29,49,.98),rgba(12,45,70,.97));
  box-shadow:0 12px 34px rgba(5,21,35,.28),inset 0 1px rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
  transform:translateX(-50%);
  isolation:isolate;
  overflow:hidden;
}

.bottom-nav::before{
  content:"";
  position:absolute;
  z-index:0;
  top:5px;
  bottom:5px;
  left:6px;
  width:calc((100% - 12px)/5);
  border-top:2px solid rgba(232,197,119,.92);
  border-radius:999px;
  background:radial-gradient(ellipse 90% 85% at 50% 0%,rgba(212,173,86,.27),rgba(212,173,86,.11) 48%,transparent 82%);
  box-shadow:0 -2px 15px rgba(212,173,86,.2),inset 0 0 15px rgba(212,173,86,.08);
  pointer-events:none;
  transform:translateX(var(--active-shift,0%));
  transition:transform .46s cubic-bezier(.22,.8,.25,1);
}

.bottom-nav>.nav-item,
.bottom-nav>.nav-add{
  position:relative;
  z-index:1;
  width:100%;
  min-width:0;
  height:60px;
  margin:0;
  padding:6px 2px 4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:0;
  border-radius:18px;
  background:transparent;
  color:#aab8c2;
  font-family:inherit;
  font-size:10px;
  font-weight:500;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.bottom-nav>.nav-item small,
.bottom-nav>.nav-add small{
  max-width:100%;
  overflow:hidden;
  color:inherit;
  font:inherit;
  font-size:9px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bottom-nav .nav-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:color .22s ease,transform .22s ease,filter .22s ease;
}

.bottom-nav>.nav-item.active,
.bottom-nav>.nav-add.active{
  color:#fff;
  font-weight:700;
  text-shadow:0 0 12px rgba(212,173,86,.2);
}

.bottom-nav>.nav-item.active .nav-icon,
.bottom-nav>.nav-add.active .nav-icon{
  color:#e8c577;
  filter:drop-shadow(0 0 5px rgba(212,173,86,.55));
  transform:translateY(-1px) scale(1.08);
}

.bottom-nav>.nav-add{color:#e8c577}
.bottom-nav>.nav-add .nav-icon{width:22px;height:22px;flex-basis:22px;stroke-width:2}
.bottom-nav button[hidden]{display:none!important}
.bottom-nav button:focus-visible{outline:2px solid #f0d89f;outline-offset:-4px}

@media(min-width:650px){
  .bottom-nav{bottom:30px}
}

@media(max-width:370px){
  .app-shell{padding-bottom:118px}
  .bottom-nav{width:calc(100% - 20px);height:72px;padding:6px 5px}
  .bottom-nav>.nav-item,.bottom-nav>.nav-add{height:58px;gap:2px}
  .bottom-nav .nav-icon{width:19px;height:19px;flex-basis:19px}
  .bottom-nav>.nav-add .nav-icon{width:21px;height:21px;flex-basis:21px}
  .bottom-nav>.nav-item small,.bottom-nav>.nav-add small{font-size:8px}
}

@media(prefers-reduced-motion:reduce){
  .bottom-nav::before,.bottom-nav .nav-icon{transition:none!important}
}
