/* ============================================================
   arrangeglyph — 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 --ar-<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{
  --ag-tile-bg: rgba(16,26,48,.82);
  --ag-tile-br: rgba(120,200,255,.30);
  --ag-tile-br2: color-mix(in srgb, var(--nx-accent) 45%, transparent);
  --ag-tile-shadow: 0 12px 28px var(--nx-drop);
  --ag-hole-bg: rgba(4,8,18,.55);
  --ag-hole-br: var(--nx-line);
  --ag-press: color-mix(in srgb, var(--nx-accent) 18%, transparent);
  --ag-win-bg: color-mix(in srgb, var(--nx-lime) 18%, transparent);
  --ag-win-br: color-mix(in srgb, var(--nx-lime) 55%, transparent);
  --ag-cta-bg: color-mix(in srgb, var(--nx-ink) 5%, transparent);
  --ag-cta-br: var(--nx-line);
  --ag-cta-shadow: 0 14px 32px var(--nx-drop);
  --ag-cta-glowA: color-mix(in srgb, var(--nx-accent) 34%, transparent);
  --ag-cta-glowB: color-mix(in srgb, var(--nx-violet) 30%, transparent);
}

:root[data-theme="light"] body.gv-neon{
  --ag-tile-bg: rgba(255,255,255,.94);
  --ag-tile-br: rgba(18,38,72,.20);
  --ag-tile-br2: color-mix(in srgb, var(--nx-accent) 45%, transparent);
  --ag-tile-shadow: 0 10px 22px var(--nx-drop);
  --ag-hole-bg: rgba(18,38,72,.07);
  --ag-hole-br: var(--nx-line);
  --ag-press: color-mix(in srgb, var(--nx-accent) 16%, transparent);
  --ag-win-bg: color-mix(in srgb, var(--nx-lime) 16%, transparent);
  --ag-win-br: color-mix(in srgb, var(--nx-lime) 55%, transparent);
  --ag-cta-bg: color-mix(in srgb, var(--nx-ink) 5%, transparent);
  --ag-cta-br: var(--nx-line);
  --ag-cta-shadow: 0 12px 24px var(--nx-drop);
  --ag-cta-glowA: color-mix(in srgb, var(--nx-accent) 28%, transparent);
  --ag-cta-glowB: color-mix(in srgb, var(--nx-violet) 24%, transparent);
}

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


/* A sliding puzzle lives on affordance: which tiles can move right now. */
:root body.gv-neon .agTile{
  font-weight: 900;
  color: var(--nx-ink);
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .2s ease;
}
:root body.gv-neon .agTile.movable{
  border-color: color-mix(in srgb, var(--nx-accent) 58%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--nx-accent) calc(38% * var(--nx-glow)), transparent);
}
:root body.gv-neon .agTile.movable:hover{ transform: translateY(-2px); }
:root body.gv-neon .agTile.sel{
  box-shadow:
    0 0 0 2px var(--nx-accent) inset,
    0 0 20px color-mix(in srgb, var(--nx-accent) calc(55% * var(--nx-glow)), transparent);
}
:root body.gv-neon .agBoard.win .agTile{
  border-color: color-mix(in srgb, var(--nx-lime) 62%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--nx-lime) calc(50% * var(--nx-glow)), transparent);
}
