/* «Crimson Nocturne» («Багровый ноктюрн»): an optional look. Everything hangs on html[data-vampire-active="true"]
   and only repaints existing elements (pictures, colours, velvet glass, gold edges, rubies, fonts); the layout and
   content stay. Dark: a gothic castle under a blood moon (black wine, burgundy velvet, ruby, old gold). Light: the
   same castle in rose dawn (pearl pink, cream, wine text, gold). Ornaments sit inside the elements (corners,
   arches, dividers, ruby markers). Fonts: Cinzel Decorative (main headings), Cormorant Garamond (character names
   and italic quotes), EB Garamond (decorative captions), Manrope (interface). Phones get the same look without blur
   and with lighter shadows. */

html[data-vampire-active="true"] body:not(.admin-mode) {
  --vampire-gold: #d4a868;
  --vampire-gold-deep: #8e6232;
  --vampire-ruby: #c0182f;
  --vampire-wine: #6b1023;
  --vampire-text: #f1e3d8;
  --vampire-muted: #cfa9a0;
  --vampire-accent: #e8b9a0;
  --vampire-glass: rgba(26, 6, 10, 0.6);
  --vampire-glass-strong: rgba(20, 4, 8, 0.9);
  --vampire-glass-row: rgba(44, 10, 18, 0.48);
  --vampire-edge: rgba(212, 168, 104, 0.58);
  --vampire-edge-soft: rgba(212, 168, 104, 0.26);
  --vampire-glow: 0 0 16px rgba(192, 24, 47, 0.32);
  --vampire-glow-strong: 0 0 22px rgba(230, 50, 72, 0.55);
  --vampire-neon: 0 0 0 1px rgba(212, 168, 104, 0.5), 0 0 12px rgba(192, 24, 47, 0.55);
  --vampire-sheen: linear-gradient(165deg, rgba(255, 220, 200, 0.1), rgba(255, 220, 200, 0.02) 40%, rgba(255, 220, 200, 0) 65%);
  --vampire-inner: inset 0 1px 0 rgba(247, 223, 174, 0.18), inset 0 0 18px rgba(192, 24, 47, 0.1);
  --vampire-drop: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
  --vampire-blur: blur(14px) saturate(130%);
  --vampire-picture: image-set(
    url("assets/seasonal/vampire/background-dark.avif") type("image/avif"),
    url("assets/seasonal/vampire/background-dark.webp") type("image/webp")
  );
  --vampire-chat: image-set(
    url("assets/seasonal/vampire/chat-dark.avif") type("image/avif"),
    url("assets/seasonal/vampire/chat-dark.webp") type("image/webp")
  );
  --vampire-banner: image-set(
    url("assets/seasonal/vampire/banner-dark.avif") type("image/avif"),
    url("assets/seasonal/vampire/banner-dark.webp") type("image/webp")
  );
  --vampire-veil: linear-gradient(180deg, rgba(10, 2, 4, 0.36), rgba(10, 2, 4, 0.66));
  --card-bg: rgba(26, 6, 10, 0.6);
  --card-border: rgba(212, 168, 104, 0.58);
  --nav-bg: rgba(18, 4, 7, 0.68);
  --text-main: #f1e3d8;
  --text-muted: #cfa9a0;
  --accent-neon: #e8b9a0;
  --accent-pink: #d4a868;
  --accent-purple: #c0182f;
  --lux-neon-text: 0 0 6px rgba(255, 200, 190, 0.45), 0 0 16px rgba(192, 24, 47, 0.45), 0 0 30px rgba(107, 16, 35, 0.35);
  --lux-neon-icon: drop-shadow(0 0 5px rgba(255, 200, 190, 0.5)) drop-shadow(0 0 14px rgba(192, 24, 47, 0.45));
  --lux-neon-box: 0 0 0 1px rgba(212, 168, 104, 0.2), 0 0 20px rgba(192, 24, 47, 0.38), inset 0 1px 0 rgba(247, 223, 174, 0.12);
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) {
  --vampire-gold: #a87a44;
  --vampire-gold-deep: #7d5428;
  --vampire-ruby: #a8102a;
  --vampire-wine: #6b1023;
  --vampire-text: #4a1420;
  --vampire-muted: #7a4a50;
  --vampire-accent: #8a2a36;
  --vampire-glass: rgba(252, 244, 242, 0.6);
  --vampire-glass-strong: rgba(252, 244, 242, 0.92);
  --vampire-glass-row: rgba(253, 246, 244, 0.56);
  --vampire-edge: rgba(176, 125, 74, 0.62);
  --vampire-edge-soft: rgba(176, 125, 74, 0.32);
  --vampire-glow: 0 0 16px rgba(192, 40, 60, 0.18);
  --vampire-glow-strong: 0 0 22px rgba(192, 40, 60, 0.32);
  --vampire-neon: 0 0 0 1px rgba(176, 125, 74, 0.5), 0 0 12px rgba(192, 40, 60, 0.3);
  --vampire-sheen: linear-gradient(165deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 65%);
  --vampire-inner: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 18px rgba(240, 200, 200, 0.25);
  --vampire-drop: 0 16px 34px -20px rgba(110, 30, 45, 0.4);
  --vampire-picture: image-set(
    url("assets/seasonal/vampire/background-light.avif") type("image/avif"),
    url("assets/seasonal/vampire/background-light.webp") type("image/webp")
  );
  --vampire-chat: image-set(
    url("assets/seasonal/vampire/chat-light.avif") type("image/avif"),
    url("assets/seasonal/vampire/chat-light.webp") type("image/webp")
  );
  --vampire-banner: image-set(
    url("assets/seasonal/vampire/banner-light.avif") type("image/avif"),
    url("assets/seasonal/vampire/banner-light.webp") type("image/webp")
  );
  --vampire-veil: linear-gradient(180deg, rgba(252, 240, 238, 0.3), rgba(248, 234, 232, 0.55));
  --card-bg: rgba(252, 244, 242, 0.6);
  --card-border: rgba(176, 125, 74, 0.62);
  --nav-bg: rgba(252, 244, 242, 0.7);
  --text-main: #4a1420;
  --text-muted: #7a4a50;
  --accent-neon: #8a2a36;
  --accent-pink: #a87a44;
  --accent-purple: #a8102a;
  --lux-neon-text: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 14px rgba(192, 40, 60, 0.22);
  --lux-neon-icon: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 10px rgba(192, 40, 60, 0.28));
  --lux-neon-box: 0 0 0 1px rgba(176, 125, 74, 0.32), 0 0 16px rgba(192, 40, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- Шрифты ---------- */

html[data-vampire-active="true"] body:not(.admin-mode),
html[data-vampire-active="true"] body:not(.admin-mode) * {
  font-family: "Manrope", "Montserrat", system-ui, sans-serif;
}

/* Main headings: Cinzel Decorative (it has no Cyrillic, so Russian titles take Cormorant from the same list). */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .section-title, .home-section-head .section-title, h1:not(.logo), h2, h3, .world-card-copy h3, .achievement-sheet-title
) {
  font-family: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

/* Character names: Cormorant Garamond. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .catalog-card-overlay strong, .npc-card-overlay strong, .story-card-overlay strong, .sheet-identity h2,
  .site-chat-title, .home-user-name
) {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
}

/* Decorative captions: EB Garamond in italics. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .home-section-note, .tagline, .catalog-card-overlay span, .npc-card-overlay span, .story-card-overlay span
) {
  font-family: "EB Garamond", Georgia, serif !important;
  font-style: italic;
  letter-spacing: 0.02em !important;
}

/* Quotes: Cormorant Garamond italics. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.sheet-identity blockquote, blockquote, .relationship-thought) {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-style: italic;
  font-size: 1.08em;
}

/* ---------- Фон: замок и кровавая луна во весь экран (неподвижный слой) ---------- */

html[data-vampire-active="true"] body:not(.admin-mode):not(.site-chat-body),
html[data-vampire-active="true"] body:not(.admin-mode):not(.site-chat-body) > .app-container {
  background: transparent !important;
}

html[data-vampire-active="true"] body:not(.admin-mode):not(.site-chat-body)::before {
  background: var(--vampire-picture) center / cover no-repeat !important;
  filter: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode):not(.site-chat-body)::after {
  background: var(--vampire-veil) !important;
}

html[data-vampire-active="true"] :is(.winter-brand-art, .halloween-brand-art, .winter-fx, .halloween-fx, .winter-shimmer, .halloween-shimmer, .winter-logo-icon, .halloween-logo-icon, .glow-bg, .glow-bg-secondary) {
  display: none !important;
}

/* ---------- Шапка: готическое окно со свечами, кровавая луна и замок; логотип в тёмной середине ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) .header {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 1;
  min-height: 200px !important;
  overflow: hidden;
  background: #120407 !important;
  border-bottom: 1px solid var(--vampire-edge) !important;
  box-shadow: 0 1px 0 var(--vampire-edge-soft), 0 12px 30px -14px rgba(192, 24, 47, 0.55) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .header {
  background: #f7ebe8 !important;
}

.vampire-brand-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--vampire-banner) center 30% / cover no-repeat;
}

html:not([data-vampire-active="true"]) .vampire-brand-art {
  display: none;
}

html[data-vampire-active="true"] body:not(.admin-mode) .header::before {
  content: none;
}

/* A thin gold line with a crimson glow along the bottom edge. */
html[data-vampire-active="true"] body:not(.admin-mode) .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--vampire-gold) 25%, #f7dfae 50%, var(--vampire-gold) 75%, transparent);
  box-shadow: 0 0 10px rgba(230, 50, 72, 0.85);
  filter: none;
  animation: none;
}

