/* Grimoire — surface recipes: gradients, scrims and the two scene backdrops.
   Panels are always a vertical plum gradient, never a flat fill. */
:root {
  /* PANELS */
  --grad-panel: linear-gradient(180deg, rgba(64, 55, 79, 0.94) 0%, rgba(39, 32, 51, 0.96) 100%); /* @kind color */
  --grad-panel-solid: linear-gradient(180deg, #40374f 0%, #272033 100%); /* @kind color */
  --grad-panel-inset: linear-gradient(180deg, rgba(22, 18, 29, 0.5) 0%, rgba(30, 25, 39, 0.34) 100%); /* @kind color */
  --grad-banner: linear-gradient(180deg, rgba(76, 66, 96, 0.95) 0%, rgba(38, 32, 50, 0.95) 100%); /* @kind color */

  /* MENU PLATES — resting plum, selected steel. The steel plate is the single
     lightest surface in the system; nothing else uses it. */
  --grad-plate: linear-gradient(180deg, #3c3448 0%, #2e2739 100%); /* @kind color */
  --grad-plate-hover: linear-gradient(180deg, #4a405c 0%, #372f45 100%); /* @kind color */
  --grad-plate-active: linear-gradient(180deg, #dce4e7 0%, #a6b4bc 46%, #8a96a0 100%); /* @kind color */

  /* SLOTS */
  --grad-slot: linear-gradient(180deg, rgba(76, 66, 96, 0.72) 0%, rgba(39, 32, 51, 0.82) 100%); /* @kind color */
  --grad-slot-active: linear-gradient(180deg, rgba(143, 227, 240, 0.2) 0%, rgba(58, 151, 171, 0.14) 100%); /* @kind color */

  /* GOLD RULES — hairline dividers taper to nothing at both ends. */
  --grad-gold-rule: linear-gradient(90deg, transparent 0%, var(--gold-500) 14%, var(--gold-200) 50%, var(--gold-500) 86%, transparent 100%); /* @kind color */
  --grad-gold-rule-quiet: linear-gradient(90deg, transparent, var(--gold-a40) 30%, var(--gold-a40) 70%, transparent); /* @kind color */
  --grad-gold-frame: linear-gradient(160deg, var(--gold-200) 0%, var(--gold-400) 38%, var(--gold-600) 62%, var(--gold-300) 100%); /* @kind color */

  /* RESOURCE BARS */
  --grad-vital: linear-gradient(90deg, #8fbf3c 0%, #c6e56b 82%, #e8f7ad 100%); /* @kind color */
  --grad-mana: linear-gradient(90deg, #4e9fc0 0%, #7fd8ee 78%, #ddf7fc 100%); /* @kind color */
  --grad-xp: linear-gradient(90deg, var(--gold-500), var(--gold-200)); /* @kind color */

  /* SCRIMS — "protection gradients". Text over scene art always gets one.
     Capsules are used instead only for short interactive labels. */
  --scrim-bottom: linear-gradient(0deg, rgba(10, 6, 16, 0.86) 0%, rgba(10, 6, 16, 0.5) 40%, transparent 100%); /* @kind color */
  --scrim-top: linear-gradient(180deg, rgba(10, 6, 16, 0.78) 0%, transparent 100%); /* @kind color */
  --scrim-side: linear-gradient(90deg, rgba(10, 6, 16, 0.8) 0%, transparent 100%); /* @kind color */
  --scrim-full: linear-gradient(180deg, rgba(22, 18, 29, 0.62), rgba(22, 18, 29, 0.62)); /* @kind color */
  /* Cinematic letterbox — every reference frame is bordered top and bottom. */
  --letterbox: linear-gradient(180deg, #000 0 3.4%, transparent 3.4% 96.6%, #000 96.6% 100%); /* @kind color */

  /* SCENES — the two lighting worlds. HEARTH: warm interior, lamplit, cosy.
     NIGHT: cold ritual water-light with a magenta bloom behind the subject. */
  --scene-hearth:
    radial-gradient(120% 90% at 22% 18%, rgba(246, 232, 210, 0.5) 0%, transparent 55%),
    radial-gradient(90% 80% at 78% 72%, rgba(217, 174, 128, 0.42) 0%, transparent 60%),
    linear-gradient(165deg, #8b5a3a 0%, #6b4128 46%, #43281a 100%); /* @kind color */
  --scene-night:
    radial-gradient(70% 55% at 50% 42%, rgba(90, 42, 69, 0.72) 0%, transparent 62%),
    radial-gradient(100% 70% at 12% 96%, rgba(23, 135, 154, 0.6) 0%, transparent 58%),
    linear-gradient(170deg, #02121f 0%, #073344 58%, #0b5766 100%); /* @kind color */
  --scene-arcane:
    radial-gradient(80% 60% at 50% 30%, rgba(114, 101, 133, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #272033 0%, #16121d 100%); /* @kind color */

  /* Vignette — the reference always darkens the frame edges. */
  --vignette: radial-gradient(120% 100% at 50% 45%, transparent 42%, rgba(10, 6, 16, 0.68) 100%); /* @kind color */
  /* Dust motes / bloom accents, used at low opacity over scenes. */
  --motes:
    radial-gradient(2px 2px at 18% 34%, rgba(250, 246, 238, 0.5), transparent 60%),
    radial-gradient(3px 3px at 62% 18%, rgba(228, 206, 156, 0.4), transparent 60%),
    radial-gradient(2px 2px at 81% 62%, rgba(182, 236, 246, 0.45), transparent 60%),
    radial-gradient(4px 4px at 34% 78%, rgba(250, 246, 238, 0.22), transparent 60%); /* @kind color */
}
