/* Theme preset: xrai-theme */

:root,
:root[data-theme="dark"] {
color-scheme: dark;
  --bg: #06080f;
  --bg-deep: #03040a;
  --grid: rgba(120, 136, 255, 0.14);
  --scan: rgba(30, 210, 255, 0.06);
  --text: #dff7ff;
  --muted: #89a6b7;
  --surface: rgba(8, 14, 28, 0.66);
  --surface-strong: rgba(10, 18, 36, 0.86);
  --header-bg: rgba(6, 10, 18, 0.72);
  --border: rgba(88, 150, 255, 0.25);
  --accent: #4cf2ff;
  --accent-2: #7f6dff;
  --visited-link: #b8a5ff;
  --accent-soft: rgba(76, 242, 255, 0.16);
  --code-bg: rgba(3, 8, 20, 0.9);
  --radius: 14px;
  --shadow: 0 0 0 1px rgba(127, 109, 255, 0.16), 0 20px 60px rgba(0, 0, 0, 0.45);
--glass-blur: 16px;
  --glass-surface: rgba(8, 16, 30, 0.62);
  --glass-surface-strong: rgba(9, 19, 38, 0.84);
  --glass-border: rgba(138, 190, 255, 0.26);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  --neon-cyan: rgba(76, 242, 255, 0.34);
  --neon-magenta: rgba(191, 112, 255, 0.28);
  --neon-edge-idle: rgba(76, 242, 255, 0.16);
  --neon-edge-hover: rgba(76, 242, 255, 0.3);
--theme-bg-overlay-1: rgba(127, 109, 255, 0.28);
  --theme-bg-overlay-2: rgba(76, 242, 255, 0.2);
  --theme-grid-size: 36px 36px;
  --theme-grid-opacity: 0.4;
  --theme-scanline-color: rgba(255, 255, 255, 0.03);
  --theme-scanline-opacity: 0.35;
  --theme-scanline-blend: soft-light;
  --theme-rss-link: #ff9a2a;
  --theme-rss-hover: #ffb45c;
  --theme-rss-shadow: rgba(255, 154, 42, 0.55);
  --theme-badge-bg: #dc2626;
  --theme-badge-fg: #ffffff;
  --theme-badge-border: rgba(255, 255, 255, 0.26);
  --theme-token-comment: #7e9aa9;
  --theme-token-keyword: #ff8fc8;
  --theme-token-string: #7af0b4;
  --theme-token-number: #ffd166;
  --theme-token-function: #8ec5ff;
  --theme-token-attr: #9ed7ff;
  --theme-token-operator: #d7e6ff;
  --theme-const-link: rgba(136, 188, 255, 0.62);
  --theme-const-related-border: rgba(76, 242, 255, 0.62);
  --theme-const-related-shadow: 0 0 0 1px rgba(76, 242, 255, 0.22), 0 0 10px rgba(76, 242, 255, 0.26);
  --theme-image-bloom-shadow: 0 0 0 1px rgba(76, 242, 255, 0.3), 0 0 18px rgba(76, 242, 255, 0.4);
  --theme-image-bloom-filter-hover: saturate(1.05) contrast(1.03);
  --theme-nav-hover-shadow: rgba(76, 242, 255, 0.6);
  --theme-focus-ring: rgba(76, 242, 255, 0.32);
  --theme-focus-glow: rgba(76, 242, 255, 0.22);
  --theme-control-hover-glow: rgba(76, 242, 255, 0.28);
  --theme-media-hover-ring: rgba(76, 242, 255, 0.32);
  --theme-media-hover-glow: rgba(76, 242, 255, 0.38);
  --theme-card-hover-ring: rgba(76, 242, 255, 0.28);
  --theme-card-hover-shadow: rgba(0, 0, 0, 0.42);
  --theme-share-hover-glow: rgba(76, 242, 255, 0.28);
  --theme-quick-hover-glow: rgba(76, 242, 255, 0.24);
  --theme-page-hover-glow: rgba(76, 242, 255, 0.24);
  --theme-page-active-glow: rgba(76, 242, 255, 0.3);
  --theme-brand-shimmer-display: block;
  --theme-search-focus-display: block;
  --theme-theme-burst-animation: themeBurst 0.42s ease-out;
  --theme-copy-success-animation: copyPulse 0.55s ease-out;
  --theme-count-pulse-animation: countPulse 0.62s ease-out;
}

