/* Shared MMORPG palettes: theme-* is the source for presentation tokens. */
body.theme-wyd_armia {
  --theme-bg:#171715; --theme-bg-soft:#1e201e; --theme-rail:#202320;
  --theme-panel:#292b27; --theme-panel-2:#333731; --theme-panel-warm:#302d24;
  --theme-text:#f2eee5; --theme-muted:#b7bbb1;
  --theme-line:#464b41; --theme-line-strong:#8c7951;
  --theme-primary:#d6b575; --theme-primary-2:#edd19a; --theme-secondary:#9ab9ac;
  --theme-danger:#e39b92; --theme-good:#9bd4ad; --theme-button-text:#211c12;
  --theme-shadow:rgba(0,0,0,.3);
}
body.theme-wyd_azran {
  --theme-bg:#171315; --theme-bg-soft:#211a1d; --theme-rail:#271d21;
  --theme-panel:#302429; --theme-panel-2:#3c3034; --theme-panel-warm:#342b25;
  --theme-text:#f7ece6; --theme-muted:#c5b6b6;
  --theme-line:#584248; --theme-line-strong:#9c7b55;
  --theme-primary:#e4bb79; --theme-primary-2:#f1d5a2; --theme-secondary:#ce887b;
  --theme-danger:#eea29e; --theme-good:#a0d8b6; --theme-button-text:#271b12;
  --theme-shadow:rgba(0,0,0,.34);
}
body.theme-wyd_erion {
  --theme-bg:#101a17; --theme-bg-soft:#19231f; --theme-rail:#1c2a24;
  --theme-panel:#26372e; --theme-panel-2:#304638; --theme-panel-warm:#303629;
  --theme-text:#edf3e9; --theme-muted:#b1c3b5;
  --theme-line:#46634f; --theme-line-strong:#8c8459;
  --theme-primary:#cdbd88; --theme-primary-2:#e6d9aa; --theme-secondary:#93c6a9;
  --theme-danger:#e5a79a; --theme-good:#a6dfb7; --theme-button-text:#18251d;
  --theme-shadow:rgba(0,0,0,.32);
}
body.theme-wyd_nippleheim {
  --theme-bg:#171b20; --theme-bg-soft:#20272e; --theme-rail:#252e36;
  --theme-panel:#303d48; --theme-panel-2:#3c4b57; --theme-panel-warm:#343b3d;
  --theme-text:#f0f4f6; --theme-muted:#bdcbd4;
  --theme-line:#566c7c; --theme-line-strong:#94a8b7;
  --theme-primary:#d4dde5; --theme-primary-2:#edf4f8; --theme-secondary:#9abddd;
  --theme-danger:#eda8a8; --theme-good:#a8dac1; --theme-button-text:#1b2831;
  --theme-shadow:rgba(0,0,0,.28);
}
body.theme-valon_forge {
  --valon-bg: #05080b;
  --valon-bg-2: #081019;
  --valon-panel: #111b25;
  --valon-panel-2: #172431;
  --valon-line: rgba(126, 230, 214, .16);
  --valon-line-strong: rgba(232, 197, 111, .34);
  --valon-text: #f7f1e7;
  --valon-muted: rgba(247, 241, 231, .66);
  --valon-gold: #e8c56f;
  --valon-teal: #3fd0c1;
  --valon-red: #d6574a;
  --valon-blue: #7fb4ff;
  --valon-ui-bg: #05080b;
  --valon-ui-bg-2: #081019;
  --valon-ui-rail: #0b141c;
  --valon-ui-surface: #111b25;
  --valon-ui-surface-2: #172431;
  --valon-ui-line: rgba(126, 230, 214, .16);
  --valon-ui-line-strong: rgba(232, 197, 111, .34);
  --valon-ui-text: #f7f1e7;
  --valon-ui-muted: rgba(247, 241, 231, .66);
  --valon-ui-soft: rgba(247, 241, 231, .08);
  --valon-ui-accent: #3fd0c1;
  --valon-ui-gold: #e8c56f;
  --valon-ui-red: #d6574a;
  --valon-ui-green: #8edb8d;
  --wyd2-black: #05080b;
  --wyd2-ink: #081019;
  --wyd2-panel: #111b25;
  --wyd2-panel-soft: #172431;
  --wyd2-gold: #e8c56f;
  --wyd2-gold-soft: #fff0b6;
  --wyd2-red: #d6574a;
  --wyd2-red-dark: #7b241d;
  --wyd2-blue: #3fd0c1;
  --wyd2-text: #f7f1e7;
  --wyd2-muted: rgba(247, 241, 231, .66);
  --wyd2-line: rgba(126, 230, 214, .16);
  --theme-bg: #05080b;
  --theme-bg-soft: #081019;
  --theme-rail: #0b141c;
  --theme-panel: #111b25;
  --theme-panel-2: #172431;
  --theme-panel-warm: #181610;
  --theme-text: #f7f1e7;
  --theme-muted: rgba(247, 241, 231, .66);
  --theme-line: rgba(126, 230, 214, .16);
  --theme-line-strong: rgba(232, 197, 111, .34);
  --theme-primary: #e8c56f;
  --theme-primary-2: #fff0b6;
  --theme-secondary: #3fd0c1;
  --theme-danger: #d6574a;
  --theme-good: #8edb8d;
  --theme-button-text: #161106;
  --theme-shadow: rgba(0, 0, 0, .38);
}

