.switch {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px;
  max-width: calc(100vw - 20px);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-sizing: border-box;
}
.switch a {
  text-decoration: none;
  color: #cfc9be;
  font: 500 10px/1 "Libre Franklin", "Jost", "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.switch a.is-on,
.switch a:hover {
  background: #f4efe6;
  color: #111;
}
.switch-g {
  display: flex;
  align-items: center;
  gap: 2px;
}
.switch-g::before {
  content: attr(data-label);
  font: 700 9px/1 "Libre Franklin", "Jost", "Inter", sans-serif;
  letter-spacing: 0.16em;
  color: #8a8378;
  padding: 0 4px 0 6px;
}
.switch--light {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.switch--light a {
  color: #666;
}
.switch--light a.is-on,
.switch--light a:hover {
  background: #111;
  color: #fff;
}
.switch--light .switch-g::before {
  color: #999;
}
@media (max-width: 720px) {
  .switch {
    border-radius: 18px;
    gap: 4px;
    padding: 6px;
  }
  .switch a {
    padding: 7px 9px;
    letter-spacing: 0.1em;
  }
}
