@font-face {
  font-family: "Barlow Condensed";
  src: url("/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

novus-theme-picker:empty { display: none; }

novus-theme-picker { display: inline-flex; flex: none; }

novus-theme-picker > button.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 36px;
  flex: none;
  padding: .42rem .65rem;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  color: #20364b;
  background: #f7f9fb;
  font: 650 .73rem/1.25 system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
}

novus-theme-picker > button.theme-toggle::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(135deg, currentColor 50%, transparent 50%);
}

novus-theme-picker > button.theme-toggle:is(:hover, :focus-visible) {
  color: #174f75;
  border-color: #7295b0;
  background: #e8eff6;
}

novus-theme-picker > button.theme-toggle:focus-visible {
  outline: 2px solid #7295b0;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  novus-theme-picker > button.theme-toggle { padding-inline: .45rem; font-size: .68rem; }
}

@media (pointer: coarse) {
  novus-theme-picker > button.theme-toggle { min-height: 44px; }
}

@media print {
  novus-theme-picker { display: none; }
}

:root[data-theme="cyberpunk"] {
  color-scheme: dark;
  --cyber-night: #0b0e16;
  --cyber-panel: #151b29;
  --cyber-raised: #1e2738;
  --cyber-line: #465876;
  --cyber-ink: #f2f4fc;
  --cyber-muted: #b5c2d8;
  --cyber-yellow: #f8fc45;
  --cyber-cyan: #61f3f0;
  --cyber-coral: #ff718b;
  --cyber-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --cyber-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cyber-city: url("/cyberpunk-market.webp");
  --cyber-cut: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  --cyber-grid: repeating-linear-gradient(90deg, transparent 0 47px, #61f3f00b 47px 48px), repeating-linear-gradient(0deg, transparent 0 47px, #61f3f00b 47px 48px);
}

[data-theme="cyberpunk"] novus-theme-picker > button.theme-toggle {
  color: #7df3ec;
  border-color: #468788;
  background: #122c39;
}

[data-theme="cyberpunk"] novus-theme-picker > button.theme-toggle:is(:hover, :focus-visible) {
  color: #f1f4ff;
  border-color: #ff97cf;
  background: #263654;
}

[data-theme="cyberpunk"] novus-theme-picker > button.theme-toggle:focus-visible { outline-color: #ff97cf; }

[data-theme="cyberpunk"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyber-yellow);
  outline-offset: 3px;
}

.theme-pulse {
  position: fixed;
  z-index: 2147483647;
  width: 48px;
  height: 48px;
  border: 2px solid var(--cyber-cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--cyber-cyan), inset 0 0 8px #61f3f066;
  pointer-events: none;
  animation: theme-pulse 440ms cubic-bezier(.2, .65, .4, 1) both;
}

.theme-pulse::after {
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: var(--cyber-yellow);
  border-bottom-color: var(--cyber-coral);
  content: "";
}

@keyframes theme-pulse {
  from { opacity: .95; transform: translate(-50%, -50%) scale(.22) rotate(-16deg); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(20deg); }
}

@keyframes theme-reveal {
  from { transform: translateY(5px); opacity: .72; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-pulse { visibility: hidden; }
}
