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

   Snake (2026-11-26): the Game Boy look Snake launched with, site-wide.
   Strictly the four DMG greens (#0f380f, #306230, #8bac0f, #9bbc0f) plus
   the #d4ec7a highlight for text, an LCD dot-matrix ground, thick pixel
   frames with hard offset shadows, Press Start 2P for headings and buttons
   (Atkinson for reading). Under this theme /snake shows its Original style. */

/* ---------- Page ---------- */
[data-theme="snake"] {
  scrollbar-color: #306230 #0f380f;
}
[data-theme="snake"] body {
  /* LCD dot matrix: a 3px grid of slightly darker lines. */
  background:
    linear-gradient(rgba(15, 56, 15, 0.55) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(90deg, rgba(15, 56, 15, 0.55) 1px, transparent 1px) 0 0 / 3px 3px,
    var(--cm-bg);
}
[data-theme="snake"] ::selection {
  background: #9bbc0f;
  color: #0f380f;
}
[data-theme="snake"] input[type="checkbox"],
[data-theme="snake"] input[type="radio"],
[data-theme="snake"] input[type="range"],
[data-theme="snake"] progress {
  accent-color: var(--cm-accent);
}

/* Press Start 2P is very wide (fonts.css shrinks it with size-adjust) and
   has one weight: roomy line height, no faux bold. */
[data-theme="snake"] h1,
[data-theme="snake"] h2,
[data-theme="snake"] h3 {
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: break-word;
  text-shadow: 2px 2px 0 #0a260a;
}
[data-theme="snake"] .btn,
[data-theme="snake"] .chip,
[data-theme="snake"] .filter-button,
[data-theme="snake"] .logo {
  font-weight: 400;
}
[data-theme="snake"] .home-hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.35;
}
@media (max-width: 640px) {
  [data-theme="snake"] .logo {
    font-size: 1rem;
  }
  [data-theme="snake"] .app-header :is(.sign-in-btn, .sign-out-btn) {
    font-family: var(--cm-font-body);
  }
  /* Pushover's HUD title next to Home / Level / Score. */
  [data-theme="snake"] .push-title {
    font-size: 0.85rem;
    letter-spacing: 0;
  }
}

/* ---------- Header: the Game Boy bezel ---------- */
[data-theme="snake"] .app-header {
  background: var(--cm-surface);
  border-bottom: 4px solid #8bac0f;
  box-shadow: 0 4px 0 #0a260a;
}
[data-theme="snake"] .logo,
[data-theme="snake"] .logo span {
  color: var(--cm-ink);
  font-weight: 400;
}
[data-theme="snake"] .mobile-nav-menu {
  background: var(--cm-bg-2);
  border-bottom: 4px solid #8bac0f;
}
[data-theme="snake"] .theme-menu__button,
[data-theme="snake"] .theme-switch,
[data-theme="snake"] .theme-switch label {
  border-radius: 0;
  font-family: var(--cm-font-body);
}
[data-theme="snake"] .theme-menu__button {
  background: var(--cm-bg-2);
  border: 3px solid #8bac0f;
  box-shadow: 3px 3px 0 #0a260a;
}
[data-theme="snake"] .theme-menu__button:focus-visible {
  box-shadow: var(--cm-focus);
}
[data-theme="snake"] .theme-switch--compact {
  border: 3px solid #8bac0f;
  background: var(--cm-bg-2);
  box-shadow: 6px 6px 0 #0a260a;
}
[data-theme="snake"] .theme-switch__swatch {
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #0a260a;
}

/* ---------- Buttons: the A / B keys ---------- */
[data-theme="snake"] .btn {
  border: 3px solid #0f380f;
  box-shadow: 4px 4px 0 #0a260a;
  text-transform: uppercase;
}
[data-theme="snake"] .btn:hover {
  background: #d4ec7a;
  color: #0f380f;
}
[data-theme="snake"] .btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
[data-theme="snake"] .btn.secondary,
[data-theme="snake"] .home-page .btn.secondary,
[data-theme="snake"] .btn-secondary {
  background: #306230;
  color: #d4ec7a;
  border-color: #8bac0f;
}
[data-theme="snake"] .btn.secondary:hover,
[data-theme="snake"] .home-page .btn.secondary:hover,
[data-theme="snake"] .btn-secondary:hover {
  background: #8bac0f;
  color: #0f380f;
}
[data-theme="snake"] .btn-outline,
[data-theme="snake"] .btn-ghost,
[data-theme="snake"] .btn.ghost,
[data-theme="snake"] .sign-in-btn,
[data-theme="snake"] .sign-out-btn {
  border-radius: 0;
}
[data-theme="snake"] .btn:focus-visible {
  box-shadow: var(--cm-focus);
}

/* ---------- Chips ---------- */
[data-theme="snake"] .chip,
[data-theme="snake"] .filter-button {
  border-radius: 0;
  border-width: 2px;
}
[data-theme="snake"] .chip:not(.active) {
  background: var(--cm-bg-2);
  border-color: #306230;
}

/* ---------- Home hero ---------- */
[data-theme="snake"] .home-eyebrow {
  color: var(--cm-ink-2);
  font-family: var(--cm-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
[data-theme="snake"] .home-eyebrow::before {
  content: "\25A0\00a0\25A0\00a0\25A0\00a0";
  color: #9bbc0f;
}
[data-theme="snake"] .art-garden {
  display: none;
}
/* A DMG screen with a snake chasing a berry. */
[data-theme="snake"] .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' shape-rendering='crispEdges'%3E%3Crect x='40' y='14' width='340' height='312' rx='14' fill='%23306230'/%3E%3Crect x='40' y='14' width='340' height='312' rx='14' fill='none' stroke='%230a260a' stroke-width='4'/%3E%3Crect x='70' y='40' width='280' height='224' fill='%230f380f'/%3E%3Crect x='78' y='48' width='264' height='208' fill='%239bbc0f'/%3E%3Cg fill='%238bac0f'%3E%3Crect x='78' y='48' width='264' height='2'/%3E%3Crect x='78' y='64' width='264' height='2'/%3E%3Crect x='78' y='80' width='264' height='2'/%3E%3Crect x='78' y='96' width='264' height='2'/%3E%3Crect x='78' y='112' width='264' height='2'/%3E%3Crect x='78' y='128' width='264' height='2'/%3E%3Crect x='78' y='144' width='264' height='2'/%3E%3Crect x='78' y='160' width='264' height='2'/%3E%3Crect x='78' y='176' width='264' height='2'/%3E%3Crect x='78' y='192' width='264' height='2'/%3E%3Crect x='78' y='208' width='264' height='2'/%3E%3Crect x='78' y='224' width='264' height='2'/%3E%3Crect x='78' y='240' width='264' height='2'/%3E%3C/g%3E%3Cg fill='%230f380f'%3E%3Crect x='110' y='192' width='16' height='16'/%3E%3Crect x='126' y='192' width='16' height='16'/%3E%3Crect x='142' y='192' width='16' height='16'/%3E%3Crect x='158' y='192' width='16' height='16'/%3E%3Crect x='158' y='176' width='16' height='16'/%3E%3Crect x='158' y='160' width='16' height='16'/%3E%3Crect x='158' y='144' width='16' height='16'/%3E%3Crect x='174' y='144' width='16' height='16'/%3E%3Crect x='190' y='144' width='16' height='16'/%3E%3Crect x='206' y='144' width='16' height='16'/%3E%3Crect x='222' y='144' width='16' height='16'/%3E%3Crect x='222' y='128' width='16' height='16'/%3E%3Crect x='222' y='112' width='16' height='16'/%3E%3Crect x='238' y='112' width='16' height='16'/%3E%3C/g%3E%3Crect x='242' y='116' width='4' height='4' fill='%239bbc0f'/%3E%3Crect x='286' y='112' width='14' height='14' fill='%23306230'/%3E%3Crect x='291' y='106' width='4' height='6' fill='%230f380f'/%3E%3Cg fill='%23306230'%3E%3Crect x='94' y='64' width='8' height='8'/%3E%3Crect x='106' y='64' width='8' height='8'/%3E%3Crect x='118' y='64' width='8' height='8'/%3E%3Crect x='130' y='64' width='8' height='8'/%3E%3C/g%3E%3Cg fill='%230f380f'%3E%3Crect x='94' y='64' width='8' height='8'/%3E%3Crect x='106' y='64' width='8' height='8'/%3E%3C/g%3E%3Crect x='96' y='284' width='80' height='6' fill='%238bac0f'/%3E%3Ccircle cx='300' cy='296' r='13' fill='%230f380f'/%3E%3Ccircle cx='332' cy='284' r='13' fill='%230f380f'/%3E%3Crect x='92' y='304' width='26' height='8' rx='4' fill='%230f380f'/%3E%3Crect x='126' y='304' width='26' height='8' rx='4' fill='%230f380f'/%3E%3C/svg%3E") center / contain no-repeat;
  image-rendering: pixelated;
}

/* ---------- Home app cards: cartridges ---------- */
[data-theme="snake"] .app-card {
  background: var(--cm-surface);
  border: 3px solid #8bac0f;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 6px 6px 0 #0a260a;
}
[data-theme="snake"] .app-card:hover {
  box-shadow: 8px 8px 0 #0a260a;
}
/* Card art: the pre-rebrand set, re-inked in Game Boy green (the picture's
   brightness over a #9bbc0f ground, then stepped toward four shades). */
[data-theme="snake"] .app-image-link {
  margin: 10px 10px 0;
  border: 3px solid #0f380f;
  border-radius: 2px;
  background: var(--cl) center / cover no-repeat, #8bac0f;
  background-blend-mode: luminosity;
  filter: contrast(1.35) brightness(0.95);
  image-rendering: pixelated;
}
[data-theme="snake"] .app-image-link picture {
  display: none;
}
[data-theme="snake"] .app-chip {
  color: var(--cm-ink-2);
  font-family: var(--cm-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
[data-theme="snake"] .app-pips {
  display: flex;
  gap: 3px;
}
[data-theme="snake"] .app-pips i {
  width: 8px;
  height: 8px;
  display: block;
  background: #306230;
}
[data-theme="snake"] .app-pips i.on {
  background: #d4ec7a;
}
[data-theme="snake"] .app-content h2 {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- Generic cards, inputs ---------- */
[data-theme="snake"] .card,
[data-theme="snake"] .container {
  border: 3px solid #306230;
  border-radius: 4px;
}
[data-theme="snake"] input[type="text"],
[data-theme="snake"] input[type="email"],
[data-theme="snake"] input[type="number"],
[data-theme="snake"] input[type="search"],
[data-theme="snake"] input[type="password"],
[data-theme="snake"] textarea,
[data-theme="snake"] select {
  border-radius: 0;
  border: 2px solid #8bac0f;
}
[data-theme="snake"] details > summary::marker {
  color: #9bbc0f;
}

/* ---------- Footer: a row of pixel grass ---------- */
[data-theme="snake"] .page-footer {
  background: linear-gradient(var(--cm-bg) 0 5rem, var(--cm-bg-2) 5rem);
}
[data-theme="snake"] .footer-clouds {
  top: calc(5rem - 12px);
  height: 12px;
  background:
    linear-gradient(90deg, #306230 0 12px, #8bac0f 12px 24px, #306230 24px 36px, transparent 36px 48px) 0 0 / 48px 6px repeat-x,
    linear-gradient(#306230, #306230) 0 6px / 100% 6px no-repeat;
}
[data-theme="snake"] .footer-ad {
  background: var(--cm-surface);
  border: 3px solid #306230;
}