body.theme-arcane_blue {
  --valon-bg: #050815;
  --valon-bg-2: #081226;
  --valon-panel: #101a2e;
  --valon-panel-2: #16233d;
  --valon-line: rgba(118, 215, 255, .2);
  --valon-line-strong: rgba(154, 124, 255, .32);
  --valon-text: #eef6ff;
  --valon-muted: rgba(238, 246, 255, .66);
  --valon-gold: #76d7ff;
  --valon-teal: #9a7cff;
  --valon-red: #ff7a9b;
  --valon-blue: #7aa2ff;
  --valon-ui-bg: #050815;
  --valon-ui-bg-2: #081226;
  --valon-ui-rail: #0a1224;
  --valon-ui-surface: #101a2e;
  --valon-ui-surface-2: #16233d;
  --valon-ui-line: rgba(118, 215, 255, .2);
  --valon-ui-line-strong: rgba(154, 124, 255, .32);
  --valon-ui-text: #eef6ff;
  --valon-ui-muted: rgba(238, 246, 255, .66);
  --valon-ui-soft: rgba(118, 215, 255, .08);
  --valon-ui-accent: #9a7cff;
  --valon-ui-gold: #76d7ff;
  --valon-ui-red: #ff7a9b;
  --valon-ui-green: #82ffc9;
  --wyd2-black: #050815;
  --wyd2-ink: #081226;
  --wyd2-panel: #101a2e;
  --wyd2-panel-soft: #16233d;
  --wyd2-gold: #76d7ff;
  --wyd2-gold-soft: #c8f0ff;
  --wyd2-red: #9a7cff;
  --wyd2-red-dark: #4a337c;
  --wyd2-blue: #7aa2ff;
  --wyd2-text: #eef6ff;
  --wyd2-muted: rgba(238, 246, 255, .66);
  --wyd2-line: rgba(118, 215, 255, .2);
  --theme-bg: #050815;
  --theme-bg-soft: #081226;
  --theme-rail: #0a1224;
  --theme-panel: #101a2e;
  --theme-panel-2: #16233d;
  --theme-panel-warm: #11162d;
  --theme-text: #eef6ff;
  --theme-muted: rgba(238, 246, 255, .66);
  --theme-line: rgba(118, 215, 255, .2);
  --theme-line-strong: rgba(154, 124, 255, .32);
  --theme-primary: #76d7ff;
  --theme-primary-2: #c8f0ff;
  --theme-secondary: #9a7cff;
  --theme-danger: #ff7a9b;
  --theme-good: #82ffc9;
  --theme-button-text: #06111c;
  --theme-shadow: rgba(0, 0, 0, .4);
}

body.theme-blood_war {
  --valon-bg: #070606;
  --valon-bg-2: #130b09;
  --valon-panel: #181210;
  --valon-panel-2: #221816;
  --valon-line: rgba(240, 181, 95, .2);
  --valon-line-strong: rgba(228, 92, 69, .34);
  --valon-text: #fff3e7;
  --valon-muted: rgba(255, 243, 231, .65);
  --valon-gold: #f0b55f;
  --valon-teal: #e45c45;
  --valon-red: #d64d3e;
  --valon-blue: #d6a47a;
  --valon-ui-bg: #070606;
  --valon-ui-bg-2: #130b09;
  --valon-ui-rail: #120c0b;
  --valon-ui-surface: #181210;
  --valon-ui-surface-2: #221816;
  --valon-ui-line: rgba(240, 181, 95, .2);
  --valon-ui-line-strong: rgba(228, 92, 69, .34);
  --valon-ui-text: #fff3e7;
  --valon-ui-muted: rgba(255, 243, 231, .65);
  --valon-ui-soft: rgba(240, 181, 95, .08);
  --valon-ui-accent: #e45c45;
  --valon-ui-gold: #f0b55f;
  --valon-ui-red: #d64d3e;
  --valon-ui-green: #aee587;
  --wyd2-black: #070606;
  --wyd2-ink: #130b09;
  --wyd2-panel: #181210;
  --wyd2-panel-soft: #221816;
  --wyd2-gold: #f0b55f;
  --wyd2-gold-soft: #ffdaa0;
  --wyd2-red: #e45c45;
  --wyd2-red-dark: #671915;
  --wyd2-blue: #d6a47a;
  --wyd2-text: #fff3e7;
  --wyd2-muted: rgba(255, 243, 231, .65);
  --wyd2-line: rgba(240, 181, 95, .2);
  --theme-bg: #070606;
  --theme-bg-soft: #130b09;
  --theme-rail: #120c0b;
  --theme-panel: #181210;
  --theme-panel-2: #221816;
  --theme-panel-warm: #21100d;
  --theme-text: #fff3e7;
  --theme-muted: rgba(255, 243, 231, .65);
  --theme-line: rgba(240, 181, 95, .2);
  --theme-line-strong: rgba(228, 92, 69, .34);
  --theme-primary: #f0b55f;
  --theme-primary-2: #ffdaa0;
  --theme-secondary: #e45c45;
  --theme-danger: #d64d3e;
  --theme-good: #aee587;
  --theme-button-text: #1c0d08;
  --theme-shadow: rgba(0, 0, 0, .42);
}