/* The logo and the motto stand in the picture's dark middle, under its ruby ornament. */
html[data-vampire-active="true"] body:not(.admin-mode) .header > .brand {
  position: absolute !important;
  left: 50%;
  top: 54%;
  z-index: 2;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  text-align: center;
  align-items: center;
}

html[data-vampire-active="true"] body:not(.admin-mode) .header > .header-actions {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-left: auto;
}

html[data-vampire-active="true"] body:not(.admin-mode) .header .logo {
  position: relative;
  width: fit-content;
  margin: 0 auto !important;
  font-size: 50px !important;
  line-height: 1.05 !important;
  font-family: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  background: linear-gradient(180deg, #fff3d6 0%, #f0cf8e 42%, #c8964f 68%, #f4dca8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(220, 40, 60, 0.6)) drop-shadow(0 2px 4px rgba(10, 0, 2, 0.7)) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .header .logo {
  background: linear-gradient(180deg, #9a1a2e 0%, #6b1023 48%, #a87a44 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 0 6px rgba(255, 245, 240, 0.9)) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .header .tagline {
  color: #f3dccb !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 1px 6px rgba(10, 0, 2, 0.9), 0 0 10px rgba(220, 40, 60, 0.45) !important;
  font-size: 16px !important;
  letter-spacing: 0.12em !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .header .tagline {
  color: #5a1824 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95) !important;
}

/* Moon phases with the blood moon under the motto. */
html[data-vampire-active="true"] body:not(.admin-mode) .header .tagline::after {
  content: "";
  display: block;
  width: 210px;
  max-width: 100%;
  height: 22px;
  margin: 6px auto 0;
  background: url("assets/seasonal/vampire/phases.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(220, 40, 60, 0.6));
}

/* ---------- Разделители (золотые завитки с рубином, крылья) и рубиновые метки заголовков ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) .home-view .home-section + .home-section {
  position: relative;
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-view .home-section + .home-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: min(280px, 70%);
  height: 26px;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("assets/seasonal/vampire/divider.svg") center / contain no-repeat;
  opacity: 0.92;
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-view .home-section + .home-section:nth-child(odd)::before {
  width: min(170px, 50%);
  background-image: url("assets/seasonal/vampire/wings.svg");
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-view .home-section-head {
  position: relative;
  border-left-color: transparent !important;
}

/* (not inside the collection panel: its head starts with a back button) */
html[data-vampire-active="true"] body:not(.admin-mode) .home-view .home-section-head:not(.home-collection-panel *)::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 12px;
  height: 16px;
  margin-top: -8px;
  pointer-events: none;
  background: url("assets/seasonal/vampire/ruby.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(230, 50, 72, 0.8));
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.section-title, .home-section-head .section-title) {
  color: var(--vampire-text) !important;
  text-shadow: 0 0 12px rgba(220, 40, 60, 0.4), 0 2px 8px rgba(10, 0, 2, 0.6) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(.section-title, .home-section-head .section-title) {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.home-see-all, .catalog-heading-row span) {
  color: var(--vampire-gold) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(.home-see-all, .catalog-heading-row span) {
  color: #8a2a36 !important;
}

/* ---------- Бархатное стекло: золотая кромка, багровое свечение, филигранные углы ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .subscription-panel, .home-user-list, .home-collection-panel, .settings-profile-panel,
  .subscription-status-card, .premium-plan-card, .author-level-card, .user-hooks-panel,
  .empty-state-panel, .storage-panel, .slot-detail-block, .referral-card, .user-npc-form,
  .cabinet-npc-card, .cabinet-world-group, .character-sheet-panel, .miti-confirm-card,
  .welcome-modal-panel, .user-auth-panel
),
html[data-vampire-active="true"] body:not(.admin-mode) .achievement-sheet .achievement-sheet-card {
  /* Two corners only (top right, bottom left): the top-left corner is where back buttons and titles live. */
  background:
    url("assets/seasonal/vampire/corner-tr.svg") right 4px top 4px / 28px no-repeat,
    url("assets/seasonal/vampire/corner-bl.svg") left 4px bottom 4px / 28px no-repeat,
    var(--vampire-sheen),
    var(--vampire-glass) !important;
  border-color: var(--vampire-edge) !important;
  box-shadow: var(--vampire-inner), var(--vampire-drop), var(--vampire-neon) !important;
  -webkit-backdrop-filter: var(--vampire-blur);
  backdrop-filter: var(--vampire-blur);
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.miti-confirm-card, .welcome-modal-panel, .user-auth-panel),
html[data-vampire-active="true"] body:not(.admin-mode) .achievement-sheet .achievement-sheet-card {
  background:
    url("assets/seasonal/vampire/corner-tr.svg") right 4px top 4px / 28px no-repeat,
    url("assets/seasonal/vampire/corner-bl.svg") left 4px bottom 4px / 28px no-repeat,
    var(--vampire-sheen),
    var(--vampire-glass-strong) !important;
}

/* Small or crowded surfaces get no corners. */
html[data-vampire-active="true"] body:not(.admin-mode) .author-level-card {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .character-sheet-panel {
  background: var(--vampire-sheen), var(--vampire-glass-strong) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.settings-row, .slot-detail-npc-list, .referral-stats div, .form-group, .toast) {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
  box-shadow: var(--vampire-inner) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .toast {
  background: var(--vampire-sheen), var(--vampire-glass-strong) !important;
}

/* ---------- Карточки с фото: золотая кромка и готическая арка; фото не трогается ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .npc-card, .story-card, .catalog-card, .home-character-card, .home-media-card, .home-photo-card,
  .home-video-card, .world-card, .cabinet-npc-tile, .user-hook-card
) {
  border-color: var(--vampire-edge) !important;
  box-shadow: var(--vampire-neon), 0 10px 22px -12px rgba(192, 24, 47, 0.55), var(--vampire-drop) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .npc-card, .story-card, .catalog-card, .home-character-card, .home-media-card, .home-photo-card,
  .home-video-card, .world-card, .cabinet-npc-tile, .user-hook-card
):is(:hover, .active, .selected) {
  border-color: #f0cf8e !important;
  box-shadow: 0 0 0 1px #f0cf8e, 0 12px 26px -10px rgba(230, 50, 72, 0.7), var(--vampire-glow-strong), var(--vampire-drop) !important;
}

/* The arch: a pointed gold frame over the picture's edge (it never covers the middle). */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.npc-card, .story-card, .catalog-card, .home-character-card)::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 2;
  pointer-events: none;
  background: url("assets/seasonal/vampire/arch.svg") center / 100% 100% no-repeat;
  /* The arch's sides melt away before the name and the caption at the bottom of the card. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 64%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 64%);
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(230, 50, 72, 0.6));
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.catalog-card-overlay strong, .npc-card-overlay strong, .story-card-overlay strong) {
  color: #fbeee4 !important;
  text-shadow: 0 0 10px rgba(220, 40, 60, 0.5), 0 2px 6px rgba(10, 0, 2, 0.9) !important;
}

/* ---------- Золото и рубин вместо фиолетового: подписи, значки, метки, вкладки, поля ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .nav-item, .nav-icon, .field-label, .field-counter, .section-subtitle, .settings-version, .create-text,
  .catalog-mode-icon, .settings-main-title, .sub-nav-item, .segment-btn, .theme-switcher button, .home-card-stat,
  .home-media-badge, .settings-username-field, .settings-history-head p, .settings-history-head span,
  .catalog-tab, .home-rank, .sheet-tags span, .relationship-scene span
) {
  color: var(--vampire-accent) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .sheet-identity blockquote::before {
  color: var(--vampire-ruby) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .home-rank, .home-card-stat, .home-media-badge, .catalog-tab, .sub-nav-item.active, .btn-admin-crown,
  .catalog-create-icon, .avatar-wrapper, .preview-image-container, .settings-username-field, .sheet-tags span,
  .relationship-scene span
) {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
  box-shadow: var(--vampire-inner), 0 0 10px rgba(192, 24, 47, 0.2) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.catalog-tab.active, .sub-nav-item.active) {
  color: var(--vampire-text) !important;
  border-color: var(--vampire-edge) !important;
  background: linear-gradient(180deg, rgba(192, 24, 47, 0.32), rgba(107, 16, 35, 0.18)), var(--vampire-glass-row) !important;
  box-shadow: var(--vampire-inner), var(--vampire-glow-strong) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(.catalog-tab.active, .sub-nav-item.active) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 214, 214, 0.7)) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .btn-admin-crown {
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(input[type="search"], input[type="text"], textarea, select, .catalog-search-input) {
  border-color: var(--vampire-edge-soft) !important;
  caret-color: var(--vampire-ruby);
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(input[type="search"], .catalog-search-input) {
  background: var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .sheet-stat-bar i {
  background: linear-gradient(90deg, #f0cf8e, #c0182f 60%, #6b1023) !important;
  box-shadow: 0 0 8px rgba(220, 40, 60, 0.5) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.sheet-card, .sheet-identity blockquote, .sheet-topbar) {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
}

/* ---------- Сердца отношений: бархатное окно, багровые полосы, сердце в рубине ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) .relationship-card {
  background: var(--vampire-sheen), var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge) !important;
  box-shadow: var(--vampire-inner), var(--vampire-drop), var(--vampire-glow) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.relationship-status, .relationship-desire, .relationship-thought) {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .relationship-feelings i,
html[data-vampire-active="true"] body:not(.admin-mode) .relationship-energy::before {
  background: linear-gradient(90deg, #f0cf8e, #c0182f 60%, #6b1023) !important;
}

/* Author level badges: wine instead of the violet plate (the gold rim of the level stays). */
html[data-vampire-active="true"] body:not(.admin-mode) .author-level-badge {
  background-color: rgba(107, 16, 35, 0.55) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .author-level-badge {
  background-color: rgba(107, 16, 35, 0.82) !important;
}

/* The user's avatar: a gold crown with a rose and rubies over the photo (its pendants and tails reach onto the
   photo's top edge); the card gets room for it above the photo. */
html[data-vampire-active="true"] body:not(.admin-mode) .avatar-preview-card {
  position: relative;
  padding-top: 72px !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .avatar-preview-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  width: min(300px, 94%);
  aspect-ratio: 790 / 332;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("assets/seasonal/vampire/crown-dark.webp") center top / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(10, 0, 2, 0.55)) drop-shadow(0 0 8px rgba(220, 40, 60, 0.35));
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .avatar-preview-card::before {
  background-image: url("assets/seasonal/vampire/crown-light.webp");
  filter: drop-shadow(0 3px 6px rgba(110, 30, 45, 0.25));
}

html[data-vampire-active="true"] body:not(.admin-mode) .avatar-preview-card .preview-image-container {
  position: relative;
  z-index: 1;
  border-color: var(--vampire-gold) !important;
}

/* The place numbers in the authors' list: a gold ring instead of the lilac one. */
html[data-vampire-active="true"] body:not(.admin-mode) .home-author-row > b {
  border-color: var(--vampire-edge) !important;
  color: var(--vampire-text) !important;
  box-shadow: 0 0 8px rgba(192, 24, 47, 0.25) !important;
}

/* The heart turns from pink neon to ruby (its shape and cracks keep the meaning). */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.relationship-heart-art, .relationship-heart svg) {
  filter: hue-rotate(25deg) saturate(1.25) brightness(0.95) drop-shadow(0 0 10px rgba(220, 30, 50, 0.55));
}

/* ---------- Кнопки: бархат, золотая рамка, рубины на концах (как на макете) ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
) {
  background:
    url("assets/seasonal/vampire/ruby.svg") left 5px center / auto 46% no-repeat,
    url("assets/seasonal/vampire/ruby.svg") right 5px center / auto 46% no-repeat,
    linear-gradient(180deg, rgba(255, 140, 150, 0.22), rgba(255, 140, 150, 0.02) 50%, rgba(0, 0, 0, 0.25)),
    radial-gradient(ellipse at 50% 0%, #a0182e, #6b1023 60%, #3c0711) !important;
  border: 1px solid #d4a868 !important;
  color: #fbeee4 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-shadow: 0 0 8px rgba(255, 120, 130, 0.45), 0 1px 2px rgba(10, 0, 2, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(247, 223, 174, 0.45),
    inset 0 0 0 2px rgba(60, 7, 17, 0.6),
    inset 0 0 0 3px rgba(212, 168, 104, 0.35),
    0 0 12px rgba(192, 24, 47, 0.45),
    0 8px 22px -10px rgba(0, 0, 0, 0.8) !important;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
) {
  background:
    url("assets/seasonal/vampire/ruby.svg") left 5px center / auto 46% no-repeat,
    url("assets/seasonal/vampire/ruby.svg") right 5px center / auto 46% no-repeat,
    linear-gradient(180deg, #fffaf7, #f8e4e2 55%, #efd0cf) !important;
  border-color: #b07d4a !important;
  color: #5a1824 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 3px rgba(176, 125, 74, 0.22),
    0 0 12px rgba(192, 40, 60, 0.22),
    0 6px 18px -8px rgba(110, 30, 45, 0.35) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
):is(:hover, :focus-visible) {
  filter: brightness(1.15) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(247, 223, 174, 0.55),
    inset 0 0 0 3px rgba(240, 207, 142, 0.45),
    0 0 18px rgba(240, 50, 72, 0.7),
    0 8px 24px -10px rgba(0, 0, 0, 0.8) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
):active {
  filter: brightness(0.95);
  transform: translateY(1px);
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
):focus-visible {
  outline: 2px solid #f0cf8e;
  outline-offset: 2px;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button, .world-start-form button,
  .world-composer button, .site-chat-send, .site-chat-empty-action
):disabled {
  filter: grayscale(0.7) brightness(0.8);
  opacity: 0.6;
  box-shadow: inset 0 0 0 2px rgba(60, 7, 17, 0.4) !important;
}

/* Secondary and round buttons: dark velvet glass with a gold rim. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .theme-switcher button, .sheet-secondary-btn, .settings-history-back, .sheet-close, .sheet-x,
  .achievement-sheet-close, .world-icon-button, .world-back-button, .slot-detail-back, .slot-detail-refresh,
  .site-chat-back, .site-chat-menu, .site-chat-plus, .welcome-modal-close, .header-auth-button
) {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge) !important;
  box-shadow: var(--vampire-inner), 0 0 10px rgba(192, 24, 47, 0.25) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.theme-switcher button.active, .theme-switcher button:hover) {
  border-color: #f0cf8e !important;
  box-shadow: var(--vampire-inner), var(--vampire-glow-strong) !important;
}

.vampire-switch input:checked + span {
  border-color: rgba(212, 168, 104, 0.9);
  background: linear-gradient(135deg, rgba(192, 24, 47, 0.75), rgba(107, 16, 35, 0.75));
}

.vampire-switch input:checked + span::after {
  background: linear-gradient(135deg, #fff3d6, #d4a868);
  box-shadow: 0 0 10px rgba(230, 50, 72, 0.85);
}

/* ---------- Меню: бархатное стекло, активный пункт с рубином ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) .bottom-nav,
html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode) .site-chat-nav {
  background: var(--vampire-sheen), var(--nav-bg) !important;
  -webkit-backdrop-filter: var(--vampire-blur);
  backdrop-filter: var(--vampire-blur);
  border-color: var(--vampire-edge-soft) !important;
  box-shadow: 0 -1px 0 var(--vampire-edge-soft), 0 -10px 26px -16px rgba(192, 24, 47, 0.55) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .nav-item.active {
  color: #f0cf8e !important;
  text-shadow: 0 0 10px rgba(230, 50, 72, 0.8);
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .nav-item {
  color: #7a4a50 !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .nav-item.active {
  color: #8a1426 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

@media (min-width: 1100px) {
  html[data-vampire-active="true"] body:not(.admin-mode):not(.setting-play-mode) .bottom-nav {
    box-shadow: 1px 0 0 var(--vampire-edge-soft), 10px 0 30px -18px rgba(192, 24, 47, 0.55) !important;
  }

  html[data-vampire-active="true"] body:not(.admin-mode):not(.setting-play-mode) .bottom-nav .nav-item.active {
    background: linear-gradient(180deg, rgba(192, 24, 47, 0.3), rgba(107, 16, 35, 0.14)) !important;
    box-shadow: inset 0 0 0 1px rgba(212, 168, 104, 0.6), 0 0 14px rgba(192, 24, 47, 0.45);
    border-radius: 12px;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) .nav-item.active::before {
    background: linear-gradient(180deg, #f7dfae, var(--vampire-gold), var(--vampire-ruby)) !important;
    box-shadow: 0 0 10px rgba(230, 50, 72, 0.85) !important;
  }

  html[data-vampire-active="true"] body.theme-light:not(.admin-mode):not(.setting-play-mode) .bottom-nav .nav-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 214, 214, 0.75)) !important;
    box-shadow: inset 0 0 0 1px rgba(176, 125, 74, 0.6), 0 0 14px rgba(192, 40, 60, 0.25) !important;
  }

  /* A small ruby at the end of the active item. */
  html[data-vampire-active="true"] body:not(.admin-mode):not(.setting-play-mode) .bottom-nav .nav-item.active::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 10px;
    height: 14px;
    margin-top: -7px;
    pointer-events: none;
    background: url("assets/seasonal/vampire/ruby.svg") center / contain no-repeat;
  }

  /* The crescent with hanging rubies under the menu items. */
  html[data-vampire-active="true"] body:not(.admin-mode):not(.setting-play-mode) .bottom-nav::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    align-self: center;
    width: 60px;
    height: 72px;
    margin-top: 22px;
    pointer-events: none;
    background: url("assets/seasonal/vampire/crest.svg") center / contain no-repeat;
    opacity: 0.92;
    filter: drop-shadow(0 0 6px rgba(230, 50, 72, 0.45));
  }
}

@media (min-width: 768px) {
  html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode):not(.setting-play-mode) .site-chat-nav {
    box-shadow: 1px 0 0 var(--vampire-edge-soft), 10px 0 30px -18px rgba(192, 24, 47, 0.55) !important;
  }

  html[data-vampire-active="true"] .site-chat-nav .nav-item.active::before {
    background: linear-gradient(180deg, #f7dfae, var(--vampire-gold), var(--vampire-ruby));
    box-shadow: 0 0 10px rgba(230, 50, 72, 0.85);
  }
}

/* ---------- Чат: свечи и бархатные шторы ---------- */

html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode),
html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode) .site-chat-shell {
  background: var(--vampire-veil), var(--vampire-chat) center / cover no-repeat, #120407 !important;
}

html[data-vampire-active="true"] body.site-chat-body.theme-light:not(.admin-mode),
html[data-vampire-active="true"] body.site-chat-body.theme-light:not(.admin-mode) .site-chat-shell {
  background: var(--vampire-veil), var(--vampire-chat) center / cover no-repeat, #f7ebe8 !important;
}

html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode) .site-chat-header {
  background: var(--vampire-sheen), var(--vampire-glass) !important;
  border-color: var(--vampire-edge-soft) !important;
  -webkit-backdrop-filter: var(--vampire-blur);
  backdrop-filter: var(--vampire-blur);
}

