:root {
  --bg-start: #080204;
  --bg-end: #180008;
  --theme-background-image: url('/images/themes/Mio.png');
  --theme-background-size: 520px auto;
  --theme-background-position: 20px 20px;
  --theme-background-repeat: no-repeat;
  --theme-background-attachment: fixed;
  --page-overlay-top: rgba(0, 0, 0, 0.46);
  --page-overlay-bottom: rgba(0, 0, 0, 0.88);
  --page-overlay-solid-top: rgba(0, 0, 0, 0.58);
  --page-overlay-solid-bottom: rgba(0, 0, 0, 0.82);
  --text-strong: #ffffff;
  --text-main: #dddddd;
  --text-soft: #cfcfcf;
  --text-muted: #aaaaaa;
  --text-dim: #8f8f8f;
  --link-color: #7cf6ff;
  --accent: #00ffb4;
  --accent-secondary: #ff6ec7;
  --accent-cyan: #00d4ff;
  --accent-pink: #ff9ff3;
  --accent-gold: #ffd86b;
  --accent-glow: rgba(0, 255, 180, 0.42);
  --accent-shadow: rgba(0, 255, 180, 0.15);
  --panel-bg: rgba(26, 0, 10, 0.88);
  --panel-bg-alt: rgba(20, 0, 8, 0.92);
  --panel-bg-soft: rgba(23, 2, 10, 0.84);
  --panel-bg-deep: rgba(17, 0, 8, 0.9);
  --panel-bg-deeper: rgba(12, 0, 6, 0.92);
  --panel-bg-dark: rgba(6, 0, 3, 0.92);
  --panel-hover: rgba(36, 3, 16, 0.96);
  --panel-hover-soft: rgba(30, 2, 13, 0.92);
  --border-color: rgba(91, 24, 48, 0.82);
  --border-soft: rgba(89, 29, 51, 0.52);
  --border-strong: rgba(123, 35, 66, 0.9);
  --line-color: rgba(132, 78, 96, 0.42);
  --line-strong: rgba(158, 95, 117, 0.55);
  --input-bg: rgba(18, 0, 7, 0.96);
  --button-text-on-accent: #0b0710;
  --tag-text: #ffffff;
  --body-font: Arial, sans-serif;
  --heading-font: inherit;
  --card-radius: 8px;
  --card-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  --panel-shadow: none;
  color-scheme: dark;
  --warning-notice-text: #ffd166;
}

html[data-theme="xenith"] {
  --theme-background-image: url('/images/themes/Mio.png');
  --bg-start: #080204;
  --bg-end: #180008;
  --page-overlay-top: rgba(0, 0, 0, 0.46);
  --page-overlay-bottom: rgba(0, 0, 0, 0.88);
  --page-overlay-solid-top: rgba(0, 0, 0, 0.58);
  --page-overlay-solid-bottom: rgba(0, 0, 0, 0.82);
  --text-strong: #ffffff;
  --text-main: #dddddd;
  --text-soft: #cfcfcf;
  --text-muted: #aaaaaa;
  --text-dim: #8f8f8f;
  --link-color: #7cf6ff;
  --accent: #00ffb4;
  --accent-secondary: #ff6ec7;
  --accent-cyan: #00d4ff;
  --accent-pink: #ff9ff3;
  --accent-gold: #ffd86b;
  --accent-glow: rgba(0, 255, 180, 0.42);
  --accent-shadow: rgba(0, 255, 180, 0.15);
  --panel-bg: rgba(26, 0, 10, 0.88);
  --panel-bg-alt: rgba(20, 0, 8, 0.92);
  --panel-bg-soft: rgba(23, 2, 10, 0.84);
  --panel-bg-deep: rgba(17, 0, 8, 0.9);
  --panel-bg-deeper: rgba(12, 0, 6, 0.92);
  --panel-bg-dark: rgba(6, 0, 3, 0.92);
  --panel-hover: rgba(36, 3, 16, 0.96);
  --panel-hover-soft: rgba(30, 2, 13, 0.92);
  --border-color: rgba(91, 24, 48, 0.82);
  --border-soft: rgba(89, 29, 51, 0.52);
  --border-strong: rgba(123, 35, 66, 0.9);
  --line-color: rgba(132, 78, 96, 0.42);
  --line-strong: rgba(158, 95, 117, 0.55);
  --input-bg: rgba(18, 0, 7, 0.96);
  --button-text-on-accent: #0b0710;
  --tag-text: #ffffff;
  --warning-notice-text: #ffd166;
}

