/* ============================================================
   memoryglyph — 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 --me-<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{
  --mgAccent: var(--nx-accent);
  --mgOk: var(--nx-lime);
  --mgOkBorder: var(--nx-line);
  --mgBad: var(--nx-red);
  --mgBadBorder: color-mix(in srgb, var(--nx-red) 62%, transparent);
  --mgCardBg: linear-gradient(180deg, var(--nx-glass-hi), var(--nx-glass));
  --mgCardBg2: linear-gradient(180deg, rgba(20,34,62,.88), rgba(12,20,40,.88));
  --mgCardBorder: var(--nx-line);
  --mgTileBg: rgba(16,26,48,.82);
  --mgTileBorder: rgba(120,200,255,.30);
  --mgTileInset: color-mix(in srgb, var(--nx-accent) 12%, transparent);
  --mgShadow: 0 14px 34px var(--nx-drop);
}

:root[data-theme="light"] body.gv-neon{
  --mgAccent: var(--nx-accent);
  --mgOk: var(--nx-lime);
  --mgOkBorder: var(--nx-line);
  --mgBad: var(--nx-red);
  --mgBadBorder: color-mix(in srgb, var(--nx-red) 62%, transparent);
  --mgCardBg: linear-gradient(180deg, var(--nx-glass-hi), var(--nx-glass));
  --mgCardBg2: linear-gradient(180deg, rgba(255,255,255,.96), rgba(236,243,252,.96));
  --mgCardBorder: var(--nx-line);
  --mgTileBg: rgba(255,255,255,.94);
  --mgTileBorder: rgba(18,38,72,.20);
  --mgTileInset: color-mix(in srgb, var(--nx-accent) 10%, transparent);
  --mgShadow: 0 12px 26px var(--nx-drop);
}

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


/* A memory game is all about the flip — the reveal is the moment, and a
   matched pair should stay visibly banked. */
:root body.gv-neon .mgBtn{
  border: 1px solid var(--nx-line);
  color: var(--nx-ink);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
:root body.gv-neon .mgBtn:active{ transform: scale(.94); }
:root body.gv-neon .mgBtn.primary,
:root body.gv-neon .mgCtaBtn.primary{
  background: linear-gradient(180deg, var(--nx-accent), color-mix(in srgb, var(--nx-accent) 62%, #000));
  border-color: transparent;
  color: var(--nx-on-accent);
  font-weight: 900;
  box-shadow: 0 0 24px color-mix(in srgb, var(--nx-accent) calc(42% * var(--nx-glow)), transparent);
}
:root body.gv-neon .mgVal{
  color: var(--nx-hero);
  font-weight: 900;
  text-shadow: 0 0 14px color-mix(in srgb, var(--nx-accent) calc(90% * var(--nx-glow)), transparent);
}