html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode) .site-chat-bubble {
  background: var(--vampire-sheen), var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge-soft) !important;
  color: var(--vampire-text) !important;
  box-shadow: var(--vampire-inner), 0 0 12px rgba(192, 24, 47, 0.18);
}

html[data-vampire-active="true"] body.site-chat-body:not(.admin-mode) .site-chat-message.user .site-chat-bubble {
  background: linear-gradient(180deg, rgba(255, 140, 150, 0.14), rgba(255, 140, 150, 0.02)), rgba(96, 14, 32, 0.9) !important;
  border-color: rgba(212, 168, 104, 0.65) !important;
  color: #fbeee4 !important;
}

html[data-vampire-active="true"] body.site-chat-body.theme-light:not(.admin-mode) .site-chat-message.user .site-chat-bubble {
  background: linear-gradient(180deg, #fff, rgba(246, 222, 222, 0.94)) !important;
  border-color: rgba(176, 125, 74, 0.7) !important;
  color: #4a1420 !important;
}

/* ---------- Телефоны и планшеты: без размытия и без больших теней ---------- */

@media (max-width: 1099px), (pointer: coarse) {
  html[data-vampire-active="true"] body:not(.admin-mode) {
    --vampire-blur: none;
    --vampire-glass: rgba(26, 6, 10, 0.82);
    --vampire-glass-row: rgba(44, 10, 18, 0.64);
    --nav-bg: rgba(18, 4, 7, 0.93);
  }

  html[data-vampire-active="true"] body.theme-light:not(.admin-mode) {
    --vampire-glass: rgba(252, 244, 242, 0.88);
    --vampire-glass-row: rgba(253, 246, 244, 0.74);
    --nav-bg: rgba(252, 244, 242, 0.95);
  }

  html[data-vampire-active="true"] body:not(.admin-mode) :is(
    .subscription-panel, .home-user-list, .home-collection-panel, .settings-profile-panel,
    .subscription-status-card, .premium-plan-card, .author-level-card, .user-hooks-panel,
    .empty-state-panel, .storage-panel, .slot-detail-block, .referral-card, .user-npc-form,
    .cabinet-npc-card, .cabinet-world-group
  ),
  html[data-vampire-active="true"] body:not(.admin-mode) :is(.settings-row, .slot-detail-npc-list, .referral-stats div, .form-group) {
    box-shadow: 0 0 0 1px var(--vampire-edge-soft), 0 0 8px rgba(192, 24, 47, 0.22) !important;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) :is(
    .npc-card, .story-card, .catalog-card, .home-character-card, .home-media-card, .home-photo-card,
    .home-video-card, .world-card, .cabinet-npc-tile, .user-hook-card
  ) {
    box-shadow: 0 0 0 1px var(--vampire-edge-soft), 0 6px 14px -8px rgba(192, 24, 47, 0.55) !important;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) :is(.npc-card, .story-card, .catalog-card, .home-character-card)::before {
    filter: none;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) :is([data-glow="creator"], [data-frame="ghost"], .author-level-badge.perk-absolute) {
    will-change: transform;
  }
}

@media (max-width: 767px) {
  /* The whole picture (window, moon, castle) at the screen's width: the header is a third of the width tall.
     (aspect-ratio with a fixed min-height would widen it past the screen, so the height comes from 100vw.) */
  html[data-vampire-active="true"] body:not(.admin-mode) .header {
    aspect-ratio: auto;
    min-height: calc(100vw / 3) !important;
  }

  .vampire-brand-art {
    background-position: center;
  }

  /* The buttons stand on the right, so the logo goes back into the row on the left (it never sits under them). */
  html[data-vampire-active="true"] body:not(.admin-mode) .header > .brand {
    position: relative !important;
    left: auto;
    top: auto;
    transform: none;
    align-self: center;
    text-align: left;
    align-items: flex-start;
    min-width: 0;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) .header .logo {
    margin: 0 !important;
    font-size: 32px !important;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) .header .tagline {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  html[data-vampire-active="true"] body:not(.admin-mode) .header .tagline::after {
    width: 130px;
    height: 14px;
    margin: 3px 0 0;
    background-position: left center;
  }
}

/* ---------- Окно фото и видео, плитки NPC, вкладки, выбор «меньше/средне/больше», поиск ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-backdrop {
  background: rgba(8, 1, 3, 0.82);
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .media-viewer-backdrop {
  background: rgba(244, 228, 226, 0.8);
}

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-panel {
  background: var(--vampire-sheen), var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge) !important;
  box-shadow: var(--vampire-inner), var(--vampire-drop), var(--vampire-glow) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-frame {
  background: rgba(10, 2, 4, 0.9);
}

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-copy h3 {
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-copy p {
  color: var(--vampire-muted) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .media-viewer-close {
  background: var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge) !important;
  color: var(--vampire-text) !important;
}

/* Personal NPC tiles: velvet glass instead of lilac, a ruby letter instead of the violet ball. */
html[data-vampire-active="true"] body:not(.admin-mode) .cabinet-npc-tile {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .cabinet-npc-tile-letter {
  background: radial-gradient(circle at 35% 30%, #ff6b7a, #c0182f 55%, #5a0612) !important;
  color: #fbeee4 !important;
  box-shadow: 0 0 0 1px var(--vampire-edge), 0 0 14px rgba(192, 24, 47, 0.5) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.cabinet-npc-tile-delete, .cabinet-npc-tile-actions button, .cabinet-npc-tile-edit) {
  background: var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
  color: var(--vampire-accent) !important;
}

/* Cabinet tabs and the small choice buttons («Меньше / Средне / Больше»): small, neat glass. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.sub-nav-item, .segment-btn) {
  background: var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge-soft) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .segment-btn.active {
  color: var(--vampire-text) !important;
  background: linear-gradient(180deg, rgba(192, 24, 47, 0.32), rgba(107, 16, 35, 0.14)), var(--vampire-glass-row) !important;
  border-color: var(--vampire-edge) !important;
  box-shadow: inset 0 0 0 1px var(--vampire-edge-soft), 0 0 10px rgba(192, 24, 47, 0.35) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .segment-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 214, 214, 0.7)) !important;
}

/* The search line: no white box inside the glass field. */
html[data-vampire-active="true"] body:not(.admin-mode) :is([class*="search"]) :is(input, textarea),
html[data-vampire-active="true"] body:not(.admin-mode) input[type="search"] {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .world-card .world-lock-badge {
  background: var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge) !important;
  color: var(--vampire-text) !important;
}

/* Light theme: the site's own texts are plum and its small marks pink; here they are wine and ruby. */
html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(
  .settings-row, .form-group, .input-wrapper, .field-content, textarea.form-input, .home-user-row, .home-user-list,
  .home-media-author, .avatar-meaning-note, .field-limit-total, .settings-grid, .cabinet-personalities-panel,
  .avatar-preview-card, .preview-image-container
) {
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(.home-section-note, .home-media-author, .avatar-meaning-note, .field-limit-total) {
  color: var(--vampire-muted) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.settings-row-icon, .input-icon) {
  color: var(--vampire-ruby) !important;
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .header-auth-button {
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .cabinet-personalities-panel {
  box-shadow: var(--vampire-inner) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .sub-nav {
  background: var(--vampire-sheen), var(--vampire-glass-row) !important;
  border-bottom-color: var(--vampire-edge-soft) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) :is(.catalog-create-cta, .catalog-create-cta *) {
  color: #5a1824 !important;
  text-shadow: none !important;
}

/* The site paints some labels with -webkit-text-fill-color (it wins over color): follow the theme's color. */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .primary-action, .btn-premium, .sheet-chat-btn, .catalog-create-cta, .btn-save-settings,
  .subscription-actions button, .welcome-modal-actions button:first-child, .user-hook-actions .user-hook-start,
  .story-card-action, .btn-change-avatar, .saved-create-btn, .slot-detail-select, .settings-profile-save-btn, .world-card-copy button,
  .world-start-form button, .world-composer button, .site-chat-send, .site-chat-empty-action, .segment-btn,
  .sub-nav-item, .catalog-tab
),
html[data-vampire-active="true"] body:not(.admin-mode) :is(.catalog-create-cta, .btn-premium, .sub-nav-item, .catalog-tab) * {
  -webkit-text-fill-color: currentColor !important;
}

html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .view-pane {
  color: var(--vampire-text);
}

html[data-vampire-active="true"] body:not(.admin-mode) .world-card {
  background: var(--vampire-sheen), var(--vampire-glass) !important;
  border-color: var(--vampire-edge) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .world-card-copy h3 {
  color: var(--vampire-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .world-card-copy :is(.world-author, p) {
  color: var(--vampire-muted) !important;
}

/* The site's light theme puts the card heart on a dark plate; here it stands bare on the photo. */
html[data-vampire-active="true"] body.theme-light:not(.admin-mode) .catalog-favorite {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(9, 9, 13, 0.75), 0 1px 3px rgba(9, 9, 13, 0.6) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .catalog-favorite.active {
  color: #ff4d62 !important;
}

/* Reduced motion: the buttons stop moving on press. */
@media (prefers-reduced-motion: reduce) {
  html[data-vampire-active="true"] body:not(.admin-mode) * {
    transition: none !important;
  }
}

/* Empty lists («пока пуст», «скоро появятся»): the look's own glass, not the site's pink card. */
html[data-vampire-active="true"] body:not(.admin-mode) .home-placeholder-card {
  background: var(--vampire-sheen), var(--vampire-glass) !important;
  border-color: var(--vampire-edge-soft) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-placeholder-card b {
  color: var(--vampire-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-placeholder-card span {
  color: var(--vampire-muted) !important;
}

/* The Premium page: the look's own picture behind «MiTi Premium» (the site's violet night city is hidden); a soft
   dark band at the bottom keeps the words readable. */
html[data-vampire-active="true"] body:not(.admin-mode) .premium-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.62) 100%),
    image-set(
      url("assets/seasonal/vampire/premium.avif") type("image/avif"),
      url("assets/seasonal/vampire/premium.webp") type("image/webp")
    ) center / cover no-repeat,
    #0b0a0e !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-hero > img {
  display: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-hero-content strong {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-hero-content span {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* What Premium gives: the look's own colours (the site's light theme paints them pink and plum). */
html[data-vampire-active="true"] body:not(.admin-mode) .premium-benefits article span {
  color: var(--accent-pink) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-benefits article b {
  color: var(--text-main) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-benefits article small {
  color: var(--text-muted) !important;
}

/* ---------- Остатки стандартной фиолетовой темы (формы, анкета, подписка, правила, миры, точки) ---------- */

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .form-field, .form-input, .form-textarea, .photo-uploader, .participant-builder, .participant-add, .behavior-panel,
  .style-option, .roleplay-mode-card, .roleplay-mode-card > i, .section-container, .gameplay-section, .settings-history-panel,
  .author-profile-card, .terms-panel, .terms-meta, .premium-panel, .premium-back, .premium-hero, .premium-benefits > article,
  .premium-section-title, .world-composer, .world-mode-switch > button, .world-hearts-button, .sheet-portrait-wrap,
  .subscription-meta > div, .subscription-status-badge, .home-collection-back, .secondary-action, .catalog-tabs, .sheet-card, .sheet-stat-bar, .sheet-tabs, .sheet-actions, .sheet-identity > blockquote, .sheet-close,
  .sheet-x, .settings-history-back, .avatar-meaning-note, .extra-photo-pick, .photo-preview, .user-hooks-add,
  .referral-link-row > button, .author-level-badge, .home-user-row > b
) {
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .subscription-status-badge, .premium-back, .world-hearts-button, .user-hooks-add, .referral-link-row > button,
  .participant-add, .world-mode-switch > button, .style-option, .roleplay-mode-card, .photo-uploader, .secondary-action,
  .behavior-panel, .participant-builder, .terms-panel, .premium-benefits > article, .extra-photo-pick, .sheet-stat-bar,
  .sheet-hooks button, .sheet-hook, .user-hook-card
) {
  background: var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .field-label, .field-label > small, .field-counter, .create-text, .behavior-panel > h3, .sheet-card > h3,
  .sheet-section > h3, .sheet-identity > h2, .sheet-heart, .subscription-status-card > h3, .terms-content > h3,
  .terms-content > h4, .user-hooks-head > h3, .user-story-history-title, .settings-history-head > b, .setting-row > b,
  .photo-preview > b, .style-option > span, .premium-section-title, .roleplay-mode-card > i, .world-mode-switch > span,
  .home-user-row > b, .extra-photo-pick, .home-collection-back, .secondary-action, .settings-row-icon, .input-icon
) {
  color: var(--vampire-accent) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .sheet-identity > p, .sheet-section > p, .sheet-stat > span, .terms-content p, .terms-content ul, .terms-content li,
  .subscription-status-card > p, .subscription-note, .premium-footer-links > p, .extra-photos > p, .photo-uploader > p,
  .home-section-note, .home-media-author, .roleplay-mode-card > span, .setting-row > span, .photo-preview > span, .terms-meta,
  .avatar-meaning-note, .sheet-identity > blockquote
) {
  color: var(--vampire-muted) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .settings-avatar-wrap > img:not(.dragon-frame-overlay), .catalog-favorite, .sheet-portrait-wrap, .style-option.active,
  .home-collection-back, .secondary-action, .premium-panel, .premium-back
) {
  box-shadow: 0 0 0 1px var(--vampire-edge-soft) !important;
}

/* small marks and bars: the look's own colour instead of violet */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.notice-dot, .nav-new-indicator) {
  background: var(--vampire-ruby) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .sheet-stat-bar > i {
  background: linear-gradient(90deg, var(--vampire-accent), var(--vampire-ruby)) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.style-option.active, .world-mode-switch > button.active, .roleplay-mode-card.active) {
  border-color: var(--vampire-accent) !important;
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .btn-premium > svg {
  color: var(--vampire-accent) !important;
  filter: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.form-input, .form-textarea, .world-composer > textarea, .settings-motto > textarea) {
  color: var(--vampire-text) !important;
  caret-color: var(--vampire-accent);
}

/* (second pass) panels the light theme paints pink, violet glows on words, the plain words inside violet blocks */
html[data-vampire-active="true"] body:not(.admin-mode) :is(.author-profile-card, .section-container, .gameplay-section, .form-field, .world-composer) {
  background: var(--vampire-glass) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .home-media-card {
  background-color: transparent !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.home-collection-back, .home-media-author, .sheet-portrait-wrap) {
  background: var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-hero {
  box-shadow: 0 0 0 1px var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.settings-motto > textarea, .world-composer > textarea) {
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .sheet-tabs .active, .avatar-meaning-note, .catalog-card-overlay > strong, .catalog-favorite, .photo-preview,
  .photo-preview > span, .setting-row > span, .sheet-close, .sheet-x, .subscription-status-badge, .tagline
) {
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .nav-new-indicator, .participant-add, .roleplay-mode-card, .sheet-stat, .sheet-stat-bar, .sheet-tabs, .terms-content,
  .user-hooks-add, .world-mode-switch > button, #world-mode-switch > button, .settings-history-back, .subscription-status-badge,
  .sheet-close, .sheet-x, .photo-preview, #home-collection-author-search span, #catalog-create-character small,
  #sheet-author-metrics strong, .premium-footer-links button, .participant-builder-head b, .story-tip b
) {
  color: var(--vampire-accent) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.premium-title-row h2, .story-detail-copy p) {
  color: var(--vampire-text) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .premium-title-row p, #sheet-author-metrics span, #sheet-preferences span, .roleplay-mode-card small,
  .subscription-meta span, .story-info-block p, .story-tip p
) {
  color: var(--vampire-muted) !important;
  text-shadow: none !important;
}

/* (third pass) tabs, marks, profile fields and counters still in the site's violet; the chosen ones keep their neon */
html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .home-rank, .home-card-stat, .author-level-badge, .author-level-mark, .home-media-badge, .sub-nav-item:not(.active),
  .sub-nav-item:not(.active) b, .catalog-mode-icon, .catalog-tab:not(.active), .cat-icon, .catalog-create-icon,
  .catalog-create-cta, .catalog-create-cta span, .catalog-create-cta b, .catalog-create-cta small, .catalog-create-arrow,
  .btn-change-avatar, .premium-activate, .premium-benefits article span, .premium-benefits article b, .primary-action,
  .settings-main-title, #sheet-author-metrics strong, .subscription-meta strong, .subscription-meta b, .story-tip b,
  #world-play-title
) {
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .home-rank, .home-see-all, .home-media-badge, .avatar-wrapper, .section-subtitle, .segment-btn:not(.active),
  .catalog-mode-icon, .catalog-tab:not(.active), .catalog-create-icon, .settings-profile-save-btn, .settings-username-field,
  .sub-nav-item:not(.active)
) {
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .home-rank, .preview-image-container, .catalog-tab:not(.active), .catalog-create-icon, .settings-profile-save-btn,
  .section-container, .gameplay-section, .subscription-status-badge, .world-composer > textarea, .sub-nav-item:not(.active)
) {
  box-shadow: 0 0 0 1px var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(
  .section-subtitle, .segment-btn:not(.active), .sub-nav-item:not(.active), .sub-nav-item:not(.active) b, .catalog-mode-icon,
  .settings-username-field, .settings-username-field > span, .settings-main-title, .settings-version, .theme-switcher button,
  .theme-auto, .referral-card > span, .settings-tab-note, .empty-state-panel, h3 > small, .user-hooks-note, .author-level-mark,
  .subscription-meta strong, .subscription-meta b, .settings-row > b, .settings-row > i, .settings-motto > span,
  .settings-subscription-line, .romance-status, .slider-value, .icon-back
) {
  color: var(--vampire-accent) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) #world-play-title {
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.avatar-wrapper, .preview-image-container) {
  background-color: var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-panel {
  background: var(--vampire-glass) !important;
}

/* the catalog bars stay bare in every look (as the owner chose for Infernal): only their buttons show */
html[data-vampire-active="true"] body:not(.admin-mode) .catalog-tabs {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(#author-character-form-title, #user-character-form-title, .sheet-tabs .active) {
  text-shadow: none !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(#subscription-page-subtitle, #author-page-subtitle) {
  color: var(--vampire-muted) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) .premium-benefits article span {
  color: var(--vampire-accent) !important;
}

html[data-vampire-active="true"] body:not(.admin-mode) :is(.premium-activate, .premium-select-plan) {
  background: var(--vampire-ruby) !important;
  border-color: var(--vampire-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 12px var(--vampire-edge-soft) !important;
}
/* ---------- «Переписка» (смс) в цветах оформления ---------- */

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) {
  --sms-blue: var(--vampire-accent);
  --sms-blue-soft: var(--vampire-edge-soft);
  --sms-blue-glow: transparent;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) :is(.sms-shell, .site-chat-header, .site-chat-avatar, .site-chat-composer textarea, .sms-day) {
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) :is(.sms-title span, .sms-title span.typing) {
  color: var(--vampire-accent) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) .sms-log .site-chat-message.user .site-chat-bubble {
  background: var(--vampire-ruby) !important;
  border-color: var(--vampire-accent) !important;
  color: #ffffff !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) .sms-log .site-chat-message.assistant .site-chat-bubble {
  border-color: var(--vampire-edge-soft) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) :is(.sms-time, .sms-hint, .sms-day) {
  color: var(--vampire-muted) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) .sms-buy {
  background: var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge-soft) !important;
  color: var(--vampire-text) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) :is(.sms-buy-action, .sms-settings-actions button[type="submit"]) {
  background: var(--vampire-ruby) !important;
  color: #ffffff !important;
  border: 1px solid var(--vampire-accent) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) .sms-settings-card {
  background: var(--vampire-glass-strong) !important;
  border-color: var(--vampire-edge-soft) !important;
  color: var(--vampire-text) !important;
  box-shadow: none !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) :is(.sms-settings-card select, .sms-settings-card input[type="text"], .sms-settings-actions button) {
  border-color: var(--vampire-edge-soft) !important;
  color: var(--vampire-text) !important;
  background: var(--vampire-glass-row) !important;
}

html[data-vampire-active="true"] body.sms-chat-body:not(.admin-mode) .sms-settings-card p {
  color: var(--vampire-muted) !important;
}

/* ---------- Телефоны: свои копии фона и шапки (вертикальные, лёгкие) ---------- */

@media (max-width: 767px), (max-width: 1099px) and (orientation: portrait) {
  html[data-vampire-active="true"] body:not(.admin-mode) {
    --vampire-picture: image-set(
      url("assets/seasonal/vampire/background-dark-phone.avif") type("image/avif"),
      url("assets/seasonal/vampire/background-dark-phone.webp") type("image/webp")
    );
    --vampire-banner: image-set(
      url("assets/seasonal/vampire/banner-dark-m.avif") type("image/avif"),
      url("assets/seasonal/vampire/banner-dark-m.webp") type("image/webp")
    );
    --vampire-chat: image-set(
      url("assets/seasonal/vampire/chat-dark-phone.avif") type("image/avif"),
      url("assets/seasonal/vampire/chat-dark-phone.webp") type("image/webp")
    );
  }

  html[data-vampire-active="true"] body.theme-light:not(.admin-mode) {
    --vampire-picture: image-set(
      url("assets/seasonal/vampire/background-light-phone.avif") type("image/avif"),
      url("assets/seasonal/vampire/background-light-phone.webp") type("image/webp")
    );
    --vampire-banner: image-set(
      url("assets/seasonal/vampire/banner-light-m.avif") type("image/avif"),
      url("assets/seasonal/vampire/banner-light-m.webp") type("image/webp")
    );
    --vampire-chat: image-set(
      url("assets/seasonal/vampire/chat-light-phone.avif") type("image/avif"),
      url("assets/seasonal/vampire/chat-light-phone.webp") type("image/webp")
    );
  }
}

/* ---------- ПК и планшет боком: свои фоны 16:9 ---------- */

@media (min-width: 1100px), (min-width: 768px) and (orientation: landscape) {
  html[data-vampire-active="true"] body:not(.admin-mode) {
    --vampire-picture: image-set(
      url("assets/seasonal/vampire/background-dark-pc.avif") type("image/avif"),
      url("assets/seasonal/vampire/background-dark-pc.webp") type("image/webp")
    );
    --vampire-chat: image-set(
      url("assets/seasonal/vampire/background-dark-pc.avif") type("image/avif"),
      url("assets/seasonal/vampire/background-dark-pc.webp") type("image/webp")
    );
  }
}
