/* ============================================================================
   Reliquary — design tokens (master plan §14)
   Quiet chrome; colour is carried by rarity. Dark, tactile, restrained.
   ========================================================================== */
:root {
    /* Base palette */
    --ink:   #0E0E12;
    --slate: #1A1B22;
    --bone:  #ECE7DD;
    --ash:   #8A8A96;

    /* Rarity accents — these carry the colour */
    --steel:    #9AA3AD; /* common */
    --azure:    #4A90D9; /* rare */
    --amethyst: #9B59E0; /* epic */
    --sodium:   #F2A93B; /* legendary */
    --ember:    #FF5C7A; /* mythic */

    --rarity-common:    var(--steel);
    --rarity-rare:      var(--azure);
    --rarity-epic:      var(--amethyst);
    --rarity-legendary: var(--sodium);
    --rarity-mythic:    var(--ember);

    /* Surfaces & text */
    --bg:            var(--ink);
    --surface:       var(--slate);
    --surface-2:     #22232c;
    --text:          var(--bone);
    --text-muted:    var(--ash);
    --border:        rgba(236, 231, 221, 0.10);
    --border-strong: rgba(236, 231, 221, 0.18);

    /* Interactive accent */
    --accent:          var(--azure);
    --accent-contrast: #07101c;
    --twitch:          #9146FF;

    /* Feedback */
    --danger: var(--ember);
    --ok:     #57C28A;

    /* Typography */
    --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
    --font-ui:      'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Code', monospace;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Radii */
    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   16px;
    --radius-pill: 999px;

    /* Shadows — soft, low */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.5);

    /* Цвета ключевых способностей (чипы на картах и существах) */
    --kw-taunt:         #ffb54d;   /* провокация — самая заметная */
    --kw-charge:        #7dff8a;   /* рывок */
    --kw-rush:          #b9f27c;   /* натиск */
    --kw-divine_shield: #ffe066;   /* бож. щит */
    --kw-lifesteal:     #ff7da0;   /* похищение жизни */
    --kw-poison:        #6fe05a;   /* яд */
    --kw-stealth:       #c08bff;   /* скрытность */
    --kw-windfury:      #6fd8ff;   /* неистовство */
    --kw-mega_windfury: #3fc1ff;   /* мега-неистовство */
    --kw-immune:        #fff3b0;   /* неуязвимость */
    --kw-reborn:        #ff9b6b;   /* перерождение */
    --kw-spell_damage:  #7ea8ff;   /* урон заклинаний */

    /* Motion */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 120ms;
    --dur:      220ms;
    --dur-slow: 420ms;
}

/* Honour reduced-motion globally (quality floor). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