html[data-theme="midnight"] {
  --theme-background-image: url('/images/themes/Midnight.png');
  --bg-start: #050814;
  --bg-end: #0f1730;
  --page-overlay-top: rgba(4, 8, 20, 0.42);
  --page-overlay-bottom: rgba(3, 6, 16, 0.84);
  --page-overlay-solid-top: rgba(5, 9, 22, 0.58);
  --page-overlay-solid-bottom: rgba(3, 6, 16, 0.82);
  --text-strong: #eef4ff;
  --text-main: #d4deef;
  --text-soft: #c2cce1;
  --text-muted: #9facc7;
  --text-dim: #8190af;
  --link-color: #83dcff;
  --accent: #7ed7ff;
  --accent-secondary: #8f95ff;
  --accent-cyan: #56c6ff;
  --accent-pink: #c0a7ff;
  --accent-gold: #f5d37b;
  --accent-glow: rgba(126, 215, 255, 0.32);
  --accent-shadow: rgba(76, 156, 231, 0.18);
  --panel-bg: rgba(11, 18, 38, 0.86);
  --panel-bg-alt: rgba(13, 22, 45, 0.92);
  --panel-bg-soft: rgba(15, 24, 47, 0.82);
  --panel-bg-deep: rgba(9, 16, 35, 0.92);
  --panel-bg-deeper: rgba(7, 13, 28, 0.94);
  --panel-bg-dark: rgba(4, 8, 19, 0.94);
  --panel-hover: rgba(18, 30, 59, 0.96);
  --panel-hover-soft: rgba(15, 25, 50, 0.92);
  --border-color: rgba(78, 106, 172, 0.52);
  --border-soft: rgba(92, 114, 170, 0.32);
  --border-strong: rgba(116, 146, 219, 0.68);
  --line-color: rgba(96, 119, 167, 0.34);
  --line-strong: rgba(121, 148, 201, 0.44);
  --input-bg: rgba(8, 15, 31, 0.96);
  --button-text-on-accent: #041118;
  --tag-text: #ffffff;
  --warning-notice-text: #ffd166;
}

html[data-theme="light"] {
  --theme-background-image: url('/images/themes/Light.png');
  --bg-start: #fff6ec;
  --bg-end: #f2dfca;
  --page-overlay-top: rgba(255, 251, 245, 0.76);
  --page-overlay-bottom: rgba(240, 224, 208, 0.9);
  --page-overlay-solid-top: rgba(253, 247, 240, 0.92);
  --page-overlay-solid-bottom: rgba(240, 224, 208, 0.96);
  --text-strong: #2a201b;
  --text-main: #3d2f27;
  --text-soft: #524034;
  --text-muted: #7b6252;
  --text-dim: #9a7d6b;
  --link-color: #8d4767;
  --accent: #b7517f;
  --accent-secondary: #d17d59;
  --accent-cyan: #5b8ab8;
  --accent-pink: #cf77a8;
  --accent-gold: #c9962f;
  --accent-glow: rgba(183, 81, 127, 0.18);
  --accent-shadow: rgba(140, 82, 51, 0.12);
  --panel-bg: rgba(255, 252, 247, 0.96);
  --panel-bg-alt: rgba(252, 245, 237, 0.98);
  --panel-bg-soft: rgba(249, 240, 230, 0.94);
  --panel-bg-deep: rgba(246, 236, 224, 0.96);
  --panel-bg-deeper: rgba(240, 226, 212, 0.96);
  --panel-bg-dark: rgba(228, 210, 194, 0.94);
  --panel-hover: rgba(250, 237, 225, 0.98);
  --panel-hover-soft: rgba(244, 228, 214, 0.96);
  --border-color: rgba(146, 105, 80, 0.36);
  --border-soft: rgba(145, 110, 89, 0.24);
  --border-strong: rgba(151, 100, 73, 0.5);
  --line-color: rgba(135, 104, 85, 0.22);
  --line-strong: rgba(139, 108, 92, 0.32);
  --input-bg: rgba(255, 253, 250, 0.98);
  --button-text-on-accent: #fff8fc;
  --tag-text: #ffffff;
  --card-shadow: 0 12px 26px rgba(88, 65, 53, 0.08);
  color-scheme: light;
  --warning-notice-text: #c70000;
}