body.theme-emerald_realm {
  --valon-bg: #03100c;
  --valon-bg-2: #071a14;
  --valon-panel: #0d2018;
  --valon-panel-2: #132c21;
  --valon-line: rgba(57, 217, 138, .2);
  --valon-line-strong: rgba(223, 200, 120, .34);
  --valon-text: #f2fbef;
  --valon-muted: rgba(242, 251, 239, .66);
  --valon-gold: #dfc878;
  --valon-teal: #39d98a;
  --valon-red: #e0845f;
  --valon-blue: #6bc4df;
  --valon-ui-bg: #03100c;
  --valon-ui-bg-2: #071a14;
  --valon-ui-rail: #061710;
  --valon-ui-surface: #0d2018;
  --valon-ui-surface-2: #132c21;
  --valon-ui-line: rgba(57, 217, 138, .2);
  --valon-ui-line-strong: rgba(223, 200, 120, .34);
  --valon-ui-text: #f2fbef;
  --valon-ui-muted: rgba(242, 251, 239, .66);
  --valon-ui-soft: rgba(57, 217, 138, .08);
  --valon-ui-accent: #39d98a;
  --valon-ui-gold: #dfc878;
  --valon-ui-red: #e0845f;
  --valon-ui-green: #9cffb8;
  --wyd2-black: #03100c;
  --wyd2-ink: #071a14;
  --wyd2-panel: #0d2018;
  --wyd2-panel-soft: #132c21;
  --wyd2-gold: #dfc878;
  --wyd2-gold-soft: #fff0ac;
  --wyd2-red: #39d98a;
  --wyd2-red-dark: #0d5b3a;
  --wyd2-blue: #6bc4df;
  --wyd2-text: #f2fbef;
  --wyd2-muted: rgba(242, 251, 239, .66);
  --wyd2-line: rgba(57, 217, 138, .2);
  --theme-bg: #03100c;
  --theme-bg-soft: #071a14;
  --theme-rail: #061710;
  --theme-panel: #0d2018;
  --theme-panel-2: #132c21;
  --theme-panel-warm: #151a0d;
  --theme-text: #f2fbef;
  --theme-muted: rgba(242, 251, 239, .66);
  --theme-line: rgba(57, 217, 138, .2);
  --theme-line-strong: rgba(223, 200, 120, .34);
  --theme-primary: #dfc878;
  --theme-primary-2: #fff0ac;
  --theme-secondary: #39d98a;
  --theme-danger: #e0845f;
  --theme-good: #9cffb8;
  --theme-button-text: #07150c;
  --theme-shadow: rgba(0, 0, 0, .42);
}

body.theme-frost_relic {
  --valon-bg: #041018;
  --valon-bg-2: #091723;
  --valon-panel: #111f2a;
  --valon-panel-2: #172b39;
  --valon-line: rgba(142, 220, 255, .2);
  --valon-line-strong: rgba(215, 226, 239, .3);
  --valon-text: #f0f8ff;
  --valon-muted: rgba(240, 248, 255, .66);
  --valon-gold: #d7e2ef;
  --valon-teal: #8edcff;
  --valon-red: #a9b8ff;
  --valon-blue: #70bfff;
  --valon-ui-bg: #041018;
  --valon-ui-bg-2: #091723;
  --valon-ui-rail: #071520;
  --valon-ui-surface: #111f2a;
  --valon-ui-surface-2: #172b39;
  --valon-ui-line: rgba(142, 220, 255, .2);
  --valon-ui-line-strong: rgba(215, 226, 239, .3);
  --valon-ui-text: #f0f8ff;
  --valon-ui-muted: rgba(240, 248, 255, .66);
  --valon-ui-soft: rgba(142, 220, 255, .08);
  --valon-ui-accent: #8edcff;
  --valon-ui-gold: #d7e2ef;
  --valon-ui-red: #a9b8ff;
  --valon-ui-green: #a7ffd9;
  --wyd2-black: #041018;
  --wyd2-ink: #091723;
  --wyd2-panel: #111f2a;
  --wyd2-panel-soft: #172b39;
  --wyd2-gold: #d7e2ef;
  --wyd2-gold-soft: #ffffff;
  --wyd2-red: #8edcff;
  --wyd2-red-dark: #20506d;
  --wyd2-blue: #70bfff;
  --wyd2-text: #f0f8ff;
  --wyd2-muted: rgba(240, 248, 255, .66);
  --wyd2-line: rgba(142, 220, 255, .2);
  --theme-bg: #041018;
  --theme-bg-soft: #091723;
  --theme-rail: #071520;
  --theme-panel: #111f2a;
  --theme-panel-2: #172b39;
  --theme-panel-warm: #111d25;
  --theme-text: #f0f8ff;
  --theme-muted: rgba(240, 248, 255, .66);
  --theme-line: rgba(142, 220, 255, .2);
  --theme-line-strong: rgba(215, 226, 239, .3);
  --theme-primary: #d7e2ef;
  --theme-primary-2: #ffffff;
  --theme-secondary: #8edcff;
  --theme-danger: #a9b8ff;
  --theme-good: #a7ffd9;
  --theme-button-text: #061019;
  --theme-shadow: rgba(0, 0, 0, .42);
}

