/* ════════════════════════════════════════════════════════════════════
   KINETIC STRIKE — component primitives only
   Pure black (#0a0a0a / #131313) · cyberpunk red (#ff0000) · glass.
   Everything NOT here is Tailwind. This styles only the fixed classes
   that PHP templates + JS still emit:
     · .plx-dd  filter dropdowns      (skins-filter.js)
     · .plx-pager pagination          (cs2_skins_pager)
     · .plx-active / .plx-fchip chips (cs2_skins_active)
     · .plx-empty empty state         (cs2_skins_grid_html)
     · .ls-dd   header live search    (live-search.js)
     · .sxd-lb  inspect lightbox      (skin-single.js)
   ════════════════════════════════════════════════════════════════════ */

:root {
    --k-bg: #0a0a0a;
    --k-surface: #131313;
    --k-red: #ff0000;
    --k-line: rgba(255, 255, 255, 0.10);
    --k-glass: rgba(19, 19, 19, 0.92);
}

/* ── Shared glass popover backdrop ── */
.plx-dd__panel,
.ls-dd {
    background: var(--k-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--k-line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 0, 0, 0.04);
}

/* ── Custom red scrollbar (panels + live search) ── */
.plx-dd__panel,
.ls-dd {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 0, 0.45) transparent;
}
.plx-dd__panel::-webkit-scrollbar,
.ls-dd::-webkit-scrollbar { width: 8px; }
.plx-dd__panel::-webkit-scrollbar-track,
.ls-dd::-webkit-scrollbar-track { background: transparent; }
.plx-dd__panel::-webkit-scrollbar-thumb,
.ls-dd::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.40);
    border-radius: 99px;
}
.plx-dd__panel::-webkit-scrollbar-thumb:hover,
.ls-dd::-webkit-scrollbar-thumb:hover { background: rgba(255, 0, 0, 0.70); }

/* ════ FILTER DROPDOWNS (.plx-dd) ════
   Players archive ships Tailwind on these; skins archive ships them bare.
   Rules below give the bare skins variant a full look and only add
   state/behaviour to the Tailwind variant.                              */

.plx-dd {
    position: relative;
    min-width: 150px;
}

/* Stacking fix: the filter bar (glass = own stacking context with z:auto) must sit
   ABOVE the results grid that follows it in the DOM, or open dropdown panels get
   painted over by the positioned cards below. Elevate the bar + the open dropdown. */
.plx-bar { position: relative; z-index: 30; }
.plx-dd.open { z-index: 50; }

/* Button — only paints when no Tailwind bg is present (skins archive) */
.plx-dd__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid var(--k-line);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.plx-dd__btn:hover { border-color: rgba(255, 0, 0, 0.5); }
.plx-dd.open .plx-dd__btn,
.plx-dd.is-set .plx-dd__btn { border-color: rgba(255, 0, 0, 0.55); }

.plx-dd__label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.plx-dd.is-set .plx-dd__label { color: #fff; }

/* Chevron — CSS arrow for the bare variant; rotate-on-open for both.
   The Tailwind variant uses a material-symbols span, also rotated. */
.plx-dd__chev {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--k-red);
    border-bottom: 2px solid var(--k-red);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.plx-dd.open .plx-dd__chev { transform: rotate(-135deg); }
.plx-dd.open span.plx-dd__chev[class*="material"] { transform: rotate(180deg); }

/* Panel — hidden by default, opens on .open */
.plx-dd__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.plx-dd.open .plx-dd__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* In-panel search */
.plx-dd__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--k-line);
    color: rgba(255, 255, 255, 0.4);
}
.plx-dd__find {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 13px;
}
.plx-dd__find::placeholder { color: rgba(255, 255, 255, 0.35); }

/* Options */
.plx-dd__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.plx-dd__opt:hover {
    background: rgba(255, 0, 0, 0.10);
    color: #fff;
}
.plx-dd__opt.is-active {
    background: rgba(255, 0, 0, 0.16);
    color: var(--k-red);
    font-weight: 700;
}

