/* ТурнирХ brand themes. Each theme maps the shared variables used by the cabinet (arena.css, variants.css)
   and the public board/screen. Light rules use :not(.arena-mode-dark) so dark mode always wins.
   check-theme-contrast.cjs parses this file — keep one declaration block per theme and mode. */
:root{--mx-dur-fast:120ms;--mx-dur:200ms;--mx-dur-slow:320ms;--mx-dur-show:600ms;--mx-ease-out:cubic-bezier(.2,.8,.2,1);--mx-ease-in-out:cubic-bezier(.65,0,.35,1);--mx-ease-spring:cubic-bezier(.34,1.56,.64,1)}

.arena-palette-polar:not(.arena-mode-dark){--bg:#F3F6F9;--surface:#FFFFFF;--ink:#0B2233;--muted:#52677A;--line:#D5DEE6;--control:#7D8F9F;--soft:#E9EFF4;--dark:#0B2233;--accent:#3DDCC4;--green:#0B7A6B;--hero:#E3F1F2;--hero-ink:#0B2233;--hero-line:#7FA9AE;--shell-ink:#C9D6E0;--button:#0B2233;--button-ink:#FFFFFF;--error:#B3303B;--winner-line:#0B7A6B;--loss-line:#C26A3A;--mx-live:#0E9E8A}
.arena-palette-polar.arena-mode-dark{--bg:#071826;--surface:#0F2638;--ink:#EAF2F7;--muted:#9DB2C3;--line:#23415A;--control:#6B8399;--soft:#163049;--dark:#04101A;--accent:#3DDCC4;--green:#3DDCC4;--hero:#12304A;--hero-ink:#EAF2F7;--hero-line:#3E6A86;--shell-ink:#C9D6E0;--button:#3DDCC4;--button-ink:#06201C;--error:#FF8A93;--winner-line:#3DDCC4;--loss-line:#F29A69;--mx-live:#3DDCC4}

.arena-palette-graphite:not(.arena-mode-dark){--bg:#F4F5F2;--surface:#FFFFFF;--ink:#16191D;--muted:#5C636B;--line:#DCDFD8;--control:#7E857B;--soft:#ECEEE8;--dark:#16191D;--accent:#C6F432;--green:#4D7C0F;--hero:#EEF5DC;--hero-ink:#16191D;--hero-line:#8FA35E;--shell-ink:#D3D8CF;--button:#16191D;--button-ink:#FFFFFF;--error:#B91C1C;--winner-line:#4D7C0F;--loss-line:#B45309;--mx-live:#65A30D}
.arena-palette-graphite.arena-mode-dark{--bg:#0E1013;--surface:#181B20;--ink:#F1F3F0;--muted:#A3A9A0;--line:#2C3138;--control:#6A7178;--soft:#22262C;--dark:#08090B;--accent:#C6F432;--green:#C6F432;--hero:#1F2618;--hero-ink:#F1F3F0;--hero-line:#5C6B3A;--shell-ink:#D3D8CF;--button:#C6F432;--button-ink:#14180A;--error:#F87171;--winner-line:#C6F432;--loss-line:#FBBF24;--mx-live:#C6F432}

.arena-palette-indigo:not(.arena-mode-dark){--bg:#F5F5FB;--surface:#FFFFFF;--ink:#1E1B4B;--muted:#5B5A7A;--line:#DEDCF0;--control:#8381A6;--soft:#EDECF8;--dark:#1E1B4B;--accent:#FF7A66;--green:#C2361F;--hero:#ECEBFB;--hero-ink:#1E1B4B;--hero-line:#9E9AD3;--shell-ink:#D4D2F0;--button:#4338CA;--button-ink:#FFFFFF;--error:#BE123C;--winner-line:#4338CA;--loss-line:#C2361F;--mx-live:#E8533F}
.arena-palette-indigo.arena-mode-dark{--bg:#100E2A;--surface:#1B1840;--ink:#EEEDFB;--muted:#ABA8D0;--line:#2F2B62;--control:#6F6BA8;--soft:#24204F;--dark:#0A0820;--accent:#FF7A66;--green:#FF7A66;--hero:#221E52;--hero-ink:#EEEDFB;--hero-line:#5A55A0;--shell-ink:#D4D2F0;--button:#8B85FF;--button-ink:#120F33;--error:#FB7185;--winner-line:#8B85FF;--loss-line:#FF7A66;--mx-live:#FF7A66}

.arena-palette-aurora:not(.arena-mode-dark){--bg:#F2F7F7;--surface:#FFFFFF;--ink:#0D2A2E;--muted:#4F6B6F;--line:#D3E2E3;--control:#7A9598;--soft:#E7F0F0;--dark:#0D2A2E;--accent:#5EF0C0;--green:#6D28D9;--hero:#EDE7FB;--hero-ink:#0D2A2E;--hero-line:#9F86D9;--shell-ink:#C8DDDB;--button:#0D2A2E;--button-ink:#FFFFFF;--error:#BE123C;--winner-line:#0F9F7A;--loss-line:#6D28D9;--mx-live:#0F9F7A}
.arena-palette-aurora.arena-mode-dark{--bg:#061A1C;--surface:#0E2A2D;--ink:#E6F4F2;--muted:#97B6B3;--line:#1F4246;--control:#5F8582;--soft:#133539;--dark:#03100F;--accent:#5EF0C0;--green:#B794FF;--hero:#15363A;--hero-ink:#E6F4F2;--hero-line:#3F7A74;--shell-ink:#C8DDDB;--button:#5EF0C0;--button-ink:#04241B;--error:#FF8FA3;--winner-line:#5EF0C0;--loss-line:#B794FF;--mx-live:#5EF0C0}

/* Swatches for theme pickers. */
.swatch-polar{background:linear-gradient(135deg,#0B2233 50%,#3DDCC4 50%)!important}.swatch-graphite{background:linear-gradient(135deg,#16191D 50%,#C6F432 50%)!important}.swatch-indigo{background:linear-gradient(135deg,#4338CA 50%,#FF7A66 50%)!important}.swatch-aurora{background:linear-gradient(135deg,#0D2A2E 50%,#B794FF 50%)!important}.swatch-custom{background:conic-gradient(#ee6b5f,#e0a33a,#8cc63f,#2bb5a0,#3b9ee8,#8b7cf6,#ee6b5f)!important}

/* The primary and focus colours follow the theme; buttons keep readable text in both modes. */
.arena-palette-polar .primary,.arena-palette-graphite .primary,.arena-palette-indigo .primary,.arena-palette-aurora .primary{background:var(--button);color:var(--button-ink)}
.arena-palette-polar :focus-visible,.arena-palette-graphite :focus-visible,.arena-palette-indigo :focus-visible,.arena-palette-aurora :focus-visible{outline-color:var(--green)}

@media (prefers-reduced-motion:reduce){:root{--mx-dur-fast:0ms;--mx-dur:0ms;--mx-dur-slow:0ms;--mx-dur-show:0ms}}