body.valon-site[class*="theme-"],
body.valon-auth-body[class*="theme-"],
body.valon-panel-body[class*="theme-"] {
  color: var(--theme-text) !important;
  background:
    radial-gradient(circle at 18% 0, color-mix(in srgb, var(--theme-secondary) 14%, transparent), transparent 30%),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--theme-primary) 10%, transparent), transparent 32%),
    linear-gradient(180deg, var(--theme-bg-soft), var(--theme-bg)) !important;
}

body.valon-site[class*="theme-"]::before,
body.valon-auth-body[class*="theme-"]::before,
body.valon-panel-body[class*="theme-"]::before {
  background:
    linear-gradient(color-mix(in srgb, var(--theme-primary) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-secondary) 8%, transparent) 1px, transparent 1px) !important;
  background-size: 84px 84px !important;
  opacity: .26 !important;
}

body[class*="theme-"] .nav-premium,
body[class*="theme-"] .valon-public-nav,
body[class*="theme-"] .wyd2-panel-header.header,
body[class*="theme-"] .header,
body[class*="theme-"] .wyd2-panel-nav {
  border-color: var(--theme-line) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-panel-2) 88%, transparent), color-mix(in srgb, var(--theme-panel) 92%, transparent)),
    var(--theme-bg) !important;
  box-shadow: 0 18px 48px var(--theme-shadow) !important;
}

body[class*="theme-"] .valon-public-nav .nav-link,
body[class*="theme-"] .nav-premium .nav-link,
body[class*="theme-"] .wyd2-panel-nav .nav-link,
body[class*="theme-"] .wyd2-panel-nav .dropdown-item {
  color: var(--theme-muted) !important;
}

body[class*="theme-"] .valon-public-nav .nav-link:hover,
body[class*="theme-"] .nav-premium .nav-link:hover,
body[class*="theme-"] .wyd2-panel-nav .nav-link:hover,
body[class*="theme-"] .wyd2-panel-nav .nav-link:focus,
body[class*="theme-"] .wyd2-panel-nav .nav-link.active,
body[class*="theme-"] .wyd2-panel-nav .nav-item.show > .nav-link,
body[class*="theme-"] .wyd2-panel-nav .nav-item.active > .nav-link {
  border-color: var(--theme-line-strong) !important;
  color: var(--theme-text) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--theme-secondary) 22%, transparent), color-mix(in srgb, var(--theme-primary) 12%, transparent)),
    var(--theme-panel-warm) !important;
  box-shadow: inset 3px 0 0 var(--theme-primary), 0 10px 24px color-mix(in srgb, var(--theme-secondary) 14%, transparent) !important;
}

body[class*="theme-"] .wyd2-panel-nav .dropdown-menu,
body[class*="theme-"] .valon-public-nav .dropdown-menu {
  border-color: var(--theme-line) !important;
  background: color-mix(in srgb, var(--theme-bg) 82%, transparent) !important;
}

body[class*="theme-"] .wyd2-panel-nav .dropdown-item:hover,
body[class*="theme-"] .wyd2-panel-nav .dropdown-item:focus,
body[class*="theme-"] .wyd2-panel-nav .dropdown-item.active {
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body[class*="theme-"] .content-body,
body[class*="theme-"] .valon-panel,
body[class*="theme-"] .card,
body[class*="theme-"] .panel,
body[class*="theme-"] .table-responsive,
body[class*="theme-"] .mmorpg-public-card,
body[class*="theme-"] .mmorpg-guide-card,
body[class*="theme-"] .mmorpg-download-card,
body[class*="theme-"] .mmorpg-package-card,
body[class*="theme-"] .wyd2-metric-card,
body[class*="theme-"] .wyd2-admin-support,
body[class*="theme-"] .wyd2-dashboard-full,
body[class*="theme-"] .wyd2-finance-card,
body[class*="theme-"] .wyd2-chart-card,
body[class*="theme-"] .valon-schedule-heading,
body[class*="theme-"] .valon-schedule-status-grid article,
body[class*="theme-"] .valon-schedule-card,
body[class*="theme-"] .valon-schedule-public,
body[class*="theme-"] .valon-schedule-savebar,
body[class*="theme-"] .valon-market-side-card,
body[class*="theme-"] .valon-market-row,
body[class*="theme-"] .valon-market-npc-editor,
body[class*="theme-"] .valon-desktop-editor,
body[class*="theme-"] .nexus-auth-side,
body[class*="theme-"] .nexus-auth-card {
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 5%, transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-panel-2) 92%, transparent), color-mix(in srgb, var(--theme-panel) 96%, transparent)) !important;
  box-shadow: 0 22px 54px var(--theme-shadow) !important;
}