.plx-dd__img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.plx-dd__dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    flex-shrink: 0;
}
.plx-dd__n {
    margin-left: auto;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}
.plx-dd__opt.is-active .plx-dd__n { color: rgba(255, 0, 0, 0.7); }

/* ════ PAGINATION (.plx-pager) ════ */
.plx-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.plx-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.plx-pager a.page-numbers:hover {
    border-color: rgba(255, 0, 0, 0.6);
    color: #fff;
    background: rgba(255, 0, 0, 0.08);
}
.plx-pager .page-numbers.current {
    background: var(--k-red);
    border-color: var(--k-red);
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
}
.plx-pager .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.4);
}

/* ════ ACTIVE CHIPS (.plx-active) ════ */
.plx-active__l {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    align-self: center;
}
.plx-fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: rgba(255, 0, 0, 0.10);
    border: 1px solid rgba(255, 0, 0, 0.30);
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.plx-fchip:hover {
    background: rgba(255, 0, 0, 0.18);
    border-color: rgba(255, 0, 0, 0.55);
}
.plx-fchip span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}
.plx-fchip:hover span { color: var(--k-red); }

.plx-clear {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s ease;
}
.plx-clear:hover { color: var(--k-red); }

/* ════ EMPTY STATE (.plx-empty) ════
   Skins archive emits this bare; players archive adds Tailwind (still fine). */
