/* VELTRIX VK · 11 Nov 2026 · final cascade layer; previous files retained. */
/* Strong, localized contrast rules fix light-background CSS leaking into the dark rules gate. */
html body .veltrix-entry:not(.veltrix-entry--intro-only) {
  background:rgba(5,12,29,.97)!important;
  color:#f7faff!important;
  color-scheme:dark;
}
html body .veltrix-entry .vtx-rules-card {
  background:linear-gradient(145deg,#122543 0%,#0d1b35 72%,#0b1730 100%)!important;
  color:#f7faff!important;
  border-color:#3768a0!important;
}
html body .veltrix-entry .vtx-rules-topline,
html body .veltrix-entry .vtx-rules-heading .vtx-eyebrow {color:#77c7ff!important;}
html body .veltrix-entry .vtx-version {color:#a5c5ea!important;}
html body .veltrix-entry .vtx-rules-heading h1 {color:#fff!important;}
html body .veltrix-entry .vtx-rules-heading p:not(.vtx-eyebrow) {color:#d7e6fb!important;}
html body .veltrix-entry .vtx-rules-text {
  background:#08152c!important;
  color:#f1f8ff!important;
  border-color:#3b6398!important;
  scrollbar-color:#379eff #0b1c38!important;
}
html body .veltrix-entry .vtx-rules-form {border-color:#385276!important;}
html body .veltrix-entry .vtx-rules-form .vtx-rules-check,
html body .veltrix-entry .vtx-rules-form .vtx-rules-check span,
html body .veltrix-entry .vtx-rules-check span {
  color:#f9fcff!important;
  opacity:1!important;
  -webkit-text-fill-color:#f9fcff!important;
  text-shadow:none!important;
}
html body .veltrix-entry .vtx-rules-form .vtx-rules-check input[type=checkbox]{
  width:19px!important;height:19px!important;
  accent-color:#218dff!important;
  color-scheme:dark;
  flex-shrink:0;
}
html body .veltrix-entry .vtx-rules-form small,
html body .veltrix-entry .vtx-rules-form small * {
  color:#bccfe8!important;
  -webkit-text-fill-color:#bccfe8!important;
  opacity:1!important;
}
html body .veltrix-entry .vtx-rules-accept {
  background:linear-gradient(110deg,#147bea,#337bfa)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#fff!important;
}
html body .veltrix-entry .vtx-rules-accept :is(span,i) {color:#fff!important;}
html body .veltrix-entry .vtx-rules-accept:focus-visible,
html body .veltrix-entry .vtx-rules-check input:focus-visible {outline:3px solid #84cbff!important;outline-offset:3px!important;}
/* New VK logo in rules screen. No white backdrop, cropped glyph remains crisp. */
html body .veltrix-entry .vtx-rules-heading>img{
  width:96px!important;height:78px!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  filter:drop-shadow(0 5px 16px rgba(123,72,255,.30))!important;
}
/* Brand marks used throughout navigation, dashboard, footer, and owner preview. */
html body :is(.public-nav,.sidebar) .brand img,
html body .vtx-footer-modern .vtx-footer-brand>img,
html body .vxf-preview-top img {
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
html body .hero-mark.vx-bot-hero,
html body .hero-mark.vx-bot-hero img {
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
}
html body .vtx-intro-avatar {background:transparent!important;filter:drop-shadow(0 12px 38px #7b4dff33);}
/* Animated HTML brand banner replaces old mascot raster/GIF without removing the section. */
html body .vx-home-green-banner.vx-animated-banner {
  background:radial-gradient(ellipse at 25% 50%,#273075 0%,#101537 48%,#080e26 100%)!important;
  border:1px solid #4855a5!important;
  overflow:hidden!important;
}
.vx-vk-banner-content{width:100%;min-height:210px;padding:24px clamp(24px,4vw,65px);display:flex;align-items:center;justify-content:center;gap:clamp(18px,5vw,76px);position:relative;isolation:isolate}
.vx-vk-banner-content:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(135deg,transparent 0 115px,#9673ff10 116px 119px,transparent 120px 200px)}
.vx-vk-banner-content>img{width:min(42%,400px);height:auto;max-height:270px;object-fit:contain;animation:vx-vk-float 5.5s ease-in-out infinite;filter:drop-shadow(0 14px 18px #6428f244)}
.vx-vk-banner-words{display:flex;flex-direction:column;gap:6px;min-width:0;text-align:left;color:#fff!important}
.vx-vk-banner-words strong{font:900 clamp(2rem,5.7vw,5.4rem)/1 'Space Grotesk',sans-serif;letter-spacing:.045em;color:#fff!important}
.vx-vk-banner-words span{font-weight:800;letter-spacing:.19em;font-size:clamp(.75rem,1.2vw,1.1rem);color:#bcabff!important}
.vx-vk-banner-words small{color:#d4e3fc!important;font-size:.82rem}
@keyframes vx-vk-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
/* Improve supporting copy on dark panels while preserving the owner-configurable palette and light mode. */
html body:not(.vx-site-light) .main-content :is(.form-hint,.field>small,.vxf-list-item small,.vxf-candidate small,.vxf-event) {color:#b9cee8!important;}
html body:not(.vx-site-light) .vxf-public-card :is(p,small,.vxf-question-public>span) {color:#e0edff!important;}
html body:not(.vx-site-light) .vxf-public-card .vxf-required {color:#ffb0b9!important;}
@media(max-width:600px){
 html body .veltrix-entry .vtx-rules-heading>img{width:69px!important;height:56px!important;}
 .vx-vk-banner-content{padding:30px 17px;gap:14px;min-height:170px;flex-direction:column;}
 .vx-vk-banner-content>img{width:min(75%,285px);max-height:135px;}
 .vx-vk-banner-words{text-align:center;align-items:center;}
 .vx-vk-banner-words span{letter-spacing:.08em;}
}
@media(prefers-reduced-motion:reduce){.vx-vk-banner-content>img{animation:none;}}