body[class*="theme-"] .valon-sidebar-head,
body[class*="theme-"] .valon-page-hero,
body[class*="theme-"] .mmorpg-guide-intro,
body[class*="theme-"] .valon-info-page .valon-info-hero,
body[class*="theme-"] .nexus-auth-side {
  border-color: var(--theme-line-strong) !important;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-secondary) 18%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-panel-2) 92%, transparent), color-mix(in srgb, var(--theme-panel-warm) 94%, transparent)) !important;
}

body[class*="theme-"] .card-title,
body[class*="theme-"] .title,
body[class*="theme-"] .valon-panel-head span,
body[class*="theme-"] .valon-section-kicker,
body[class*="theme-"] .mmorpg-section-kicker,
body[class*="theme-"] .wyd2-metric-label,
body[class*="theme-"] .valon-schedule-heading span,
body[class*="theme-"] .valon-schedule-card header span,
body[class*="theme-"] .valon-market-tabs a span,
body[class*="theme-"] .valon-market-card-head span,
body[class*="theme-"] .valon-market-npc-editor header span,
body[class*="theme-"] .valon-market-npc-fields label span,
body[class*="theme-"] .valon-market-item-editor label span,
body[class*="theme-"] .nexus-auth-card .login {
  color: var(--theme-primary) !important;
}

body[class*="theme-"] h1,
body[class*="theme-"] h2,
body[class*="theme-"] h3,
body[class*="theme-"] h4,
body[class*="theme-"] h5,
body[class*="theme-"] .card-title,
body[class*="theme-"] .valon-page-hero h1,
body[class*="theme-"] .valon-panel-head h2,
body[class*="theme-"] .valon-panel-head h3,
body[class*="theme-"] .wyd2-metric-value {
  color: var(--theme-text) !important;
}

body[class*="theme-"] p,
body[class*="theme-"] small,
body[class*="theme-"] .card-subtitle,
body[class*="theme-"] .mmorpg-field-note,
body[class*="theme-"] .valon-schedule-heading p,
body[class*="theme-"] .valon-market-toolbar-hint,
body[class*="theme-"] .valon-market-row header small,
body[class*="theme-"] .valon-editor-slot .js-editor-item-name {
  color: var(--theme-muted) !important;
}

body[class*="theme-"] .btn-premium-solid,
body[class*="theme-"] .buy-btn,
body[class*="theme-"] .btn-primary,
body[class*="theme-"] .btn-success,
body[class*="theme-"] .btn-info,
body[class*="theme-"] .nexus-auth-submit,
body[class*="theme-"] .rift-btn-primary,
body[class*="theme-"] .valon-schedule-add {
  border-color: color-mix(in srgb, var(--theme-primary) 40%, transparent) !important;
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--theme-secondary) 22%, transparent) !important;
}

body[class*="theme-"] .btn-premium,
body[class*="theme-"] .btn-default,
body[class*="theme-"] .valon-market-row .btn,
body[class*="theme-"] .valon-desktop-editor .btn {
  border-color: var(--theme-line-strong) !important;
  color: var(--theme-primary) !important;
  background: color-mix(in srgb, var(--theme-panel) 78%, transparent) !important;
}

body[class*="theme-"] .form-control,
body[class*="theme-"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body[class*="theme-"] select,
body[class*="theme-"] textarea,
body[class*="theme-"] .nexus-field input {
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
  background: color-mix(in srgb, var(--theme-bg) 86%, transparent) !important;
}

body[class*="theme-"] .form-control:focus,
body[class*="theme-"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body[class*="theme-"] select:focus,
body[class*="theme-"] textarea:focus,
body[class*="theme-"] .nexus-field input:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 14%, transparent) !important;
}

body[class*="theme-"] table thead th,
body[class*="theme-"] .table thead th,
body[class*="theme-"] .table > thead > tr > th {
  border-color: var(--theme-line) !important;
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body[class*="theme-"] .table > tbody > tr > td,
body[class*="theme-"] .table > tbody > tr > th {
  border-color: color-mix(in srgb, var(--theme-line) 74%, transparent) !important;
  color: var(--theme-text) !important;
}

body[class*="theme-"] .progress-fill,
body[class*="theme-"] .progress-bar {
  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-primary)) !important;
}