html[data-theme="spring"] {
  --theme-background-image: url('/images/themes/Spring.png');
  --bg-start: #fff0f5;
  --bg-end: #e3f3d7;
  --page-overlay-top: rgba(255, 246, 250, 0.74);
  --page-overlay-bottom: rgba(226, 240, 220, 0.88);
  --page-overlay-solid-top: rgba(253, 245, 249, 0.92);
  --page-overlay-solid-bottom: rgba(222, 236, 214, 0.96);
  --text-strong: #2b2433;
  --text-main: #3d3545;
  --text-soft: #4e4558;
  --text-muted: #7a6a82;
  --text-dim: #9c8ba5;
  --link-color: #b65a9f;
  --accent: #e86aae;
  --accent-secondary: #7cc28a;
  --accent-cyan: #72c5e0;
  --accent-pink: #f196c7;
  --accent-gold: #f2b65a;
  --accent-glow: rgba(232, 106, 174, 0.22);
  --accent-shadow: rgba(232, 106, 174, 0.14);
  --panel-bg: rgba(255, 248, 252, 0.96);
  --panel-bg-alt: rgba(252, 243, 248, 0.98);
  --panel-bg-soft: rgba(249, 237, 244, 0.94);
  --panel-bg-deep: rgba(247, 234, 241, 0.96);
  --panel-bg-deeper: rgba(240, 224, 234, 0.96);
  --panel-bg-dark: rgba(230, 210, 224, 0.94);
  --panel-hover: rgba(250, 236, 244, 0.98);
  --panel-hover-soft: rgba(244, 228, 238, 0.96);
  --border-color: rgba(200, 135, 175, 0.38);
  --border-soft: rgba(200, 145, 180, 0.26);
  --border-strong: rgba(210, 120, 170, 0.52);
  --line-color: rgba(190, 140, 175, 0.24);
  --line-strong: rgba(205, 145, 180, 0.36);
  --input-bg: rgba(255, 252, 254, 0.98);
  --button-text-on-accent: #ffffff;
  --tag-text: #ffffff;
  --card-shadow: 0 12px 26px rgba(180, 120, 150, 0.1);
  color-scheme: light;
  --warning-notice-text: #c70000;
}

