/*
 * Colour variants of the application (23. 11. 2026, Štěpán: testing colours on the projector). The system looks
 * Světlý / Tmavý / Systém stay; a variant sits on top of one of them: js/shell/theme.js puts its base on
 * <html data-theme> and the variant on <html data-palette>. Loaded last, it only redefines tokens.
 *
 * The Eventscout variants take the colours of www.eventscout.cz: ground #08090d, cards #12141b, text #ecebf2,
 * violet #9d93ff / #5b4bdb, gold #e9c891, the red of AI Race #e20000. „Projektor“ are two high-contrast variants
 * for a projector that washes out soft tones.
 *
 * Every variant sets the primitives (--bg, surfaces, text, --accent, --accent-hi, --accent-deep, --accent-text,
 * --on-accent, --accent-2) and the wallpaper colours as plain rgba/hex (js/shell/wallpaper.js parses them, so no
 * color-mix there). The rest is derived below.
 */

/* ---------- derived tokens, the same for every variant ---------- */
html[data-theme][data-palette] body.shell-body {
  --ink: var(--on-accent);
  --orbit-fg: var(--on-accent);
  --brand-gold: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 42%, transparent);
  --line-gold: color-mix(in srgb, var(--accent) 26%, transparent);
  --gold-grad: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  --gold-grad-hover: linear-gradient(135deg, color-mix(in srgb, var(--accent-hi) 80%, #fff) 0%, color-mix(in srgb, var(--accent) 88%, #fff) 45%, var(--accent) 100%);
  --gold-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 26%, transparent);
  --orbit-grad: var(--gold-grad);
  --bg-grad: radial-gradient(900px 520px at 88% -8%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 62%),
    radial-gradient(800px 480px at 0% 100%, color-mix(in srgb, var(--accent-2) 10%, transparent) 0%, transparent 60%), var(--bg);
  background: var(--bg-grad) fixed;
  background-color: var(--bg);
}
html[data-theme="dark"][data-palette] body.shell-body {
  --card-grad: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  --nav-active-bg: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, color-mix(in srgb, var(--accent) 3%, transparent) 100%);
  --nav-active-fg: var(--text-strong);
}
html[data-theme="light"][data-palette] body.shell-body {
  --card-grad: linear-gradient(180deg, var(--surface-1) 0%, var(--surface) 100%);
  --nav-active-bg: var(--accent-deep);
  --nav-active-fg: #fff;
}
html[data-theme="dark"][data-palette] .shell-body .side { background: color-mix(in srgb, var(--surface) 88%, transparent); }
html[data-theme="light"][data-palette] .shell-body .side { background: color-mix(in srgb, var(--surface-1) 86%, transparent); }
html[data-theme][data-palette] .shell-body .brand-tile { background: var(--bg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 0 0 1px var(--accent-line); }
html[data-theme][data-palette] .shell-body .hall-hero__stage { background: radial-gradient(900px 500px at 50% 40%, var(--surface-2) 0%, var(--bg) 80%); }
html[data-palette] .mail-star { color: var(--accent); }

/* ---------- Eventscout Noc: the dark ground of the web, violet ---------- */
html[data-theme][data-palette="es-noc"] body.shell-body {
  --bg: #08090d;
  --surface: #0c0d12; --surface-1: #0f1117; --surface-2: #12141b; --surface-3: #1b1e28;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --text-strong: #ffffff; --text: #ecebf2; --text-muted: #9a9caa; --placeholder: #6b6d7a;
  --accent: #9d93ff; --accent-hi: #bdb6ff; --accent-deep: #5b4bdb; --accent-text: #b3abff; --on-accent: #08090d; --accent-2: #e9c891;
  --wall-node: rgba(236, 235, 242, 0.34); --wall-sub: rgba(236, 235, 242, 0.7); --wall-accent: #9d93ff;
  --wall-spoke: rgba(255, 255, 255, 0.06); --wall-link: rgba(157, 147, 255, 0.22);
  --wall-hub: #9d93ff; --wall-hub-soft: rgba(236, 235, 242, 0.78); --wall-hub-core: #f1efff;
  --wall-glow: rgba(157, 147, 255, 0.34); --wall-glow-soft: rgba(157, 147, 255, 0.34); --wall-ring: rgba(157, 147, 255, 0.28); --wall-pulse: #e9c891;
  --wall-far: rgba(236, 235, 242, 0.16); --wall-far-line: rgba(255, 255, 255, 0.045);
  --wall-aura-1: rgba(91, 75, 219, 0.22); --wall-aura-2: rgba(233, 200, 145, 0.08); --wall-aura-3: rgba(157, 147, 255, 0.12);
  --wall-vignette: rgba(0, 0, 0, 0.55);
}

/* ---------- Eventscout Měsíc: the same night, the gold of the moon of the logo ---------- */
html[data-theme][data-palette="es-mesic"] body.shell-body {
  --bg: #08090d;
  --surface: #0c0d12; --surface-1: #0f1117; --surface-2: #12141b; --surface-3: #1b1e28;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --text-strong: #ffffff; --text: #ecebf2; --text-muted: #9a9caa; --placeholder: #6b6d7a;
  --accent: #e9c891; --accent-hi: #f5e2bd; --accent-deep: #c9a463; --accent-text: #e9c891; --on-accent: #08090d; --accent-2: #5b4bdb;
  --wall-node: rgba(236, 235, 242, 0.32); --wall-sub: rgba(236, 235, 242, 0.68); --wall-accent: #e9c891;
  --wall-spoke: rgba(255, 255, 255, 0.06); --wall-link: rgba(233, 200, 145, 0.2);
  --wall-hub: #e9c891; --wall-hub-soft: rgba(236, 235, 242, 0.78); --wall-hub-core: #fff8ea;
  --wall-glow: rgba(233, 200, 145, 0.3); --wall-glow-soft: rgba(233, 200, 145, 0.3); --wall-ring: rgba(233, 200, 145, 0.24); --wall-pulse: #bdb6ff;
  --wall-far: rgba(236, 235, 242, 0.15); --wall-far-line: rgba(255, 255, 255, 0.045);
  --wall-aura-1: rgba(233, 200, 145, 0.12); --wall-aura-2: rgba(91, 75, 219, 0.2); --wall-aura-3: rgba(157, 147, 255, 0.1);
  --wall-vignette: rgba(0, 0, 0, 0.55);
}

/* ---------- AI Race: black, white and the red of the race ---------- */
html[data-theme][data-palette="ai-race"] body.shell-body {
  --bg: #050505;
  --surface: #0b0b0b; --surface-1: #101010; --surface-2: #161616; --surface-3: #222222;
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.18);
  --text-strong: #ffffff; --text: #ececec; --text-muted: #a3a3a3; --placeholder: #707070;
  --accent: #e20000; --accent-hi: #ff4d4d; --accent-deep: #a80000; --accent-text: #ff5a5a; --on-accent: #ffffff; --accent-2: #ff4d4d;
  --wall-node: rgba(255, 255, 255, 0.32); --wall-sub: rgba(255, 255, 255, 0.7); --wall-accent: #ff2a2a;
  --wall-spoke: rgba(255, 255, 255, 0.06); --wall-link: rgba(226, 0, 0, 0.26);
  --wall-hub: #e20000; --wall-hub-soft: rgba(255, 255, 255, 0.78); --wall-hub-core: #ffe3e3;
  --wall-glow: rgba(226, 0, 0, 0.32); --wall-glow-soft: rgba(255, 77, 77, 0.3); --wall-ring: rgba(226, 0, 0, 0.3); --wall-pulse: #ffffff;
  --wall-far: rgba(255, 255, 255, 0.14); --wall-far-line: rgba(255, 255, 255, 0.045);
  --wall-aura-1: rgba(226, 0, 0, 0.16); --wall-aura-2: rgba(255, 77, 77, 0.06); --wall-aura-3: rgba(185, 185, 185, 0.06);
  --wall-vignette: rgba(0, 0, 0, 0.6);
}

