/* pushover: signature marks for the real site markup. Tokens live in
   design-system.css. Every rule starts with [data-theme="pushover"].

   Pushover (2026-11-26): the neon board Pushover launched with, site-wide.
   Black arcade ground with a faint board grid, cyan and hot-pink neon
   edges that glow instead of casting shadows, Orbitron caps, the gold
   score colour for small highlights. Under this theme /pushover itself
   shows its Original style (src/utils/theme.ts, syncAppStyleRoots). */

/* ---------- Page ---------- */
[data-theme="pushover"] {
  scrollbar-color: #2a2a33 #070709;
}
[data-theme="pushover"] body {
  /* The 5x5 board grid, very faint, fixed so it reads as the ground. */
  background:
    linear-gradient(rgba(0, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(0, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 52px 52px,
    var(--cm-bg);
  background-attachment: fixed;
}
[data-theme="pushover"] ::selection {
  background: #ff0055;
  color: #0c0c0f;
}
[data-theme="pushover"] input[type="checkbox"],
[data-theme="pushover"] input[type="radio"],
[data-theme="pushover"] input[type="range"],
[data-theme="pushover"] progress {
  accent-color: var(--cm-accent);
}

/* Orbitron is wide: tighten long headings and add the neon tube glow. */
[data-theme="pushover"] h1,
[data-theme="pushover"] h2,
[data-theme="pushover"] h3 {
  line-height: 1.15;
  overflow-wrap: break-word;
  text-transform: uppercase;
}
[data-theme="pushover"] h1 {
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}
@media (max-width: 560px) {
  [data-theme="pushover"] h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
}

/* ---------- Header: a neon tube along the bottom edge ---------- */
[data-theme="pushover"] .app-header {
  background: var(--cm-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 #00ffff, 0 0 18px -2px rgba(0, 255, 255, 0.55), 0 8px 30px -12px rgba(255, 0, 85, 0.45);
}
[data-theme="pushover"] .logo,
[data-theme="pushover"] .logo span {
  color: var(--cm-link);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 26px rgba(0, 255, 255, 0.35);
  animation: pushover-flicker 7s steps(1) infinite;
}
@keyframes pushover-flicker {
  0%, 91%, 93%, 100% { opacity: 1; }
  92% { opacity: 0.55; }
}
[data-theme="pushover"] .mobile-nav-menu {
  background: var(--cm-bg-2);
  border-bottom: 1px solid #00ffff;
}
[data-theme="pushover"] .theme-menu__button {
  background: var(--cm-bg-2);
  border-color: #00ffff;
  box-shadow: 0 0 12px -3px rgba(0, 255, 255, 0.7);
}
[data-theme="pushover"] .theme-menu__button:focus-visible {
  box-shadow: var(--cm-focus);
}
[data-theme="pushover"] .theme-switch--compact {
  border: 1px solid #2a2a33;
  background: var(--cm-bg-2);
}
[data-theme="pushover"] .theme-switch input:checked + label {
  box-shadow: 0 0 14px -2px rgba(255, 0, 85, 0.8);
}
[data-theme="pushover"] .theme-switch__swatch {
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ---------- Buttons: lit blocks ---------- */
[data-theme="pushover"] .btn {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: 0 0 18px -4px rgba(0, 255, 255, 0.8);
}
[data-theme="pushover"] .btn:hover {
  background: #7fffff;
  box-shadow: 0 0 26px -2px rgba(0, 255, 255, 0.95);
}
[data-theme="pushover"] .btn.secondary,
[data-theme="pushover"] .home-page .btn.secondary,
[data-theme="pushover"] .btn-secondary {
  background: var(--cm-accent-2);
  color: var(--cm-on-accent-2);
  border: 0;
  box-shadow: 0 0 18px -4px rgba(255, 0, 85, 0.85);
}
[data-theme="pushover"] .btn.secondary:hover,
[data-theme="pushover"] .home-page .btn.secondary:hover,
[data-theme="pushover"] .btn-secondary:hover {
  background: #ff4d85;
  color: var(--cm-on-accent-2);
}
[data-theme="pushover"] .btn-outline,
[data-theme="pushover"] .btn-ghost,
[data-theme="pushover"] .btn.ghost {
  background: transparent;
  color: var(--cm-link);
  box-shadow: inset 0 0 0 1px #00ffff, 0 0 12px -4px rgba(0, 255, 255, 0.7);
}
[data-theme="pushover"] .btn-outline:hover,
[data-theme="pushover"] .btn-ghost:hover,
[data-theme="pushover"] .btn.ghost:hover {
  background: rgba(0, 255, 255, 0.08);
  color: var(--cm-link-hover);
}
[data-theme="pushover"] .btn:focus-visible {
  box-shadow: var(--cm-focus);
}

/* ---------- Chips ---------- */
[data-theme="pushover"] .chip:not(.active) {
  background: transparent;
  border-color: #2a2a33;
}
[data-theme="pushover"] .chip.active,
[data-theme="pushover"] .filter-button.active {
  box-shadow: 0 0 14px -3px rgba(255, 0, 85, 0.8);
}

/* ---------- Home hero ---------- */
[data-theme="pushover"] .home-eyebrow {
  color: var(--cm-premium);
  font-family: var(--cm-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
[data-theme="pushover"] .home-eyebrow::before {
  content: "\25B6\00a0";
  color: var(--cm-brand);
}
[data-theme="pushover"] .home-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
}
[data-theme="pushover"] .art-garden {
  display: none;
}
/* The neon board: one cyan player block among pink obstacles. */
[data-theme="pushover"] .home-hero__art {
  aspect-ratio: 420 / 340;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 340'%3E%3Cdefs%3E%3Cfilter id='g' x='-60%25' y='-60%25' width='220%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='5'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='80' y='30' width='260' height='260' rx='10' fill='%23111111' stroke='%232a2a33' stroke-width='2'/%3E%3Cpath d='M132 30v260M184 30v260M236 30v260M288 30v260M80 82h260M80 134h260M80 186h260M80 238h260' stroke='%23222222' stroke-width='2'/%3E%3Cg filter='url(%23g)' opacity='.9'%3E%3Crect x='139' y='37' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='243' y='89' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='87' y='141' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='191' y='141' width='38' height='38' rx='4' fill='%2300ffff'/%3E%3Crect x='295' y='193' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='139' y='245' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='243' y='245' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3C/g%3E%3Crect x='139' y='37' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='243' y='89' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='87' y='141' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='191' y='141' width='38' height='38' rx='4' fill='%2300ffff'/%3E%3Crect x='295' y='193' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='139' y='245' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='243' y='245' width='38' height='38' rx='4' fill='%23ff0055'/%3E%3Crect x='183' y='133' width='54' height='54' rx='6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-dasharray='6 5'/%3E%3Cpath d='M210 196v24M200 210l10 10 10-10' stroke='%2300ffff' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Ctext x='210' y='322' text-anchor='middle' font-family='Orbitron,monospace' font-size='17' font-weight='800' letter-spacing='4' fill='%23ffd700'%3ESCORE 1280%3C/text%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Home app cards: lit cabinet screens ---------- */
[data-theme="pushover"] .app-card {
  background: var(--cm-surface);
  border: 1px solid #2a2a33;
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.25), 0 0 30px -14px rgba(0, 255, 255, 0.5);
}
[data-theme="pushover"] .app-card:hover {
  box-shadow: 0 0 0 1px #00ffff, 0 0 34px -8px rgba(0, 255, 255, 0.7), 0 0 60px -20px rgba(255, 0, 85, 0.6);
}
[data-theme="pushover"] .app-card:nth-child(3n + 2):hover {
  box-shadow: 0 0 0 1px #ff0055, 0 0 34px -8px rgba(255, 0, 85, 0.7);
}
/* Card art: the pre-rebrand gold-on-black set (/images/cards/classic/),
   shifted from gold to cyan. Wired like Night's --nt (pages/index.astro). */
[data-theme="pushover"] .app-image-link {
  border-radius: var(--cm-radius-sm);
  margin: 12px 12px 0;
  background: #111111 var(--cl) center / cover no-repeat;
  filter: hue-rotate(140deg) saturate(1.5) brightness(1.05);
}
[data-theme="pushover"] .app-card:nth-child(3n + 2) .app-image-link {
  filter: hue-rotate(290deg) saturate(1.6);
}
[data-theme="pushover"] .app-image-link picture {
  display: none;
}
[data-theme="pushover"] .app-chip {
  color: var(--cm-premium);
  font-family: var(--cm-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
[data-theme="pushover"] .app-pips {
  display: flex;
  gap: 4px;
}
[data-theme="pushover"] .app-pips i {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 1px;
  background: var(--cm-deco-6);
}
[data-theme="pushover"] .app-pips i.on {
  background: #00ffff;
  box-shadow: 0 0 8px #00ffff;
}
[data-theme="pushover"] .app-content h2 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ---------- Generic cards and panels ---------- */
[data-theme="pushover"] .card,
[data-theme="pushover"] .container {
  border-color: #2a2a33;
}
[data-theme="pushover"] details > summary::marker {
  color: var(--cm-link);
}
[data-theme="pushover"] hr {
  border-color: #2a2a33;
}

/* ---------- Footer: the board edge ---------- */
/* Base paints the footer ground #fffcf7 by hand; this theme needs dark. */
[data-theme="pushover"] .page-footer {
  background: linear-gradient(var(--cm-bg) 0 5rem, var(--cm-bg-2) 5rem);
}
[data-theme="pushover"] .footer-clouds {
  top: calc(5rem - 2px);
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff 20%, #ff0055 80%, transparent);
  box-shadow: 0 0 14px 1px rgba(0, 255, 255, 0.45);
}
[data-theme="pushover"] .footer-ad {
  background: var(--cm-surface);
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="pushover"] .logo,
  [data-theme="pushover"] .logo span {
    animation: none;
  }
}