html[data-theme="blue-sky"] {
  --theme-background-image: url('/images/themes/Blue-Sky.png');
  --bg-start: #d9ecff;
  --bg-end: #a2cef5;
  --page-overlay-top: rgba(227, 241, 255, 0.72);
  --page-overlay-bottom: rgba(184, 216, 244, 0.88);
  --page-overlay-solid-top: rgba(233, 244, 255, 0.92);
  --page-overlay-solid-bottom: rgba(192, 222, 246, 0.96);
  --text-strong: #0f2947;
  --text-main: #21466a;
  --text-soft: #365c80;
  --text-muted: #607a94;
  --text-dim: #8299b0;
  --link-color: #1e6fb3;
  --accent: #2f8dd6;
  --accent-secondary: #5ab0ee;
  --accent-cyan: #4fbff4;
  --accent-pink: #9dc4ea;
  --accent-gold: #dbb860;
  --accent-glow: rgba(47, 141, 214, 0.22);
  --accent-shadow: rgba(47, 141, 214, 0.14);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-bg-alt: rgba(240, 248, 255, 0.98);
  --panel-bg-soft: rgba(232, 244, 255, 0.94);
  --panel-bg-deep: rgba(222, 238, 253, 0.96);
  --panel-bg-deeper: rgba(208, 228, 248, 0.96);
  --panel-bg-dark: rgba(186, 216, 244, 0.94);
  --panel-hover: rgba(228, 243, 255, 0.98);
  --panel-hover-soft: rgba(214, 234, 252, 0.96);
  --border-color: rgba(95, 150, 198, 0.4);
  --border-soft: rgba(110, 160, 205, 0.26);
  --border-strong: rgba(70, 130, 185, 0.52);
  --line-color: rgba(95, 145, 190, 0.24);
  --line-strong: rgba(85, 140, 190, 0.36);
  --input-bg: rgba(255, 255, 255, 0.98);
  --button-text-on-accent: #ffffff;
  --tag-text: #ffffff;
  --card-shadow: 0 12px 26px rgba(60, 110, 165, 0.1);
  color-scheme: light;
  --warning-notice-text: #c70000;
}

html[data-theme="sakura"] {
  --theme-background-image: url('/images/themes/Sakura.png');
  --bg-start: #15040d;
  --bg-end: #341224;
  --page-overlay-top: rgba(20, 7, 14, 0.44);
  --page-overlay-bottom: rgba(19, 6, 13, 0.86);
  --page-overlay-solid-top: rgba(26, 8, 18, 0.58);
  --page-overlay-solid-bottom: rgba(21, 6, 15, 0.84);
  --text-strong: #fff6fb;
  --text-main: #efd5e4;
  --text-soft: #e2bfd1;
  --text-muted: #c69bb4;
  --text-dim: #aa7f95;
  --link-color: #ffb5da;
  --accent: #ff80bf;
  --accent-secondary: #ffb074;
  --accent-cyan: #ff9ad8;
  --accent-pink: #ff97ce;
  --accent-gold: #ffd27d;
  --accent-glow: rgba(255, 128, 191, 0.28);
  --accent-shadow: rgba(255, 128, 191, 0.16);
  --panel-bg: rgba(38, 10, 24, 0.86);
  --panel-bg-alt: rgba(47, 13, 29, 0.92);
  --panel-bg-soft: rgba(48, 15, 31, 0.84);
  --panel-bg-deep: rgba(32, 9, 21, 0.92);
  --panel-bg-deeper: rgba(23, 7, 16, 0.94);
  --panel-bg-dark: rgba(15, 4, 10, 0.94);
  --panel-hover: rgba(62, 17, 39, 0.96);
  --panel-hover-soft: rgba(51, 14, 32, 0.92);
  --border-color: rgba(150, 61, 103, 0.56);
  --border-soft: rgba(163, 88, 122, 0.34);
  --border-strong: rgba(201, 101, 149, 0.7);
  --line-color: rgba(170, 97, 133, 0.3);
  --line-strong: rgba(199, 125, 161, 0.42);
  --input-bg: rgba(28, 8, 18, 0.96);
  --button-text-on-accent: #2b0618;
  --tag-text: #ffffff;
  --warning-notice-text: #ffd166;
}