body[class*="theme-"] .valon-sidebar-head::before,
body[class*="theme-"] .wyd2-metric-icon,
body[class*="theme-"] .mmorpg-guide-source,
body[class*="theme-"] .mmorpg-guide-steps article > span,
body[class*="theme-"] .valon-info-page .valon-info-pill i::before,
body[class*="theme-"] .valon-info-page .valon-schedule-grid article i::before {
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body[class*="theme-"] .valon-public-nav .mmorpg-player-btn,
body[class*="theme-"] .valon-public-nav .mmorpg-menu-toggle {
  border-color: var(--theme-line-strong) !important;
}

body[class*="theme-"] .valon-theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

body[class*="theme-"] .valon-theme-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--theme-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 5%, transparent), transparent),
    color-mix(in srgb, var(--theme-bg) 76%, transparent);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body[class*="theme-"] .valon-theme-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body[class*="theme-"] .valon-theme-option:focus-within {
  outline: 2px solid var(--theme-primary);
  outline-offset: 3px;
}

body[class*="theme-"] .valon-theme-option:hover,
body[class*="theme-"] .valon-theme-option.is-selected,
body[class*="theme-"] .valon-theme-option:has(input:checked) {
  transform: translateY(-1px);
  border-color: var(--theme-line-strong);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--theme-secondary) 15%, transparent);
}

body[class*="theme-"] .valon-theme-option.is-selected::after,
body[class*="theme-"] .valon-theme-option:has(input:checked)::after {
  content: "\f00c";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--theme-button-text);
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  font-family: 'Font Awesome 5 Free';
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body[class*="theme-"] .valon-theme-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

body[class*="theme-"] .valon-theme-preview i {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .24);
}

body[class*="theme-"] .valon-theme-option strong {
  color: var(--theme-text);
  font-family: Rajdhani, Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

body[class*="theme-"] .valon-theme-option small {
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.4;
}

body[class*="theme-"] .valon-theme-live-preview {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--theme-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-secondary) 15%, transparent), transparent 34%),
    color-mix(in srgb, var(--theme-panel) 72%, transparent);
}

body[class*="theme-"] .valon-theme-live-preview > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[class*="theme-"] .valon-theme-live-preview span {
  color: var(--theme-primary);
  font-family: Rajdhani, Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body[class*="theme-"] .valon-theme-live-preview strong {
  color: var(--theme-text);
  font-family: Rajdhani, Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

body[class*="theme-"] .valon-theme-live-preview small {
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.4;
}

body[class*="theme-"] .valon-theme-demo-window {
  overflow: hidden;
  min-height: 138px;
  border: 1px solid var(--theme-line-strong);
  border-radius: 8px;
  background: var(--theme-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

body[class*="theme-"] .valon-theme-demo-window header {
  display: grid;
  grid-template-columns: 28px 1fr 78px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--theme-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--theme-primary) 12%, transparent), transparent),
    var(--theme-panel-2);
}

body[class*="theme-"] .valon-theme-demo-window header i,
body[class*="theme-"] .valon-theme-demo-window header b,
body[class*="theme-"] .valon-theme-demo-window header em,
body[class*="theme-"] .valon-theme-demo-window aside span,
body[class*="theme-"] .valon-theme-demo-window main strong,
body[class*="theme-"] .valon-theme-demo-window main p,
body[class*="theme-"] .valon-theme-demo-window section i {
  display: block;
  border-radius: 6px;
}

body[class*="theme-"] .valon-theme-demo-window header i {
  width: 28px;
  height: 22px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

body[class*="theme-"] .valon-theme-demo-window header b {
  width: min(180px, 70%);
  height: 9px;
  background: color-mix(in srgb, var(--theme-text) 72%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window header em {
  height: 16px;
  background: color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 100px;
}

body[class*="theme-"] .valon-theme-demo-window aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--theme-line);
  background: color-mix(in srgb, var(--theme-rail) 86%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window aside span {
  height: 13px;
  background: color-mix(in srgb, var(--theme-muted) 22%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window aside span:first-child {
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
}

body[class*="theme-"] .valon-theme-demo-window main {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-secondary) 10%, transparent), transparent),
    var(--theme-panel);
}

body[class*="theme-"] .valon-theme-demo-window main strong {
  width: 52%;
  height: 14px;
  background: color-mix(in srgb, var(--theme-text) 82%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window main p {
  width: 78%;
  height: 8px;
  background: color-mix(in srgb, var(--theme-muted) 28%, transparent);
}

body[class*="theme-"] .valon-theme-demo-window section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

body[class*="theme-"] .valon-theme-demo-window section i {
  height: 40px;
  border: 1px solid var(--theme-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 10%, transparent), transparent),
    var(--theme-panel-2);
}

.valon-server-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

.valon-server-logo-nav {
  max-width: 138px !important;
  max-height: 42px !important;
}

.valon-server-logo-panel {
  max-width: 58px !important;
  max-height: 40px !important;
}

.valon-server-logo-login {
  max-width: 168px !important;
  max-height: 56px !important;
}

.valon-server-logo-footer {
  max-width: 156px !important;
  max-height: 50px !important;
}

.mmorpg-nav-brand,
.valon-control-brand,
.valon-login-brand,
.mmorpg-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.valon-logo-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--theme-line, rgba(232, 197, 111, .25));
  border-radius: 8px;
  background: rgba(5, 8, 11, .42);
}

.valon-logo-preview span {
  color: var(--theme-muted, #aeb9b4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.valon-logo-preview img {
  display: block;
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
}

body.valon-site[class*="theme-"] .valon-intel-board,
body.valon-site[class*="theme-"] .valon-schedule-board,
body.valon-site[class*="theme-"] .valon-news-list-page,
body.valon-site[class*="theme-"] .valon-notice-page,
body.valon-site[class*="theme-"] .valon-guide-page {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-panel-2) 18%, transparent), transparent 68%),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-secondary) 7%, transparent), transparent 36%, color-mix(in srgb, var(--theme-primary) 7%, transparent)) !important;
}