.plx-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 24px;
    background: var(--k-surface);
    border: 2px dashed var(--k-line);
    border-radius: 16px;
}
.plx-empty__ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 99px;
    background: rgba(255, 0, 0, 0.10);
    border: 1px solid rgba(255, 0, 0, 0.30);
    color: var(--k-red);
}
.plx-empty h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}
.plx-empty p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ════ HEADER LIVE SEARCH (.ls-dd) ════ */
.site-search { width: 11.9rem; }               /* fixed pill width (w-56 not in compiled TW) */
.site-search__input:focus { outline: none; box-shadow: none; }
.site-search__input:-webkit-autofill,
.site-search__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}
.ls-dd {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    z-index: 60;
    width: 360px;
    max-width: 86vw;
    max-height: min(70vh, 460px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 0, 0, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.ls-dd.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ls-group { padding: 4px 0; }
.ls-group__h {
    display: block;
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--k-red);
}

.ls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.ls-row:hover,
.ls-row.is-active {
    background: rgba(255, 0, 0, 0.10);
}

.ls-row__img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: rgba(10, 10, 10, 0.6);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--k-line);
}
.ls-row__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
}
.ls-row__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.ls-row__t {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ls-row__m {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    margin-top: 1px;
}
.ls-row__a {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.15s ease, transform 0.15s ease;
}
.ls-row:hover .ls-row__a,
.ls-row.is-active .ls-row__a {
    color: var(--k-red);
    transform: translateX(2px);
}

.ls-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 11px;
    border-top: 1px solid var(--k-line);
    color: var(--k-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease;
}
.ls-all:hover { background: rgba(255, 0, 0, 0.08); }
.ls-all.is-active { background: rgba(255, 0, 0, 0.12); }

.ls-empty {
    padding: 22px 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

/* ════ INSPECT LIGHTBOX (.sxd-lb) ════
   Markup carries Tailwind `hidden`; JS toggles `.is-open`. */
.sxd-lb { display: none; }
.sxd-lb.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sxd-lb__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}
.sxd-lb__img {
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.06s linear;
    will-change: transform;
}
.sxd-lb__img.is-grab { cursor: grabbing; }

.sxd-lb__close {
    cursor: pointer;
}
.sxd-lb__cap {
    pointer-events: none;
}

/* ════ MOBILE — global overflow guard ════ */
/* Prevent any child from blowing out the 360-px viewport horizontally */
/* overflow-x:clip on body only (NOT html) — `hidden` on html makes it a scroll
   container and breaks position:sticky (single.php sidebar); `clip` does not. */
html { max-width: 100%; }
body { max-width: 100%; overflow-x: clip; }

/* ════ FILTER BARS — mobile stack ════
   On small screens force flex-col so dropdowns + search field go full-width.
   Tailwind md:flex-row restores horizontal layout at ≥768 px.              */
@media (max-width: 767px) {
    .plx-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .plx-search,
    .plx-dd,
    .plx-dd__btn {
        width: 100% !important;
        min-width: 0 !important;
    }
    /* Drop-odds label in single-case — shrink from w-40 to auto */
    .ks-odds-label { width: auto !important; min-width: 7rem; }
}

/* ════ TAP TARGETS — minimum 40 px height ════ */
.plx-pager .page-numbers { min-height: 40px; }

/* ── Article body (prose for single.php / guides; Tailwind typography plugin not loaded) ── */
.article-body { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.82); overflow-wrap: anywhere; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-style: italic;
    text-transform: uppercase; color: #fff; font-size: 1.75rem; line-height: 1.1;
    margin: 2em 0 0.7em; padding-left: 0.7rem; border-left: 4px solid #ff0000;
    text-shadow: 0 0 18px rgba(255,0,0,0.25);
}
.article-body h3 {
    font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff;
    font-size: 1.3rem; margin: 1.6em 0 0.5em; text-transform: uppercase; letter-spacing: 0.01em;
}
.article-body h4 { font-weight: 700; color: #fff; font-size: 1.08rem; margin: 1.4em 0 0.4em; }
.article-body a { color: #ff4444; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-body a:hover { color: #ff0000; }
.article-body strong, .article-body b { color: #fff; font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.article-body ul { list-style: disc outside; }
.article-body ol { list-style: decimal outside; }
.article-body ul ul { list-style: circle outside; }
.article-body ul ul ul { list-style: square outside; }
.article-body ol ol { list-style: lower-alpha outside; }
.article-body ol ol ol { list-style: lower-roman outside; }
.article-body li { margin-bottom: 0.55em; padding-left: 0.25em; }
.article-body li > ul, .article-body li > ol { margin: 0.55em 0 0; }
.article-body ul li::marker { color: #ff0000; }
.article-body ol li::marker { color: #ff0000; font-weight: 700; }
/* Definition lists */
.article-body dl { margin: 0 0 1.4em; }
.article-body dt { color: #fff; font-weight: 700; margin-top: 0.8em; }
.article-body dd { margin: 0.2em 0 0 1.2em; color: rgba(255,255,255,0.7); }
/* Inline highlight + keyboard */
.article-body mark { background: rgba(255,0,0,0.22); color: #fff; padding: 0.05em 0.3em; border-radius: 0.25rem; }
.article-body kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.82em; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-bottom-width: 2px; border-radius: 0.3rem; padding: 0.1em 0.4em; color: #fff; }
.article-body blockquote {
    margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 3px solid #ff0000;
    background: rgba(255,0,0,0.05); border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic; color: rgba(255,255,255,0.9);
}
.article-body img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.6em 0; border: 1px solid rgba(255,255,255,0.08); }
.article-body code {
    font-family: 'JetBrains Mono', monospace; font-size: 0.88em;
    background: rgba(255,255,255,0.08); color: #ff7a7a; padding: 0.15em 0.45em; border-radius: 0.3rem;
}
.article-body pre {
    background: rgba(10,10,10,0.8); border: 1px solid rgba(255,0,0,0.15); border-radius: 0.6rem;
    padding: 1rem 1.2rem; overflow-x: auto; margin: 1.6em 0;
}
.article-body pre code { background: none; color: #e2e2e2; padding: 0; }
.article-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 2.4em 0; }
/* Make tables scroll horizontally on mobile instead of overflowing */
.article-body table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; -webkit-overflow-scrolling: touch; }
.article-body th, .article-body td { border: 1px solid rgba(255,255,255,0.1); padding: 0.65rem 0.9rem; text-align: left; }
.article-body th { background: rgba(255,0,0,0.1); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-align: center; margin-top: 0.6em; }
/* ── Video & embeds (YouTube, Vimeo, Twitch, self-hosted) - responsive 16:9 ── */
.article-body iframe {
    display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
    border: 0; border-radius: 0.75rem; margin: 1.8em 0; background: #000;
}
.article-body video {
    display: block; width: 100%; height: auto;
    border-radius: 0.75rem; margin: 1.8em 0; background: #000;
    border: 1px solid rgba(255,255,255,0.08);
}
.article-body .wp-video, .article-body .wp-video-shortcode { width: 100% !important; margin: 1.8em 0; }
.article-body figure.wp-block-embed, .article-body .wp-block-embed { margin: 1.8em 0; }
.article-body .wp-block-embed__wrapper { position: relative; }
/* WP "responsive embeds" padding-hack wrapper */
.article-body .wp-embed-responsive .wp-block-embed__wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 0.75rem;
}
.article-body .wp-embed-responsive .wp-block-embed__wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0.75rem;
}
.article-body .wp-block-embed__wrapper > a { color: #ff4444; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Matches: day-divider labels (legacy hooks, styled here after main.css removal) ── */
.matches__day {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin: 2rem 0 1rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.matches__day:first-child { margin-top: 0; }
.matches__day--live { color: #ff0000; border-bottom-color: rgba(255,0,0,0.25); }
.match__live-dot {
    width: 8px; height: 8px; border-radius: 9999px; background: #ff0000;
    box-shadow: 0 0 8px rgba(255,0,0,0.8); animation: ks-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ks-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* ====================================================================== */
/* CS2 Crosshair Generator (/tools/crosshair-generator/)                  */
/* ====================================================================== */

/* Preview stage - dark radial backdrop with switchable shade. */
.xh-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,0,0,0.06), transparent 60%),
        radial-gradient(circle at 50% 50%, #1a1a1a, #0a0a0a 75%);
}
.xh-stage[data-shade="1"] {
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.05), transparent 60%),
        radial-gradient(circle at 50% 50%, #383838, #222 75%);
}
.xh-stage[data-shade="2"] {
    background:
        radial-gradient(circle at 50% 45%, rgba(120,150,90,0.18), transparent 60%),
        radial-gradient(circle at 50% 50%, #45562f, #2a331d 75%);
}
.xh-canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Backdrop swatch buttons. */
.xh-swatch {
    width: 22px; height: 22px;
    border-radius: 0.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.xh-swatch:hover { border-color: #ff0000; transform: scale(1.08); }

/* Field layout. */
.xh-field { display: flex; flex-direction: column; gap: 0.55rem; }
.xh-field-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.xh-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}
.xh-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: #ff4444;
    min-width: 2.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Range slider. */
.xh-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}
.xh-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ff0000;
    border: 2px solid #131313;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    cursor: pointer;
    transition: transform 0.12s;
}
.xh-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.xh-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ff0000;
    border: 2px solid #131313;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    cursor: pointer;
}
.xh-range::-moz-range-track { height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.1); }

/* Select + text inputs. */
.xh-select, .xh-input {
    width: 100%;
    height: 2.75rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.65rem;
    color: #fff;
    font-size: 0.85rem;
    padding: 0 0.9rem;
    transition: border-color 0.15s;
}
.xh-select:focus, .xh-input:focus { outline: none; border-color: rgba(255,0,0,0.6); }
.xh-input::placeholder { color: rgba(255,255,255,0.3); }
.xh-input.font-mono, .xh-textarea.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Native colour picker. */
.xh-color {
    width: 3rem; height: 2.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    padding: 2px;
}

/* Toggle (checkbox) switch. */
.xh-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.xh-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.xh-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.xh-switch-track {
    width: 44px; height: 24px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.18s, border-color 0.18s;
    position: relative;
}
.xh-switch-track::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s;
}
.xh-switch input:checked + .xh-switch-track {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255,0,0,0.5);
}
.xh-switch input:checked + .xh-switch-track::after { transform: translateX(20px); }
.xh-switch input:focus-visible + .xh-switch-track { outline: 2px solid rgba(255,0,0,0.7); outline-offset: 2px; }