html[data-theme="ocean"] {
  --theme-background-image: url('/images/themes/Ocean.png');
  --bg-start: #03131a;
  --bg-end: #083245;
  --page-overlay-top: rgba(2, 15, 19, 0.42);
  --page-overlay-bottom: rgba(2, 15, 18, 0.82);
  --page-overlay-solid-top: rgba(4, 20, 26, 0.56);
  --page-overlay-solid-bottom: rgba(2, 16, 21, 0.82);
  --text-strong: #eefeff;
  --text-main: #d2f0f4;
  --text-soft: #badee4;
  --text-muted: #89b7be;
  --text-dim: #6f9ca4;
  --link-color: #8ef7ff;
  --accent: #2ce6c8;
  --accent-secondary: #57bfff;
  --accent-cyan: #74efff;
  --accent-pink: #78d2ff;
  --accent-gold: #ffd37a;
  --accent-glow: rgba(44, 230, 200, 0.28);
  --accent-shadow: rgba(44, 230, 200, 0.14);
  --panel-bg: rgba(8, 31, 39, 0.86);
  --panel-bg-alt: rgba(10, 40, 49, 0.92);
  --panel-bg-soft: rgba(12, 40, 49, 0.84);
  --panel-bg-deep: rgba(7, 25, 31, 0.92);
  --panel-bg-deeper: rgba(6, 18, 24, 0.94);
  --panel-bg-dark: rgba(3, 12, 16, 0.94);
  --panel-hover: rgba(12, 51, 62, 0.96);
  --panel-hover-soft: rgba(11, 43, 52, 0.92);
  --border-color: rgba(54, 135, 143, 0.48);
  --border-soft: rgba(77, 144, 151, 0.28);
  --border-strong: rgba(76, 185, 196, 0.62);
  --line-color: rgba(88, 149, 156, 0.28);
  --line-strong: rgba(94, 173, 181, 0.4);
  --input-bg: rgba(7, 22, 28, 0.96);
  --button-text-on-accent: #041716;
  --tag-text: #ffffff;
  --warning-notice-text: #ffd166;
}

html[data-theme="forest"] {
  --theme-background-image: url('/images/themes/Forest.png');
  --bg-start: #08140a;
  --bg-end: #18331a;
  --page-overlay-top: rgba(6, 16, 8, 0.42);
  --page-overlay-bottom: rgba(5, 15, 7, 0.84);
  --page-overlay-solid-top: rgba(8, 19, 10, 0.56);
  --page-overlay-solid-bottom: rgba(6, 14, 7, 0.82);
  --text-strong: #f3fff1;
  --text-main: #d4ead2;
  --text-soft: #bfd6bd;
  --text-muted: #92b08f;
  --text-dim: #759373;
  --link-color: #99ffc0;
  --accent: #79df8d;
  --accent-secondary: #d7b36d;
  --accent-cyan: #6fd8bd;
  --accent-pink: #adc98b;
  --accent-gold: #e7cf7d;
  --accent-glow: rgba(121, 223, 141, 0.28);
  --accent-shadow: rgba(121, 223, 141, 0.12);
  --panel-bg: rgba(17, 34, 18, 0.86);
  --panel-bg-alt: rgba(22, 43, 22, 0.92);
  --panel-bg-soft: rgba(21, 41, 21, 0.84);
  --panel-bg-deep: rgba(15, 28, 15, 0.92);
  --panel-bg-deeper: rgba(10, 21, 10, 0.94);
  --panel-bg-dark: rgba(6, 14, 7, 0.94);
  --panel-hover: rgba(29, 56, 29, 0.96);
  --panel-hover-soft: rgba(24, 47, 24, 0.92);
  --border-color: rgba(93, 124, 82, 0.5);
  --border-soft: rgba(98, 125, 88, 0.28);
  --border-strong: rgba(126, 166, 111, 0.62);
  --line-color: rgba(102, 129, 93, 0.28);
  --line-strong: rgba(132, 161, 122, 0.42);
  --input-bg: rgba(12, 24, 12, 0.96);
  --button-text-on-accent: #0a160a;
  --tag-text: #ffffff;
  --warning-notice-text: #ffd166;
}