body.valon-site[class*="theme-"] .valon-news-console,
body.valon-site[class*="theme-"] .valon-calendar-console,
body.valon-site[class*="theme-"] .valon-server-console,
body.valon-site[class*="theme-"] .mmorpg-public-card,
body.valon-site[class*="theme-"] .mmorpg-guide-panel,
body.valon-site[class*="theme-"] .mmorpg-guide-card,
body.valon-site[class*="theme-"] .mmorpg-guide-steps article,
body.valon-site[class*="theme-"] .mmorpg-guide-quest-list article {
  border-color: color-mix(in srgb, var(--theme-line-strong) 78%, transparent) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 8%, transparent), transparent 48%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-panel-2) 92%, transparent), color-mix(in srgb, var(--theme-panel) 96%, transparent)) !important;
  box-shadow: 0 24px 58px var(--theme-shadow), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

body.valon-site[class*="theme-"] .mmorpg-public-card-header,
body.valon-site[class*="theme-"] .valon-panel-head {
  border-bottom-color: color-mix(in srgb, var(--theme-line-strong) 70%, transparent) !important;
}

body.valon-site[class*="theme-"] .mmorpg-public-card-header span,
body.valon-site[class*="theme-"] .valon-panel-head span,
body.valon-site[class*="theme-"] .valon-block-title span {
  color: var(--theme-primary) !important;
}

body.valon-site[class*="theme-"].valon-home .rift-tag,
body.valon-site[class*="theme-"].valon-home .valon-section-copy > span,
body.valon-site[class*="theme-"].valon-home .valon-panel-head > span,
body.valon-site[class*="theme-"].valon-home .valon-community-strip > .container > div > span,
body.valon-site[class*="theme-"].valon-home .valon-chip {
  border: 1px solid color-mix(in srgb, var(--theme-primary-2) 72%, transparent) !important;
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-2)) !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--theme-primary) 18%, transparent) !important;
  text-shadow: none !important;
}

body.valon-site[class*="theme-"] .valon-news-feed,
body.valon-site[class*="theme-"] .valon-news-rows,
body.valon-site[class*="theme-"] .valon-calendar-list,
body.valon-site[class*="theme-"] .valon-ranking-list,
body.valon-site[class*="theme-"] .valon-schedule-list,
body.valon-site[class*="theme-"] .valon-schedule-grid {
  gap: 12px !important;
}

body.valon-site[class*="theme-"] .valon-news-line,
body.valon-site[class*="theme-"] .valon-news-row,
body.valon-site[class*="theme-"] .valon-calendar-list article,
body.valon-site[class*="theme-"] .valon-schedule-grid article,
body.valon-site[class*="theme-"] .valon-command-list div {
  border: 1px solid color-mix(in srgb, var(--theme-line) 92%, transparent) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--theme-secondary) 11%, transparent), transparent 42%),
    color-mix(in srgb, var(--theme-panel-2) 78%, var(--theme-bg) 22%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.valon-site[class*="theme-"] .valon-news-line:hover,
body.valon-site[class*="theme-"] .valon-news-row:hover,
body.valon-site[class*="theme-"] .valon-calendar-list article:hover,
body.valon-site[class*="theme-"] .valon-schedule-grid article:hover {
  border-color: var(--theme-line-strong) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--theme-secondary) 17%, transparent), transparent 46%),
    color-mix(in srgb, var(--theme-panel-2) 88%, var(--theme-primary) 6%) !important;
}

body.valon-site[class*="theme-"] .valon-news-line strong,
body.valon-site[class*="theme-"] .valon-news-row strong,
body.valon-site[class*="theme-"] .valon-calendar-list article strong,
body.valon-site[class*="theme-"] .valon-schedule-grid strong,
body.valon-site[class*="theme-"] .valon-event-empty strong {
  color: var(--theme-text) !important;
}

