/* ==========================================================================
   RETAIL // RESET — STYLE PACK SELECTOR
   Permanent tiny CSS file. Do not swap this file.
   Main design files:
   style.css  = Original
   style2.css = Toon vibrant
   style3.css = Hacker
   style4.css = Angel
   style5.css = Meme
   style6.css = Noir
   ========================================================================== */

.style-switcher {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: min(94vw, 460px);
  padding: 6px;
  border: 1px solid var(--bd-soft, rgba(255,255,255,.22));
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(0,0,0,.36)),
    rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 22px color-mix(in srgb, var(--acc, #fff) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.style-switcher button {
  appearance: none;
  border: 1px solid var(--bd-soft, rgba(255,255,255,.22));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #fff);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.style-switcher button:hover {
  transform: translateY(-1px) rotate(-1deg);
  border-color: var(--acc, #fff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--acc, #fff) 34%, transparent);
}

.style-switcher button.active {
  background: var(--acc, #fff);
  color: var(--ink, #050505);
  border-color: var(--acc, #fff);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--acc, #fff) 48%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Keep mobile nav slim even when multiple design packs are swapped. */
@media (max-width: 760px) {
  #nav {
    gap: 6px !important;
    padding: 7px 10px !important;
  }

  .nav-mark {
    font-size: 14px !important;
  }

  .nav-links a {
    font-size: 10.5px !important;
    padding: 6px 8px !important;
  }

  .style-switcher {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px;
  }

  .style-switcher::-webkit-scrollbar {
    display: none;
  }

  .style-switcher button {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 6px 8px;
  }
}