html[data-theme="catgirl"] {
  --theme-background-image: url('/images/themes/Catgirl.png');
  --bg-start: #2a1625;
  --bg-end: #694560;
  --page-overlay-top: rgba(47, 22, 40, 0.54);
  --page-overlay-bottom: rgba(88, 49, 74, 0.9);
  --page-overlay-solid-top: rgba(56, 28, 47, 0.72);
  --page-overlay-solid-bottom: rgba(90, 48, 75, 0.92);
  --text-strong: #fff8fc;
  --text-main: #f8e4ee;
  --text-soft: #efd2e0;
  --text-muted: #d6aec2;
  --text-dim: #b88ea4;
  --link-color: #ffe5f1;
  --accent: #ff8dbf;
  --accent-secondary: #ffd2e7;
  --accent-cyan: #dbc0ff;
  --accent-pink: #ffd8ea;
  --accent-gold: #ffe0a8;
  --accent-glow: rgba(255, 141, 191, 0.34);
  --accent-shadow: rgba(255, 141, 191, 0.22);
  --panel-bg: rgba(86, 48, 74, 0.84);
  --panel-bg-alt: rgba(97, 54, 82, 0.9);
  --panel-bg-soft: rgba(103, 58, 87, 0.82);
  --panel-bg-deep: rgba(72, 38, 62, 0.94);
  --panel-bg-deeper: rgba(58, 30, 50, 0.95);
  --panel-bg-dark: rgba(44, 21, 37, 0.95);
  --panel-hover: rgba(118, 66, 99, 0.96);
  --panel-hover-soft: rgba(105, 58, 88, 0.92);
  --border-color: rgba(255, 203, 227, 0.38);
  --border-soft: rgba(255, 200, 224, 0.22);
  --border-strong: rgba(255, 214, 233, 0.6);
  --line-color: rgba(255, 190, 221, 0.18);
  --line-strong: rgba(255, 205, 229, 0.34);
  --input-bg: rgba(61, 30, 51, 0.96);
  --button-text-on-accent: #451529;
  --tag-text: #fff9fd;
  --card-radius: 18px;
  --card-shadow: 0 18px 38px rgba(34, 12, 25, 0.34);
  color-scheme: dark;
  --warning-notice-text: #ffd166;
}