body.valon-site[class*="theme-"] .valon-news-line small,
body.valon-site[class*="theme-"] .valon-news-row small,
body.valon-site[class*="theme-"] .valon-calendar-list article small,
body.valon-site[class*="theme-"] .valon-schedule-grid small,
body.valon-site[class*="theme-"] .valon-event-empty span,
body.valon-site[class*="theme-"] .valon-news-meta {
  color: color-mix(in srgb, var(--theme-muted) 88%, var(--theme-text) 12%) !important;
}

body.valon-site[class*="theme-"] .valon-chip,
body.valon-site[class*="theme-"] .valon-news-badge,
body.valon-site[class*="theme-"] .valon-schedule-grid time,
body.valon-site[class*="theme-"] .mmorpg-guide-quest-list span {
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-secondary) 18%, transparent) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-page {
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--theme-primary) 13%, transparent), transparent 28%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--theme-secondary) 12%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-bg-soft) 94%, black), var(--theme-bg)) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-intro {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-panel-2) 22%, transparent), transparent),
    color-mix(in srgb, var(--theme-bg) 86%, black) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-status,
body.valon-site[class*="theme-"] .valon-schedule-side,
body.valon-site[class*="theme-"] .valon-schedule-card,
body.valon-site[class*="theme-"] .valon-event-empty {
  border-color: color-mix(in srgb, var(--theme-line-strong) 76%, transparent) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 9%, transparent), transparent 46%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-panel-2) 95%, transparent), color-mix(in srgb, var(--theme-panel) 95%, transparent)) !important;
  box-shadow: 0 20px 44px var(--theme-shadow), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-status > div {
  border-right-color: color-mix(in srgb, var(--theme-line) 85%, transparent) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-status span,
body.valon-site[class*="theme-"] .valon-schedule-side span,
body.valon-site[class*="theme-"] .valon-schedule-card > span {
  color: var(--theme-primary) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-status strong,
body.valon-site[class*="theme-"] .valon-schedule-card strong,
body.valon-site[class*="theme-"] .valon-schedule-side h3 {
  color: var(--theme-text) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-card small,
body.valon-site[class*="theme-"] .valon-schedule-side p {
  color: color-mix(in srgb, var(--theme-muted) 88%, var(--theme-text) 12%) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-card > i,
body.valon-site[class*="theme-"] .valon-calendar-list article > i,
body.valon-site[class*="theme-"] .valon-info-pill i,
body.valon-site[class*="theme-"] .valon-event-empty i {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body.valon-site[class*="theme-"] .valon-schedule-card time,
body.valon-site[class*="theme-"] .valon-schedule-side a {
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body.valon-site[class*="theme-"] .valon-news-tabs,
body.valon-site[class*="theme-"] .valon-event-tabs {
  border-bottom-color: color-mix(in srgb, var(--theme-line-strong) 70%, transparent) !important;
}

body.valon-site[class*="theme-"] .valon-news-tabs .nav-link,
body.valon-site[class*="theme-"] .valon-event-tabs .nav-link {
  border-color: color-mix(in srgb, var(--theme-line) 86%, transparent) !important;
  color: var(--theme-muted) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-panel-2) 92%, transparent), color-mix(in srgb, var(--theme-panel) 96%, transparent)) !important;
}

body.valon-site[class*="theme-"] .valon-news-tabs .nav-link.active,
body.valon-site[class*="theme-"] .valon-news-tabs .nav-link:hover,
body.valon-site[class*="theme-"] .valon-event-tabs .nav-link.active,
body.valon-site[class*="theme-"] .valon-event-tabs .nav-link:hover {
  border-color: var(--theme-line-strong) !important;
  color: var(--theme-button-text) !important;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
}

body.valon-site[class*="theme-"] .valon-notice-article,
body.valon-site[class*="theme-"] .mmorpg-public-card-body {
  color: var(--theme-text) !important;
}

@media (max-width: 767.98px) {
  body[class*="theme-"] .valon-theme-live-preview {
    grid-template-columns: 1fr;
  }

  body[class*="theme-"] .valon-theme-demo-window > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .valon-server-logo-nav {
    max-width: 118px;
    max-height: 36px;
  }

  .valon-server-logo-login {
    max-width: 140px;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  body.valon-site[class*="theme-"],
  body.valon-auth-body[class*="theme-"],
  body.valon-panel-body[class*="theme-"] {
    background: linear-gradient(180deg, var(--theme-bg-soft), var(--theme-bg)) !important;
  }

  body[class*="theme-"] .card,
  body[class*="theme-"] .panel,
  body[class*="theme-"] .valon-panel,
  body[class*="theme-"] .nexus-auth-side,
  body[class*="theme-"] .nexus-auth-card {
    background: var(--theme-panel) !important;
  }
}