/* ---------- Eventscout Den: light, cool white with violet ---------- */
html[data-theme][data-palette="es-den"] body.shell-body {
  --bg: #f4f3fa;
  --surface: #f8f7fd; --surface-1: #ffffff; --surface-2: #ecebf5; --surface-3: #dfdded;
  --line: rgba(20, 18, 50, 0.09); --line-strong: rgba(20, 18, 50, 0.18);
  --text-strong: #08090d; --text: #23242e; --text-muted: #5d5f6e; --placeholder: #8c8e9c;
  --accent: #5b4bdb; --accent-hi: #7d70ea; --accent-deep: #4636c4; --accent-text: #4a3bc8; --on-accent: #ffffff; --accent-2: #e9c891;
  --wall-node: rgba(120, 116, 160, 0.24); --wall-sub: rgba(110, 104, 160, 0.36); --wall-accent: #7d70ea;
  --wall-spoke: rgba(120, 116, 170, 0.05); --wall-link: rgba(91, 75, 219, 0.18);
  --wall-hub: #7d70ea; --wall-hub-soft: rgba(170, 164, 210, 0.5); --wall-hub-core: #ffffff;
  --wall-glow: rgba(157, 147, 255, 0.28); --wall-glow-soft: rgba(236, 233, 255, 0.9); --wall-ring: rgba(91, 75, 219, 0.18); --wall-pulse: #c9a463;
  --wall-far: rgba(130, 126, 170, 0.1); --wall-far-line: rgba(130, 126, 170, 0.03);
  --wall-aura-1: rgba(157, 147, 255, 0.2); --wall-aura-2: rgba(233, 200, 145, 0.16); --wall-aura-3: rgba(190, 214, 255, 0.16);
  --wall-vignette: rgba(150, 146, 190, 0.05);
}