html[data-theme="catgirl"] body {
  background-color: #2a1022;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(255, 228, 239, 0.14), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(219, 192, 255, 0.10), transparent 28%),
    linear-gradient(180deg, var(--page-overlay-top) 0%, var(--page-overlay-bottom) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 16px, transparent 16px 36px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cg fill='%23ffd8eb' fill-opacity='.10'%3E%3Cellipse cx='90' cy='112' rx='22' ry='18'/%3E%3Cellipse cx='64' cy='74' rx='9' ry='13'/%3E%3Cellipse cx='85' cy='58' rx='9' ry='14'/%3E%3Cellipse cx='107' cy='58' rx='9' ry='14'/%3E%3Cellipse cx='128' cy='74' rx='9' ry='13'/%3E%3C/g%3E%3Cg fill='%23fff0f6' fill-opacity='.06'%3E%3Ccircle cx='30' cy='30' r='2.3'/%3E%3Ccircle cx='142' cy='42' r='1.8'/%3E%3Ccircle cx='152' cy='128' r='2.1'/%3E%3Ccircle cx='38' cy='142' r='1.7'/%3E%3C/g%3E%3C/svg%3E"),
    var(--theme-background-image);
  background-size: auto, auto, auto, auto, 180px 180px, var(--theme-background-size);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, var(--theme-background-position);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, var(--theme-background-repeat);
  background-attachment: fixed, fixed, fixed, fixed, fixed, var(--theme-background-attachment);
}

html[data-theme="catgirl"] :is(
  .todo-panel,
  .guide-box,
  .stats,
  .controls,
  .hero,
  .panel,
  .filters-panel,
  .game,
  .rant-box,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
) {
  position: relative;
  overflow: visible;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(31, 12, 24, 0.28);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(255, 232, 242, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 44%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
}

html[data-theme="catgirl"] :is(
  .todo-panel,
  .guide-box,
  .stats,
  .controls,
  .hero,
  .panel,
  .filters-panel,
  .game,
  .rant-box,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -31px;
  height: 40px;
  pointer-events: none;
  z-index: 3;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23fff9fc'/%3E%3Cstop offset='1' stop-color='%23ffb0d2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M17 2 31 33H3Z' fill='url(%23g)' stroke='%23ffdfea' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M17 10 24.5 27H9.5Z' fill='%23ffe6f0' fill-opacity='.97'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23fff9fc'/%3E%3Cstop offset='1' stop-color='%23ffb0d2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M17 2 31 33H3Z' fill='url(%23g)' stroke='%23ffdfea' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M17 10 24.5 27H9.5Z' fill='%23ffe6f0' fill-opacity='.97'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: 30px 34px, 30px 34px;
  background-position: 14px 0, calc(100% - 14px) 0;
  filter: drop-shadow(0 8px 14px rgba(72, 25, 48, 0.18));
}

html[data-theme="catgirl"] :is(
  .todo-panel,
  .guide-box,
  .stats,
  .controls,
  .hero,
  .panel,
  .filters-panel,
  .game,
  .rant-box,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
)::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -8px;
  width: 48px;
  height: 26px;
  pointer-events: none;
  z-index: 3;
  transform: rotate(5deg);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 46'%3E%3Cpath d='M8 21c10-8 28-10 42-5 15 5 25 16 24 29' fill='none' stroke='%23ffd7ea' stroke-width='5.5' stroke-linecap='round'/%3E%3Cpath d='M8 21c10-8 28-10 42-5 15 5 25 16 24 29' fill='none' stroke='%23ff97c4' stroke-width='9' stroke-linecap='round' opacity='.38'/%3E%3C/svg%3E");
  filter: drop-shadow(0 7px 12px rgba(72, 25, 48, 0.18));
}


html[data-theme="catgirl"] .multi-select-menu,
html[data-theme="catgirl"] .dropdown-menu {
  box-shadow: 0 16px 34px rgba(46, 20, 38, 0.3);
}

html[data-theme="catgirl"] .stat-value,
html[data-theme="catgirl"] .stat-title.highlight {
  text-shadow: 0 0 14px rgba(255, 150, 199, 0.2);
}

html[data-theme="catgirl"] .game-cover,
html[data-theme="catgirl"] .stats-cover,
html[data-theme="catgirl"] .spotlight-cover,
html[data-theme="catgirl"] .release-art,
html[data-theme="catgirl"] .mini-cover {
  border-radius: 14px;
  border-color: rgba(255, 214, 233, 0.26);
  box-shadow: 0 10px 24px rgba(35, 13, 27, 0.24);
}

html[data-theme="catgirl"] .multi-select-pill-option.is-selected,
html[data-theme="catgirl"] .active-filter-chip,
html[data-theme="catgirl"] .tag,
html[data-theme="catgirl"] .pill {
  border-color: rgba(255, 223, 237, 0.34);
}


html[data-theme="catgirl"] .spotlight-cover,
html[data-theme="catgirl"] .release-art,
html[data-theme="catgirl"] .mini-cover,
html[data-theme="catgirl"] .game-cover,
html[data-theme="catgirl"] .stats-cover {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .tag,
html[data-theme="light"] .pill,
html[data-theme="spring"] .tag,
html[data-theme="spring"] .pill,
html[data-theme="blue-sky"] .tag,
html[data-theme="blue-sky"] .pill {
  color: var(--tag-text);
}

html[data-theme="light"] select option,
html[data-theme="spring"] select option,
html[data-theme="blue-sky"] select option {
  background-color: var(--panel-bg-deep);
  color: var(--text-main);
}

html[data-theme="light"] .checkbox-label:hover,
html[data-theme="spring"] .checkbox-label:hover,
html[data-theme="blue-sky"] .checkbox-label:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .game-cover,
html[data-theme="spring"] .game-cover,
html[data-theme="blue-sky"] .game-cover {
  background: var(--panel-bg-deep);
}

html[data-theme="light"] .dropdown-menu,
html[data-theme="spring"] .dropdown-menu,
html[data-theme="blue-sky"] .dropdown-menu {
  box-shadow: 0 8px 20px rgba(60, 40, 30, 0.22);
}

html[data-theme="light"] .multi-select-menu,
html[data-theme="spring"] .multi-select-menu,
html[data-theme="blue-sky"] .multi-select-menu {
  box-shadow: 0 8px 22px rgba(60, 40, 30, 0.18);
}

html[data-theme="light"] .stats-cover,
html[data-theme="spring"] .stats-cover,
html[data-theme="blue-sky"] .stats-cover,
html[data-theme="light"] .mini-cover,
html[data-theme="spring"] .mini-cover,
html[data-theme="blue-sky"] .mini-cover {
  background: var(--panel-bg-deep);
}

html[data-theme="light"] .active-filter-chip,
html[data-theme="spring"] .active-filter-chip,
html[data-theme="blue-sky"] .active-filter-chip {
  color: var(--tag-text);
}

html[data-theme="light"] .active-filter-chip button,
html[data-theme="spring"] .active-filter-chip button,
html[data-theme="blue-sky"] .active-filter-chip button {
  color: var(--tag-text);
}

html[data-theme="light"] #pagination button,
html[data-theme="spring"] #pagination button,
html[data-theme="blue-sky"] #pagination button {
  color: var(--text-strong);
}


html[data-theme="light"] :is(.release-side-label, .release-title, .release-date),
html[data-theme="spring"] :is(.release-side-label, .release-title, .release-date),
html[data-theme="blue-sky"] :is(.release-side-label, .release-title, .release-date) {
  color: #fff8fc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

html[data-theme="light"] .release-date,
html[data-theme="spring"] .release-date,
html[data-theme="blue-sky"] .release-date {
  background: rgba(22, 10, 18, 0.58);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .release-overlay,
html[data-theme="spring"] .release-overlay,
html[data-theme="blue-sky"] .release-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.84) 100%);
}