/* Buttons. */
.xh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1.2rem;
    border-radius: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.xh-btn-red {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 0 16px rgba(255,0,0,0.3);
}
.xh-btn-red:hover { background: #e60000; box-shadow: 0 0 22px rgba(255,0,0,0.5); }
.xh-btn-ghost {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}
.xh-btn-ghost:hover { border-color: rgba(255,0,0,0.5); color: #fff; }
.xh-btn.is-copied { background: #1a7f37; border-color: #1a7f37; color: #fff; box-shadow: none; }

/* Preset chips. */
.xh-chip {
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
}
.xh-chip:hover { border-color: #ff0000; color: #fff; background: rgba(255,0,0,0.1); }

/* Console-commands textarea. */
.xh-textarea {
    width: 100%;
    background: rgba(10,10,10,0.8);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 0.65rem;
    color: #e2e2e2;
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 1rem 1.2rem;
    resize: vertical;
}
.xh-textarea:focus { outline: none; border-color: rgba(255,0,0,0.45); }

/* Advanced collapsible. */
.xh-details {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.25);
    padding: 0 1rem;
}
.xh-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}
.xh-summary::-webkit-details-marker { display: none; }
.xh-summary-icon { transition: transform 0.2s; color: #ff0000; }
.xh-details[open] .xh-summary-icon { transform: rotate(180deg); }
.xh-details[open] .xh-summary { border-bottom: 1px solid rgba(255,255,255,0.08); }
.xh-details > div { padding-bottom: 1.2rem; }

/* ----------------------------------------------------------------------- */
/* Two-level nav dropdown (desktop "Tools" submenu)                        */
/* ----------------------------------------------------------------------- */
.ks-has-sub { position: relative; }
.ks-sub-caret { transition: transform 0.2s ease; opacity: 0.7; }
.ks-has-sub:hover .ks-sub-caret,
.ks-has-sub:focus-within .ks-sub-caret { transform: rotate(180deg); opacity: 1; }

.ks-sub {
    position: absolute;
    top: 100%;
    left: -12px;
    padding-top: 12px;            /* hover bridge so the gap doesn't drop the menu */
    min-width: 230px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
    z-index: 200;
}
.ks-has-sub:hover > .ks-sub,
.ks-has-sub:focus-within > .ks-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.ks-sub > li {
    background: rgba(14,14,14,0.97);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
}
.ks-sub > li:first-child {
    border-top: 1px solid rgba(255,0,0,0.35);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -1px 0 rgba(255,0,0,0.15);
}
.ks-sub > li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}
.ks-sub-link {
    display: block;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}
.ks-sub-link:hover {
    color: #ff0000;
    background: rgba(255,0,0,0.08);
    padding-left: 20px;
}
.ks-sub-link.is-active {
    color: #ff0000;
    background: rgba(255,0,0,0.10);
    border-left: 2px solid #ff0000;
}

/* Mobile menu inline live-search results */
.ks-mres { list-style: none; }
.ks-mres-h { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #ff0000; padding: 12px 2px 4px; }
.ks-mres-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; transition: background .12s ease; }
.ks-mres-row:hover { background: rgba(255,0,0,0.08); }
.ks-mres-img { width: 36px; height: 36px; border-radius: 6px; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.ks-mres-t { display: flex; flex-direction: column; color: #fff; font-size: 13px; font-weight: 700; min-width: 0; }
.ks-mres-t small { color: rgba(255,255,255,0.45); font-size: 11px; font-weight: 500; }
.ks-mres-all { display: block; text-align: center; padding: 11px; margin-top: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #ff0000; border-top: 1px solid rgba(255,255,255,0.08); }
.ks-mres-empty { padding: 18px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

/* Homepage welcome block (content pulled from the front Page, editable in admin) */
.ks-welcome p { margin: 0 0 0.75em; }
.ks-welcome p:last-child { margin-bottom: 0; }
.ks-welcome a { color: #ff0000; transition: color .15s ease; }
.ks-welcome a:hover { color: #fff; }
.ks-welcome b, .ks-welcome strong { color: #fff; }

/* ----------------------------------------------------------------------- */
/* Back-to-top button (desktop + mobile)                                   */
/* ----------------------------------------------------------------------- */
.ks-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 95;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,0,0,0.92);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(255,0,0,0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s, box-shadow 0.2s;
}
.ks-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.ks-top:hover { background: #ff0000; box-shadow: 0 10px 30px rgba(255,0,0,0.5); transform: translateY(-2px); }
.ks-top .material-symbols-outlined { font-size: 24px; }
@media (max-width: 768px) {
    .ks-top { right: 16px; bottom: 18px; width: 42px; height: 42px; }
}

/* ----------------------------------------------------------------------- */
/* Site footer (explicit styles - independent of compiled Tailwind)        */
/* ----------------------------------------------------------------------- */
.ks-footer {
    position: relative;
    z-index: 10;
    background: #000000;
    border-top: 2px solid rgba(255, 0, 0, 0.35);
    padding: 80px 0 44px;
    overflow: hidden;
}
.ks-footer::before {
    content: "";
    position: absolute;
    top: -2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.75), transparent);
}
.ks-foot-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 52px;
}
.ks-foot-brand { padding-right: 24px; }
.ks-foot-logo { display: inline-block; }
.ks-foot-logo img {
    height: 46px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,0,0,0.5));
}
.ks-foot-desc {
    margin: 24px 0 28px;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.75;
    max-width: 310px;
}
.ks-foot-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.ks-foot-social {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.72);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ks-foot-social svg { width: 18px; height: 18px; display: block; }
.ks-foot-social:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,0,0,0.40);
}
.ks-foot-col { min-width: 0; }
.ks-foot-h {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ks-foot-acc {
    display: inline-block; width: 14px; height: 2px;
    background: #ff0000; border-radius: 2px;
    box-shadow: 0 0 6px rgba(255,0,0,0.8);
}
.ks-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ks-foot-link {
    color: rgba(255,255,255,0.5);
    font-size: 14px; line-height: 1.2;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
    display: inline-block;
}
.ks-foot-link:hover { color: #ff0000; transform: translateX(4px); }
.ks-foot-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 14px;
}
.ks-foot-copy {
    margin: 0;
    color: rgba(255,255,255,0.45);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.ks-foot-tag {
    color: rgba(255,255,255,0.30);
    font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
}
@media (max-width: 1024px) {
    .ks-foot-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
    .ks-foot-brand { grid-column: 1 / -1; padding-right: 0; }
    .ks-foot-desc { max-width: 520px; }
}
@media (max-width: 600px) {
    .ks-footer { padding: 56px 0 36px; }
    .ks-foot-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
}

/* ----------------------------------------------------------------------- */
/* Article reactions                                                       */
/* ----------------------------------------------------------------------- */
.ks-react { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 28px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; }
.ks-react-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.ks-react-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ks-react-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.ks-react-btn:hover { transform: translateY(-2px); background: rgba(255,0,0,0.10); border-color: rgba(255,0,0,0.4); }
.ks-react-emoji { font-size: 18px; line-height: 1; }
.ks-react-count { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); min-width: 10px; text-align: left; font-variant-numeric: tabular-nums; }
.ks-react-btn.is-on { background: rgba(255,0,0,0.16); border-color: #ff0000; }
.ks-react-btn.is-on .ks-react-count { color: #fff; }
.ks-react.is-voted .ks-react-btn:not(.is-on) { opacity: 0.65; cursor: default; }
.ks-react.is-voted .ks-react-btn:not(.is-on):hover { transform: none; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }

/* ----------------------------------------------------------------------- */
/* Comments                                                                */
/* ----------------------------------------------------------------------- */
.ks-comments { margin-top: 8px; }
.ks-cmt-title { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; font-size: 1.5rem; margin: 0 0 22px; }
.ks-cmt-bar { width: 6px; height: 28px; background: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.8); border-radius: 2px; }
.ks-cmt-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ks-cmt-list .children { list-style: none; margin: 16px 0 0; padding-left: 22px; border-left: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 16px; }
.ks-cmt { display: flex; gap: 14px; padding: 16px 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; }
.ks-cmt-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,0,0,0.3); }
.ks-cmt-main { flex: 1; min-width: 0; }
.ks-cmt-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.ks-cmt-author { font-weight: 800; color: #fff; font-size: 14px; }
.ks-cmt-date { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.ks-cmt-body { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.ks-cmt-body p { margin: 0 0 0.6em; }
.ks-cmt-pending { display: inline-block; margin-top: 8px; font-size: 11px; color: #ffb020; font-style: italic; }
.ks-cmt-reply { margin-top: 8px; }
.ks-cmt-reply a { font-size: 11px; color: #ff4444; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ks-cmt-note { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 12px 14px; background: rgba(255,0,0,0.06); border: 1px solid rgba(255,0,0,0.2); border-radius: 10px; color: rgba(255,255,255,0.7); font-size: 13px; }
.ks-cmt-note svg { color: #ff0000; flex-shrink: 0; }
.ks-cmt-formtitle { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.ks-cmt-form { display: flex; flex-direction: column; gap: 14px; }
.ks-cmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-cmt-field { display: flex; flex-direction: column; gap: 6px; }
.ks-cmt-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ks-cmt-field input, .ks-cmt-field textarea { width: 100%; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 11px 14px; color: #fff; font-size: 14px; font-family: inherit; transition: border-color .15s ease; }
.ks-cmt-field input:focus, .ks-cmt-field textarea:focus { outline: none; border-color: rgba(255,0,0,0.6); }
.ks-cmt-field textarea { resize: vertical; min-height: 110px; }
.ks-cmt-error { color: #ff6a6a; font-size: 12.5px; font-weight: 600; }
.ks-cmt-submit { align-self: flex-start; background: #ff0000; color: #fff; border: 0; border-radius: 10px; padding: 12px 26px; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(255,0,0,0.3); transition: transform .15s ease, box-shadow .15s ease; }
.ks-cmt-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,0,0,0.45); }
.ks-cmt-pager { margin-top: 18px; display: flex; gap: 10px; }
.ks-cmt-pager a, .ks-cmt-pager .current { color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 6px 12px; font-size: 12px; }
@media (max-width: 560px) { .ks-cmt-row { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/* Kill the browser's blue focus ring / autofill on front-end fields.      */
/* Mouse focus = no ring; keyboard focus = subtle red ring (accessible).   */
/* ----------------------------------------------------------------------- */
input:focus, textarea:focus, select:focus { outline: none; box-shadow: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid rgba(255, 0, 0, 0.55);
    outline-offset: 1px;
    border-radius: 8px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0d0d0d inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* ----------------------------------------------------------------------- */
/* Players filter - custom dropdown polish (.plx-*)                        */
/* ----------------------------------------------------------------------- */
.plx-dd__btn { background: rgba(12,12,12,0.85); border: 1px solid rgba(255,255,255,0.12); }
.plx-dd__btn:hover { border-color: rgba(255,0,0,0.5); }
.plx-dd.is-set .plx-dd__btn { border-color: rgba(255,0,0,0.45); }
.plx-dd__chev { transition: transform .2s ease; }
.plx-dd.is-open .plx-dd__chev { transform: rotate(180deg); }
.plx-dd__panel { background: rgba(10,10,10,0.97); backdrop-filter: blur(16px); border: 1px solid rgba(255,0,0,0.18); box-shadow: 0 18px 48px rgba(0,0,0,0.6); }
.plx-dd__search { position: sticky; top: 0; background: rgba(10,10,10,0.97); }
.plx-dd__find { outline: none !important; box-shadow: none !important; }
.plx-dd__find:focus-visible { outline: none !important; }
.plx-dd__opt { transition: background .12s ease, color .12s ease, padding-left .12s ease; }
.plx-dd__opt:hover { padding-left: 16px; }
.plx-dd__opt.is-active { background: rgba(255,0,0,0.16); color: #fff; }
.plx-search input:focus { border-color: rgba(255,0,0,0.55); }

/* ----------------------------------------------------------------------- */
/* Reusable compact archive hero (.ks-hero) - stats never stretch          */
/* ----------------------------------------------------------------------- */
.ks-hero {
    position: relative; overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 0, 0, 0.22);
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 26px 26px;
}
.ks-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 22%, rgba(255,0,0,0.16), transparent 55%); }
.ks-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.ks-hero__text { max-width: 660px; }
.ks-hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #ff0000; }
.ks-hero__dot { width: 6px; height: 6px; border-radius: 50%; background: #ff0000; box-shadow: 0 0 8px rgba(255,0,0,0.8); flex-shrink: 0; }
.ks-hero__title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; font-size: 2.1rem; line-height: 0.95; letter-spacing: -0.01em; margin: 0 0 12px; text-shadow: 0 0 16px rgba(255,255,255,0.18); }
.ks-hero__title .r { color: #ff0000; text-shadow: 0 0 16px rgba(255,0,0,0.42); }
.ks-hero__desc { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.ks-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.ks-hero__stat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 86px; height: 72px; padding: 0 16px; border-radius: 0.75rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.ks-hero__stat-n { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.ks-hero__stat-n.is-red { color: #ff0000; text-shadow: 0 0 16px rgba(255,0,0,0.42); }
.ks-hero__stat-l { margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
@media (min-width: 1024px) {
    .ks-hero { padding: 28px 32px; }
    .ks-hero__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 36px; }
    .ks-hero__title { font-size: 2.7rem; }
}
@media (max-width: 440px) {
    .ks-hero__stats { width: 100%; }
    .ks-hero__stat { flex: 1; min-width: 0; }
}

/* ── Mobile section headers: stop title squeeze + crooked wrap ── */
@media (max-width: 639px) {
  .ks-shead {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
  }
  /* Drop the flex layout so the title text flows + wraps inside the viewport. */
  .ks-shead h2 {
    display: block !important;
    font-size: 1.3rem !important;
    line-height: 1.12;
    padding-left: 0.7rem;
    border-left: 4px solid #ff0000;
    box-shadow: -1px 0 10px rgba(255, 0, 0, 0.5);
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .ks-shead h2 > span:first-child {        /* standalone accent bar - replaced by border-left */
    display: none;
  }
  .ks-shead h2 > span {                    /* red phrase: flow inline so it wraps, keep colour */
    display: inline;
  }
  .ks-shead > a {                          /* the "ALL X ->" link */
    font-size: 10px;
    align-self: flex-start;
  }
}

/* ── FAQ accordion (native <details>) ── */
.ks-faq-item > summary { list-style: none; }
.ks-faq-item > summary::-webkit-details-marker { display: none; }
.ks-faq-ic { transition: transform 0.25s ease; }
.ks-faq-item[open] > summary .ks-faq-ic { transform: rotate(45deg); }
.ks-faq-item[open] { border-color: rgba(255, 0, 0, 0.35); }
.ks-faq-item[open] > summary { color: #ff0000; }