:root[data-theme="light"] {
color-scheme: light;
  --bg: #f4f8ff;
  --bg-deep: #eaf1ff;
  --grid: rgba(100, 114, 240, 0.13);
  --scan: rgba(0, 217, 255, 0.07);
  --text: #091528;
  --muted: #4f6484;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --header-bg: rgba(244, 248, 255, 0.72);
  --border: rgba(96, 123, 255, 0.28);
  --accent: #00a5cc;
  --accent-2: #6d4dff;
  --visited-link: #5a3ed6;
  --accent-soft: rgba(0, 165, 204, 0.12);
  --code-bg: rgba(240, 246, 255, 0.92);
  --shadow: 0 0 0 1px rgba(109, 77, 255, 0.14), 0 20px 60px rgba(40, 56, 112, 0.16);
--glass-blur: 14px;
  --glass-surface: rgba(255, 255, 255, 0.72);
  --glass-surface-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(113, 140, 218, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 10px 28px rgba(40, 56, 112, 0.14);
  --neon-cyan: rgba(0, 165, 204, 0.22);
  --neon-magenta: rgba(133, 91, 238, 0.2);
  --neon-edge-idle: rgba(0, 165, 204, 0.12);
  --neon-edge-hover: rgba(0, 165, 204, 0.24);
--theme-bg-overlay-1: rgba(109, 77, 255, 0.16);
  --theme-bg-overlay-2: rgba(0, 165, 204, 0.14);
  --theme-grid-size: 36px 36px;
  --theme-grid-opacity: 0.32;
  --theme-scanline-color: rgba(0, 0, 0, 0.02);
  --theme-scanline-opacity: 0.22;
  --theme-scanline-blend: soft-light;
  --theme-rss-link: #cc7a1a;
  --theme-rss-hover: #a95f0c;
  --theme-rss-shadow: rgba(204, 122, 26, 0.28);
  --theme-badge-bg: #dc2626;
  --theme-badge-fg: #ffffff;
  --theme-badge-border: rgba(255, 255, 255, 0.26);
  --theme-token-comment: #667a8f;
  --theme-token-keyword: #bf1b7e;
  --theme-token-string: #107546;
  --theme-token-number: #965f00;
  --theme-token-function: #1d4fa7;
  --theme-token-attr: #0f69a0;
  --theme-token-operator: #243040;
  --theme-const-link: rgba(113, 140, 218, 0.62);
  --theme-const-related-border: rgba(0, 165, 204, 0.54);
  --theme-const-related-shadow: 0 0 0 1px rgba(0, 165, 204, 0.2), 0 0 9px rgba(0, 165, 204, 0.22);
  --theme-image-bloom-shadow: 0 0 0 1px rgba(0, 165, 204, 0.24), 0 0 14px rgba(0, 165, 204, 0.24);
  --theme-image-bloom-filter-hover: saturate(1.05) contrast(1.03);
  --theme-nav-hover-shadow: rgba(0, 165, 204, 0.38);
  --theme-focus-ring: rgba(0, 165, 204, 0.28);
  --theme-focus-glow: rgba(0, 165, 204, 0.2);
  --theme-control-hover-glow: rgba(0, 165, 204, 0.22);
  --theme-media-hover-ring: rgba(0, 165, 204, 0.24);
  --theme-media-hover-glow: rgba(0, 165, 204, 0.26);
  --theme-card-hover-ring: rgba(0, 165, 204, 0.22);
  --theme-card-hover-shadow: rgba(40, 56, 112, 0.2);
  --theme-share-hover-glow: rgba(0, 165, 204, 0.22);
  --theme-quick-hover-glow: rgba(0, 165, 204, 0.2);
  --theme-page-hover-glow: rgba(0, 165, 204, 0.2);
  --theme-page-active-glow: rgba(0, 165, 204, 0.24);
  --theme-brand-shimmer-display: block;
  --theme-search-focus-display: block;
  --theme-theme-burst-animation: themeBurst 0.42s ease-out;
  --theme-copy-success-animation: copyPulse 0.55s ease-out;
  --theme-count-pulse-animation: countPulse 0.62s ease-out;
}
