.dock-outer {
  display: flex;
  justify-content: center;
  overflow: visible;
  width: 100%;
}

.dock-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0.75rem;
  border-radius: 1rem;
  background-color: #000561;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.5rem 0;
  box-shadow: 0 8px 32px rgba(0, 5, 97, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  outline: none;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.dock-item:hover,
.dock-item:focus-visible {
  background-color: rgba(255, 255, 255, 0.2);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Touch devices: labels always visible below icons */
@media (hover: none) {
  .dock-outer,
  .dock-panel { height: auto !important; padding-bottom: 8px; }

  .dock-panel { gap: 0.5rem; }
}

.dock-item--touch {
  flex-direction: column;
  height: auto;
  padding: 8px 4px 6px;
  gap: 3px;
  min-width: 48px;
}

.dock-label--touch {
  position: static;
  transform: none;
  bottom: auto;
  top: auto;
  left: auto;
  width: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

.dock-label {
  position: absolute;
  top: auto;
  bottom: -1.75rem;
  left: 50%;
  width: max-content;
  white-space: nowrap;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #000561;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 500;
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 5, 97, 0.3);
  pointer-events: none;
}