/* ---------- Projektor světlý: pure white, black text, deep violet; nothing soft that a projector washes out ---------- */
html[data-theme][data-palette="proj-svetly"] body.shell-body {
  --bg: #ffffff; --bg-grad: #ffffff;
  --surface: #ffffff; --surface-1: #ffffff; --surface-2: #eeeef2; --surface-3: #dcdce4;
  --line: rgba(0, 0, 0, 0.22); --line-strong: rgba(0, 0, 0, 0.42);
  --text-strong: #000000; --text: #0d0d12; --text-muted: #33343d; --placeholder: #5b5c66;
  --accent: #4a2fe0; --accent-hi: #6a52f0; --accent-deep: #2f17b8; --accent-text: #3a20cf; --on-accent: #ffffff; --accent-2: #e20000;
  --shadow-1: 0 0 0 1px rgba(0, 0, 0, 0.12); --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.14); --shadow-2: 0 10px 40px rgba(0, 0, 0, 0.25);
  --wall-node: rgba(40, 40, 60, 0.3); --wall-sub: rgba(40, 40, 60, 0.45); --wall-accent: #4a2fe0;
  --wall-spoke: rgba(40, 40, 60, 0.08); --wall-link: rgba(74, 47, 224, 0.3);
  --wall-hub: #4a2fe0; --wall-hub-soft: rgba(40, 40, 60, 0.4); --wall-hub-core: #ffffff;
  --wall-glow: rgba(74, 47, 224, 0.2); --wall-glow-soft: rgba(230, 226, 255, 0.9); --wall-ring: rgba(74, 47, 224, 0.3); --wall-pulse: #e20000;
  --wall-far: rgba(40, 40, 60, 0.1); --wall-far-line: rgba(40, 40, 60, 0.04);
  --wall-aura-1: rgba(74, 47, 224, 0.08); --wall-aura-2: rgba(226, 0, 0, 0.04); --wall-aura-3: rgba(0, 120, 255, 0.05);
  --wall-vignette: rgba(0, 0, 0, 0);
}

/* ---------- Projektor tmavý: pure black, white text, bright gold; for a dark room ---------- */
html[data-theme][data-palette="proj-tmavy"] body.shell-body {
  --bg: #000000; --bg-grad: #000000;
  --surface: #000000; --surface-1: #0a0a0a; --surface-2: #161616; --surface-3: #262626;
  --line: rgba(255, 255, 255, 0.22); --line-strong: rgba(255, 255, 255, 0.45);
  --text-strong: #ffffff; --text: #ffffff; --text-muted: #d0d0d0; --placeholder: #9a9a9a;
  --accent: #ffd23f; --accent-hi: #ffe27a; --accent-deep: #e0a800; --accent-text: #ffd23f; --on-accent: #000000; --accent-2: #9d93ff;
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.14); --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.16);
  --wall-node: rgba(255, 255, 255, 0.45); --wall-sub: rgba(255, 255, 255, 0.85); --wall-accent: #ffd23f;
  --wall-spoke: rgba(255, 255, 255, 0.1); --wall-link: rgba(255, 210, 63, 0.3);
  --wall-hub: #ffd23f; --wall-hub-soft: rgba(255, 255, 255, 0.9); --wall-hub-core: #ffffff;
  --wall-glow: rgba(255, 210, 63, 0.35); --wall-glow-soft: rgba(255, 210, 63, 0.35); --wall-ring: rgba(255, 210, 63, 0.35); --wall-pulse: #ffffff;
  --wall-far: rgba(255, 255, 255, 0.2); --wall-far-line: rgba(255, 255, 255, 0.07);
  --wall-aura-1: rgba(255, 210, 63, 0.1); --wall-aura-2: rgba(157, 147, 255, 0.08); --wall-aura-3: rgba(255, 255, 255, 0.03);
  --wall-vignette: rgba(0, 0, 0, 0);
}

/* ---------- the pictures of the variants in Vzhled a účet ---------- */
.look-pick--palettes { flex-wrap: wrap; row-gap: 12px; }
.look-thumb--palette { background: linear-gradient(160deg, var(--t-aura) 0%, var(--t-bg) 70%); }
.look-thumb--palette .look-thumb__win { background: var(--t-win); }
.look-thumb--palette .look-thumb__win i:nth-child(1) { background: var(--t-acc); }
.look-thumb--palette .look-thumb__win i:not(:first-child) { background: var(--t-line); }