html[data-theme="light"] .release-art,
html[data-theme="spring"] .release-art,
html[data-theme="blue-sky"] .release-art {
  filter: blur(1.7px) brightness(0.28) saturate(0.95);
}


html[data-theme="catgirl"] .multi-select-toggle,
html[data-theme="catgirl"] .multi-select-pill-option {
  padding-right: 12px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(255, 223, 236, 0.08), transparent 70%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
}

html[data-theme="catgirl"] .multi-select-menu,
html[data-theme="catgirl"] .dropdown-menu {
  overflow: auto;
  background-image:
    radial-gradient(circle at 18% 10%, rgba(255, 232, 242, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 44%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
}


html[data-theme="catgirl"] :is(
  .controls,
  .filters-panel,
  .stats,
  .panel,
  .hero,
  .guide-box,
  .todo-panel,
  .rant-box
) {
  overflow: visible !important;
  position: relative !important;
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
) {
  overflow: visible !important;
  position: relative !important;
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
)::before {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
)::after {
  opacity: 0;
  transform: translateY(6px) rotate(5deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):hover,
html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):focus-within {
  z-index: 4;
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):hover::before,
html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):hover::after,
html[data-theme="catgirl"] :is(
  .game,
  .spotlight-card,
  .release-showcase-card,
  .mini-list-card,
  .fact-card,
  .chart-card,
  .stat-card,
  .timeline-side-card
):focus-within::after {
  opacity: 1;
  transform: translateY(0) rotate(5deg);
}


html[data-theme="catgirl"] .game-link {
  overflow: visible !important;
  content-visibility: visible !important;
  contain: none !important;
  contain-intrinsic-size: auto !important;
}


html[data-theme="catgirl"] .release-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

html[data-theme="catgirl"] .release-panel {
  overflow: hidden;
}

html[data-theme="catgirl"] .release-meta {
  position: relative;
  z-index: 1;
}


@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll !important;
  }
}
notice.warning,
.warning-notice {
  display: block;
  color: var(--warning-notice-text);
  margin-bottom: 20px;
}
body,
button,
input,
select,
textarea {
  font-family: var(--body-font, Arial, sans-serif);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font, var(--body-font, Arial, sans-serif));
}
