[data-theme] {
  --bg: #eef2ff;
  --bg-image: linear-gradient(180deg, #eef2ff, #dfe7ff);
  --surface: #ffffff;
  --surface-2: #f6f7ff;
  --text: #111827;
  --muted: #5b6478;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --line: #c7d2fe;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --button-bg: #2563eb;
  --button-text: #ffffff;
  --button-border: #1d4ed8;
  --shadow: 0 10px 30px rgba(30, 41, 59, .12);
  --header-bg: #ffffff;
  --header-text: #111827;
  --chip-bg: #eef2ff;
  --chip-text: #3730a3;
}

[data-theme="vk2010"] {
  --bg: #dfe9f5;
  --bg-image:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    linear-gradient(180deg, #4a76a8 0 120px, #e8eef5 120px 100%);
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #1c2733;
  --muted: #5e6d7c;
  --accent: #4a76a8;
  --accent-2: #2d5f8b;
  --line: #b7c9db;
  --radius: 4px;
  --radius-sm: 3px;
  --font: Tahoma, Verdana, Arial, sans-serif;
  --button-bg: linear-gradient(#6f9bc8, #4a76a8);
  --button-text: #ffffff;
  --button-border: #2d5f8b;
  --shadow: 0 2px 0 rgba(0,0,0,.18);
  --header-bg: #4a76a8;
  --header-text: #ffffff;
  --chip-bg: #dfe9f5;
  --chip-text: #2d5f8b;
}

[data-theme="mlp"] {
  --bg: #ffe4f6;
  --bg-image:
    radial-gradient(circle at 12% 18%, #fff6fd 0 10px, transparent 11px),
    radial-gradient(circle at 82% 8%, #d9ccff 0 14px, transparent 15px),
    linear-gradient(160deg, #ffd6f2, #e9d4ff 48%, #cfe7ff);
  --surface: #fffafd;
  --surface-2: #fdeeff;
  --text: #4a235a;
  --muted: #8a5c9c;
  --accent: #e84fa1;
  --accent-2: #8b5cf6;
  --line: #f5b8de;
  --radius: 24px;
  --radius-sm: 16px;
  --font: "Comic Sans MS", "Chalkboard SE", "Trebuchet MS", sans-serif;
  --button-bg: linear-gradient(135deg, #ff8ccb, #b388ff);
  --button-text: #ffffff;
  --button-border: #e84fa1;
  --shadow: 0 12px 28px rgba(232, 79, 161, .25);
  --header-bg: linear-gradient(135deg, #ffb3de, #d5c4ff);
  --header-text: #5b2a6e;
  --chip-bg: #ffe3f4;
  --chip-text: #a62672;
}

[data-theme="winx"] {
  --bg: #12052b;
  --bg-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 32%, #7df9ff 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, #ff7df2 0 1px, transparent 2px),
    linear-gradient(150deg, #26064f, #4a0a7a 45%, #061a4a);
  --surface: rgba(36, 12, 72, .92);
  --surface-2: rgba(58, 20, 105, .85);
  --text: #fdf7ff;
  --muted: #c7b4ef;
  --accent: #ff5edb;
  --accent-2: #5ff4ff;
  --line: #8b5cf6;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Trebuchet MS", "Segoe UI", sans-serif;
  --button-bg: linear-gradient(135deg, #ff4fd8, #7b5cff 55%, #3ee7ff);
  --button-text: #ffffff;
  --button-border: #ff8ff0;
  --shadow: 0 0 24px rgba(255, 94, 219, .35);
  --header-bg: linear-gradient(135deg, #5a0f9e, #1a1a6e);
  --header-text: #ffffff;
  --chip-bg: rgba(95, 244, 255, .14);
  --chip-text: #b6fbff;
}

[data-theme="dino"] {
  --bg: #e8f6d8;
  --bg-image:
    radial-gradient(circle at 18% 20%, #c8eb9e 0 18px, transparent 19px),
    radial-gradient(circle at 78% 70%, #b5df88 0 26px, transparent 27px),
    linear-gradient(180deg, #cdeab2, #8fce6b 48%, #4f8f3a);
  --surface: #fbfff4;
  --surface-2: #eef9dd;
  --text: #20381c;
  --muted: #53704b;
  --accent: #3f7f2a;
  --accent-2: #8a5a2b;
  --line: #a9d184;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Trebuchet MS", Verdana, sans-serif;
  --button-bg: linear-gradient(#7cc34a, #3f7f2a);
  --button-text: #ffffff;
  --button-border: #2f611f;
  --shadow: 0 8px 0 rgba(47, 97, 31, .25);
  --header-bg: linear-gradient(#5a9c38, #2f611f);
  --header-text: #ffffff;
  --chip-bg: #e0f4c8;
  --chip-text: #2f611f;
}

[data-theme="smeshariki"] {
  --bg: #fff4cf;
  --bg-image:
    radial-gradient(circle at 12% 22%, #ffd36b 0 22px, transparent 23px),
    radial-gradient(circle at 86% 18%, #8fd8ff 0 18px, transparent 19px),
    linear-gradient(170deg, #fff9e4, #ffe3a1 55%, #ffc96b);
  --surface: #fffdf7;
  --surface-2: #fff3d1;
  --text: #3d2b12;
  --muted: #7b613d;
  --accent: #ff8a00;
  --accent-2: #2a9df4;
  --line: #ffd07a;
  --radius: 30px;
  --radius-sm: 20px;
  --font: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  --button-bg: linear-gradient(135deg, #ffb340, #ff7b00);
  --button-text: #ffffff;
  --button-border: #e36a00;
  --shadow: 0 10px 0 rgba(227, 106, 0, .18);
  --header-bg: linear-gradient(135deg, #ffd36b, #ff9a3c);
  --header-text: #4a2c06;
  --chip-bg: #fff0c2;
  --chip-text: #9a4b00;
}

.theme-ornament {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
  opacity: .9;
}
.theme-ornament.o1 { top: -12px; right: 6px; font-size: 58px; transform: rotate(10deg); }
.theme-ornament.o2 { top: 34%; left: -10px; font-size: 44px; transform: rotate(-16deg); opacity: .55; }
.theme-ornament.o3 { bottom: 8%; right: -6px; font-size: 52px; transform: rotate(12deg); opacity: .6; }

[data-theme="winx"] .theme-ornament { filter: drop-shadow(0 0 14px #ff5edb); opacity: .95; }
[data-theme="vk2010"] .theme-ornament { opacity: .45; }
[data-theme="dino"] .theme-ornament.o2 { top: auto; bottom: 18%; left: 8%; }
[data-theme="smeshariki"] .theme-ornament { filter: drop-shadow(0 8px 0 rgba(0,0,0,.12)); }
