.bottom-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  width: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 33, 56, 0.92), rgba(34, 84, 140, 0.88));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.bottom-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.bottom-bar a {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bottom-bar .btn {
  min-width: 0;
  margin: 4px;
  height: calc(100% - 8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bottom-bar .btn:hover,
.bottom-bar .btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(146, 214, 255, 0.72);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.bottom-bar .btn:active {
  transform: translateY(0);
}

.bottom-bar .btn img {
  height: 31px;
  width: auto;
  margin: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

@media (min-width: 601px) {
  .bottom-bar {
    left: 24px;
    right: auto;
    bottom: 28px;
    width: 170px;
    height: 216px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(16, 29, 50, 0.88), rgba(38, 95, 154, 0.8));
  }

  .bottom-bar .btn {
    flex: 1;
    width: 100%;
    height: auto;
  }

  .bottom-bar .btn img {
    height: 36px;
  }
}
