/* ============================================================
   sudokuglyph — arcade retint. GENERATED by tools/gen-skins.py; edit that,
   or add hand-written rules to the bottom of this file below the marker.

   The game declares its surfaces as --su-<role> tokens. This maps the
   roles the arcade layer knows about onto --nx-* values, once per theme, so
   the board picks up the lit palette without any of the game's own layout,
   sizing or logic changing. Roles that are not in the vocabulary keep the
   game's value: the skin follows the player's theme now, so an unmapped
   token is still correct for the page it is on.
   ============================================================ */

:root body.gv-neon{
  --sgLine: var(--nx-accent);
  --sgLineStrong: color-mix(in srgb, var(--nx-accent) 45%, transparent);
  --sgCellBg: rgba(16,26,48,.82);
  --sgAltBg: color-mix(in srgb, var(--nx-ink) 4%, transparent);
  --sgGivenBg: color-mix(in srgb, var(--nx-ink) 9%, transparent);
  --sgPeerBg: color-mix(in srgb, var(--nx-accent) 9%, transparent);
  --sgSelectedBg: color-mix(in srgb, var(--nx-accent) 26%, transparent);
  --sgSelectedRing: var(--nx-accent);
  --sgSameBg: color-mix(in srgb, var(--nx-violet) 16%, transparent);
  --sgSameRing: color-mix(in srgb, var(--nx-violet) 55%, transparent);
  --sgBadBg: color-mix(in srgb, var(--nx-red) 18%, transparent);
  --sgBadRing: var(--nx-red);
  --sgNotes: var(--nx-dim);
  --sgBtnBg: color-mix(in srgb, var(--nx-ink) 6%, transparent);
  --sgBtnLine: var(--nx-line);
  --sgPrimaryBg: var(--nx-accent);
  --sgPrimaryLine: color-mix(in srgb, var(--nx-accent) 70%, transparent);
  --sgPeerEdge: color-mix(in srgb, var(--nx-accent) 22%, transparent);
}

:root[data-theme="light"] body.gv-neon{
  --sgLine: var(--nx-accent);
  --sgLineStrong: color-mix(in srgb, var(--nx-accent) 45%, transparent);
  --sgCellBg: rgba(255,255,255,.94);
  --sgAltBg: color-mix(in srgb, var(--nx-ink) 4%, transparent);
  --sgGivenBg: color-mix(in srgb, var(--nx-ink) 8%, transparent);
  --sgPeerBg: color-mix(in srgb, var(--nx-accent) 8%, transparent);
  --sgSelectedBg: color-mix(in srgb, var(--nx-accent) 22%, transparent);
  --sgSelectedRing: var(--nx-accent);
  --sgSameBg: color-mix(in srgb, var(--nx-violet) 14%, transparent);
  --sgSameRing: color-mix(in srgb, var(--nx-violet) 55%, transparent);
  --sgBadBg: color-mix(in srgb, var(--nx-red) 16%, transparent);
  --sgBadRing: var(--nx-red);
  --sgNotes: var(--nx-dim);
  --sgBtnBg: color-mix(in srgb, var(--nx-ink) 6%, transparent);
  --sgBtnLine: var(--nx-line);
  --sgPrimaryBg: var(--nx-accent);
  --sgPrimaryLine: color-mix(in srgb, var(--nx-accent) 70%, transparent);
  --sgPeerEdge: color-mix(in srgb, var(--nx-accent) 22%, transparent);
}

/* ---- hand-written below this line (not regenerated) ---- */


/* Sudoku is read by relationship: the cell you are on, its peers, and every
   other copy of the same digit. Give those three distinct weights rather than
   three similar tints. */
:root body.gv-neon .sgCell.selected{
  box-shadow:
    0 0 0 2px var(--nx-accent) inset,
    0 0 18px color-mix(in srgb, var(--nx-accent) calc(50% * var(--nx-glow)), transparent);
}
:root body.gv-neon .sgCell.same{
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-violet) 60%, transparent) inset;
}
:root body.gv-neon .sgCell.conflict{
  box-shadow:
    0 0 0 2px var(--nx-red) inset,
    0 0 16px color-mix(in srgb, var(--nx-red) calc(45% * var(--nx-glow)), transparent);
}
:root body.gv-neon .sgCell.given{ font-weight: 900; }
:root body.gv-neon .sgCell.user{ color: var(--nx-accent); font-weight: 900; }
:root body.gv-neon .sgCell.unitGlow{
  animation: sgUnit .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sgUnit{ 0%{transform:scale(1)} 35%{transform:scale(1.12);filter:brightness(1.7)} 100%{transform:scale(1)} }
:root body.gv-neon .sgKey{
  border: 1px solid var(--nx-line);
  color: var(--nx-ink);
  font-weight: 900;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
:root body.gv-neon .sgKey:not([disabled]):active{ transform: scale(.93); }
