/* LightKing — shared brand layer for every pattern.
   Committed GetLayers Style: obsidian-luxe (near-black ground, warm platinum ink, one rationed gold).
   Display: Montserrat (the logo's wordmark face). Body: Onest. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Onest:wght@300;400;500&display=swap");

:root {
  --gl-bg: #0a0a0c;
  --gl-bg-alt: #101014;
  --gl-surface: #141419;
  --gl-surface-raised: #1c1c22;
  --gl-ink: #f4f1ea;
  --gl-ink-muted: #a8a49b;
  --gl-ink-subtle: #6b6862;
  --gl-accent: #c9a227;
  --gl-accent-ink: #0a0a0c;
  --gl-line: #26262c;
  --gl-glow: #e8c766;
  --lk-gold-hi: #f3dc8e;
  --lk-gold: #d9b25a;
  --lk-gold-lo: #b8892f;
  --lk-gold-grad: linear-gradient(135deg, #f3dc8e 0%, #d9b25a 50%, #b8892f 100%);
  --gl-font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --gl-font-body: "Onest", ui-sans-serif, system-ui, sans-serif;
  --gl-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gl-tracking-display: -0.02em;
  --gl-tracking-wordmark: 0.14em;
  --gl-radius: 0.25rem;
  --gl-radius-lg: 0.75rem;
  --gl-duration-fast: 150ms;
  --gl-duration: 320ms;
  --gl-duration-slow: 900ms;
  --gl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pattern switcher — fixed pill on every pattern page, links back to the gallery. */
.lk-switch {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 99990;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(10, 10, 12, 0.72); border: 1px solid rgba(201, 162, 39, 0.28); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 500 11px/1 var(--gl-font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gl-ink);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.lk-switch a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  color: var(--gl-ink-muted); text-decoration: none; transition: color var(--gl-duration-fast), background var(--gl-duration-fast);
}
.lk-switch a:hover { color: var(--gl-ink); background: rgba(255, 255, 255, 0.06); }
.lk-switch a[aria-current="page"] { color: var(--gl-accent-ink); background: var(--lk-gold-grad); }
.lk-switch .lk-home img { width: 18px; height: auto; }
/* nine designs: only the current one spells its name, so the pill stays compact */
.lk-switch a:not([aria-current]):not(.lk-home) .lk-name { display: none; }
.lk-switch .lk-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.14); margin: 0 2px; }
/* fourteen designs: tighter from tablet down */
@media (max-width: 1040px) {
  .lk-switch { gap: 2px; padding: 4px; font-size: 10px; letter-spacing: 0.1em; max-width: calc(100vw - 24px); }
  .lk-switch a { padding: 8px 9px; }
  .lk-switch .lk-home { gap: 0; }
  .lk-switch .lk-home .lk-name { display: none; }
  .lk-switch .lk-sep { margin: 0 1px; }
}
/* phones: home, then this design and its three neighbours each side */
@media (max-width: 640px) {
  .lk-switch { bottom: 12px; }
  .lk-switch a { padding: 8px 7px; gap: 0; }
  .lk-switch .lk-home { padding: 8px 9px; }
  .lk-switch .lk-home img { width: 16px; }
  .lk-switch .lk-name { display: none; }
  .lk-switch a:not(.lk-home) { display: none; }
  .lk-switch a[aria-current],
  .lk-switch a[aria-current] + a,
  .lk-switch a[aria-current] + a + a,
  .lk-switch a[aria-current] + a + a + a { display: inline-flex; }
  .lk-switch a:has(+ a[aria-current]),
  .lk-switch a:has(+ a + a[aria-current]),
  .lk-switch a:has(+ a + a + a[aria-current]) { display: inline-flex; }
}
