.tabbar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 16px);
  max-width: 460px;
  height: 68px;
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
  border-radius: 0;
  box-shadow: 5px 5px 0 0 #000;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  overflow: visible;
  padding: 0 6px;
  column-gap: 2px;
}

.tabbar ul {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  min-width: 0;
}

.tabbar li {
  list-style: none;
  width: 100%;
  min-width: 0;
}

.tabbar .tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 6px 1px;
  color: var(--text-muted);
  transition: none;
  min-width: 0;
}

.tabbar .tab-link i[data-lucide] svg,
.tabbar .tab-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  opacity: 1;
  transition: none;
  flex-shrink: 0;
}

.tabbar .tab-link span {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Press Start 2P", monospace;
}

.tabbar .tab-link.active {
  color: var(--accent);
}

.tabbar .tab-link.active svg {
  transform: scale(1.1);
}

.tabbar .tab-link:active svg {
  transform: scale(0.85);
}

.tab-center-slot {
  position: relative;
  overflow: visible;
  width: 60px;
  flex-shrink: 0;
}

.tabbar .tab-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: var(--accent);
  color: #1a1600;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 0 #000;
  padding: 0;
  z-index: 10;
}

.tabbar .tab-center svg {
  width: 20px;
  height: 20px;
  stroke: #1a1600;
}

.tabbar .tab-center:active {
  transform: translate(-50%, -56%) scale(0.92);
}

.tabbar .tab-center.active {
  color: #1a1600;
}

.tabbar .tubelight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 4px;
  border-radius: 0;
  background: var(--accent);
  transition: left 0.2s steps(4);
  pointer-events: none;
  z-index: 5;
}

.tabbar .tubelight .light-ray {
  display: none;
}

@media (max-width: 760px) {
  .navbar {
    display: none;
  }
  
  .tabbar {
    display: grid;
  }
  
  body {
    padding-bottom: 96px;
  }
  
  .footer {
    padding-bottom: 40px;
  }
}

@media (max-width: 400px) {
  .tabbar {
    max-width: calc(100% - 12px);
    padding: 0 4px;
  }
  
  .tabbar .tab-link span {
    font-size: 6.5px;
  }
  
  .tabbar .tab-link svg {
    width: 16px;
    height: 16px;
  }
  
  .tab-center-slot {
    width: 52px;
  }
  
  .tabbar .tab-center {
    width: 44px;
    height: 44px;
  }
  
  .tabbar .tab-center svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar .tubelight {
    transition: none !important;
  }
}