/* ============================================================
   CS2 skin changer (/skinchanger/)
   Overlays (editor, dialogs, toasts) live on <body>, so the tokens
   are shared by every top-level skx block.
   ============================================================ */

.skx,
.skx-editor-wrap,
.skx-dialog-wrap,
.skx-vp-wrap,
.skx-toasts,
.skx-stagekit {
    --skx-bg: #080b0e;
    --skx-surface: #0d1216;
    --skx-surface-2: #11181d;
    --skx-surface-3: #172028;
    --skx-line: rgba(255, 255, 255, 0.06);
    --skx-line-2: rgba(255, 255, 255, 0.1);
    --skx-line-3: rgba(255, 255, 255, 0.16);
    /* placeholder glyphs: solid, so crossing strokes never stack alpha */
    --skx-glyph: #3a4248;
    --skx-ink: #eef2f5;
    --skx-dim: #9aa5b0;
    --skx-mute: #636e79;
    --skx-ct: #7ea6f2;
    --skx-t: #e3ad4f;
    --skx-st: #cf6a32;
    --skx-danger: #ef5d5d;
    /* the subscription: the site's own gold (support page .sup-card--sub), never a side colour */
    --skx-sub: #ffb800;
    --skx-sub-rgb: 255, 184, 0;
    --skx-sub-2: #ff8a00;
    /* calm amber of outages and fallbacks (never a side colour) */
    --skx-warn: #f2a33a;
    --skx-warn-rgb: 242, 163, 58;
    --skx-ok: var(--glhf-accent);
    --skx-r-sm: 8px;
    --skx-r: 12px;
    --skx-r-lg: 18px;
    --skx-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --skx-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
    font-family: var(--glhf-font-body);
    color: var(--skx-dim);
}

.skx *,
.skx-editor-wrap *,
.skx-dialog-wrap *,
.skx-vp-wrap *,
.skx-toasts *,
.skx-stagekit * {
    box-sizing: border-box;
}

.skx-ico {
    flex: none;
    display: block;
}

html.skx-locked,
html.skx-locked body {
    overflow: hidden;
}

/* ---------- boot ---------- */

.page-content.skx {
    padding-top: calc(var(--glhf-header-height) + 28px);
    padding-bottom: 6rem;
}

.skx-boot {
    display: grid;
    place-items: center;
    min-height: 50vh;
}

.skx-boot-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--skx-line-2);
    border-top-color: var(--glhf-accent);
    animation: skx-spin 0.9s linear infinite;
}

@keyframes skx-spin {
    to { transform: rotate(360deg); }
}

.skx-noscript {
    padding: 4rem 0;
    text-align: center;
}

/* one gutter for the page and the bars that run edge to edge (main.css pads .container 16px from 768 down) */
.skx-container {
    --skx-gutter: 24px;
    display: flex;
    flex-direction: column;
    padding-right: var(--skx-gutter);
    padding-left: var(--skx-gutter);
}

@media (max-width: 768px) {
    .skx-container {
        --skx-gutter: 16px;
    }
}

/* ---------- hero: admin preview switch over the player bar ---------- */

.skx-hero {
    display: grid;
    /* a wide child (the bar) must not stretch the lines under it past the screen */
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 4px 0 22px;
}

.skx-hero > * {
    min-width: 0;
    max-width: 100%;
}

/* one slim bar across the content: who, what is equipped, account-wide actions */
.skx-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 74px;
    padding: 12px 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid var(--skx-line-2);
    background:
        radial-gradient(90% 180% at 0% 0%, rgba(var(--glhf-accent-rgb), 0.075), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
        var(--skx-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 22px 50px -30px rgba(0, 0, 0, 0.95),
        0 1px 2px rgba(0, 0, 0, 0.45);
}

/* a hairline of light along the top edge */
.skx-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--glhf-accent-rgb), 0.6) 16%, rgba(255, 255, 255, 0.16) 52%, transparent);
    pointer-events: none;
}

.skx-bar-id {
    position: relative;
    flex: none;
    min-width: 0;
}

.skx-acc-trigger,
.skx-acc-static {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    min-width: 0;
    padding: 5px 10px 5px 5px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

.skx-acc-trigger {
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s;
}

.skx-acc-trigger:hover {
    border-color: var(--skx-line);
    background: rgba(255, 255, 255, 0.035);
}

.skx-acc-trigger[aria-expanded="true"] {
    border-color: var(--skx-line-2);
    background: rgba(255, 255, 255, 0.05);
}

.skx-acc-trigger:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-acc-caret {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    border-radius: 8px;
    border: 1px solid var(--skx-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--skx-dim);
}

.skx-acc-caret .skx-ico {
    transition: transform 0.2s var(--skx-ease);
}

.skx-acc-trigger[aria-expanded="true"] .skx-acc-caret .skx-ico {
    transform: rotate(180deg);
}

.skx-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    overflow: hidden;
    border-radius: 11px;
    background: var(--skx-surface-3);
    color: var(--skx-mute);
    box-shadow: inset 0 0 0 1px var(--skx-line-2), 0 4px 12px -4px rgba(0, 0, 0, 0.6);
}

.skx-avatar.is-sm {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.skx-avatar-img {
    width: 100%;
    height: auto;
    display: block;
}

.skx-bar-who {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.skx-player-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--glhf-font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--skx-ink);
}

.skx-presence {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.2;
    color: var(--skx-mute);
    white-space: nowrap;
}

.skx-presence-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--skx-mute);
}

.skx-presence.is-online {
    color: var(--skx-ink);
}

.skx-presence.is-online .skx-presence-dot {
    background: var(--glhf-accent);
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.16);
}

.skx-bar-sep {
    flex: none;
    width: 1px;
    align-self: stretch;
    margin: 4px 0;
    background: linear-gradient(180deg, transparent, var(--skx-line-2) 30%, var(--skx-line-2) 70%, transparent);
}

.skx-bar-kpis {
    display: flex;
    align-items: stretch;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.skx-kpi {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    padding: 7px 14px;
    border-radius: 10px;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.18s;
}

.skx-kpi strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--skx-ink);
    font-variant-numeric: tabular-nums;
}

.skx-kpi span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--skx-mute);
    transition: color 0.18s;
}

.skx-kpi:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.04);
}

.skx-kpi:hover:not(:disabled) span {
    color: var(--skx-dim);
}

.skx-kpi:disabled {
    cursor: default;
}

.skx-kpi:disabled strong {
    color: var(--skx-mute);
}

.skx-kpi.is-loading strong {
    color: var(--skx-line-3);
}

.skx-kpi:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: -2px;
}

.skx-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.skx-bar-btn {
    height: 40px;
    border-radius: 11px;
}

.skx-bar-sets {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px 0 14px;
    border-radius: 11px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.3);
    background: linear-gradient(180deg, rgba(var(--glhf-accent-rgb), 0.13), rgba(var(--glhf-accent-rgb), 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--skx-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, transform 0.18s var(--skx-ease);
}

.skx-bar-sets > .skx-ico {
    color: var(--glhf-accent);
}

.skx-bar-sets:hover:not(:disabled) {
    border-color: rgba(var(--glhf-accent-rgb), 0.5);
    background: linear-gradient(180deg, rgba(var(--glhf-accent-rgb), 0.2), rgba(var(--glhf-accent-rgb), 0.08));
}

.skx-bar-sets:active:not(:disabled) {
    transform: translateY(1px);
}

.skx-bar-sets:disabled {
    opacity: 0.5;
    cursor: default;
}

.skx-bar-sets:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-bar-sets .skx-sets-count {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: rgba(var(--glhf-accent-rgb), 0.16);
    color: var(--glhf-accent);
}

/* Steam accounts menu */
.skx-acc-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--skx-line-2);
    background: rgba(13, 18, 23, 0.97);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 26px 60px -18px rgba(0, 0, 0, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
    transform-origin: top left;
    transition: opacity 0.16s, transform 0.16s var(--skx-ease);
}

.skx-acc-menu.is-open {
    opacity: 1;
    transform: none;
}

.skx-acc-menu-head {
    padding: 8px 10px 7px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-acc-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 7px 10px 7px 7px;
    border-radius: 10px;
    border: 0;
    background: none;
    color: var(--skx-dim);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s, color 0.14s;
}

.skx-acc-item:hover,
.skx-acc-item:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--skx-ink);
}

.skx-acc-item.is-current {
    color: var(--skx-ink);
    background: rgba(var(--glhf-accent-rgb), 0.07);
}

.skx-acc-item > .skx-ico {
    color: var(--glhf-accent);
}

.skx-acc-item-text {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.skx-acc-item-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
}

.skx-acc-item-meta {
    font-size: 12px;
    color: var(--skx-mute);
}

/* ---------- buttons ---------- */

.skx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s, opacity 0.18s, transform 0.18s var(--skx-ease);
}

.skx-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.skx-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.skx-btn--sm {
    height: 36px;
    padding: 0 13px;
    font-size: 13px;
}

.skx-btn--primary {
    background: var(--glhf-accent);
    color: #04110a;
    box-shadow: 0 8px 26px -10px rgba(var(--glhf-accent-rgb), 0.55);
}

.skx-btn--primary:hover:not(:disabled) {
    background: #3dff8a;
    color: #04110a;
}

.skx-btn--primary:disabled {
    background: var(--skx-surface-3);
    color: var(--skx-mute);
    box-shadow: none;
    opacity: 1;
}

.skx-btn--ghost {
    border-color: var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
}

.skx-btn--ghost:hover:not(:disabled) {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

.skx-btn--quiet {
    color: var(--skx-dim);
}

.skx-btn--quiet:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--skx-ink);
}

.skx-btn--danger {
    background: var(--skx-danger);
    color: #1a0505;
}

.skx-btn--danger:hover:not(:disabled) {
    background: #ff7373;
    color: #1a0505;
}

/* busy buttons show a ring instead of their icon (a spinning check mark reads as a glitch) */
.skx-spinner {
    display: inline-block;
    flex: none;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    opacity: 0.85;
    animation: skx-spin 0.8s linear infinite;
}

.skx-btn:focus-visible,
.skx-icon-btn:focus-visible,
.skx-card:focus-visible,
.skx-tab:focus-visible,
.skx-chip:focus-visible,
.skx-seg-btn:focus-visible,
.skx-side-btn:focus-visible,
.skx-skin:focus-visible,
.skx-pick:focus-visible,
.skx-float:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
    color: var(--skx-dim);
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.skx-icon-btn:hover {
    border-color: var(--skx-line-3);
    color: var(--skx-ink);
}

.skx-icon-btn.is-sm {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.skx-icon-btn.is-danger:hover {
    border-color: rgba(239, 93, 93, 0.4);
    background: rgba(239, 93, 93, 0.08);
    color: var(--skx-danger);
}

/* ---------- toolbar ---------- */

.skx-toolbar {
    position: sticky;
    top: var(--glhf-header-height);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 calc(-1 * var(--skx-gutter));
    padding: 0 var(--skx-gutter);
    border-bottom: 1px solid var(--skx-line);
    background: rgba(10, 14, 18, 0.88);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* no section tabs (owner, 28.10): a section's bar is the way back to «Мій набір», its name and
   CT / T; «Мій набір» has no bar, its CT / T stand in its head (.skx-lo-sides) */
.skx-toolbar {
    min-height: 58px;
}

.skx-toolbar.is-empty {
    display: none;
}

.skx-tb-lead {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* the music tab's volume beside its title, a little apart; on the phone's section bar a short one between title and side */
.skx-tb-lead > .skx-vol {
    margin-left: 10px;
}

.skx-secbar > .skx-vol {
    flex: 1;
    width: auto;
    max-width: 150px;
    margin: 0 10px 0 auto;
}

.skx-tb-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: var(--glhf-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--skx-ink);
    white-space: nowrap;
}

.skx-tb-title span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.skx-tb-title .skx-ico {
    flex: none;
    color: var(--glhf-accent);
}

/* «Мій набір» (owner, 28.10): no gap where the tabs were, «Налаштовано» beside CT / T */
.skx-hero:has(~ .skx-toolbar.is-empty) {
    padding-bottom: 10px;
}

.skx-toolbar.is-empty ~ .skx-body {
    padding-top: 6px;
}

.skx-lo-head-text:has(.skx-lo-sides) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

/* «Поділитися» beside CT / T: as tall as one of the switch's buttons (owner, 28.10) */
.skx-lo-head-text .skx-lo-share {
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
}

.skx-lo-sides .skx-side-btn {
    height: 44px;
    padding: 0 18px;
    font-size: 16px;
}

.skx-lo-sides .skx-side-logo {
    width: 24px;
}

.skx-lo-sides .skx-side-name {
    display: inline;
    font-size: 14px;
}

.skx-tabs {
    display: flex;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.skx-tabs::-webkit-scrollbar {
    display: none;
}

.skx-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 58px;
    padding: 0 16px;
    border: 0;
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-family: var(--glhf-font-heading);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s;
}

.skx-tab::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--glhf-accent);
    transform: scaleX(0);
    transition: transform 0.28s var(--skx-ease);
}

.skx-tab:hover {
    color: var(--skx-ink);
}

.skx-tab.is-active {
    color: var(--skx-ink);
}

.skx-tab.is-active::after {
    transform: scaleX(1);
}

.skx-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    font-family: var(--glhf-font-body);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.skx-side {
    display: flex;
    flex: none;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--skx-line);
    background: var(--skx-bg);
}

.skx-side-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--skx-mute);
    font: inherit;
    font-family: var(--glhf-font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s;
}

.skx-side-name {
    font-family: var(--glhf-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.skx-side-mark {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.5;
}

.skx-side-btn:hover {
    color: var(--skx-ink);
}

.skx-side-btn.is-active {
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

.skx-side-btn.is-ct.is-active .skx-side-mark {
    background: var(--skx-ct);
    opacity: 1;
}

.skx-side-btn.is-t.is-active .skx-side-mark {
    background: var(--skx-t);
    opacity: 1;
}

/* the side's emblem from the game: grey while the side is not chosen */
.skx-side-logo {
    flex: none;
    width: 20px;
    height: auto;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.18s, opacity 0.18s;
}

.skx-side-btn:hover .skx-side-logo {
    opacity: 0.8;
}

.skx-side-btn.is-active .skx-side-logo {
    filter: none;
    opacity: 1;
}

.skx-side-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 2px;
}

.skx-side-dot.is-ct { background: var(--skx-ct); }
.skx-side-dot.is-t { background: var(--skx-t); }

/* ---------- sub bar ---------- */

.skx-subbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 22px 0 6px;
}

.skx-subbar:empty {
    display: none;
}

.skx-subbar-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    min-width: 0;
}

/* the MVP anthems' volume (music tab) */
.skx-vol {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 210px;
}

.skx-vol-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--skx-line);
    border-radius: 10px;
    background: transparent;
    color: var(--skx-dim);
    cursor: pointer;
    transition: color 0.45s var(--skx-ease), border-color 0.45s var(--skx-ease), background-color 0.45s var(--skx-ease);
}

.skx-vol-btn:hover,
.skx-vol-btn:focus-visible {
    color: var(--skx-ink);
    border-color: var(--skx-line-2);
    background: var(--skx-surface-2);
    outline: none;
}

.skx-vol .skx-range {
    flex: 1;
    min-width: 0;
}

.skx-vol.is-mute .skx-vol-btn {
    color: var(--skx-mute);
}

@media (max-width: 560px) {
    .skx-vol {
        width: 160px;
    }
}

.skx-subbar-end {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.skx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skx-chip {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--glhf-radius-full);
    border: 1px solid var(--skx-line);
    background: transparent;
    color: var(--skx-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.skx-chip:hover {
    border-color: var(--skx-line-3);
    color: var(--skx-ink);
}

.skx-chip.is-active {
    border-color: var(--skx-ink);
    background: var(--skx-ink);
    color: #0a0e12;
}

/* pin names are long («Quarterfinalist at StarLadder Budapest 2025»): two lines before «…» */
.skx-grid--pins .skx-card-title {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* «Зараз»: the pin that is on now above the list, wherever it is in it */
.skx-pin-now {
    --rarity: transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin: 6px 0 14px;
    padding: 8px 10px 8px 8px;
    border-radius: var(--skx-r);
    background: linear-gradient(90deg, color-mix(in srgb, var(--rarity) 10%, transparent), transparent 55%), var(--skx-surface);
    box-shadow: inset 0 0 0 1px var(--skx-line), inset 3px 0 0 var(--rarity);
}

.skx-pin-now.is-empty {
    box-shadow: inset 0 0 0 1px var(--skx-line);
}

.skx-pin-now-media {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--skx-surface-2);
    color: var(--skx-mute);
}

.skx-pin-now-img {
    width: 48px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.skx-pin-now-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.skx-pin-now-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-pin-now-title {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-pin-now-sub {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-dim);
}

.skx-pin-now-sub:empty {
    display: none;
}

.skx-pin-now > .skx-btn {
    flex: none;
}

/* phones: the name and «розділ · група · мітка» wrap to two lines each instead of cutting off */
@media (max-width: 639px) {
    .skx-pin-now-kicker {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .skx-pin-now-title,
    .skx-pin-now-sub {
        display: -webkit-box;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .skx-pin-now-title {
        line-height: 1.3;
    }

    .skx-pin-now-sub {
        line-height: 1.4;
    }
}

@media (max-width: 389px) {
    .skx-pin-now {
        gap: 10px;
    }

    .skx-pin-now-media {
        width: 44px;
        height: 44px;
    }

    .skx-pin-now-img {
        width: 38px;
        max-height: 38px;
    }

    .skx-pin-now > .skx-btn {
        position: relative;
        padding: 0 10px;
    }

    /* the name gets the room: «Зняти» is its cross (the word stays for screen readers), the kicker tighter */
    .skx-pin-now-x {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .skx-pin-now-kicker {
        letter-spacing: 0.05em;
    }
}

.skx-scope-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--skx-dim);
}

.skx-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    color: var(--skx-mute);
}

.skx-search .skx-ico {
    position: absolute;
    left: 13px;
    pointer-events: none;
}

.skx-search-input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    color: var(--skx-ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-search-input::placeholder {
    color: var(--skx-mute);
}

.skx-search-input:focus {
    border-color: rgba(var(--glhf-accent-rgb), 0.5);
    background: var(--skx-surface-2);
}

.skx-search.is-large {
    width: auto;
    margin: 0 24px 16px;
}

.skx-search.is-large .skx-search-input {
    height: 46px;
    padding-left: 44px;
    font-size: 15px;
}

.skx-search.is-large .skx-ico {
    left: 15px;
}

/* toggle (the editor's rows: .skx-toggle.is-row) */

.skx-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--skx-dim);
    cursor: pointer;
    user-select: none;
}

.skx-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.skx-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    flex: none;
    border-radius: 10px;
    background: var(--skx-surface-3);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    transition: background-color 0.2s;
}

.skx-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--skx-dim);
    transition: transform 0.24s var(--skx-ease), background-color 0.2s;
}

.skx-toggle input:checked + .skx-toggle-track {
    background: rgba(var(--glhf-accent-rgb), 0.85);
    box-shadow: none;
}

.skx-toggle input:checked + .skx-toggle-track .skx-toggle-thumb {
    transform: translateX(16px);
    background: #04110a;
}

.skx-toggle input:focus-visible + .skx-toggle-track {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-toggle.is-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.skx-toggle-text {
    display: grid;
    gap: 4px;
}

.skx-toggle-text span {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--skx-mute);
}

.skx-st {
    color: var(--skx-st);
    font-family: var(--glhf-font-heading);
    font-size: 15px;
    letter-spacing: 0.02em;
}

/* segmented */

.skx-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--skx-line);
    background: var(--skx-bg);
}

.skx-seg.is-wide {
    display: flex;
}

.skx-seg.is-wide .skx-seg-btn {
    flex: 1;
}

.skx-seg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--skx-mute);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s;
}

.skx-seg-btn:hover {
    color: var(--skx-ink);
}

.skx-seg-btn.is-active {
    background: var(--skx-surface-3);
    color: var(--skx-ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--skx-line);
}

/* ---------- grid & cards ---------- */

.skx-body {
    padding-top: 18px;
}

.skx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}

.skx-grid-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-grid-head:first-child {
    margin-top: 4px;
}

.skx-grid-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--skx-line);
}

/* «Лише примірка на сайті  у грі - з рівнем «Активний»»: the note right after the header */
.skx-grid-head-note {
    margin-left: -4px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--skx-sub);
}

/* a card that is only tried on below «Активний» (graffiti other than GLHF) */
.skx-card-try {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(8, 11, 14, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.34);
    font-size: 10.5px;
    font-weight: 700;
    color: #e9d6a8;
    white-space: nowrap;
}

.skx-card-try .skx-ico {
    color: var(--skx-sub);
}

/* next to «✓ Екіпіровано» on a narrow card the word folds into the flask */
@container skx-card (max-width: 215px) {
    .skx-equipped ~ .skx-card-try {
        justify-content: center;
        width: 22px;
        padding: 0;
        font-size: 0;
    }
}

.skx-card {
    --rarity: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--skx-r);
    border: 1px solid var(--skx-line);
    background: var(--skx-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.22s, background-color 0.22s, transform 0.32s var(--skx-ease), box-shadow 0.32s var(--skx-ease);
}

.skx-card:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-2);
    transform: translateY(-2px);
    box-shadow: var(--skx-shadow);
}

.skx-card-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 10px 14px 0;
    overflow: hidden;
    background:
        radial-gradient(70% 62% at 50% 58%, color-mix(in srgb, var(--rarity) 24%, transparent), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    color: var(--skx-mute);
}

.skx-card-media::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 12%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
    z-index: 0;
}

.skx-card-media.is-icon {
    color: var(--skx-glyph);
}

.skx-card-media.is-icon::after {
    display: none;
}

.skx-card-img,
.skx-card-media img {
    position: relative;
    z-index: 1;
    width: 92%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
    transition: opacity 0.4s, transform 0.5s var(--skx-ease);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}

.skx-card-img.is-loaded,
.skx-card-media img.is-loaded {
    opacity: 1;
    transform: none;
}

.skx-card-media img.is-broken {
    display: none;
}

.skx-card:hover .skx-card-img.is-loaded {
    transform: translateY(-2px) scale(1.035);
}

.skx-card.is-tall .skx-card-media {
    aspect-ratio: 1 / 1;
    padding: 0;
}

.skx-card.is-tall .skx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: none;
}

.skx-card.is-tall .skx-card-media::after {
    display: none;
}

.skx-grid--square .skx-card-media {
    aspect-ratio: 1 / 1;
    padding: 18%;
}

.skx-grid--square .skx-card-media img {
    width: 100%;
}

.skx-card-body {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--skx-line);
}

.skx-card-kicker {
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-mute);
}

.skx-card-title {
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-card:not(.is-custom):not(.is-equipped) .skx-card-title {
    color: var(--skx-dim);
}

.skx-card-meta {
    overflow: hidden;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-card-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--rarity);
}

.skx-card.is-custom {
    border-color: color-mix(in srgb, var(--rarity) 26%, var(--skx-line));
}

.skx-scope,
.skx-equipped {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    background: rgba(8, 11, 14, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--skx-dim);
}

.skx-scope.is-ct { color: var(--skx-ct); }
.skx-scope.is-t { color: var(--skx-t); }

.skx-equipped {
    right: auto;
    left: 10px;
    color: var(--glhf-accent);
}

.skx-equipped + .skx-scope,
.skx-card .skx-scope {
    right: 10px;
}

/* a card in the grid is a size container: on a narrow one (two columns of a phone) «✓ Екіпіровано»
   and «Лише CT» do not fit side by side, so the word folds into the tick (its title keeps it) */
.skx-grid > .skx-card {
    container: skx-card / inline-size;
}

@container skx-card (max-width: 215px) {
    .skx-equipped:has(+ .skx-scope) {
        justify-content: center;
        width: 24px;
        padding: 0;
    }

    .skx-equipped:has(+ .skx-scope) .skx-equipped-t {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.skx-card.is-equipped {
    border-color: rgba(var(--glhf-accent-rgb), 0.35);
}

.skx-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: 55%;
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(8, 11, 14, 0.7);
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-dim);
}

.skx-card.is-skeleton {
    pointer-events: none;
}

.skx-card.is-skeleton .skx-card-media,
.skx-sk-line,
.skx-skin.is-skeleton {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%;
    animation: skx-shimmer 1.6s ease-in-out infinite;
}

.skx-sk-line {
    display: block;
    width: 70%;
    height: 12px;
    margin: 4px 0;
    border-radius: 6px;
}

.skx-sk-line.is-short {
    width: 40%;
}

@keyframes skx-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* music: card + play button */

.skx-card-wrap {
    position: relative;
    display: flex;
    min-width: 0;
}

.skx-card-wrap > .skx-card {
    flex: 1;
}

.skx-play {
    --p: 0;
    position: absolute;
    right: 12px;
    bottom: 76px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 11, 14, 0.82);
    box-shadow: inset 0 0 0 1px var(--skx-line-3), 0 8px 20px -8px rgba(0, 0, 0, 0.8);
    color: var(--skx-ink);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.25s var(--skx-ease), background-color 0.18s;
}

.skx-play:hover {
    transform: scale(1.06);
    background: rgba(17, 24, 29, 0.95);
}

.skx-play .skx-ico {
    grid-area: 1 / 1;
}

.skx-play .skx-ico:last-child,
.skx-play.is-playing .skx-ico:nth-of-type(1) {
    display: none;
}

.skx-play.is-playing .skx-ico:last-child {
    display: block;
}

.skx-play-ring {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--glhf-accent) calc(var(--p) * 360deg), transparent 0);
    -webkit-mask: radial-gradient(circle, transparent 18px, #000 19px);
    mask: radial-gradient(circle, transparent 18px, #000 19px);
    opacity: 0;
    transition: opacity 0.2s;
}

.skx-play.is-playing .skx-play-ring {
    opacity: 1;
}

.skx-play:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-pick-ranks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 24px 14px;
}

.skx-ptab .skx-ico {
    color: var(--skx-mute);
}

.skx-preview {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-self: start;
    gap: 10px;
}

.skx-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--skx-mute);
}

/* ---------- empty / error ---------- */

.skx-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 460px;
    margin: 40px auto;
    padding: 40px 28px;
    text-align: center;
}

.skx-empty h2 {
    margin: 6px 0 0;
    font-family: var(--glhf-font-heading);
    font-size: 22px;
    color: var(--skx-ink);
}

.skx-empty p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.skx-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
}

.skx-empty-icon.is-err {
    color: var(--skx-danger);
}

.skx-empty.is-inline {
    grid-column: 1 / -1;
    margin: 20px auto;
    padding: 20px;
    color: var(--skx-mute);
}

.skx-empty--hero {
    margin-top: 60px;
    border-radius: var(--skx-r-lg);
    border: 1px solid var(--skx-line);
    background: var(--skx-surface);
}

.skx-sentinel {
    height: 60px;
}

.skx-sentinel.is-loading {
    background: radial-gradient(circle at center, var(--skx-line-3) 2px, transparent 3px) center / 16px 16px no-repeat;
}

/* ============================================================
   Editor
   ============================================================ */

.skx-editor-wrap,
.skx-dialog-wrap {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 6, 8, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.28s var(--skx-ease);
}

.skx-editor-wrap.is-open,
.skx-dialog-wrap.is-open {
    opacity: 1;
}

.skx-editor {
    display: flex;
    flex-direction: column;
    width: min(1440px, 100%);
    height: min(880px, 100%);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-bg);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.42s var(--skx-ease);
}

.skx-editor-wrap.is-open .skx-editor {
    transform: none;
}

.skx-editor-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--skx-line);
}

.skx-editor-title {
    flex: 1;
    min-width: 0;
}

.skx-editor-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-editor-name {
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-rarity-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--rarity) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity) 38%, transparent);
    color: color-mix(in srgb, var(--rarity) 70%, white);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.skx-rarity-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--rarity);
}

.skx-editor-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    flex: 1;
    min-height: 0;
}

/* stage */

.skx-stage {
    --rarity: #7b8794;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(60% 55% at 50% 44%, color-mix(in srgb, var(--rarity) 15%, transparent), transparent 70%),
        radial-gradient(120% 80% at 50% 0%, #10171d, #07090b 70%);
    transition: background 0.6s;
}

.skx-stage-light {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 100% 48px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 48px 100%;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%);
    mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%);
    pointer-events: none;
}

.skx-stage-floor {
    position: absolute;
    left: 18%;
    right: 18%;
    top: 63%;
    height: 9%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.skx-stage-art {
    position: relative;
    flex: 1;
    min-height: 0;
}

.skx-stage-img {
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(78%, 620px);
    height: auto;
    max-height: 82%;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.97);
    transition: opacity 0.45s var(--skx-ease), transform 0.6s var(--skx-ease);
    filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.6));
    user-select: none;
    pointer-events: none;
}

.skx-stage-img.is-front {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.skx-stage-extras {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.skx-stage-sticker {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
}

.skx-stage-sticker img {
    width: 100%;
    height: auto;
}

.skx-stage-sticker i {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(7, 9, 11, calc(1 - var(--wear, 1)));
    pointer-events: none;
}

.skx-stage-sticker.is-charm {
    border-radius: 50%;
}

.skx-stage-info {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px 28px 26px;
    border-top: 1px solid var(--skx-line);
    background: linear-gradient(180deg, rgba(8, 11, 14, 0.4), rgba(8, 11, 14, 0.9));
}

.skx-stage-note {
    padding: 8px 0;
    color: var(--skx-mute);
}

.skx-stage-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.skx-stage-tier {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--glhf-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--skx-ink);
}

.skx-stage-tier::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--tier);
}

.skx-stage-float {
    font-family: var(--glhf-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--skx-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.skx-stage-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.skx-fact {
    display: grid;
    gap: 2px;
}

.skx-fact span {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-fact strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--skx-ink);
}

.skx-fact.is-st strong {
    color: var(--skx-st);
}

/* 3D view */

.skx-3d {
    position: absolute;
    inset: 0;
    /* its canvas over its background video stays inside it: the stage's buttons over the 3D keep their clicks */
    isolation: isolate;
    opacity: 0;
    transition: opacity 0.6s var(--skx-ease);
}

.skx-stage.is-3d .skx-3d {
    opacity: 1;
}

.skx-stage.is-3d .skx-stage-img,
.skx-stage.is-3d .skx-stage-floor {
    opacity: 0 !important;
    transition: opacity 0.4s;
}

.skx-stage.is-3d .skx-stage-extras {
    display: none;
}

.skx-3d-canvas {
    position: relative;
    z-index: 1;
    display: block;
    cursor: grab;
    outline: none;
}

/* the move between the stand and first person where the weapon cannot fly into the hands (skinchanger-3d.js viewFade,
   see fly): the old frame dissolves over the canvas as the camera goes into the weapon (grows) or back out (shrinks),
   the new view comes in moving the same way */
.skx-3d-fade {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
    transform-origin: 50% 55%;
    transition: opacity 0.9s var(--skx-ease), transform 1.2s var(--skx-ease), filter 0.9s var(--skx-ease);
}

.skx-3d-fade.is-go {
    opacity: 0;
    filter: blur(3px);
}

.skx-3d-fade.is-into.is-go {
    transform: scale(1.14);
}

.skx-3d-fade.is-out.is-go {
    transform: scale(0.9);
}

.skx-3d-canvas.is-come-into {
    animation: skx-3d-come-into 1.1s var(--skx-ease) both;
}

.skx-3d-canvas.is-come-out {
    animation: skx-3d-come-out 1.1s var(--skx-ease) both;
}

@keyframes skx-3d-come-into {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes skx-3d-come-out {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .skx-3d-fade {
        display: none;
    }

    .skx-3d-canvas.is-come-into,
    .skx-3d-canvas.is-come-out {
        animation: none;
    }
}

/* the map's background video under the canvas (an inspected item; skinchanger-3d.js setBgScene): it fades in as the
   drawn lobby fades out of the frame, and back */
.skx-3d-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s var(--skx-ease);
}

.skx-3d-bg.is-on {
    opacity: 1;
}

/* one layer per scene: a new one comes in over the old, fading in as it settles from a slight zoom */
.skx-3d-bg-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s var(--skx-ease), transform 1.4s var(--skx-ease);
}

.skx-3d-bg-layer.is-shown {
    opacity: 1;
    transform: none;
}

.skx-3d-bg img,
.skx-3d-bg video {
    position: absolute;
    max-width: none;
    object-fit: cover;
    /* the stand and first person frame the same video differently: it moves between the two */
    transition: width 0.9s var(--skx-ease), height 0.9s var(--skx-ease), left 0.9s var(--skx-ease), top 0.9s var(--skx-ease);
}

/* the video over its first frame once it plays (and it moves between the two framings with it) */
.skx-3d-bg video {
    opacity: 0;
    transition: opacity 0.6s var(--skx-ease), width 0.9s var(--skx-ease), height 0.9s var(--skx-ease), left 0.9s var(--skx-ease), top 0.9s var(--skx-ease);
}

/* the weapon's flight between the stand and the hands (skinchanger-3d.js fly) moves the video every frame itself */
.skx-3d-bg.is-flying img {
    transition: none;
}

.skx-3d-bg.is-flying video {
    transition: opacity 0.6s var(--skx-ease);
}

.skx-3d-bg video.is-playing {
    opacity: 1;
}

.skx-3d-canvas.is-grabbing {
    cursor: grabbing;
}

.skx-3d-canvas.is-sticker-edit.is-sticker {
    cursor: move;
}

/* charm tab: a press on the weapon hangs the charm there, the charm itself can be dragged */
.skx-3d-canvas.is-charm-edit {
    cursor: crosshair;
}

.skx-3d-canvas.is-charm-edit.is-charm {
    cursor: move;
}

.skx-3d-canvas.is-charm-edit.is-grabbing {
    cursor: grabbing;
}

.skx-3d-busy {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: none;
    white-space: nowrap;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border-radius: var(--glhf-radius-full);
    background: rgba(8, 11, 14, 0.72);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    font-size: 12.5px;
    color: var(--skx-dim);
    transform: translateX(-50%);
    pointer-events: none;
}

.skx-stage.is-3d-loading .skx-3d-busy {
    display: inline-flex;
}

/* the photo's sticker and charm chips stay readable: the loading pill sits above them */
.skx-stage-art:has(.skx-stage-extras > *) .skx-3d-busy {
    bottom: 88px;
}

.skx-3d-busy-bar {
    position: relative;
    width: 44px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--skx-line-2);
}

.skx-3d-busy-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    border-radius: 2px;
    background: var(--skx-ink);
    animation: skx-busy 1.1s var(--skx-ease) infinite;
}

@keyframes skx-busy {
    from { left: -40%; }
    to { left: 100%; }
}

.skx-3d-hint {
    position: absolute;
    left: 24px;
    bottom: 20px;
    max-width: 50%;
    font-size: 12.5px;
    color: var(--skx-mute);
    /* readable over a bright model too */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    transition: opacity 0.6s;
}

.skx-3d-hint.is-quiet {
    opacity: 0;
}

.skx-3d-tools {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.skx-3d-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 0;
    background: rgba(8, 11, 14, 0.86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-dim);
    cursor: pointer;
    transition: color 0.18s, background-color 0.18s;
}

.skx-3d-btn:hover {
    background: rgba(23, 32, 40, 0.9);
    color: var(--skx-ink);
}

.skx-3d-btn:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

/* scene picker: places from CS2 maps behind the 3D model (SkinStage.toggleScenes) */

.skx-scene-pick {
    position: absolute;
    right: 18px;
    bottom: 58px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(440px, calc(100% - 36px));
    /* clear of the Фото / 3D switch at the top */
    max-height: calc(100% - 136px);
    padding: 10px;
    border-radius: 12px;
    background: rgba(8, 11, 14, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px var(--skx-line-2), 0 12px 40px rgba(0, 0, 0, 0.5);
    transform-origin: 100% 100%;
    animation: skx-scene-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.skx-scene-pick[hidden] {
    display: none;
}

.skx-scene-pick.is-leaving {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

@keyframes skx-scene-in {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
}

.skx-scene-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
}

.skx-scene-head b {
    font-size: 13px;
    color: var(--skx-ink);
}

.skx-scene-head span {
    font-size: 11.5px;
    color: var(--skx-dim);
}

.skx-scene-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px;
    scrollbar-width: thin;
}

.skx-scene-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 4px 4px 6px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-dim);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s, box-shadow 0.18s, color 0.18s;
}

.skx-scene-tile img,
.skx-scene-studio {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: #10161c;
}

.skx-scene-studio {
    background: radial-gradient(ellipse at 50% 38%, #3a4652 0%, #1a222b 55%, #0c1116 100%);
}

.skx-scene-cap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 2px;
    line-height: 1.25;
}

.skx-scene-cap b,
.skx-scene-cap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skx-scene-cap b {
    font-size: 12px;
    color: var(--skx-ink);
}

.skx-scene-cap span {
    font-size: 11px;
}

.skx-scene-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--skx-ink);
}

.skx-scene-tile.is-on {
    box-shadow: inset 0 0 0 2px rgba(var(--glhf-accent-rgb), 0.85);
    background: rgba(var(--glhf-accent-rgb), 0.08);
}

.skx-scene-tile:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-scene-wait {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: rgba(8, 11, 14, 0.55);
}

.skx-scene-busy {
    display: grid;
    place-items: center;
    min-height: 120px;
}

@media (max-width: 640px) {
    .skx-scene-pick {
        right: 10px;
        bottom: 54px;
        width: calc(100% - 20px);
    }

    .skx-scene-pick {
        max-height: calc(100% - 112px);
        padding: 8px;
        gap: 6px;
    }

    .skx-scene-head span {
        display: none;
    }

    .skx-scene-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .skx-scene-tile {
        padding: 3px 3px 4px;
    }

    .skx-scene-cap span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-scene-pick {
        animation: none;
    }
}

/* over a bright map scene the hint gets a backing */
.skx-stage.has-scene .skx-3d-hint {
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(8, 11, 14, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-shadow: none;
}

/* scrub bar for a zoomed weapon */

.skx-scrub {
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    left: 50%;
    bottom: 64px;
    width: min(320px, 46%);
    height: 22px;
    transform: translate(-50%, 6px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    touch-action: none;
    transition: opacity 0.3s, transform 0.35s var(--skx-ease);
}

.skx-scrub.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.skx-scrub-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.skx-scrub-thumb {
    position: absolute;
    top: 50%;
    height: 8px;
    min-width: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(8, 11, 14, 0.6);
    transform: translateY(-50%);
    transition: background-color 0.18s, height 0.18s;
}

.skx-scrub:hover .skx-scrub-thumb,
.skx-scrub.is-drag .skx-scrub-thumb {
    height: 10px;
    background: #fff;
}

.skx-scrub:focus-visible {
    outline: none;
}

.skx-scrub:focus-visible .skx-scrub-thumb {
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.6);
}

/* float bar */

.skx-float {
    position: relative;
    height: 10px;
    touch-action: none;
}

.skx-float.is-interactive {
    height: 28px;
    cursor: pointer;
}

.skx-float-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    transform: translateY(-50%);
}

.skx-float-band {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--tier);
    opacity: 0.85;
}

.skx-float-band + .skx-float-band {
    box-shadow: inset 2px 0 0 var(--skx-bg);
}

.skx-float-dim {
    position: absolute;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(135deg, rgba(8, 11, 14, 0.82) 0 3px, rgba(8, 11, 14, 0.62) 3px 6px);
}

.skx-float-dim.is-lo { left: 0; }
.skx-float-dim.is-hi { right: 0; }

.skx-float-range {
    position: absolute;
    top: 0;
    bottom: 0;
}

.skx-float-marker {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 0 2px var(--skx-bg), 0 4px 10px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: left 0.12s linear;
    pointer-events: none;
}

.skx-float:not(.is-interactive) .skx-float-marker {
    height: 14px;
}

.skx-float.is-drag .skx-float-marker {
    transition: none;
}

.skx-float.is-interactive:hover .skx-float-marker {
    height: 22px;
}

/* panel */

.skx-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-left: 1px solid var(--skx-line);
    background: var(--skx-surface);
}

.skx-panel-side {
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--skx-line);
}

.skx-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-field-head .skx-label {
    margin: 0;
}

.skx-locked-side {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--skx-dim);
}

.skx-locked-side .skx-ico {
    margin-top: 2px;
    color: var(--skx-mute);
}

.skx-panel-tabs {
    display: flex;
    flex: none;
    gap: 2px;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--skx-line);
    scrollbar-width: none;
}

.skx-panel-tabs::-webkit-scrollbar {
    display: none;
}

.skx-ptab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    height: 48px;
    padding: 0 12px;
    border: 0;
    background: none;
    color: var(--skx-mute);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s;
}

.skx-ptab::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--skx-ink);
    transform: scaleX(0);
    transition: transform 0.26s var(--skx-ease);
}

.skx-ptab:hover:not(:disabled) {
    color: var(--skx-ink);
}

.skx-ptab.is-active {
    color: var(--skx-ink);
}

.skx-ptab.is-active::after {
    transform: scaleX(1);
}

.skx-ptab:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.skx-panel-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--skx-line-3) transparent;
}

.skx-panel-tools .skx-search {
    width: 100%;
}

.skx-rarity-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 2px;
}

.skx-rarity-filter:empty {
    display: none;
}

.skx-rchip {
    --rarity: var(--skx-line-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--skx-line);
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}

.skx-rchip:hover {
    color: var(--skx-ink);
    border-color: var(--skx-line-3);
}

.skx-rchip.is-active {
    border-color: color-mix(in srgb, var(--rarity) 55%, transparent);
    background: color-mix(in srgb, var(--rarity) 12%, transparent);
    color: var(--skx-ink);
}

.skx-rchip-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--rarity);
}

.skx-skins {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.skx-skin {
    --rarity: #7b8794;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 116px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-skin::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--rarity);
    opacity: 0.85;
}

.skx-skin:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
}

.skx-skin.is-active {
    border-color: color-mix(in srgb, var(--rarity) 70%, white 10%);
    background: color-mix(in srgb, var(--rarity) 10%, var(--skx-surface-2));
}

.skx-skin-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 6px 8px 0;
    background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--rarity) 18%, transparent), transparent 72%);
    color: var(--skx-mute);
}

.skx-skin-media img {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.skx-skin-media img.is-loaded {
    opacity: 1;
}

.skx-skin-name {
    margin: 4px 9px 10px;
    max-height: 2.6em;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--skx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.skx-skin-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--skx-ink);
    color: #0a0e12;
}

.skx-skin.is-skeleton {
    border-color: transparent;
    pointer-events: none;
}

/* fields */

.skx-field {
    display: grid;
    gap: 12px;
    padding: 18px 0;
}

.skx-field + .skx-field {
    border-top: 1px solid var(--skx-line);
}

.skx-field:first-child {
    padding-top: 4px;
}

.skx-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.skx-field-hint {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--skx-mute);
}

.skx-field-hint.is-strong {
    color: var(--skx-st);
    font-weight: 600;
}

.skx-field-hint.is-lead {
    margin-bottom: 14px;
}

.skx-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skx-num,
.skx-text {
    height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-bg);
    color: var(--skx-ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s;
}

.skx-num {
    width: 112px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.skx-num[type='number'] {
    width: 88px;
    -moz-appearance: textfield;
}

.skx-num::-webkit-inner-spin-button,
.skx-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.skx-text {
    width: 100%;
    height: 42px;
}

.skx-num:focus,
.skx-text:focus {
    border-color: rgba(var(--glhf-accent-rgb), 0.5);
}

.skx-counter {
    font-size: 12px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-counter.is-over {
    color: var(--skx-warn);
    font-weight: 700;
}

.skx-field-hint.is-warn {
    color: var(--skx-warn);
}

.skx-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.skx-preset {
    display: grid;
    gap: 2px;
    justify-items: start;
    min-width: 0;
    padding: 8px 9px 9px;
    border-radius: 9px;
    border: 1px solid var(--skx-line);
    background: none;
    color: var(--skx-dim);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}

.skx-preset strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--glhf-font-heading);
    font-size: 13px;
    color: var(--skx-ink);
}

.skx-preset strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--tier);
}

.skx-preset span {
    width: 100%;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-mute);
}

.skx-preset:hover:not(:disabled) {
    border-color: var(--skx-line-3);
}

.skx-preset.is-active {
    border-color: color-mix(in srgb, var(--tier) 55%, transparent);
    background: color-mix(in srgb, var(--tier) 9%, transparent);
}

.skx-preset:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* slots */

.skx-slots {
    display: grid;
    gap: 8px;
}

.skx-slot {
    border-radius: var(--skx-r);
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
}

.skx-slot.is-open {
    border-color: var(--skx-line-2);
}

.skx-slot.is-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 0 14px;
    border-style: dashed;
    border-color: var(--skx-line-2);
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}

.skx-slot.is-empty:hover {
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
    background: rgba(var(--glhf-accent-rgb), 0.04);
    color: var(--skx-ink);
}

.skx-slot.is-tall {
    justify-content: center;
    height: 120px;
}

.skx-slot-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 14px;
}

.skx-slot-num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 6px;
    background: var(--skx-bg);
    color: var(--skx-mute);
    font-size: 11px;
    font-weight: 700;
}

.skx-slot-thumb {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    padding: 4px;
    border-radius: 10px;
    background: var(--skx-bg);
}

.skx-slot-thumb img {
    width: 100%;
    height: auto;
}

.skx-slot-thumb.is-charm {
    border-radius: 50%;
}

.skx-slot-text {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.skx-slot-text strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-slot-text span {
    font-size: 12px;
    color: var(--skx-mute);
}

.skx-slot-body {
    display: grid;
    gap: 14px;
    padding: 6px 16px 16px;
    border-top: 1px solid var(--skx-line);
    padding-top: 16px;
}

.skx-slot-body .skx-btn {
    justify-self: start;
}

.skx-slider {
    display: grid;
    gap: 8px;
}

.skx-slider-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--skx-dim);
}

.skx-slider-value {
    font-weight: 600;
    color: var(--skx-ink);
    font-variant-numeric: tabular-nums;
}

.skx-range {
    --pct: 50%;
    width: 100%;
    height: 18px;
    margin: 0;
    background: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.skx-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--skx-ink) var(--pct), var(--skx-surface-3) var(--pct));
}

.skx-range::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--skx-ink) var(--pct), var(--skx-surface-3) var(--pct));
}

.skx-range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 3px var(--skx-surface-2), 0 2px 8px rgba(0, 0, 0, 0.6);
    -webkit-appearance: none;
}

.skx-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 3px var(--skx-surface-2), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.skx-range:focus-visible {
    outline: none;
}

/* a place along something (the charm), not an amount: no filled part, a centre tick */
.skx-range.is-pos::-webkit-slider-runnable-track {
    background:
        linear-gradient(var(--skx-line-3), var(--skx-line-3)) center / 2px 100% no-repeat,
        var(--skx-surface-3);
}

.skx-range.is-pos::-moz-range-track {
    background:
        linear-gradient(var(--skx-line-3), var(--skx-line-3)) center / 2px 100% no-repeat,
        var(--skx-surface-3);
}

.skx-slider-ends {
    display: flex;
    justify-content: space-between;
    margin-top: -4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-charm-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: -2px;
}

.skx-slot-body .skx-charm-row .skx-btn {
    justify-self: auto;
    margin-left: -10px;
}

.skx-charm-at {
    margin-left: auto;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    white-space: pre;
    color: var(--skx-mute);
}

/* an older saved point the game moves onto the allowed surface */
.skx-charm-saved {
    margin-top: -4px;
    font-size: 12px;
    line-height: 1.45;
}

.skx-charm-wait {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 92px;
    font-size: 12.5px;
    color: var(--skx-mute);
}

.skx-slider.is-seed {
    padding-top: 14px;
    border-top: 1px solid var(--skx-line);
}

.skx-slider.is-seed .skx-slider-head {
    align-items: center;
}

.skx-range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.6);
}

/* foot */

.skx-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border-top: 1px solid var(--skx-line);
    background: var(--skx-surface);
}

.skx-foot-state {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}



.skx-clean {
    color: var(--skx-mute);
}

.skx-clean.is-warn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--skx-warn);
}

/* the reason takes a line of its own over the buttons */
.skx-panel-foot:has(.skx-clean.is-warn) {
    flex-wrap: wrap;
    row-gap: 10px;
}

.skx-foot-state:has(.is-warn) {
    flex: 1 1 100%;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
}

.skx-panel-foot:has(.skx-clean.is-warn) .skx-foot-actions {
    margin-left: auto;
}

.skx-foot-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
}

.skx-foot-actions .skx-icon-btn {
    width: 42px;
    height: 42px;
    margin-right: 2px;
}

/* tooltips (data-tip) */

.skx-tip {
    position: relative;
}

.skx-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: max-content;
    max-width: 260px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #1b252d;
    box-shadow: inset 0 0 0 1px var(--skx-line-3), 0 14px 34px -10px rgba(0, 0, 0, 0.8);
    color: var(--skx-ink);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s, transform 0.22s var(--skx-ease);
    pointer-events: none;
}

.skx-tip:hover::after,
.skx-tip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.skx-tip.is-wide::after {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: translateY(4px);
}

.skx-tip.is-wide:hover::after,
.skx-tip.is-wide:focus-visible::after {
    transform: none;
}

.skx-field-hint.is-strong + .skx-field {
    margin-top: 18px;
    border-top: 1px solid var(--skx-line);
}

/* summary behind the numbers */

.skx-sum {
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(720px, 100%);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(12px) scale(0.985);
    transition: transform 0.4s var(--skx-ease);
}

.skx-dialog-wrap.is-open .skx-sum {
    transform: none;
}

.skx-sum-list {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    padding: 4px 16px 18px;
    border-top: 1px solid var(--skx-line);
    padding-top: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--skx-line-3) transparent;
}

.skx-sum-row {
    --rarity: transparent;
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 14px;
    padding: 8px 12px 8px 8px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
    color: var(--skx-mute);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-sum-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rarity);
}

.skx-sum-row:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
}

.skx-sum-row > .skx-ico {
    transform: rotate(-90deg);
}

.skx-sum-media {
    display: grid;
    place-items: center;
    width: 76px;
    height: 54px;
    flex: none;
    border-radius: 9px;
    background: var(--skx-bg);
}

.skx-sum-media img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
}

.skx-sum-media img.is-broken {
    display: none;
}

.skx-sum-text {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

.skx-sum-kicker {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skx-sum-text strong {
    overflow: hidden;
    font-size: 14.5px;
    color: var(--skx-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-sum-meta {
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.skx-scope.is-inline {
    position: static;
    flex: none;
}

/* ============================================================
   Dialogs, picker, toasts
   ============================================================ */

.skx-dialog-wrap {
    z-index: 10060;
}

.skx-dialog {
    width: min(440px, 100%);
    padding: 26px;
    border-radius: 18px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.36s var(--skx-ease);
}

.skx-dialog-wrap.is-open .skx-dialog,
.skx-dialog-wrap.is-open .skx-picker {
    transform: none;
}

.skx-dialog-title {
    margin: 0 0 10px;
    font-family: var(--glhf-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--skx-ink);
}

.skx-dialog-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--skx-dim);
}

.skx-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.skx-picker {
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    height: min(760px, 100%);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(12px) scale(0.985);
    transition: transform 0.4s var(--skx-ease);
}

.skx-picker-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 16px 24px;
}

.skx-picker-head h3 {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 20px;
    color: var(--skx-ink);
}

.skx-pick-count {
    flex: 1;
    font-size: 13px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-pick-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 24px;
    border-top: 1px solid var(--skx-line);
    scrollbar-width: thin;
    scrollbar-color: var(--skx-line-3) transparent;
}

.skx-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 8px;
    padding-top: 16px;
}

.skx-pick {
    --rarity: #7b8794;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, transform 0.25s var(--skx-ease);
}

.skx-pick:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
    transform: translateY(-2px);
}

.skx-pick-media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--rarity) 16%, transparent), transparent 72%);
}

.skx-pick-media img {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.skx-pick-media img.is-loaded {
    opacity: 1;
}

.skx-pick-name {
    margin: 0 10px 11px;
    max-height: 2.7em;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--skx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.skx-effect {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(8, 11, 14, 0.8);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--skx-dim);
}

.skx-effect.is-holo { color: #b48cff; }
.skx-effect.is-foil { color: #9fd6ff; }
.skx-effect.is-gold { color: #e9c46a; }
.skx-effect.is-glitter { color: #ff9ad5; }
.skx-effect.is-lenticular { color: #7ce3c4; }

.skx-toasts {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10100;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}

.skx-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 13px 18px 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--skx-line-2);
    background: rgba(17, 24, 29, 0.96);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s var(--skx-ease), transform 0.4s var(--skx-ease);
    pointer-events: auto;
}

.skx-toast.is-in {
    opacity: 1;
    transform: none;
}

.skx-toast-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 8px;
    background: rgba(var(--glhf-accent-rgb), 0.14);
    color: var(--glhf-accent);
}

.skx-toast.is-err .skx-toast-mark {
    background: rgba(239, 93, 93, 0.14);
    color: var(--skx-danger);
}

.skx-toast-body {
    display: grid;
    gap: 2px;
    padding-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--skx-dim);
}

.skx-toast-body strong {
    font-size: 14px;
    color: var(--skx-ink);
}

.skx-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skx-toast-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--skx-line-3);
    background: var(--skx-surface-3);
    color: var(--skx-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}

.skx-toast-btn:hover {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    color: var(--glhf-accent);
}

.skx-toast-btn:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

/* on a phone a toast takes the screen width (the host is centred from the middle otherwise) */
@media (max-width: 639px) {
    .skx-toasts {
        left: 16px;
        right: 16px;
        transform: none;
    }

    .skx-toast {
        width: 100%;
        max-width: none;
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1279px) {
    .skx-editor-main {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    /* four tabs (two with a count or a star) share the 380 px panel */
    .skx-panel-tabs {
        padding: 0 6px;
    }

    .skx-ptab {
        gap: 5px;
        padding: 0 8px;
    }

    .skx-ptab::after {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 959px) {
    .skx-editor-wrap {
        padding: 0;
    }

    .skx-editor {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
    }

    .skx-editor-main {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .skx-stage {
        flex: none;
        height: 46vh;
        min-height: 300px;
    }

    .skx-stage-info {
        padding: 16px 18px 18px;
    }

    /* left corner: the 3D / photo switch keeps the right one */
    .skx-stage-extras {
        left: 12px;
        bottom: 12px;
        gap: 6px;
        transform: none;
    }

    .skx-stage-sticker {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 10px;
    }

    .skx-stage-art:has(.skx-stage-extras > *) .skx-3d-busy {
        bottom: 66px;
    }

    .skx-panel {
        flex: none;
        border-left: 0;
        border-top: 1px solid var(--skx-line);
    }

    .skx-panel-content {
        overflow: visible;
    }

    /* above the sticky tabs: on a short phone the two meet, and a tap on «Застосувати» must
       reach the button, not the tab row under it */
    .skx-panel-foot {
        position: sticky;
        bottom: 0;
        z-index: 5;
    }
}

@media (max-width: 639px) {
    .page-content.skx {
        padding-top: calc(var(--glhf-header-height) + 8px);
    }

    .skx-subbar-end {
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    .skx-search {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .skx-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .skx-chips::-webkit-scrollbar {
        display: none;
    }

    .skx-chip {
        flex: none;
    }

    .skx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .skx-card-body {
        padding: 10px 12px 13px;
    }

    .skx-card-title {
        font-size: 15px;
    }



    .skx-skins {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skx-presets {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .skx-preset span {
        display: none;
    }

    /* «Збережено» and the buttons share a row while they fit (at 320 they stack), so on a
       short phone the tabs stay in sight over the foot; a warning takes its own line */
    .skx-panel-foot {
        flex-wrap: wrap;
    }

    .skx-foot-state {
        flex: 0 1 auto;
    }

    .skx-foot-state:empty {
        display: none;
    }

    /* the row shrinks with the screen: trash + «Скасувати» + «Застосувати» stay inside 320 */
    .skx-foot-actions {
        flex: 1 1 190px;
        min-width: 0;
    }

    .skx-foot-actions .skx-btn {
        flex: 0 1 auto;
        min-width: 0;
        padding: 0 14px;
    }

    .skx-foot-actions .skx-btn--primary {
        flex: 1 1 auto;
    }

    .skx-dialog-wrap.is-picker {
        padding: 0;
    }

    .skx-picker {
        height: 100%;
        border-radius: 0;
        border: 0;
    }

    .skx-search.is-large {
        flex: none;
        margin: 0 16px 14px;
    }

    .skx-pick-ranks {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: -4px 0 12px;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .skx-rchip {
        flex: none;
    }

    .skx-play {
        bottom: 66px;
        right: 10px;
    }

    .skx-pick-scroll {
        padding: 0 16px 20px;
    }

    .skx-pick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .skx-toasts {
        bottom: 16px;
    }

    .skx-toast {
        min-width: 0;
    }
}

@media (max-width: 639px) {
    .skx-editor-head {
        gap: 10px;
        padding: 12px;
    }

    .skx-editor-kicker,
    .skx-editor-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .skx-editor-name {
        font-size: 18px;
    }

    .skx-rarity-pill {
        display: none;
    }

    .skx-seg-btn {
        gap: 6px;
        padding: 0 8px;
        font-size: 12.5px;
    }

    .skx-panel-side {
        padding: 16px;
    }

    .skx-panel-tabs {
        padding: 0 6px;
    }

    /* four tabs share the row, so «Брелок» with its star is not cut off */
    .skx-ptab {
        flex: 1 1 auto;
        justify-content: center;
        gap: 5px;
        padding: 0 8px;
    }

    .skx-ptab::after {
        left: 8px;
        right: 8px;
    }

    .skx-panel-content {
        padding: 16px;
    }

    .skx-3d-hint {
        display: none;
    }

    .skx-3d-tools {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-card,
    .skx-card-img,
    .skx-stage-img,
    .skx-editor,
    .skx-dialog,
    .skx-picker,
    .skx-toast {
        transition: none !important;
    }

    /* hover lifts and the skeleton shimmer move without telling anything */
    .skx-card:hover,
    .skx-card:hover .skx-card-img.is-loaded,
    .skx-pick:hover,
    .skx-play:hover {
        transform: none !important;
    }

    .skx-card.is-skeleton .skx-card-media,
    .skx-sk-line,
    .skx-skin.is-skeleton,
    .skx-lo .is-skeleton {
        animation: none !important;
    }
}

/* a layer's own box takes focus when nothing inside it does (pushLayer): no ring around the whole dialog */
.skx-dialog[tabindex="-1"]:focus,
.skx-sum[tabindex="-1"]:focus,
.skx-editor[tabindex="-1"]:focus,
.skx-picker[tabindex="-1"]:focus,
.skx-vp-pop[tabindex="-1"]:focus {
    outline: none;
}

/* ---------- Комплекти (saved loadouts): a dialog of cards ---------- */

.skx-sum.skx-sets {
    width: min(1104px, 100%);
    max-height: min(1000px, 100%);
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(90% 46% at 0% 0%, rgba(var(--glhf-accent-rgb), 0.055), transparent 60%),
        linear-gradient(180deg, #0f161b, var(--skx-surface) 240px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 50px 120px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* the dialog is as wide as its cards: one set does not sit in a hall of empty columns */
.skx-sum.skx-sets.is-cols-1 {
    width: min(580px, 100%);
}

.skx-sum.skx-sets.is-cols-2 {
    width: min(800px, 100%);
}

.skx-kits-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    padding: 22px 20px 18px 28px;
    border-bottom: 1px solid var(--skx-line);
}

.skx-kits-emblem {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(var(--glhf-accent-rgb), 0.2), rgba(var(--glhf-accent-rgb), 0.03));
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.32), 0 12px 28px -14px rgba(var(--glhf-accent-rgb), 0.65);
    color: var(--glhf-accent);
}

.skx-kits-titles {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.skx-kits-titles h3 {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--skx-ink);
}

.skx-kits-titles p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--skx-dim);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.skx-kits-head-end {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
}

.skx-kits-cap {
    display: grid;
    justify-items: end;
    gap: 6px;
    font-size: 12.5px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.skx-kits-cap b {
    font-weight: 700;
    color: var(--skx-ink);
}

.skx-kits-cap-bar {
    display: block;
    width: 72px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.skx-kits-cap-bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--glhf-accent);
}

.skx-kits-cap.is-full b {
    color: var(--skx-warn);
}

.skx-kits-cap.is-full .skx-kits-cap-bar i {
    background: var(--skx-warn);
}

.skx-kits-close {
    width: 40px;
    height: 40px;
    flex: none;
}

.skx-kits-body {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--skx-line-3) transparent;
}

/* the phone sheet's own «Зберегти поточний» (wider screens have it in the head) */
.skx-kits-foot {
    display: none;
}

/* nothing saved: the empty state has the button */
.skx-sets.is-empty .skx-kits-foot {
    display: none !important;
}

/* a dialog one card wide has no room in its head: the button goes under the card */
.skx-sets.is-cols-1 .skx-kits-head-end .skx-kits-save {
    display: none;
}

.skx-sets.is-cols-1:not(.is-empty) .skx-kits-foot {
    display: flex;
    flex: none;
    justify-content: flex-end;
    padding: 14px 28px 18px;
    border-top: 1px solid var(--skx-line);
}

.skx-kits-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(var(--skx-warn-rgb), 0.28);
    background: rgba(var(--skx-warn-rgb), 0.06);
    color: #f2d3a2;
    font-size: 13px;
    line-height: 1.5;
}

.skx-kits-note > .skx-ico {
    margin-top: 2px;
    color: var(--skx-warn);
}

.skx-kits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skx-sets.is-cols-2 .skx-kits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skx-sets.is-cols-1 .skx-kits-grid {
    grid-template-columns: minmax(0, 1fr);
}

/* one set */

.skx-kit {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid var(--skx-line-2);
    background: linear-gradient(180deg, var(--skx-surface-2), var(--skx-surface) 78%);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, box-shadow 0.3s var(--skx-ease), transform 0.3s var(--skx-ease), opacity 0.2s;
}

.skx-kit:focus-within {
    border-color: var(--skx-line-3);
}

.skx-kit.is-tried {
    border-style: dashed;
}

.skx-kit.is-busy {
    opacity: 0.6;
}

.skx-kit.is-applying {
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.18), 0 24px 54px -28px rgba(var(--glhf-accent-rgb), 0.4);
}

.skx-kit-stage {
    --kit-glow: #7b8794;
    position: relative;
    height: 178px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background:
        radial-gradient(58% 72% at 50% 60%, color-mix(in srgb, var(--kit-glow) 24%, transparent), transparent 72%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, #0c1216, #080c0f);
}

/* a thin line of the main item's rarity where the picture ends */
.skx-kit-stage::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kit-glow) 50%, transparent);
    opacity: 0.55;
}

.skx-kit-hero,
.skx-kit-half {
    position: absolute;
    inset: 0;
}

.skx-kit-stage img {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.35s, transform 0.45s var(--skx-ease);
}

.skx-kit-stage img.is-loaded {
    opacity: 1;
}

.skx-kit-stage img.is-broken {
    display: none;
}

.skx-kit-knife {
    top: 50%;
    left: 5%;
    width: 57%;
    transform: translateY(-56%);
}

.skx-kit-gloves {
    right: 3%;
    bottom: 5%;
    width: 46%;
}

.skx-kit-knife.is-alone,
.skx-kit-weapon {
    top: 50%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -52%);
}

.skx-kit-gloves.is-alone {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 54%;
    transform: translate(-50%, -50%);
}

.skx-kit-none {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-mute);
    transform: translate(-50%, -50%);
}

/* the two sides differ: CT on the left, T on the right, each in its own colour */
.skx-kit-stage.is-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skx-kit-half {
    position: relative;
    inset: auto;
}

.skx-kit-half.is-ct {
    background: radial-gradient(80% 70% at 50% 62%, rgba(var(--skx-ct-rgb, 126, 166, 242), 0.1), transparent 70%);
}

.skx-kit-half.is-t {
    background: radial-gradient(80% 70% at 50% 62%, rgba(var(--skx-t-rgb, 227, 173, 79), 0.1), transparent 70%);
}

.skx-kit-half + .skx-kit-half::before {
    content: '';
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--skx-line-3), transparent);
}

.skx-kit-half .skx-kit-knife {
    top: 52%;
    left: 50%;
    width: 78%;
    transform: translate(-56%, -56%);
}

.skx-kit-half .skx-kit-gloves {
    right: 2%;
    bottom: 4%;
    width: 56%;
}

.skx-kit-half .skx-kit-knife.is-alone,
.skx-kit-half .skx-kit-gloves.is-alone {
    top: 52%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 84%;
    transform: translate(-50%, -50%);
}

.skx-kit-tag,
.skx-kit-only {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skx-kit-tag.is-ct,
.skx-kit-only.is-ct {
    background: linear-gradient(rgba(126, 166, 242, 0.14), rgba(126, 166, 242, 0.14)), rgba(8, 12, 15, 0.82);
    box-shadow: inset 0 0 0 1px rgba(126, 166, 242, 0.3);
    color: var(--skx-ct);
}

.skx-kit-tag.is-t,
.skx-kit-only.is-t {
    background: linear-gradient(rgba(227, 173, 79, 0.14), rgba(227, 173, 79, 0.14)), rgba(8, 12, 15, 0.82);
    box-shadow: inset 0 0 0 1px rgba(227, 173, 79, 0.3);
    color: var(--skx-t);
}

.skx-kit-only {
    letter-spacing: 0.02em;
    text-transform: none;
}

/* the emblem is not one of the stage's fading pictures */
.skx-kit-stage img.skx-kit-tag {
    width: 26px;
    height: auto;
    padding: 0;
    border-radius: 50%;
    background: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    filter: none;
    opacity: 1;
}

/* agents: small portraits in the corner, ringed in their side's colour */
.skx-kit-agents {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
}

.skx-kit-agent {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--skx-ct);
    background: #121a20;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}

.skx-kit-agent.is-t {
    border-color: var(--skx-t);
}

.skx-kit-agents .skx-kit-agent + .skx-kit-agent {
    margin-left: -8px;
}

.skx-kit-half > .skx-kit-agent {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.skx-kit-stage .skx-kit-agent img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    filter: none;
    transform: scale(1.25);
    transform-origin: 50% 20%;
}

/* the rarest weapons under the picture; the last tile counts the rest */
.skx-kit-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 14px 0;
}

.skx-kit-tile {
    --rarity: transparent;
    position: relative;
    display: grid;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    border: 1px solid var(--skx-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
    color: var(--skx-dim);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.skx-kit-tile::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--rarity);
    opacity: 0.9;
}

.skx-kit-tile img {
    width: 86%;
    height: auto;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

.skx-kit-tile img.is-broken {
    display: none;
}

.skx-kit-tile.is-blank {
    border-style: dashed;
    background: none;
}

.skx-kit-info {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 14px 16px 0;
}

.skx-kit-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--skx-ink);
}

.skx-kit-name > span {
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-kit-name .skx-tried {
    flex: none;
}

.skx-kit-date {
    margin: 0;
    font-size: 12.5px;
    color: var(--skx-mute);
}

.skx-kit-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    /* room for «без ціни» hanging over it from the value (and for its focus ring); every card
       gets it, so the rows of a grid keep one rhythm */
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--skx-dim);
    font-variant-numeric: tabular-nums;
}

.skx-kit-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.skx-kit-stat > .skx-ico {
    color: var(--skx-mute);
}

.skx-kit-stat.is-zero {
    color: var(--skx-mute);
}

.skx-kit-actions {
    position: relative;
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 16px;
}

.skx-kit-go {
    flex: 1;
    min-width: 0;
}

/* a grid of solid green slabs shouts: on a card the main button is a calm green until it is pointed at */
.skx-kit-go.skx-btn--primary {
    border-color: rgba(var(--glhf-accent-rgb), 0.34);
    background: rgba(var(--glhf-accent-rgb), 0.1);
    box-shadow: none;
    color: var(--glhf-accent);
}

.skx-kit-go.skx-btn--primary:hover:not(:disabled),
.skx-kit-go.skx-btn--primary:focus-visible {
    border-color: var(--glhf-accent);
    background: var(--glhf-accent);
    box-shadow: 0 10px 26px -12px rgba(var(--glhf-accent-rgb), 0.6);
    color: #04110a;
}

.skx-kit-go.skx-btn--primary:disabled {
    border-color: var(--skx-line);
    background: var(--skx-surface-3);
    color: var(--skx-mute);
}

.skx-kit-go .skx-sets-btn-label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}

.skx-sets .skx-btn--primary.is-busy:disabled,
.skx-sets .skx-btn--ghost.is-busy:disabled {
    border-color: rgba(var(--glhf-accent-rgb), 0.35);
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    opacity: 1;
}

.skx-kit-more {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-dim);
}

.skx-kit-more:hover:not(:disabled),
.skx-kit-more[aria-expanded="true"] {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

.skx-kit-more:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.skx-kit-progress {
    position: absolute;
    top: -1px;
    right: 14px;
    left: 14px;
    z-index: 2;
    height: 3px;
    overflow: hidden;
    border-radius: 0 0 3px 3px;
    background: rgba(255, 255, 255, 0.08);
}

.skx-kit-progress i {
    display: block;
    height: 100%;
    background: var(--glhf-accent);
    box-shadow: 0 0 10px rgba(var(--glhf-accent-rgb), 0.8);
    transition: width 0.5s var(--skx-ease);
}

/* «⋯»: rename, overwrite, delete */
.skx-kit-menu {
    position: absolute;
    right: 16px;
    bottom: calc(100% - 10px);
    z-index: 5;
    display: grid;
    min-width: 252px;
    padding: 6px;
    border-radius: 13px;
    border: 1px solid var(--skx-line-3);
    background: #121a20;
    box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.4);
    transform-origin: 100% 100%;
    animation: skx-kit-menu 0.16s var(--skx-ease);
}

@keyframes skx-kit-menu {
    from { opacity: 0; transform: translateY(4px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.skx-kit-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--skx-ink);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}

.skx-kit-menu-item > .skx-ico {
    color: var(--skx-dim);
}

.skx-kit-menu-item:hover,
.skx-kit-menu-item:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
}

.skx-kit-menu-item.is-danger,
.skx-kit-menu-item.is-danger > .skx-ico {
    color: #ff7b7b;
}

.skx-kit-menu-item.is-danger:hover,
.skx-kit-menu-item.is-danger:focus-visible {
    background: rgba(239, 93, 93, 0.1);
}

.skx-kit-menu-sep {
    display: block;
    height: 1px;
    margin: 5px 8px;
    background: var(--skx-line-2);
}

/* while the list loads */
.skx-kit.is-skeleton {
    pointer-events: none;
}

.skx-kit.is-skeleton .skx-kit-stage,
.skx-kit.is-skeleton .skx-kit-tile {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%;
    animation: skx-shimmer 1.6s ease-in-out infinite;
}

.skx-kit.is-skeleton .skx-kit-stage::after,
.skx-kit.is-skeleton .skx-kit-tile::after {
    display: none;
}

.skx-kit.is-skeleton .skx-kit-info {
    padding-bottom: 22px;
}

/* nothing saved yet */
.skx-kits-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
    text-align: center;
}

.skx-kits-empty-art {
    display: grid;
    place-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.skx-kits-empty-img {
    width: min(260px, 70%);
    height: auto;
}

.skx-kits-empty-ring {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(var(--glhf-accent-rgb), 0.16), rgba(var(--glhf-accent-rgb), 0.02));
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.28), 0 20px 50px -20px rgba(var(--glhf-accent-rgb), 0.55);
    color: var(--glhf-accent);
}

.skx-kits-empty h4 {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 20px;
    color: var(--skx-ink);
}

.skx-kits-empty p {
    max-width: 420px;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--skx-dim);
}

/* «Повернути як було» and what a run left undone */

.skx-sets-text {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.skx-sets-text strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
    font-size: 15px;
}

.skx-sets-undo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    border: 1px dashed var(--skx-line-3);
    background: rgba(255, 255, 255, 0.02);
}

/* a mouse over a card lifts it a little; a reduced-motion setting keeps it still */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .skx-kit:hover {
        border-color: var(--skx-line-3);
        box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transform: translateY(-2px);
    }

    .skx-kit:hover .skx-kit-knife:not(.is-alone) {
        transform: translateY(-56%) scale(1.03);
    }

    .skx-kit:hover .skx-kit-gloves:not(.is-alone) {
        transform: scale(1.03);
    }

    .skx-kit:hover .skx-kit-half .skx-kit-knife:not(.is-alone) {
        transform: translate(-56%, -56%) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-kit,
    .skx-kit-stage img,
    .skx-kit-progress i {
        transition: none !important;
    }

    .skx-kit-menu,
    .skx-kit.is-skeleton .skx-kit-stage,
    .skx-kit.is-skeleton .skx-kit-tile {
        animation: none !important;
    }
}

/* four columns on very wide screens, two on tablets, one on phones */
@media (min-width: 1680px) {
    .skx-sum.skx-sets {
        max-height: min(1180px, 100%);
    }

    .skx-sum.skx-sets.is-cols-4 {
        width: min(1440px, 100%);
    }

    .skx-sets.is-cols-4 .skx-kits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 959px) {
    .skx-sum.skx-sets {
        width: min(800px, 100%);
    }

    .skx-sum.skx-sets.is-cols-1 {
        width: min(580px, 100%);
    }

    .skx-sets .skx-kits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skx-sets.is-cols-1 .skx-kits-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 639px) {
    /* one column whatever the count: the is-cols-* rules above are more specific, so they are named here too */
    .skx-sets .skx-kits-grid,
    .skx-sets[class*="is-cols-"] .skx-kits-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .skx-kits-head {
        gap: 12px;
        padding: 6px 10px 14px 16px;
    }

    .skx-kits-emblem {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .skx-kits-titles h3 {
        font-size: 19px;
    }

    .skx-kits-titles p,
    .skx-kits-head-end .skx-kits-save {
        display: none;
    }

    .skx-kits-cap-bar {
        width: 52px;
    }

    .skx-kits-close {
        width: 44px;
        height: 44px;
    }

    .skx-kits-body {
        gap: 14px;
        padding: 16px 16px 20px;
    }

    /* «Зберегти поточний» under the thumb */
    .skx-kits-foot {
        display: flex;
        flex: none;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--skx-line);
        background: rgba(11, 16, 20, 0.96);
    }

    .skx-kits-foot .skx-kits-save {
        flex: 1;
        height: 48px;
    }

    .skx-sets.is-cols-1:not(.is-empty) .skx-kits-foot {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .skx-kit-stage {
        height: 170px;
    }

    .skx-kit-actions {
        padding: 14px;
    }

    .skx-kit-info {
        padding: 14px 14px 0;
    }

    .skx-kit-go {
        height: 48px;
    }

    .skx-kit-more {
        width: 48px;
        height: 48px;
    }

    .skx-kit-menu {
        right: 14px;
        left: 14px;
        min-width: 0;
    }

    .skx-kit-menu-item {
        height: 48px;
        font-size: 14.5px;
    }

    .skx-kits-empty {
        padding-top: 18px;
    }
}

/* upright phones: a sheet the height of the screen */
@media (max-width: 639px) and (orientation: portrait) {
    .skx-dialog-wrap.is-kits > .skx-sum.skx-sets {
        width: 100%;
        height: calc(100% - max(10px, env(safe-area-inset-top)));
        max-height: none;
        padding-bottom: 0;
    }

    /* nothing saved: as tall as its content, but never taller than the screen
       (try mode adds the upsell and the note: the body scrolls under the head) */
    .skx-dialog-wrap.is-kits > .skx-sum.skx-sets.is-empty {
        height: auto;
        max-height: calc(100% - max(10px, env(safe-area-inset-top)));
    }
}

/* phones on their side: the head gets out of the way of the cards */
@media (max-height: 500px) and (orientation: landscape) {
    .skx-kits-head {
        padding: 12px 14px 12px 20px;
    }

    .skx-kits-titles p {
        display: none;
    }

    .skx-kits-body {
        padding: 16px 20px 20px;
    }

    .skx-kit-stage {
        height: 140px;
    }
}

.skx-sets-undo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

.skx-sets-undo .skx-btn {
    flex: none;
}

.skx-sets-report {
    display: flex;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 93, 93, 0.35);
    background: rgba(239, 93, 93, 0.06);
}

.skx-sets-report-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: rgba(239, 93, 93, 0.14);
    color: var(--skx-danger);
}

.skx-sets-report-body {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
}

.skx-sets-report-body strong {
    padding-top: 4px;
    color: var(--skx-ink);
    font-size: 14.5px;
}

.skx-sets-report-list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0 0 0 18px;
    color: var(--skx-ink);
}

.skx-sets-report-list .is-more {
    margin-left: -18px;
    list-style: none;
    color: var(--skx-mute);
}

.skx-sets-report p {
    margin: 0;
    color: var(--skx-dim);
}

.skx-sets-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.skx-prompt-input {
    width: 100%;
    margin: 14px 0 4px;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-bg);
    color: var(--skx-text);
    font: inherit;
    font-size: 15px;
    outline: none;
}

.skx-prompt-input:focus {
    border-color: var(--skx-accent, #ffb347);
}

@media (max-width: 639px) {
    .skx-sets-undo {
        flex-wrap: wrap;
    }

    .skx-sets-undo .skx-btn {
        width: 100%;
    }

    .skx-sets-btn-label {
        overflow: hidden;
        min-width: 0;
        text-overflow: ellipsis;
    }
}

/* one card a row leaves room for «Застосовую… 4 з 12»; the narrowest phones make room by dropping the spinner
   (the bar on top of the card shows the run) and a pixel of type */
@media (max-width: 359px) {
    .skx-kit.is-applying .skx-kit-go {
        padding-inline: 12px;
        font-size: 13px;
    }

    .skx-kit.is-applying .skx-kit-go .skx-spinner {
        display: none;
    }
}

/* ---------- hands mode ---------- */

.skx-3d-btn.is-active {
    background: var(--skx-accent, #35e36a);
    color: #061008;
    box-shadow: none;
}

.skx-3d-btn.is-busy {
    opacity: 0.6;
    cursor: progress;
}

/* ---------- player bar: narrower screens ---------- */

@media (max-width: 1279px) {
    .skx-bar-btn {
        width: 40px;
        padding: 0;
    }

    .skx-bar-btn .skx-bar-label {
        display: none;
    }
}

/* tablets: one row would not fit (825 px at 768), so who + actions on top, the counts below */
@media (min-width: 640px) and (max-width: 1023px) {
    .skx-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "id act" "kpi kpi";
        gap: 10px 12px;
        padding: 10px;
    }

    .skx-bar-id {
        grid-area: id;
    }

    .skx-bar-sep {
        display: none;
    }

    .skx-bar-actions {
        grid-area: act;
    }

    .skx-bar-kpis {
        grid-area: kpi;
        padding-top: 8px;
        border-top: 1px solid var(--skx-line);
    }

    .skx-kpi {
        flex: 1;
    }
}

@media (max-width: 639px) {
    .skx-hero {
        padding-bottom: 16px;
    }

    .skx-bar {
        flex-wrap: wrap;
        gap: 10px 8px;
        min-height: 0;
        padding: 10px;
        border-radius: 14px;
    }

    .skx-bar-id {
        flex: 1 1 0;
    }

    .skx-acc-trigger,
    .skx-acc-static {
        max-width: 100%;
    }

    .skx-bar-sep {
        display: none;
    }

    /* the action buttons join the bar's own rows: icons by the name, sets at the bottom */
    .skx-bar-actions {
        display: contents;
    }

    .skx-bar-btn {
        order: 1;
    }

    .skx-bar-kpis {
        order: 2;
        flex: 1 1 100%;
        gap: 0;
        padding-top: 8px;
        border-top: 1px solid var(--skx-line);
    }

    .skx-kpi {
        flex: 1;
        padding: 6px 8px;
    }

    .skx-kpi strong {
        font-size: 19px;
    }

    .skx-kpi span {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .skx-bar-sets {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ---------- the MonoBase role is gone: what goes or went, «Повернути» (inc/skinchanger-lapse.php) ---------- */

.skx-lapse-list {
    display: grid;
    gap: 10px;
}

.skx-lapse {
    display: flex;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(227, 173, 79, 0.32);
    background: rgba(227, 173, 79, 0.06);
}

.skx-lapse.is-back {
    border-color: rgba(var(--glhf-accent-rgb), 0.35);
    background: rgba(var(--glhf-accent-rgb), 0.06);
}

.skx-lapse-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: rgba(227, 173, 79, 0.14);
    color: var(--skx-t);
}

.skx-lapse.is-back .skx-lapse-mark {
    background: rgba(var(--glhf-accent-rgb), 0.14);
    color: var(--glhf-accent);
}

.skx-lapse-body {
    display: grid;
    gap: 6px;
    min-width: 0;
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.skx-lapse-kicker {
    color: var(--skx-mute);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.skx-lapse-body strong {
    padding-top: 4px;
    color: var(--skx-ink);
    font-size: 14.5px;
}

.skx-lapse-body p {
    margin: 0;
    max-width: 78ch;
    color: var(--skx-dim);
}

.skx-lapse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 639px) {
    .skx-lapse {
        gap: 10px;
        padding: 12px;
    }

    .skx-lapse-mark {
        width: 26px;
        height: 26px;
    }

    .skx-lapse-actions .skx-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ---------- servers not answering mid-session: one line under the bar ---------- */

.skx-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--skx-warn-rgb), 0.3);
    background: rgba(var(--skx-warn-rgb), 0.07);
    font-size: 13px;
    line-height: 1.45;
    color: var(--skx-dim);
}

.skx-banner > .skx-ico {
    color: var(--skx-warn);
}

.skx-banner-text {
    flex: 1;
    min-width: 0;
}

.skx-banner .skx-btn {
    flex: none;
}

@media (max-width: 639px) {
    .skx-banner {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .skx-banner-text {
        flex-basis: calc(100% - 28px);
    }

    .skx-banner .skx-btn {
        margin-left: 28px;
        padding: 0 10px;
    }
}

/* ---------- outage screens: game servers, account data, Discord, network (renderDown) ---------- */

.skx-down {
    --down-rgb: var(--skx-warn-rgb);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 100%;
    max-width: 640px;
    margin: 40px auto 24px;
    padding: 44px 32px 32px;
    border-radius: 26px;
    border: 1px solid rgba(var(--down-rgb), 0.22);
    background:
        radial-gradient(70% 55% at 50% 0%, rgba(var(--down-rgb), 0.11), transparent 70%),
        var(--skx-surface);
    box-shadow: var(--skx-shadow);
    text-align: center;
    animation: skx-down-in 0.45s var(--skx-ease);
    transition: opacity 0.3s, transform 0.3s var(--skx-ease);
}

.skx-down.is-offline {
    --down-rgb: 154, 165, 176;
}

.skx-down.is-leaving {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
}

/* a faint grid that fades out from the scene */
.skx-down::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 100%;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 80%);
    mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 80%);
    pointer-events: none;
}

/* a hairline of light on the top edge */
.skx-down::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--down-rgb), 0.7) 30%, rgba(255, 255, 255, 0.15) 60%, transparent);
    pointer-events: none;
}

.skx-down-scene {
    position: relative;
    width: 240px;
    height: 170px;
    margin-bottom: 8px;
}

.skx-down-radar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 230px;
    height: 230px;
    margin: -115px 0 0 -115px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--down-rgb), 0.22) 40deg, transparent 70deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 98%, transparent);
    mask-image: radial-gradient(closest-side, #000 98%, transparent);
    animation: skx-spin 4.5s linear infinite;
}

.skx-down-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(var(--down-rgb), 0.18);
    transform: translate(-50%, -50%);
}

.skx-down-ring.r1 {
    width: 230px;
    height: 230px;
}

.skx-down-ring.r2 {
    width: 160px;
    height: 160px;
    border-style: dashed;
}

/* a ping that keeps going out from the rack */
.skx-down-ring.r3 {
    width: 240px;
    height: 240px;
    border-color: rgba(var(--down-rgb), 0.4);
    opacity: 0;
    animation: skx-ping 2.4s ease-out infinite;
}

@keyframes skx-ping {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.29); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes skx-blink {
    50% { opacity: 0.15; }
}

@keyframes skx-down-in {
    from { opacity: 0; transform: translateY(8px); }
}

.skx-down-rack {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    gap: 7px;
    width: 150px;
    transform: translate(-50%, -50%);
}

.skx-down-blade {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    background: linear-gradient(180deg, #1b252e, #121a21);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 6px 14px rgba(0, 0, 0, 0.5);
}

.skx-down-blade i {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: #3a434c;
}

.skx-down-blade i.is-red {
    background: #ef5d5d;
    box-shadow: 0 0 8px #ef5d5d;
    animation: skx-blink 1.2s steps(2, end) infinite;
}

.skx-down-blade i.is-amber {
    background: #f2c94c;
    box-shadow: 0 0 8px rgba(242, 201, 76, 0.8);
    animation: skx-blink 1.9s steps(2, end) infinite;
}

/* the vent stripe */
.skx-down-blade b {
    flex: 1;
    height: 4px;
    margin-left: 6px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 9px);
}

.skx-down-blade em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--skx-dim);
    white-space: nowrap;
}

/* the "unplugged" badge */
.skx-down-plug {
    position: absolute;
    right: 10px;
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #1c140a;
    box-shadow:
        inset 0 0 0 1px rgba(var(--skx-warn-rgb), 0.5),
        0 8px 18px rgba(0, 0, 0, 0.5);
    color: var(--skx-warn);
}

/* no network: the signal icon instead of the rack */
.skx-down-wifi {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(closest-side, #172028, #0d1216);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.5);
    color: var(--skx-dim);
    transform: translate(-50%, -50%);
}

.skx-down h2 {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--skx-ink);
}

.skx-down p {
    max-width: 460px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--skx-dim);
}

.skx-down-rows {
    display: grid;
    gap: 6px;
    width: min(360px, 100%);
    margin-top: 4px;
}

.skx-down-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--skx-surface-2);
    box-shadow: inset 0 0 0 1px var(--skx-line);
    font-size: 13.5px;
    color: var(--skx-dim);
}

.skx-down-row strong {
    margin-left: auto;
    font-size: 12.5px;
    color: #ff8a8a;
    white-space: nowrap;
}

.skx-down-row strong.is-ok {
    color: var(--glhf-accent);
}

.skx-down-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #ef5d5d;
    box-shadow: 0 0 8px rgba(239, 93, 93, 0.8);
    animation: skx-blink 1.2s steps(2, end) infinite;
}

.skx-down-dot.is-ok {
    background: var(--glhf-accent);
    box-shadow: 0 0 8px rgba(var(--glhf-accent-rgb), 0.7);
    animation: none;
}

.skx-down-retry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.skx-down-retry .skx-btn {
    min-width: 220px;
}

.skx-down-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
    font-size: 13px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-down-timer.is-hidden {
    visibility: hidden;
}

.skx-down-timer svg {
    flex: none;
    transform: rotate(-90deg);
}

.skx-down-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.4;
}

.skx-down-ring-fg {
    stroke: var(--skx-warn);
    stroke-width: 2.4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.skx-down.is-offline .skx-down-ring-fg {
    stroke: var(--skx-dim);
}

.skx-down-timer b {
    color: var(--skx-ink);
    font-weight: 700;
}

.skx-down-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: stretch;
    gap: 8px 18px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--skx-line);
    font-size: 12.5px;
    color: var(--skx-mute);
}

.skx-down-foot a {
    color: var(--skx-dim);
    text-decoration: none;
}

.skx-down-foot a:hover {
    color: var(--skx-ink);
    text-decoration: underline;
}

/* administrators: the raw reason in small print */
.skx-down-detail {
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    color: var(--skx-mute);
    overflow-wrap: anywhere;
}

@media (max-width: 639px) {
    .skx-down {
        margin: 16px 0;
        padding: 30px 18px 22px;
        border-radius: 20px;
    }

    .skx-down-scene {
        margin: -12px 0 -18px;
        transform: scale(0.85);
    }

    .skx-down-retry {
        align-self: stretch;
    }

    .skx-down-retry .skx-btn {
        width: 100%;
        min-width: 0;
    }

    .skx-down-foot {
        gap: 6px 14px;
    }
}

/* phone on its side: the card fits under the site header */
@media (max-height: 500px) and (orientation: landscape) {
    .skx-down {
        margin: 12px auto;
        padding: 22px 24px 18px;
        gap: 10px;
    }

    .skx-down-scene,
    .skx-down-rows {
        display: none;
    }

    .skx-down-retry {
        margin-top: 2px;
    }

    .skx-down-foot {
        margin-top: 4px;
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-down,
    .skx-down-radar,
    .skx-down-ring.r3,
    .skx-down-dot,
    .skx-down-blade i {
        animation: none !important;
    }

    .skx-down,
    .skx-down-ring-fg {
        transition: none;
    }

    .skx-down-ring.r3 {
        opacity: 0;
    }
}

/* ---------- 3D fallback: why the stage shows the photo (or the stand) ---------- */

.skx-stage-notice {
    position: absolute;
    z-index: 6;
    /* under the view switch */
    top: 58px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 7px 7px 7px 12px;
    border-radius: 11px;
    background: rgba(26, 20, 8, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-warn-rgb), 0.4), var(--skx-shadow);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--skx-dim);
    transform: translateX(-50%);
    animation: skx-notice-in 0.3s var(--skx-ease);
}

.skx-stage-notice[hidden] {
    display: none;
}

/* no model for this skin yet: said, not warned */
.skx-stage-notice.is-quiet {
    padding-right: 12px;
    background: rgba(8, 11, 14, 0.88);
    box-shadow: inset 0 0 0 1px var(--skx-line-2), var(--skx-shadow);
}

.skx-stage-notice > .skx-ico {
    color: var(--skx-warn);
}

.skx-stage-notice.is-quiet > .skx-ico {
    color: var(--skx-dim);
}

.skx-stage-notice button {
    flex: none;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.skx-stage-notice button:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
}

.skx-stage-notice button:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

@keyframes skx-notice-in {
    from { opacity: 0; transform: translate(-50%, -6px); }
}

@media (max-width: 639px) {
    .skx-stage-notice {
        top: 54px;
        left: 12px;
        right: 12px;
        max-width: none;
        transform: none;
        animation-name: skx-notice-in-phone;
    }

    .skx-stage-notice span {
        flex: 1;
        min-width: 0;
    }

    @keyframes skx-notice-in-phone {
        from { opacity: 0; transform: translateY(-6px); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-stage-notice {
        animation: none;
    }
}

/* ============================================================
   Try mode («Режим примірки»): everything works, nothing is saved.
   Gold (--skx-sub) is the subscription: the call to action, the stars and
   the strips over parts that need «Активний». "Tried, not saved" is a
   dashed outline with a neutral «Примірка» tag, so T screens stay calm.
   ============================================================ */

.skx-btn--sub {
    border: 0;
    background: linear-gradient(180deg, #ffd24f, var(--skx-sub) 52%, var(--skx-sub-2));
    color: #1d1200;
    font-weight: 700;
    box-shadow: 0 10px 28px -12px rgba(var(--skx-sub-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.skx-btn--sub:hover:not(:disabled) {
    color: #1d1200;
    filter: brightness(1.06);
}

.skx-btn--discord {
    background: var(--glhf-discord);
    color: #fff;
    box-shadow: 0 10px 28px -12px rgba(var(--glhf-discord-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.skx-btn--discord:hover:not(:disabled) {
    color: #fff;
    filter: brightness(1.08);
}

.skx-star {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--skx-sub-rgb), 0.14);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.32);
    color: var(--skx-sub);
}

.skx-star.is-sm {
    width: 18px;
    height: 18px;
}

.skx-ptab .skx-star .skx-ico,
.skx-tab .skx-star .skx-ico,
.skx-label .skx-star .skx-ico {
    color: var(--skx-sub);
}

.skx-ptab .skx-star {
    width: 18px;
    height: 18px;
}

.skx-label .skx-star {
    width: 17px;
    height: 17px;
}

.skx-label:has(.skx-star) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ---------- the bar in place of the player bar ---------- */

.skx-try {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(var(--skx-sub-rgb), 0.32);
    background:
        radial-gradient(70% 160% at 100% 0%, rgba(var(--skx-sub-rgb), 0.13), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        var(--skx-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 22px 50px -30px rgba(0, 0, 0, 0.95);
}

.skx-try::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--skx-sub-rgb), 0.8) 18%, rgba(255, 255, 255, 0.18) 55%, transparent);
    pointer-events: none;
}

.skx-try-emblem {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(var(--skx-sub-rgb), 0.22), rgba(var(--skx-sub-rgb), 0.04));
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.4);
    color: var(--skx-sub);
}

.skx-try-text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.skx-try-k {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--skx-sub);
}

.skx-try-text strong {
    font-family: var(--glhf-font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--skx-ink);
}

.skx-try-text > span:not(.skx-try-k) {
    font-size: 13px;
    line-height: 1.45;
    color: var(--skx-dim);
}

.skx-try-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.skx-cta-short {
    display: none;
}

.skx-try-fold {
    width: 40px;
    height: 40px;
    color: var(--skx-mute);
}

.skx-try-fold.is-open .skx-ico {
    transform: rotate(180deg);
}

/* from the second visit: a slim strip */
.skx-try.is-folded {
    min-height: 56px;
    padding: 7px 8px 7px 10px;
    gap: 12px;
}

.skx-try.is-folded .skx-try-emblem {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.skx-try.is-folded .skx-try-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
}

.skx-try.is-folded .skx-try-fold {
    width: 36px;
    height: 36px;
}

/* «Приміряно: 3 · Прибрати» */
.skx-lo-tried {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    min-height: 40px;
    max-width: 100%;
    padding: 4px 4px 4px 12px;
    border-radius: 11px;
    border: 1px dashed var(--skx-line-3);
    background: rgba(8, 11, 14, 0.5);
    font-size: 13px;
    color: var(--skx-dim);
}

.skx-lo-tried > .skx-ico {
    color: var(--skx-dim);
}

.skx-lo-tried strong {
    color: var(--skx-ink);
    white-space: nowrap;
}

.skx-lo-tried-note {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-mute);
}

.skx-lo-tried-btn {
    flex: none;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.skx-lo-tried-btn:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
}

/* tried (in memory) cards: dashed = not saved */
.skx-card.is-tried {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--rarity) 40%, var(--skx-line-3));
}

.skx-card.is-equipped.is-tried {
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
}

.skx-tried {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
    margin-right: 7px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(8, 11, 14, 0.78);
    box-shadow: inset 0 0 0 1px var(--skx-line-3);
    color: var(--skx-dim);
    font-size: 10.5px;
    font-weight: 700;
    vertical-align: 1px;
}

.skx-tried .skx-ico {
    display: inline-block;
}

/* ---------- editor ---------- */

.skx-try-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px dashed var(--skx-line-3);
    color: var(--skx-dim);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.skx-try-pill + .skx-rarity-pill {
    margin-left: -8px;
}

.skx-try-strip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(var(--skx-sub-rgb), 0.07);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.26);
    font-size: 12.5px;
    line-height: 1.5;
    color: #e9d6a8;
}

.skx-try-strip > .skx-ico {
    margin-top: 1px;
    color: var(--skx-sub);
}

.skx-try-strip b {
    color: #fff3d6;
}

.skx-body > .skx-try-strip {
    max-width: 760px;
    margin-bottom: 16px;
}

/* the try footer is stacked at every size: the panel is narrow */
.skx-panel-foot:has(.skx-foot-try) {
    display: block;
}

.skx-foot-try {
    display: grid;
    gap: 10px;
    width: 100%;
}

.skx-foot-try-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--skx-dim);
}

.skx-foot-try-note .skx-ico {
    flex: none;
    color: var(--glhf-discord);
}

.skx-foot-try-row {
    display: grid;
    gap: 8px;
}

.skx-foot-try-row .skx-btn {
    width: 100%;
    min-width: 0;
}

/* «Застосувати без стікерів, брелока і свого напису» takes two lines on a phone */
.skx-foot-try-row .skx-btn--ghost {
    height: auto;
    min-height: 38px;
    padding-block: 7px;
    white-space: normal;
    line-height: 1.25;
}

.skx-foot-try-alts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
}

.skx-foot-try-alt {
    justify-self: center;
    padding: 2px 6px;
    border: 0;
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--skx-line-3);
    cursor: pointer;
}

.skx-foot-try-alt:hover:not(:disabled) {
    color: var(--skx-ink);
}

.skx-foot-try-alt:disabled {
    opacity: 0.5;
    text-decoration: none;
    cursor: default;
}

/* ---------- Комплекти below «Активний»: saved for everyone, applied with a subscription ---------- */

/* one quiet line over the cards: why the sets cannot go into the game whole, and the way there */
.skx-kits-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(var(--skx-sub-rgb), 0.07), rgba(var(--skx-sub-rgb), 0.02) 70%);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.18);
}

.skx-kits-hint-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--skx-sub-rgb), 0.13);
    color: var(--skx-sub);
}

.skx-kits-hint p {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #e3d5b4;
}

.skx-kits-hint-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--skx-sub);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.18s, color 0.18s;
}

.skx-kits-hint-go:hover,
.skx-kits-hint-go:focus-visible {
    background: rgba(var(--skx-sub-rgb), 0.12);
    color: #ffd25e;
}

.skx-kits-hint-go:focus-visible {
    outline: 2px solid rgba(var(--skx-sub-rgb), 0.6);
    outline-offset: 1px;
}

.skx-kits-hint.is-guest {
    background: linear-gradient(90deg, rgba(var(--glhf-discord-rgb), 0.1), rgba(var(--glhf-discord-rgb), 0.02) 70%);
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-discord-rgb), 0.24);
}

.skx-kits-hint.is-guest .skx-kits-hint-ic {
    background: rgba(var(--glhf-discord-rgb), 0.16);
    color: #a5adff;
}

.skx-kits-hint.is-guest p {
    color: var(--skx-dim);
}

.skx-kits-hint.is-guest .skx-kits-hint-go {
    background: var(--glhf-discord);
    color: #fff;
}

.skx-kits-hint.is-guest .skx-kits-hint-go:hover,
.skx-kits-hint.is-guest .skx-kits-hint-go:focus-visible {
    filter: brightness(1.08);
}

/* try mode: «Комплекти» next to «Поділитися» on «Мій набір», with the count in the page's green */
.skx-lo-sets {
    flex: none;
}

.skx-lo-sets > .skx-ico {
    color: var(--glhf-accent);
}

.skx-lo-sets .skx-sets-count {
    min-width: 20px;
    margin-right: -4px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: rgba(var(--glhf-accent-rgb), 0.16);
    color: var(--glhf-accent);
}

/* a small gold star on what waits for «Активний» (no lock: it is saved, just not in the game yet) */
.skx-star.is-xs {
    width: 16px;
    height: 16px;
}

.skx-kit-stat.is-later {
    color: #e3d5b4;
}

.skx-kit-stat.is-later .skx-star {
    margin-left: -1px;
}

/* try mode: the card's «Застосувати» is the members' calm button with a star; it opens what applying takes */
.skx-kit-go.is-later .skx-star {
    margin-left: 2px;
    background: rgba(var(--skx-sub-rgb), 0.16);
}

.skx-kit-go.is-later:hover .skx-star,
.skx-kit-go.is-later:focus-visible .skx-star {
    background: rgba(4, 17, 10, 0.22);
    box-shadow: inset 0 0 0 1px rgba(4, 17, 10, 0.3);
    color: #04110a;
}

/* a question that goes without some of the set: what and why, and the way to all of it */
.skx-dialog-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(var(--skx-sub-rgb), 0.06);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.22);
}

.skx-dialog-note > .skx-ico {
    flex: none;
    margin-top: 2px;
    color: var(--skx-sub);
}

.skx-dialog-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #e3d5b4;
}

.skx-dialog-note b {
    color: #fff3d6;
}

.skx-dialog-note-go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: var(--skx-sub);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.skx-dialog-note-go:hover,
.skx-dialog-note-go:focus-visible {
    color: #ffd25e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* a guest's «Зберегти»: the sign-in leads, this tab only is the quiet way under it */
.skx-guest-save .skx-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.skx-guest-save .skx-dialog-actions .skx-btn {
    width: 100%;
    height: 46px;
}

.skx-guest-save .skx-dialog-actions .skx-btn--discord {
    order: -1;
}

/* «Застосувати» in try mode: the set itself, saved, and what it takes to put it in the game */
/* the picture with its close button and the buttons stay; the text between them scrolls when it must */
.skx-sum.skx-upsell {
    width: min(460px, 100%);
    max-height: min(780px, 100%);
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, #0f161b, var(--skx-surface) 320px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 50px 120px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skx-upsell-art {
    position: relative;
    flex: none;
}

.skx-upsell-art .skx-kit-stage {
    height: 196px;
    border-radius: 21px 21px 0 0;
}

/* the close button keeps the top right corner: the agents move to the left */
.skx-upsell-art .skx-kit-agents,
.skx-upsell-art .skx-kit-half > .skx-kit-agent {
    right: auto;
    left: 12px;
}

.skx-upsell-art .skx-kit-half.is-ct > .skx-kit-agent {
    left: 44px;
}

.skx-upsell-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 15, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.skx-upsell-body {
    display: grid;
    flex: 1 1 auto;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 26px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--skx-line-3) transparent;
}

.skx-upsell-k {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glhf-accent);
}

.skx-upsell-body h3 {
    overflow: hidden;
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 24px;
    line-height: 1.15;
    color: var(--skx-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skx-upsell-body > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--skx-dim);
}

.skx-upsell-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--skx-line);
    background: rgba(255, 255, 255, 0.025);
}

.skx-upsell-value-k {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: var(--skx-dim);
}

.skx-upsell-value-k > .skx-ico {
    flex: none;
    color: var(--skx-mute);
}

.skx-upsell-value strong {
    flex: none;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--skx-ink);
}

.skx-upsell-value strong i {
    margin-right: 5px;
    font-style: normal;
    font-weight: 500;
    color: var(--skx-mute);
}

.skx-upsell-tiers {
    display: grid;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.skx-upsell-tier {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
}

.skx-upsell-tier + .skx-upsell-tier {
    border-top: 1px solid var(--skx-line);
}

.skx-upsell-tier-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
}

.skx-upsell-tier.is-t2 .skx-upsell-tier-mark {
    background: rgba(var(--skx-sub-rgb), 0.15);
    color: var(--skx-sub);
}

.skx-upsell-tier-text {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--skx-dim);
}

.skx-upsell-tier-text strong {
    font-size: 13.5px;
    color: var(--skx-ink);
}

/* the set has what only «Активний» puts in the game: that tier is the one to look at */
.skx-upsell-tier.is-wanted {
    margin: 2px -10px 0;
    padding: 10px;
    border-top-color: transparent;
    border-radius: 12px;
    background: rgba(var(--skx-sub-rgb), 0.06);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-sub-rgb), 0.18);
}

.skx-upsell-tier-text em {
    font-style: normal;
    color: #e3d5b4;
}

.skx-upsell-foot {
    display: grid;
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 26px 22px;
}

.skx-upsell-foot .skx-btn {
    height: 46px;
}

.skx-upsell-foot p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 12.5px;
    color: var(--skx-mute);
    text-align: center;
}

/* ---------- «Що дають рівні» ---------- */

.skx-tiers {
    width: min(680px, 100%);
}

.skx-tiers .skx-picker-head h3 {
    flex: 1;
}

.skx-tiers-body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 4px;
}

.skx-tiers-now {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13.5px;
    color: var(--skx-dim);
}

.skx-tiers-now .skx-ico {
    color: var(--skx-mute);
}

.skx-tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.skx-tier-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
}

.skx-tier-card.is-t2 {
    border-color: rgba(var(--skx-sub-rgb), 0.3);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(var(--skx-sub-rgb), 0.1), transparent 60%),
        var(--skx-surface-2);
}

.skx-tier-card.is-current {
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.45);
}

.skx-tier-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skx-tier-head strong {
    flex: 1;
    min-width: 0;
    font-family: var(--glhf-font-heading);
    font-size: 16px;
    color: var(--skx-ink);
}

.skx-tier-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
}

.skx-tier-card.is-t2 .skx-tier-mark {
    background: rgba(var(--skx-sub-rgb), 0.16);
    color: var(--skx-sub);
}

.skx-tier-you {
    flex: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(var(--glhf-accent-rgb), 0.14);
    color: var(--glhf-accent);
    font-size: 11px;
    font-weight: 700;
}

.skx-tier-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skx-tier-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--skx-dim);
}

.skx-tier-list .skx-ico {
    margin-top: 2px;
    color: var(--glhf-accent);
}

.skx-tier-card.is-t2 .skx-tier-list .skx-ico {
    color: var(--skx-sub);
}

.skx-tiers-foot {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px 24px 22px;
}

.skx-tiers-foot p {
    margin: 0;
    font-size: 12.5px;
    color: var(--skx-mute);
    text-align: center;
}

/* ---------- sizes ---------- */

@media (max-width: 1100px) {
    .skx-try:not(.is-folded) {
        flex-wrap: wrap;
    }

    .skx-try:not(.is-folded) .skx-try-text {
        flex: 1 1 calc(100% - 70px);
    }

    .skx-try:not(.is-folded) .skx-try-actions {
        width: 100%;
        padding-left: 62px;
    }
}

/* small tablets: the actions take the whole row (and wrap when even that is short), so the chip keeps «Від 1-ї особи» whole */
@media (max-width: 860px) {
    .skx-try:not(.is-folded) .skx-try-actions {
        flex-wrap: wrap;
        padding-left: 0;
    }
}

@media (max-width: 639px) {
    .skx-try:not(.is-folded) {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .skx-try:not(.is-folded) .skx-try-emblem {
        width: 40px;
        height: 40px;
    }

    .skx-try-text strong {
        font-size: 16px;
    }

    .skx-try:not(.is-folded) .skx-try-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        padding-left: 0;
    }

    .skx-try:not(.is-folded) .skx-try-actions > .skx-btn:first-child {
        grid-column: 1 / -1;
        height: 46px;
    }

    .skx-try:not(.is-folded) .skx-try-tiers {
        min-width: 0;
    }

    /* the strip keeps one line: the call to action shrinks to its icon */
    .skx-try.is-folded .skx-try-text > span:not(.skx-try-k) {
        display: none;
    }

    .skx-try.is-folded .skx-btn {
        padding: 0 12px;
        font-size: 12.5px;
    }

    /* «Режим примірки» stays whole: the emblem gives way */
    .skx-try.is-folded {
        padding-left: 14px;
    }

    .skx-try.is-folded .skx-try-emblem {
        display: none;
    }

    .skx-try.is-folded .skx-try-k {
        letter-spacing: 0.1em;
    }

    .skx-try.is-folded .skx-cta-full {
        display: none;
    }

    .skx-try.is-folded .skx-cta-short {
        display: inline;
    }

    /* administrators: four views do not fit a narrow phone in one row */
    .skx-preview .skx-seg {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .skx-lo-tried {
        justify-self: stretch;
    }

    .skx-try-pill {
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .skx-try-pill + .skx-rarity-pill {
        margin-left: 0;
    }

    .skx-tiers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skx-tiers-body {
        padding: 0 16px 4px;
    }

    .skx-tiers-foot {
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .skx-tiers-foot .skx-btn {
        width: 100%;
    }

    /* the hint's link goes under its text; the try bar's «Комплекти» keeps its icon and count */
    .skx-kits-hint {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .skx-kits-hint p {
        flex-basis: calc(100% - 40px);
    }

    .skx-kits-hint-go {
        margin-left: 34px;
        padding: 0 10px;
    }

    /* the upsell is a sheet from the bottom */
    .skx-dialog-wrap.is-upsell {
        align-items: end;
        padding: 0;
    }

    .skx-sum.skx-upsell {
        width: 100%;
        max-height: calc(100% - max(10px, env(safe-area-inset-top)));
        border-radius: 22px 22px 0 0;
    }

    .skx-upsell-art .skx-kit-stage {
        height: 136px;
    }

    .skx-upsell-body {
        gap: 8px;
        padding: 16px 18px 2px;
    }

    .skx-upsell-body h3 {
        font-size: 21px;
    }

    .skx-upsell-foot {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
    }

}

@media (max-width: 480px) {
    .skx-lo-tried-note {
        display: none;
    }
}

/* the narrowest phones: the slim strip's call to action is its icon, the editor tabs tighten */
@media (max-width: 379px) {
    .skx-try.is-folded .skx-cta-short {
        display: none;
    }

    .skx-try.is-folded .skx-try-actions > .skx-btn {
        width: 40px;
        padding: 0;
    }

    .skx-panel-tabs {
        gap: 0;
        padding: 0 2px;
    }

    .skx-ptab {
        gap: 4px;
        padding: 0 5px;
        font-size: 13px;
    }

    .skx-ptab::after {
        left: 5px;
        right: 5px;
    }

    .skx-ptab .skx-star {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   How skins open: «Перегляд» chip, the chooser, the editor switch,
   the coach mark and «… завжди?» (design-final, screen c)
   ============================================================ */

.skx-bar-viewwrap {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
}

.skx-bar-view {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    max-width: 100%;
    padding: 0 12px 0 8px;
    border-radius: 11px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-bg);
    color: var(--skx-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.skx-bar-view:hover {
    border-color: var(--skx-line-3);
}

.skx-bar-view:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-bar-view.is-open {
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.08);
}

.skx-vp-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
}

.skx-vp-k {
    color: var(--skx-mute);
    font-weight: 500;
}

.skx-vp-v,
.skx-vp-vs {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* «Від 1-ї особи»: the value where the bar is tight */
.skx-vp-vs {
    display: none;
}

.skx-bar-view > .skx-ico:last-child {
    color: var(--skx-mute);
}

/* «Нове» until the chooser or the coach mark was seen */
.skx-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glhf-accent);
}

.skx-new::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--glhf-accent);
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.18);
}

/* the chooser: a popover under the chip (640 px and wider), a bottom sheet on phones */
.skx-vp-wrap {
    position: fixed;
    inset: 0;
    z-index: 10070;
    font-family: var(--glhf-font-body);
    color: var(--skx-dim);
    opacity: 0;
    transition: opacity 0.2s var(--skx-ease);
}

.skx-vp-wrap.is-open {
    opacity: 1;
}

.skx-vp-pop {
    position: fixed;
    top: 120px;
    right: 24px;
    width: min(420px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--skx-line-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--skx-surface);
    box-shadow: var(--skx-shadow), 0 0 0 1px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
    transition: transform 0.24s var(--skx-ease);
}

.skx-vp-wrap.is-open .skx-vp-pop {
    transform: none;
}

/* the nub points at the chip */
.skx-vp-pop::before {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--nub, 50%);
    width: 11px;
    height: 11px;
    margin-left: -6px;
    transform: rotate(45deg);
    background: var(--skx-surface);
    border-left: 1px solid var(--skx-line-2);
    border-top: 1px solid var(--skx-line-2);
}

.skx-vp-head {
    position: relative;
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    padding-right: 36px;
}

.skx-vp-head strong {
    font-family: var(--glhf-font-heading);
    font-size: 15px;
    color: var(--skx-ink);
}

.skx-vp-head span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--skx-mute);
}

.skx-vp-x {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: var(--skx-mute);
    cursor: pointer;
}

.skx-vp-x:hover {
    background: var(--skx-surface-2);
    color: var(--skx-ink);
}

.skx-vp-opts {
    display: grid;
    gap: 8px;
}

.skx-vp-opt {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    width: 100%;
    padding: 8px 36px 8px 8px;
    border-radius: 12px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-dim);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-vp-opt:hover:not(:disabled) {
    border-color: var(--skx-line-3);
}

.skx-vp-opt:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-vp-opt.is-active {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    background: color-mix(in srgb, var(--glhf-accent) 7%, var(--skx-surface-2));
}

.skx-vp-opt:disabled {
    opacity: 0.5;
    cursor: default;
}

.skx-vp-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: radial-gradient(70% 70% at 50% 60%, rgba(136, 71, 255, 0.24), transparent 70%), #0a0d11;
    color: var(--skx-mute);
}

.skx-vp-art img {
    width: 100%;
    height: auto;
}

.skx-vp-txt {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.skx-vp-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--skx-ink);
}

.skx-vp-rec {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.skx-vp-desc {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--skx-mute);
}

.skx-vp-radio {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: rgba(8, 11, 14, 0.6);
    box-shadow: inset 0 0 0 2px var(--skx-line-3);
}

.skx-vp-opt.is-active .skx-vp-radio {
    background: var(--glhf-accent);
    box-shadow: inset 0 0 0 2px var(--glhf-accent), inset 0 0 0 5px #0b130f;
}

.skx-vp-foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--skx-line);
    font-size: 12px;
    line-height: 1.5;
    color: var(--skx-mute);
}

.skx-vp-foot .skx-ico {
    margin-top: 2px;
}

/* the editor switch at the top centre of the stage */
.skx-vseg {
    position: absolute;
    z-index: 7;
    top: 12px;
    left: 50%;
    display: inline-flex;
    max-width: calc(100% - 24px);
    padding: 3px;
    border-radius: 12px;
    /* the model can sit right behind it */
    background: rgba(8, 11, 14, 0.86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    transform: translateX(-50%);
}

.skx-vseg[hidden] {
    display: none;
}

.skx-vseg button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--skx-mute);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s, background-color 0.18s;
}

.skx-vseg button:hover {
    color: var(--skx-ink);
}

.skx-vseg button:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 1px;
}

.skx-vseg button.is-on {
    background: var(--skx-surface-3);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-ink);
}

.skx-vseg button.is-on > .skx-ico {
    color: var(--glhf-accent);
}

/* the 3D option after a fallback (amber), with the reason once it keeps failing here */
.skx-vseg button.is-warn,
.skx-vseg button.is-warn > .skx-ico {
    color: var(--skx-warn);
}

.skx-vseg .skx-spinner {
    flex: none;
}

.skx-vseg-short {
    display: none;
}

/* the device default */
.skx-def {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glhf-accent);
}

/* the first editor on this device: what the switch does */
.skx-coach.is-stage {
    position: absolute;
    z-index: 8;
    top: 60px;
    left: 50%;
    width: min(340px, calc(100% - 24px));
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.45);
    background: linear-gradient(160deg, color-mix(in srgb, var(--glhf-accent) 16%, #0f1a14), #0d1411);
    box-shadow: 0 18px 50px -18px rgba(var(--glhf-accent-rgb), 0.45), var(--skx-shadow);
    color: var(--skx-ink);
    transform: translateX(-50%);
    animation: skx-coach-in 0.3s var(--skx-ease);
}

.skx-coach.is-stage::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -6px;
    transform: rotate(45deg);
    background: #10201a;
    border-left: 1px solid rgba(var(--glhf-accent-rgb), 0.45);
    border-top: 1px solid rgba(var(--glhf-accent-rgb), 0.45);
}

.skx-coach-k {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glhf-accent);
}

.skx-coach p {
    margin: 6px 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--skx-dim);
}

.skx-coach-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@keyframes skx-coach-in {
    from { opacity: 0; transform: translate(-50%, -6px); }
}

/* ---------- sizes ---------- */

/* the value alone below 1440 (the label made the 1280 bar overflow) */
@media (max-width: 1439px) {
    .skx-vp-k,
    .skx-bar-view .skx-vp-v {
        display: none;
    }

    .skx-bar-view .skx-vp-vs {
        display: inline;
    }
}

/* the try bar wraps below 1100: the chip stays with the other actions */
@media (max-width: 639px) {
    /* the bar's third row: the chip and «Комплекти» */
    .skx-bar .skx-bar-viewwrap {
        order: 3;
        flex: 1 1 auto;
    }

    /* a select-like chip: alone on its row (narrow phones) it spans the row, the chevron at the end */
    .skx-bar .skx-bar-view {
        width: 100%;
    }

    .skx-bar .skx-bar-view > .skx-ico:last-child {
        margin-left: auto;
    }

    /* «Комплекти» keeps its icon, label and count inside: the chip gives way */
    .skx-bar .skx-bar-sets {
        flex: 1 1 0;
        min-width: max-content;
    }

    .skx-bar-view {
        height: 42px;
    }
}

@media (max-width: 639px), (max-height: 500px) {
    .skx-vp-wrap {
        background: rgba(3, 5, 7, 0.62);
    }

    .skx-vp-pop {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: 88vh;
        overflow-y: auto;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
        transform: translateY(24px);
    }

    /* the grabber */
    .skx-vp-pop::before {
        position: static;
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 14px;
        border: 0;
        border-radius: 4px;
        background: var(--skx-line-3);
        transform: none;
    }
}

@media (max-width: 639px) {
    .skx-new {
        gap: 0;
        font-size: 0;
    }

    /* «Що дають рівні» stays whole next to the fold button; the chip gets its own row, select-like */
    .skx-try:not(.is-folded) .skx-try-actions .skx-try-tiers {
        min-width: max-content;
    }

    .skx-try:not(.is-folded) .skx-bar-viewwrap {
        order: 1;
        grid-column: 1 / -1;
    }

    .skx-try:not(.is-folded) .skx-bar-view {
        width: 100%;
        height: 42px;
    }

    .skx-try:not(.is-folded) .skx-bar-view > .skx-ico:last-child {
        margin-left: auto;
    }

    /* a little tighter, so «Від 1-ї особи» and «Комплекти» share a row at 390 */
    .skx-bar-view,
    .skx-bar .skx-bar-sets {
        gap: 7px;
        padding-right: 10px;
    }

    .skx-bar-view {
        padding-left: 7px;
        font-size: 12.5px;
    }

    .skx-bar .skx-bar-sets {
        padding-left: 11px;
        font-size: 13px;
    }

    /* the slim strip keeps «Режим примірки» whole: the chip waits in the opened bar */
    .skx-try.is-folded .skx-bar-viewwrap {
        display: none;
    }

    .skx-vp-opt {
        grid-template-columns: 96px minmax(0, 1fr);
        padding-right: 34px;
    }

    .skx-vseg {
        top: 10px;
    }

    .skx-vseg button {
        padding: 0 10px;
        font-size: 12px;
    }

    .skx-vseg-full {
        display: none;
    }

    .skx-vseg-short {
        display: inline;
    }

    .skx-coach.is-stage {
        top: 56px;
    }
}

/* stacked editors (tablets and phones upright): the picture keeps its own height under the
   switch, the facts follow below it (the stage used to be 46vh with the facts inside) */
@media (max-width: 959px) and (min-height: 501px) {
    .skx-stage {
        height: auto;
        min-height: 0;
    }

    .skx-stage-art {
        flex: none;
        height: clamp(300px, 46vh, 520px);
    }
}

@media (max-width: 639px) and (min-height: 501px) {
    .skx-stage-art {
        height: clamp(260px, 44vh, 420px);
    }

    .skx-stage-img {
        top: 50%;
        width: 90%;
    }

    .skx-stage-info {
        gap: 10px;
        padding: 12px 16px 14px;
    }

    /* the facts: one row of chips that scrolls sideways, so the tabs come up sooner */
    .skx-stage-facts {
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .skx-stage-facts::-webkit-scrollbar {
        display: none;
    }

    .skx-fact {
        flex: none;
        display: inline-flex;
        flex-direction: column;
        gap: 1px;
        padding: 6px 10px;
        border-radius: 9px;
        background: var(--skx-surface-2);
        box-shadow: inset 0 0 0 1px var(--skx-line);
    }

    .skx-fact span {
        font-size: 10px;
    }

    .skx-fact strong {
        font-size: 12.5px;
        white-space: nowrap;
    }

    /* the tabs stay at the top while the list scrolls under them (they share the row as above) */
    .skx-panel-tabs {
        position: sticky;
        top: 0;
        z-index: 4;
        background: var(--skx-surface);
    }
}

/* short phones (SE, 8, 320x640): a little less picture, so the tabs open in sight above the foot */
@media (max-width: 639px) and (min-height: 501px) and (max-height: 700px) {
    .skx-stage-art {
        height: clamp(220px, 35vh, 420px);
    }
}

/* phones on their side: the stage full height on the left, the panel scrolls on the right;
   wear and pattern live in «Параметри», so the facts under the picture go */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 960px) {
    .skx-editor-head {
        padding: 6px 12px;
    }

    .skx-editor-kicker {
        display: none;
    }

    .skx-editor-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) min(400px, 46%);
        overflow: hidden;
    }

    .skx-stage {
        height: auto;
        min-height: 0;
    }

    .skx-stage-info {
        display: none;
    }

    .skx-panel {
        min-height: 0;
        border-top: 0;
        border-left: 1px solid var(--skx-line);
    }

    .skx-panel-content {
        overflow-y: auto;
    }

    .skx-coach.is-stage {
        top: 54px;
        padding: 10px 12px;
    }

    .skx-coach p {
        margin: 4px 0 8px;
        font-size: 12.5px;
    }
}

/* the narrowest phones: the chip is its icon */
@media (max-width: 359px) {
    .skx-bar-view .skx-vp-vs {
        display: none;
    }

    /* the opened try bar gives the chip its own row: the value fits */
    .skx-try:not(.is-folded) .skx-bar-view .skx-vp-vs {
        display: inline;
    }

    .skx-vseg button {
        gap: 4px;
        padding: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-vp-wrap,
    .skx-vp-pop {
        transition: none;
    }

    .skx-coach.is-stage {
        animation: none;
    }
}

/* ============================================================
   «Мій набір»: the side's whole set at a glance (like CS2's loadout).
   The agent column, then Пістолети / Середній клас / Гвинтівки in CS2's
   own slot order; a weapon with a skin is a rich tile, one without a slim chip.
   ============================================================ */

.skx-tab.is-home {
    font-weight: 700;
}

.skx-tab.is-home .skx-ico {
    opacity: 0.75;
}

.skx-tab.is-home.is-active .skx-ico {
    opacity: 1;
    color: var(--glhf-accent);
}

/* «Мій набір» counts what is tried on: neutral, like the «Примірка» tag */
.skx-tab-badge.is-tried {
    background: rgba(8, 11, 14, 0.78);
    box-shadow: inset 0 0 0 1px var(--skx-line-3);
    color: var(--skx-dim);
}

/* «← Мій набір» over a section opened from a slot */
.skx-crumb-row {
    flex: 0 0 100%;
    display: flex;
    margin-bottom: -4px;
}

.skx-crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 8px;
    border-radius: 9px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    color: var(--skx-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
}

.skx-crumb:hover {
    border-color: var(--skx-line-3);
    color: var(--skx-ink);
}

.skx-body.is-loadout {
    padding-top: 14px;
}

.skx-lo {
    --skx-team: var(--skx-ct);
    --skx-team-rgb: 126, 166, 242;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.skx-lo.is-t {
    --skx-team: var(--skx-t);
    --skx-team-rgb: 227, 173, 79;
}

.skx-lo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
}

.skx-lo-head-text {
    min-width: 0;
}

.skx-lo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--skx-ink);
}

.skx-lo-team {
    display: inline-grid;
    flex: none;
    place-items: center;
    min-width: 42px;
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    background: rgba(var(--skx-team-rgb), 0.14);
    box-shadow: inset 0 0 0 1px rgba(var(--skx-team-rgb), 0.45);
    color: var(--skx-team);
    font-size: 14px;
    letter-spacing: 0.06em;
}

img.skx-lo-team {
    width: 36px;
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 50%;
    background: none;
    box-shadow: 0 0 0 3px rgba(var(--skx-team-rgb), 0.16), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.skx-lo-sub {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--skx-mute);
}

.skx-lo-sub b {
    color: var(--skx-ink);
    font-weight: 700;
}

.skx-lo-progress {
    display: inline-block;
    width: 120px;
    height: 4px;
    margin: 0 10px 2px 0;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 4px;
    background: var(--skx-line-2);
}

.skx-lo-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--skx-team), var(--glhf-accent));
}

/* «Приміряно» at the end of the head, beside the heading while it fits, else under it */
.skx-lo-head .skx-lo-tried {
    min-width: 0;
    margin-left: auto;
}

/* nothing saved yet: where to start */
.skx-lo-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 12px;
    background: rgba(var(--glhf-accent-rgb), 0.07);
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.24);
    font-size: 13.5px;
    line-height: 1.45;
    color: #cfe8d9;
}

.skx-lo-hint > .skx-ico {
    color: var(--glhf-accent);
}

.skx-lo-hint > span {
    flex: 1;
    min-width: 0;
}

.skx-lo-hint-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--skx-dim);
    cursor: pointer;
}

.skx-lo-hint-x:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--skx-ink);
}

.skx-lo-grid {
    display: grid;
    grid-template-columns: 300px repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px 18px;
}

.skx-lo-grid.is-swap {
    animation: skx-lo-in 0.18s ease-out;
}

@keyframes skx-lo-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- the agent and the tiles around it ---------- */

.skx-lo-char {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "agent agent" "knife gloves" "music music" "pin pin" "pet pet" "graffiti graffiti";
    gap: 10px;
    min-width: 0;
}

.skx-lo-char > .skx-lo-agent { grid-area: agent; }
.skx-lo-char > .is-knife { grid-area: knife; }
.skx-lo-char > .is-gloves { grid-area: gloves; }
.skx-lo-char > .is-music { grid-area: music; }
.skx-lo-char > .is-pin { grid-area: pin; }
.skx-lo-char > .is-pet { grid-area: pet; }
.skx-lo-char > .is-graffiti { grid-area: graffiti; }
.skx-lo-char > .is-c4 { grid-area: c4; }

/* the bomb (T side only) under the graffiti */
.skx-lo-char.has-c4 {
    grid-template-areas: "agent agent" "knife gloves" "music music" "pin pin" "pet pet" "graffiti graffiti" "c4 c4";
}

.skx-lo-agent {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 3.25;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--rarity, #7b8794) 28%, var(--skx-line));
    background:
        radial-gradient(60% 34% at 50% 100%, rgba(var(--skx-team-rgb), 0.34), transparent 75%),
        radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--rarity, #7b8794) 20%, transparent), transparent 70%),
        linear-gradient(180deg, #121a22, #0a0f14);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* a floor grid, like the stage of CS2's loadout */
.skx-lo-agent::before {
    content: '';
    position: absolute;
    inset: 55% -20% -10% -20%;
    z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 22px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px 100%;
    transform: perspective(260px) rotateX(58deg);
    transform-origin: 50% 0;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 80%);
    mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 80%);
}

.skx-lo-agent-img {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 0;
    width: 150%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}

.skx-lo-agent.is-empty .skx-lo-agent-img {
    opacity: 0.8;
}

.skx-lo-agent-body {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    justify-items: start;
    gap: 2px;
    padding: 40px 16px 15px;
    background: linear-gradient(180deg, transparent, rgba(6, 9, 12, 0.92) 46%);
}

.skx-lo-agent-body > * {
    max-width: 100%;
}

.skx-lo-agent-body .skx-tried {
    margin-bottom: 4px;
}

.skx-lo-k {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

/* two lines at most: «Типовий спецпризначенець» is wider than the card */
.skx-lo-agent-name {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--skx-ink);
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.skx-lo-agent-meta {
    overflow: hidden;
    font-size: 12px;
    color: var(--skx-dim);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-lo-bar {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--rarity);
}

.skx-lo-emblem {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 4%;
    width: 88%;
    height: auto;
    transform: translateX(-50%);
    opacity: 0.2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
    transition: opacity 0.25s;
}

.skx-lo-agent:hover .skx-lo-emblem {
    opacity: 0.28;
}

.skx-lo-edit {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(8, 11, 14, 0.72);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-dim);
    transition: color 0.18s;
}

.skx-lo-agent:hover .skx-lo-edit {
    color: var(--skx-ink);
}

.skx-lo-tile {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 4px;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    padding: 10px 11px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--rarity, transparent) 28%, var(--skx-line));
    background: radial-gradient(70% 55% at 50% 55%, color-mix(in srgb, var(--rarity, transparent) 22%, transparent), transparent 72%), var(--skx-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s;
}

.skx-lo-tile-img {
    align-self: center;
    justify-self: center;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.skx-lo-tile-name {
    display: grid;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--skx-ink);
}

.skx-lo-tile-main,
.skx-lo-tile-name small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-lo-tile-name small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--skx-dim);
}

.skx-lo-tile.is-mini {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    aspect-ratio: auto;
    padding: 9px 10px 11px;
}

.skx-lo-tile.is-mini .skx-lo-tile-img {
    width: 46px;
    height: auto;
    max-height: 46px;
}

.skx-lo-tile.is-empty {
    border-style: dashed;
    border-color: var(--skx-line-2);
    background: transparent;
}

.skx-lo-tile.is-empty .skx-lo-tile-img {
    opacity: 0.55;
    filter: grayscale(0.6);
}

.skx-lo-tile.is-empty .skx-lo-tile-name {
    color: var(--skx-dim);
}

.skx-lo-tile-img.is-broken,
.skx-lo-agent-img.is-broken,
.skx-ls-img.is-broken {
    visibility: hidden;
}

/* music: the tile and its ▶ (the button cannot sit inside the tile's button) */
.skx-lo-mini-wrap {
    position: relative;
    display: flex;
    min-width: 0;
}

.skx-lo-mini-wrap > .skx-lo-tile {
    flex: 1;
    padding-right: 56px;
}

.skx-lo-mini-wrap > .skx-play {
    top: 50%;
    right: 10px;
    bottom: auto;
    width: 38px;
    height: 38px;
    margin-top: -19px;
}

/* ---------- a weapon column ---------- */

.skx-lo-col {
    --lo-cols: 2;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.skx-lo-colhead {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    padding: 0 2px 6px;
    border-bottom: 1px solid var(--skx-line);
}

.skx-lo-colhead h3 {
    margin: 0;
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--skx-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-lo-count {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-lo-count b {
    color: var(--glhf-accent);
}

.skx-lo-all {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 2px 0 2px 6px;
    border: 0;
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.skx-lo-all:hover {
    color: var(--skx-ink);
}

.skx-lo-sub2 {
    margin: 10px 2px 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

/* slots of a sub-group: CS2 order in the DOM; dense flow fills the hole a rich tile leaves */
.skx-ls-grid {
    display: grid;
    grid-template-columns: repeat(var(--lo-cols, 2), minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 6px;
}

.skx-ls {
    --rarity: transparent;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 66px;
    overflow: hidden;
    padding: 8px 6px 9px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--rarity) 26%, var(--skx-line));
    background: linear-gradient(90deg, var(--skx-surface) 40%, color-mix(in srgb, var(--rarity) 12%, var(--skx-surface)));
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.25s var(--skx-ease);
}

.skx-ls.is-rich {
    grid-column: span 2;
}

.skx-ls.is-rich::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--rarity);
}

.skx-ls-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.skx-ls-k {
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skx-mute);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-ls-name {
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--skx-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-ls-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    min-width: 0;
    margin-top: 2px;
    font-size: 11px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-ls-meta .skx-ico {
    color: var(--skx-dim);
}

.skx-ls-st {
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(207, 106, 50, 0.16);
    color: var(--skx-st);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.skx-ls-ico {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.skx-ls-side {
    display: inline-flex;
    gap: 2px;
}

.skx-ls-side i {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--skx-ct);
}

.skx-ls-side i + i {
    background: var(--skx-t);
}

.skx-ls-img {
    width: 104px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

/* a weapon without a skin: a slim chip with a grey silhouette */
.skx-ls.is-std {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 4px;
    min-height: 38px;
    padding: 3px 4px 3px 11px;
    border-color: var(--skx-line);
    background: transparent;
}

.skx-ls.is-std .skx-ls-name {
    font-family: var(--glhf-font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--skx-dim);
}

.skx-ls.is-std .skx-ls-img {
    width: 46px;
    max-height: 24px;
    opacity: 0.42;
    filter: grayscale(1) brightness(1.2);
    transition: opacity 0.2s;
}

.skx-ls.is-std:hover {
    border-color: var(--skx-line-3);
}

.skx-ls.is-std:hover .skx-ls-name {
    color: var(--skx-ink);
}

.skx-ls.is-std:hover .skx-ls-img {
    opacity: 0.8;
}

/* tried on in memory: dashed, «Примірка» in the corner */
.skx-ls.is-tried,
.skx-lo-tile.is-tried,
.skx-lo-agent.is-tried {
    border-style: dashed;
}

.skx-ls.is-tried {
    border-color: color-mix(in srgb, var(--rarity) 40%, var(--skx-line-3));
}

.skx-ls > .skx-tried,
.skx-lo-tile > .skx-tried {
    position: absolute;
    z-index: 2;
    top: 6px;
    right: 6px;
    margin: 0;
}

.skx-lo-tile.is-mini .skx-lo-k {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skx-lo-tile.is-mini .skx-tried {
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- motion and focus ---------- */

/* the hover's light on the weapon (below, fine pointers only): out of the row's grid everywhere */
.skx-ls-glint {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .skx-ls.is-rich:hover {
        border-color: color-mix(in srgb, var(--rarity) 55%, var(--skx-line-3));
    }

    /* held as in the game's inspect (skinchanger.js slotFx drives --tx/--ty -1..1, --hov 0..1, --mx/--my per frame):
       the card leans a little toward the pointer, the weapon turns in perspective, its shadow falls the other way */
    .skx-ls.is-rich.is-fx,
    .skx-lo-tile.is-fx {
        z-index: 1;
        transition: border-color 0.45s var(--skx-ease);
        transform: perspective(900px) rotateX(calc(var(--ty, 0) * -2.2deg)) rotateY(calc(var(--tx, 0) * 2.6deg)) translateY(calc(var(--hov, 0) * -1px));
        box-shadow: 0 calc(var(--hov, 0) * 10px) calc(var(--hov, 0) * 26px) rgba(0, 0, 0, calc(var(--hov, 0) * 0.45)),
            0 0 calc(var(--hov, 0) * 22px) color-mix(in srgb, var(--rarity) 22%, transparent);
    }

    /* a soft light where the pointer is, in the rarity's colour (wide and faint: it colours the card, it is no spot) */
    .skx-ls.is-rich.is-fx::before,
    .skx-lo-tile.is-fx::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: var(--hov, 0);
        background:
            radial-gradient(420px 260px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--rarity, #7b8794) 13%, transparent), transparent 75%),
            radial-gradient(260px 170px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.025), transparent 75%);
    }

    .skx-lo-tile.is-fx .skx-lo-bar {
        box-shadow: 0 0 calc(var(--hov, 0) * 12px) var(--rarity), 0 0 calc(var(--hov, 0) * 3px) var(--rarity);
    }

    .skx-ls.is-rich.is-fx::after {
        box-shadow: 0 0 calc(var(--hov, 0) * 12px) var(--rarity), 0 0 calc(var(--hov, 0) * 3px) var(--rarity);
    }

    .skx-ls.is-rich.is-fx .skx-ls-img,
    .skx-ls.is-rich.is-fx .skx-ls-glint,
    .skx-lo-tile.is-fx .skx-lo-tile-img,
    .skx-lo-tile.is-fx .skx-ls-glint {
        transform: perspective(420px) translate(calc(var(--tx, 0) * 5px), calc(var(--ty, 0) * 3px - var(--hov, 0) * 2px))
            rotateY(calc(var(--tx, 0) * 18deg)) rotateX(calc(var(--ty, 0) * -10deg)) rotateZ(calc(var(--tx, 0) * -2.5deg))
            scale(calc(1 + var(--hov, 0) * 0.08));
    }

    .skx-ls.is-rich.is-fx .skx-ls-img,
    .skx-lo-tile.is-fx .skx-lo-tile-img {
        position: relative;
        z-index: 1;
        filter: drop-shadow(calc(var(--tx, 0) * -7px) calc(6px + var(--hov, 0) * 5px) calc(8px + var(--hov, 0) * 5px) rgba(0, 0, 0, 0.55)) brightness(calc(1 + var(--hov, 0) * 0.07));
    }

    .skx-ls.is-rich.is-fx .skx-ls-text,
    .skx-lo-tile.is-fx .skx-lo-tile-name,
    .skx-lo-tile.is-fx > .skx-lo-k {
        position: relative;
        z-index: 1;
    }

    .skx-ls.is-rich.is-fx .skx-ls-price {
        z-index: 1;
    }

    /* on the weapon only (masked by its own picture): the light that follows the pointer over the metal, and a glint
       running along it once as the pointer comes in */
    .skx-ls-glint {
        z-index: 2;
        mix-blend-mode: screen;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        background:
            linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat,
            radial-gradient(56px 38px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 75%) 0 0 / 100% 100% no-repeat;
    }

    .skx-ls.is-fx .skx-ls-glint,
    .skx-lo-tile.is-fx .skx-ls-glint {
        opacity: var(--hov, 0);
    }

    .skx-ls-glint.is-run {
        animation: skx-ls-glint 1.15s cubic-bezier(0.33, 0, 0.2, 1) both;
    }

    .skx-lo-tile:hover,
    .skx-lo-agent:hover {
        border-color: color-mix(in srgb, var(--rarity, #7b8794) 55%, var(--skx-line-3));
    }

    .skx-lo-tile.is-empty:hover {
        border-color: var(--skx-line-3);
    }
}

@media (pointer: coarse) {
    .skx-ls:active,
    .skx-lo-tile:active,
    .skx-lo-agent:active {
        transform: scale(0.97);
        transition-duration: 0.12s;
    }
}

.skx-ls:focus-visible,
.skx-lo-tile:focus-visible,
.skx-lo-agent:focus-visible,
.skx-lo-all:focus-visible,
.skx-crumb:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

/* ---------- loading ---------- */

.skx-lo-sk-title {
    width: 260px;
    max-width: 70vw;
    height: 26px;
    margin-bottom: 10px;
}

.skx-lo .is-skeleton {
    border-color: var(--skx-line);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%;
    animation: skx-shimmer 1.6s ease-in-out infinite;
    cursor: default;
}

.skx-lo-tile.is-mini.is-skeleton {
    height: 68px;
}

.skx-ls.is-skeleton {
    display: flex;
}

.skx-ls.is-skeleton .skx-sk-line {
    width: 55%;
    background: none;
    animation: none;
}

/* ---------- sizes ---------- */

@media (min-width: 1920px) {
    .skx-lo-grid {
        grid-template-columns: 340px repeat(3, minmax(0, 1fr));
        gap: 18px 24px;
    }

    .skx-ls.is-rich {
        grid-template-columns: minmax(0, 1fr) 128px;
        min-height: 74px;
    }

    .skx-ls.is-rich .skx-ls-img {
        width: 128px;
        max-height: 60px;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .skx-lo-grid {
        grid-template-columns: 260px repeat(3, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .skx-ls.is-std {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .skx-ls.is-std .skx-ls-img {
        width: 32px;
        max-height: 18px;
    }

    .skx-lo-tile-name {
        font-size: 12px;
    }
}

/* 960-1279: the agent and the tiles become a strip over the three columns */
@media (min-width: 960px) and (max-width: 1279px) {
    .skx-lo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .skx-lo-char {
        grid-column: 1 / -1;
        grid-template-columns: 1.35fr 1fr 1fr 1fr;
        grid-template-rows: repeat(4, minmax(0, 1fr));
        grid-template-areas: "agent knife gloves music" "agent knife gloves pin" "agent knife gloves pet" "agent knife gloves graffiti";
        height: 290px;
    }

    .skx-lo-char.has-c4 {
        grid-template-rows: repeat(5, minmax(0, 1fr));
        grid-template-areas: "agent knife gloves music" "agent knife gloves pin" "agent knife gloves pet" "agent knife gloves graffiti" "agent knife gloves c4";
        height: 350px;
    }

    .skx-lo-agent {
        height: 100%;
        aspect-ratio: auto;
    }

    .skx-lo-agent-img {
        width: 120%;
    }

    .skx-lo-tile {
        height: 100%;
        aspect-ratio: auto;
    }

    .skx-lo-tile-img {
        max-height: min(100%, 150px);
    }

    .skx-lo-tile.is-mini {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .skx-lo-tile.is-mini .skx-lo-tile-img {
        width: 40px;
        max-height: 40px;
    }

    .skx-ls.is-rich {
        grid-template-columns: minmax(0, 1fr) 84px;
    }

    .skx-ls.is-rich .skx-ls-img {
        width: 84px;
        max-height: 44px;
    }

    .skx-ls.is-std {
        grid-template-columns: minmax(0, 1fr) 32px;
        padding-left: 10px;
    }

    .skx-ls.is-std .skx-ls-img {
        width: 32px;
        max-height: 18px;
    }
}

/* 640-959 (tablets) and phones held sideways: the strip, then each group across the width */
@media (min-width: 640px) and (max-width: 959px), (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    .skx-lo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .skx-lo-char {
        /* music, pin, pet and graffiti in pairs below knife and gloves */
        grid-template-columns: 1.3fr 1fr 1fr;
        grid-template-areas: "agent knife gloves" "agent music pin" "agent pet graffiti";
    }

    .skx-lo-char.has-c4 {
        grid-template-areas: "agent knife gloves" "agent music pin" "agent pet graffiti" "agent c4 c4";
    }

    .skx-lo-agent {
        height: 100%;
        min-height: 260px;
        aspect-ratio: auto;
    }

    .skx-lo-agent-img {
        width: 120%;
    }

    .skx-lo-char > .is-knife,
    .skx-lo-char > .is-gloves {
        min-height: 170px;
        aspect-ratio: auto;
    }

    .skx-lo-tile-img {
        max-height: min(100%, 200px);
    }

    .skx-lo-col {
        --lo-cols: 4;
    }
}

/* phones: one column, the agent across the width, knife and gloves side by side */
@media (max-width: 639px) {
    .skx-lo-head {
        gap: 12px;
    }

    .skx-lo-title {
        gap: 10px;
        font-size: 21px;
    }

    /* «Приміряно» gets its own row across the width */
    .skx-lo-head .skx-lo-tried {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .skx-lo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .skx-lo-agent {
        aspect-ratio: 16 / 10;
    }

    /* the agent on the left, the text on the right */
    .skx-lo-agent-img {
        left: -12%;
        top: 0;
        width: 78%;
        transform: none;
    }

    .skx-lo-agent-body {
        top: 0;
        left: 40%;
        align-content: end;
        justify-items: end;
        padding: 14px;
        text-align: right;
        background: linear-gradient(270deg, rgba(6, 9, 12, 0.9), rgba(6, 9, 12, 0.55) 70%, transparent);
    }

    .skx-lo-agent-name {
        font-size: 16px;
        overflow-wrap: normal;
    }

    .skx-lo-tile {
        aspect-ratio: 1 / 0.9;
    }

    .skx-lo-tile.is-mini {
        aspect-ratio: auto;
    }

    .skx-ls.is-std {
        min-height: 44px;
    }
}

/* the narrowest phones: chips are text only, so «Dual Berettas» fits */
@media (max-width: 359px) {
    .skx-ls.is-std {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 8px;
    }

    .skx-ls.is-std .skx-ls-img {
        display: none;
    }

    .skx-ls.is-rich {
        grid-template-columns: minmax(0, 1fr) 76px;
    }

    .skx-ls.is-rich .skx-ls-img {
        width: 76px;
    }
}

@keyframes skx-ls-glint {
    from { background-position: 120% 0, 0 0; }
    to { background-position: -20% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skx-lo-grid.is-swap {
        animation: none;
    }

    .skx-ls-glint {
        display: none;
    }

    .skx-ls,
    .skx-ls:hover,
    .skx-ls:active,
    .skx-lo-tile:active,
    .skx-lo-agent:active {
        transform: none !important;
    }
}

/* seven tabs with «Мій набір»: compact text tabs from 960 to 1279, the side's full name only from 1440 */
@media (min-width: 960px) and (max-width: 1279px) {
    .skx-tab {
        gap: 6px;
        padding: 0 10px;
        font-size: 14px;
    }

    .skx-tab::after {
        left: 10px;
        right: 10px;
    }

    .skx-tab .skx-tab-badge {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10.5px;
    }
}

@media (max-width: 1439px) {
    .skx-side-name {
        display: none;
    }
}

/* ============================================================
   Navigation (design-final, screen b): one set of sections, a look per size.
   960+ text tabs in the sticky toolbar; 640-959 an icon over each label;
   up to 639 the section bar under the site header and the bottom dock;
   a phone held sideways: the dock becomes a rail on the left.
   ============================================================ */

.skx-tab-ic {
    display: none;
}

.skx-tab.is-home .skx-tab-ic {
    display: inline-flex;
}

.skx-tab-ic .skx-ico {
    opacity: 0.75;
}

.skx-tab.is-active .skx-tab-ic .skx-ico {
    opacity: 1;
    color: var(--glhf-accent);
}

.skx-secbar,
.skx-dock {
    display: none;
}

/* a row that scrolls sideways fades out on the side where more is hidden (scrollCue in the JS) */
.skx-cue.is-more-r {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

.skx-cue.is-more-l {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px);
    mask-image: linear-gradient(90deg, transparent, #000 48px);
}

.skx-cue.is-more-l.is-more-r {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

/* the editor's tabs give way before they spill: only the long «Параметри» shortens (Парам…),
   «Скін», «Стікери» and «Брелок» keep whole; past that the row scrolls with its fade.
   The count and the star keep their size */
.skx-ptab[data-tab='finish'] {
    flex-shrink: 1;
    min-width: 0;
}

.skx-ptab[data-tab='finish'] .skx-ptab-l {
    min-width: 3.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skx-ptab .skx-tab-badge,
.skx-ptab .skx-star {
    flex: none;
}

/* M 640-959: an icon over each label, all seven tabs and CT/T in one row */
@media (min-width: 640px) and (max-width: 959px) {
    .skx-toolbar {
        gap: 10px;
    }

    .skx-tabs {
        flex: 1;
        gap: 0;
    }

    .skx-tab {
        flex: 1 1 0;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        height: 62px;
        padding: 0 2px;
        font-family: var(--glhf-font-body);
        font-size: 11.5px;
        font-weight: 600;
    }

    .skx-tab.is-home {
        font-weight: 700;
    }

    .skx-tab .skx-tab-ic {
        display: inline-flex;
    }

    .skx-tab-l {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .skx-tab::after {
        left: 22%;
        right: 22%;
    }

    .skx-tab .skx-tab-badge,
    .skx-tab .skx-star {
        position: absolute;
        top: 6px;
        left: calc(50% + 8px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 9.5px;
    }

    .skx-tab .skx-star {
        width: 16px;
        padding: 0;
    }

    .skx-tab .skx-star .skx-ico {
        width: 9px;
        height: 9px;
    }

    /* the catalogue: three cards across at 768, the chips one row that scrolls, the search its own row */
    .skx-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .skx-subbar-end {
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    .skx-chips {
        flex-wrap: nowrap;
        max-width: calc(100% + 2 * var(--skx-gutter));
        margin: 0 calc(-1 * var(--skx-gutter));
        padding: 0 var(--skx-gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .skx-chips::-webkit-scrollbar {
        display: none;
    }

    .skx-chip {
        flex: none;
    }
}

/* L 960-1279: four cards across */
@media (min-width: 960px) and (max-width: 1279px) {
    .skx-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* phones: the section bar sticks under the site header, the sections live in the dock */
@media (max-width: 639px) {
    .skx-toolbar {
        display: none;
    }

    .skx-secbar {
        position: sticky;
        top: var(--glhf-header-height);
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        height: 52px;
        margin: 0 calc(-1 * var(--skx-gutter));
        padding: 0 12px 0 var(--skx-gutter);
        border-bottom: 1px solid var(--skx-line);
        background: rgba(10, 14, 18, 0.9);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
    }

    .skx-secbar-title {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        color: var(--skx-ink);
        font-family: var(--glhf-font-heading);
        font-size: 16px;
        font-weight: 700;
    }

    .skx-secbar-title .skx-ico {
        color: var(--glhf-accent);
    }

    .skx-secbar-title span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .skx-secbar .skx-side {
        padding: 3px;
    }

    .skx-secbar .skx-side-btn {
        justify-content: center;
        min-width: 44px;
        height: 34px;
        padding: 0 12px;
    }

    /* the active side in its team's colour */
    .skx-secbar .skx-side-btn.is-ct.is-active {
        background: linear-gradient(180deg, rgba(126, 166, 242, 0.24), rgba(126, 166, 242, 0.08));
        box-shadow: inset 0 0 0 1px rgba(126, 166, 242, 0.45);
    }

    .skx-secbar .skx-side-btn.is-t.is-active {
        background: linear-gradient(180deg, rgba(227, 173, 79, 0.24), rgba(227, 173, 79, 0.08));
        box-shadow: inset 0 0 0 1px rgba(227, 173, 79, 0.45);
    }

    /* under the site header (1000) and its menu (999), under the editor, dialogs and toasts */
    .skx-dock {
        position: fixed;
        z-index: 900;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 0 max(2px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(2px, env(safe-area-inset-left));
        border-top: 1px solid var(--skx-line-2);
        background: rgba(9, 12, 16, 0.94);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.9);
    }

    /* room for the dock under the page (and the footer) and over the toasts */
    html.skx-docked body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    html.skx-docked:not(.skx-locked) .skx-toasts {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

/* the dock's buttons: phones (bottom) and phones held sideways (the rail) */
@media (max-width: 639px), (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    .skx-dock-row {
        display: grid;
        grid-template-columns: repeat(9, minmax(0, 1fr));
        height: 60px;
    }

    .skx-dock-btn {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        color: var(--skx-mute);
        font: inherit;
        font-size: 9.5px;
        font-weight: 600;
        letter-spacing: -0.01em;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .skx-dock-l {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .skx-dock-btn.is-active {
        color: var(--skx-ink);
    }

    .skx-dock-btn.is-active .skx-ico {
        color: var(--glhf-accent);
    }

    .skx-dock-btn.is-active::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 22%;
        right: 22%;
        height: 2px;
        border-radius: 0 0 2px 2px;
        background: var(--glhf-accent);
        box-shadow: 0 0 12px rgba(var(--glhf-accent-rgb), 0.8);
    }

    .skx-dock-btn:focus-visible {
        outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
        outline-offset: -4px;
        border-radius: 10px;
    }

    .skx-dock-btn .skx-tab-badge,
    .skx-dock-btn .skx-star {
        position: absolute;
        top: 7px;
        left: calc(50% + 7px);
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        font-size: 9.5px;
        line-height: 15px;
    }

    .skx-dock-btn .skx-tab-badge:not(.is-tried) {
        background: var(--glhf-accent);
        color: #04110a;
        font-weight: 800;
    }

    .skx-dock-btn .skx-star {
        width: 15px;
        padding: 0;
    }

    .skx-dock-btn .skx-star .skx-ico {
        width: 9px;
        height: 9px;
        color: var(--skx-sub);
    }

    /* the dock steps aside for the editor, dialogs and the on-screen keyboard */
    html.skx-locked .skx-dock,
    .skx.is-typing .skx-dock {
        display: none;
    }
}

/* 320-359: every icon, and the label only under the open section (it gets the room) */
@media (max-width: 359px) {
    .skx-dock-row {
        display: flex;
    }

    .skx-dock-btn {
        flex: 1 1 0;
    }

    .skx-dock-btn.is-active {
        flex: 1.9 1 0;
    }

    .skx-dock-btn:not(.is-active) .skx-dock-l {
        display: none;
    }

    /* a 40 px button: the count stays inside it (the last one by the screen's edge) */
    .skx-dock-btn .skx-tab-badge,
    .skx-dock-btn .skx-star {
        left: calc(50% + 3px);
    }

    .skx-secbar-title {
        font-size: 15px;
    }
}

/* a phone held sideways: the dock is a 64 px rail on the left, the toolbar keeps only CT/T and
   does not stick (the site header already takes a fifth of the height) */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    html.skx-docked body {
        padding-bottom: 0;
        padding-left: calc(64px + env(safe-area-inset-left));
    }

    html.skx-docked:not(.skx-locked) .skx-toasts {
        bottom: 16px;
    }

    .skx-toolbar {
        position: static;
        display: flex;
        justify-content: flex-end;
        margin: 0;
        padding: 0 0 4px;
        border-bottom: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .skx-toolbar .skx-tabs,
    .skx-secbar {
        display: none;
    }

    .skx-dock {
        position: fixed;
        z-index: 900;
        top: var(--glhf-header-height);
        bottom: 0;
        left: 0;
        right: auto;
        display: block;
        width: calc(64px + env(safe-area-inset-left));
        padding: 4px 0 env(safe-area-inset-bottom) env(safe-area-inset-left);
        border-top: 0;
        border-right: 1px solid var(--skx-line-2);
        background: rgba(9, 12, 16, 0.94);
        box-shadow: none;
    }

    .skx-dock-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
        height: 100%;
    }

    .skx-dock-btn {
        flex: none;
        gap: 2px;
        font-size: 9.5px;
    }

    .skx-dock-btn:not(.is-active) .skx-dock-l {
        display: block;
    }

    .skx-dock-btn.is-active::before {
        top: 20%;
        bottom: 20%;
        left: 0;
        right: auto;
        width: 2px;
        height: auto;
        border-radius: 0 2px 2px 0;
    }

    .skx-dock-btn .skx-tab-badge,
    .skx-dock-btn .skx-star {
        display: none;
    }
}

/* the shortest phones on their side: the rail keeps its icons */
@media (max-height: 360px) and (orientation: landscape) and (max-width: 950px) {
    .skx-dock-l {
        display: none !important;
    }
}

@media (max-width: 639px) {
    /* the player bar's third row: the chip as wide as its value, «Комплекти» takes the rest */
    .skx-bar .skx-bar-viewwrap {
        flex: 0 1 auto;
    }

    .skx-bar .skx-bar-view {
        width: auto;
    }
}

/* dialogs come up from the bottom as sheets on upright phones (the picker stays full screen);
   a phone on its side keeps them centred, see below */
@media (max-width: 639px) and (orientation: portrait) {
    .skx-dialog-wrap:not(.is-picker) {
        place-items: end center;
        padding: 0;
    }

    .skx-dialog-wrap:not(.is-picker) > .skx-dialog,
    .skx-dialog-wrap:not(.is-picker) > .skx-sum {
        width: 100%;
        max-height: 88vh;
        border-bottom: 0;
        border-radius: 22px 22px 0 0;
        transform: translateY(24px);
    }

    .skx-dialog-wrap.is-open:not(.is-picker) > .skx-dialog,
    .skx-dialog-wrap.is-open:not(.is-picker) > .skx-sum {
        transform: none;
    }

    .skx-dialog-wrap:not(.is-picker) > .skx-dialog {
        overflow-y: auto;
        padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
    }

    .skx-dialog-wrap:not(.is-picker) > .skx-sum {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* the grabber */
    .skx-dialog-wrap:not(.is-picker) > .skx-dialog::before,
    .skx-dialog-wrap:not(.is-picker) > .skx-sum::before {
        content: '';
        display: block;
        flex: none;
        width: 40px;
        height: 4px;
        margin: 0 auto 14px;
        border-radius: 4px;
        background: var(--skx-line-3);
    }

    .skx-dialog-wrap:not(.is-picker) > .skx-sum::before {
        margin: 10px auto 0;
    }
}

/* phones on their side: dialogs centred, up to 92vh, the long ones scroll inside */
@media (max-height: 500px) and (orientation: landscape) {
    .skx-dialog-wrap:not(.is-picker) {
        padding: 4vh 16px;
    }

    .skx-dialog-wrap:not(.is-picker) > .skx-dialog {
        max-height: 100%;
        overflow-y: auto;
        padding: 20px 22px;
    }
}

/* narrow phones: «Обидві сторони · Лише CT · Лише T» shares the editor's width instead of running past it;
   the dock's labels («Рукавиці») keep whole in a seventh of 360 */
@media (max-width: 389px) {
    .skx-seg.is-wide .skx-seg-btn {
        flex: 1 1 auto;
        min-width: 0;
        gap: 5px;
        padding: 0 6px;
        font-size: 12px;
    }

    .skx-dock {
        padding-right: max(0px, env(safe-area-inset-right));
        padding-left: max(0px, env(safe-area-inset-left));
    }

    .skx-dock-btn {
        font-size: 10px;
        letter-spacing: -0.02em;
    }

    /* «Зараз на сервері» shortens by the refresh buttons instead of running under them */
    .skx-presence {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .skx-presence-dot {
        display: inline-block;
        margin-right: 6px;
        vertical-align: 1px;
    }

    /* the editor's foot with unsaved changes: three controls in 320 */
    .skx-panel-foot {
        padding-right: 12px;
        padding-left: 12px;
    }

    .skx-foot-actions .skx-btn {
        padding: 0 10px;
    }

    .skx-foot-actions .skx-icon-btn {
        margin-right: 0;
    }

    /* «Примірка» shows as its flask, so the skin's name keeps its room (the word stays for screen readers) */
    .skx-try-pill {
        position: relative;
        width: 28px;
        padding: 0;
        justify-content: center;
    }

    .skx-try-pill > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* «Мій набір» at 360-389: a slimmer picture in the chips, so «Dual Berettas» stays whole (text only below 360) */
@media (min-width: 360px) and (max-width: 389px) {
    .skx-ls.is-std {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    .skx-ls.is-std .skx-ls-img {
        width: 36px;
        max-height: 20px;
    }
}

/* «Мій набір» groups across the width: four slots a row from 760, three below (two on a 568 phone on its side) */
@media (min-width: 640px) and (max-width: 759px), (max-height: 500px) and (orientation: landscape) and (max-width: 759px) {
    .skx-lo-col {
        --lo-cols: 3;
    }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 619px) {
    .skx-lo-col {
        --lo-cols: 2;
    }

    /* Музика / Значок: a smaller picture, so «Стандартна» stays whole */
    .skx-lo-tile.is-mini {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .skx-lo-tile.is-mini .skx-lo-tile-img {
        width: 26px;
        max-height: 26px;
    }
}

/* the editor on a phone held sideways: a wider panel (the stage keeps half), the side switch
   and the footer's buttons share its width instead of running past it */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 960px) {
    .skx-editor-main {
        grid-template-columns: minmax(0, 1fr) min(400px, 52%);
    }

    .skx-panel-side {
        padding: 10px 12px;
    }

    .skx-seg.is-wide .skx-seg-btn {
        flex: 1 1 auto;
        min-width: 0;
        gap: 5px;
        padding: 0 6px;
        font-size: 12px;
    }

    .skx-panel-foot {
        gap: 8px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    }

    .skx-foot-actions {
        min-width: 0;
    }

    .skx-foot-actions .skx-btn {
        flex: 1 1 auto;
        min-width: 0;
        height: 38px;
        padding: 0 12px;
    }

    .skx-foot-actions .skx-icon-btn {
        width: 38px;
        height: 38px;
    }

    /* try mode: the two calls 38 px tall and closer, so the panel keeps room for the list */
    .skx-foot-try {
        gap: 6px;
    }

    .skx-foot-try-row {
        gap: 6px;
    }

    .skx-foot-try-row .skx-btn {
        height: 38px;
        font-size: 13px;
    }

    .skx-foot-try-row .skx-btn--ghost {
        height: auto;
        min-height: 38px;
        padding-block: 5px;
    }

    .skx-foot-try-note {
        font-size: 12px;
        line-height: 1.3;
    }

    /* the view switch: short labels, a little lower profile */
    .skx-vseg {
        top: 8px;
    }

    .skx-vseg button {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .skx-vseg-full {
        display: none;
    }

    .skx-vseg-short {
        display: inline;
    }
}

/* the smallest phones on their side (568-700): the switch names only the open view, the
   panel's tabs drop the counts (the count is in the tab anyway) and draw closer, so all four
   fit whole even with two stars (try mode); if a label is still too long, only «Параметри» shortens */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 700px) {
    .skx-editor-main {
        grid-template-columns: minmax(0, 1fr) min(400px, 54%);
    }

    .skx-vseg button {
        padding: 0 9px;
    }

    .skx-vseg button:not(.is-on) .skx-vseg-short {
        display: none;
    }

    .skx-panel-tabs {
        gap: 0;
        padding: 0 2px;
    }

    .skx-ptab {
        gap: 3px;
        padding: 0 5px;
        font-size: 12.5px;
    }

    .skx-ptab::after {
        left: 5px;
        right: 5px;
    }

    .skx-ptab .skx-tab-badge {
        display: none;
    }

    .skx-ptab .skx-star {
        width: 15px;
        height: 15px;
    }
}

/* XXL: the container keeps the site's 1520, the editor grows to 1600 x 1000 */
@media (min-width: 1920px) {
    .skx-editor {
        width: min(1600px, 100%);
        height: min(1000px, calc(100vh - 48px));
    }

    .skx-stage-img {
        width: min(78%, 760px);
    }
}

/* ============================================================
   Steam value (25.10.2026): «Мій набір», its breakdown, try mode
   ============================================================ */

/* the end of the head: the value, then «Приміряно» */
.skx-lo-head-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    margin-left: auto;
}

.skx-lo-head-end:empty {
    display: none;
}

.skx-lo-value {
    display: grid;
    justify-items: end;
    gap: 3px;
    margin: 0 -2px 0 0;
    padding: 6px 12px 7px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s var(--skx-ease), background-color 0.2s var(--skx-ease);
}

.skx-lo-value:hover,
.skx-lo-value[aria-expanded="true"] {
    border-color: var(--skx-line-2);
    background: rgba(255, 255, 255, 0.025);
}

.skx-lo-value:focus-visible {
    outline: 2px solid var(--glhf-accent);
    outline-offset: 2px;
}

.skx-lo-value-k {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--skx-mute);
}

.skx-lo-value-k .skx-ico:last-child {
    opacity: 0.75;
}

.skx-lo-value:hover .skx-lo-value-k {
    color: var(--skx-dim);
}

.skx-lo-value-n {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--skx-ink);
}

.skx-lo-value-approx {
    margin-right: 6px;
    font-weight: 500;
    color: var(--skx-mute);
}

/* try mode: what it would cost, and the way to have it (a line, not a second gold button) */
.skx-lo-upsell {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(var(--skx-sub-rgb), 0.16);
    background: linear-gradient(90deg, rgba(var(--skx-sub-rgb), 0.07), rgba(var(--skx-sub-rgb), 0.012) 60%, transparent);
}

.skx-lo-upsell-ic {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: -1px;
    border-radius: 7px;
    background: rgba(var(--skx-sub-rgb), 0.13);
    color: var(--skx-sub);
}

.skx-lo-upsell p {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--skx-dim);
}

.skx-lo-upsell-n {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--skx-ink);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.skx-lo-upsell-n .skx-ico {
    color: var(--skx-mute);
}

.skx-lo-upsell-n:hover .skx-ico,
.skx-lo-upsell-n[aria-expanded="true"] .skx-ico {
    color: var(--skx-ink);
}

.skx-lo-upsell-n:focus-visible,
.skx-lo-upsell-go:focus-visible {
    outline: 2px solid var(--glhf-accent);
    outline-offset: 2px;
}

.skx-lo-upsell-go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--skx-sub);
}

.skx-lo-upsell-go:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* «Без ціни: …» under the sentence: quieter than it, names whole (as in the breakdown) */
.skx-lo-upsell-none {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--skx-mute);
}

.skx-lo-upsell-none .skx-pv-none-name {
    color: var(--skx-dim);
}

/* the breakdown: the view chooser's popover / sheet with its own content; the head stays,
   the body scrolls when the window is short (the popover never covers the number) */
.skx-vp-wrap.is-value .skx-vp-pop {
    display: flex;
    flex-direction: column;
}

.skx-pv-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* a block scrolled into view stops above the fade */
    scroll-padding-bottom: 40px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.skx-vp-wrap.is-value .skx-vp-head {
    flex: none;
}

.skx-pv-pop.is-more .skx-pv-body {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
}

@media (min-width: 640px) and (min-height: 501px) {
    .skx-vp-wrap.is-value .skx-vp-pop {
        width: min(390px, calc(100vw - 24px));
    }

    /* above the button: the nub at the bottom, it rises into place */
    .skx-vp-pop.is-above {
        transform: translateY(6px);
    }

    .skx-vp-pop.is-above::before {
        top: auto;
        bottom: -6px;
        border: 0;
        border-right: 1px solid var(--skx-line-2);
        border-bottom: 1px solid var(--skx-line-2);
    }
}

.skx-pv-rows {
    display: grid;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--skx-line);
    background: var(--skx-bg);
}

.skx-pv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--skx-dim);
}

.skx-pv-row.is-now {
    background: var(--skx-surface-2);
    color: var(--skx-ink);
}

.skx-pv-row.is-all {
    margin-top: 2px;
    border-top: 1px solid var(--skx-line);
    border-radius: 0 0 9px 9px;
    font-weight: 600;
    color: var(--skx-ink);
}

img.skx-pv-team {
    flex: none;
    width: 22px;
    height: auto;
}

.skx-pv-team.is-both {
    display: inline-flex;
    flex: none;
    justify-content: center;
    gap: 3px;
    width: 22px;
}

.skx-pv-team.is-both i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--skx-ct);
}

.skx-pv-team.is-both i + i {
    background: var(--skx-t);
}

.skx-pv-label {
    flex: 1;
    min-width: 0;
}

.skx-pv-n {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--skx-ink);
}

.skx-pv-top {
    margin-top: 14px;
}

.skx-pv-k {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-pv-top ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skx-pv-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "pic . ." "pic name price" "pic sub sub" "pic . .";
    align-items: center;
    gap: 1px 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 10px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
}

.skx-pv-pic {
    display: grid;
    grid-area: pic;
    place-items: center;
    width: 54px;
    height: 40px;
    border-radius: 7px;
    background: radial-gradient(70% 80% at 50% 62%, color-mix(in srgb, var(--rarity, #555) 30%, transparent), transparent 75%), var(--skx-bg);
}

.skx-pv-pic img {
    width: 48px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
}

.skx-pv-what {
    display: contents;
}

.skx-pv-name,
.skx-pv-what small {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.skx-pv-name {
    grid-area: name;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--skx-ink);
}

.skx-pv-what small {
    grid-area: sub;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--skx-mute);
}

@media (max-width: 360px) {
    /* the narrowest phones: a smaller picture, more of the name */
    .skx-pv-item {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        column-gap: 9px;
    }

    .skx-pv-pic {
        width: 44px;
        height: 34px;
    }

    .skx-pv-pic img {
        width: 40px;
        max-height: 30px;
    }
}

.skx-pv-price {
    grid-area: price;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--skx-ink);
}

/* «Без ціни» (26.10.2026): what the sums leave out, by name - one quiet line, a well like the side
   rows, right under them (it qualifies the sums; at the end it sat under the fade, out of sight) */
.skx-pv-none {
    margin-top: 10px;
    padding: 10px 12px 11px;
    border-radius: 12px;
    border: 1px solid var(--skx-line);
    background: var(--skx-bg);
}

.skx-pv-none .skx-pv-k {
    margin-bottom: 3px;
}

.skx-pv-none p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--skx-dim);
}

/* a name never breaks in two; one longer than the line is cut */
.skx-pv-none-name,
.skx-pv-none-more {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.skx-pv-none-more {
    color: var(--skx-mute);
}

@media (max-width: 639px) {
    .skx-lo-head-end {
        width: 100%;
        justify-content: stretch;
    }

    /* a row of its own: the label on the left, the sum on the right */
    .skx-lo-value {
        display: flex;
        flex: 1 1 100%;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        margin: 0;
        padding: 8px 14px;
        border-color: var(--skx-line);
        background: rgba(8, 11, 14, 0.5);
    }

    .skx-lo-value-n {
        font-size: 19px;
    }

    /* the narrowest phones: the sum goes under the label rather than past the edge */
    .skx-lo-value {
        flex-wrap: wrap;
        gap: 2px 10px;
        min-width: 0;
    }

    .skx-lo-upsell p {
        font-size: 13.5px;
    }
}

@media (max-width: 389px) {
    .skx-lo-value {
        padding: 8px 12px;
    }

    .skx-lo-value-k {
        letter-spacing: 0.05em;
    }

    .skx-lo-value-n {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-lo-value {
        transition: none;
    }
}

/* a card's price: small, quiet, never the loudest thing on it */
.skx-price {
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--skx-dim);
}

.skx-ls-price {
    margin-left: auto;
    padding-left: 6px;
}

.skx-ls-price {
    position: absolute;
    right: 9px;
    bottom: 5px;
    font-size: 11px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.skx-ls.is-rich:has(.skx-ls-price) .skx-ls-img {
    align-self: start;
    margin-top: 1px;
}

/* knife and gloves: over the picture's lower right corner (its cell of the grid); music and pin rows: the right end */
.skx-lo-tile:not(.is-mini) > .skx-lo-tile-img {
    grid-row: 2;
    grid-column: 1;
}

.skx-lo-tile:not(.is-mini) > .skx-lo-tile-price {
    position: relative;
    z-index: 1;
    grid-row: 2;
    grid-column: 1;
    align-self: end;
    justify-self: end;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.skx-lo-tile-price.is-end {
    position: absolute;
    top: 50%;
    right: 12px;
    margin: 0;
    transform: translateY(-50%);
}

.skx-lo-mini-wrap .skx-lo-tile-price.is-end {
    right: 58px;
}

.skx-lo-tile.is-mini:has(.skx-lo-tile-price.is-end) {
    padding-right: 84px;
}

.skx-lo-mini-wrap > .skx-lo-tile:has(.skx-lo-tile-price.is-end) {
    padding-right: 130px;
}

.skx-lo-agent-price::before {
    content: '·';
    margin: 0 6px;
    color: var(--skx-mute);
}

/* the editor: «від …» on the skin tiles, the price of each exterior, «У Steam» among the facts */
.skx-skin:has(.skx-skin-price) .skx-skin-name {
    margin-bottom: 1px;
}

.skx-skin-price {
    display: block;
    margin: 0 9px 9px;
    font-size: 11px;
    font-weight: 500;
    color: var(--skx-mute);
}

.skx-preset .skx-preset-price {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-overflow: clip;
    color: var(--skx-dim);
}

.skx-presets:has(.skx-preset-price) .skx-preset {
    padding-right: 6px;
    padding-left: 8px;
}

.skx-preset.is-active .skx-preset-price {
    color: var(--skx-ink);
}

.skx-fact.is-price small {
    font-size: 11.5px;
    color: var(--skx-mute);
}

/* «Комплекти»: the set's value at the right of its name */
.skx-kit-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.skx-kit-titles {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
}

/* a button (26.10): it opens the breakdown, like the head of «Мій набір»; quiet until hovered */
.skx-kit-value {
    display: grid;
    flex: none;
    justify-items: end;
    gap: 2px;
    /* the padding is only for the hover well: the margins give its room back to the name */
    margin: -5px -8px -5px -8px;
    padding: 5px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s var(--skx-ease), background-color 0.2s var(--skx-ease);
}

.skx-kit-value:hover,
.skx-kit-value[aria-expanded="true"] {
    border-color: var(--skx-line-2);
    background: rgba(255, 255, 255, 0.025);
}

.skx-kit-value:focus-visible {
    outline: 2px solid var(--glhf-accent);
    /* inside: the margins pull the well up to the date, an outer ring would touch it */
    outline-offset: -2px;
}

.skx-kit-value-k {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--skx-mute);
}

.skx-kit-value-k .skx-ico {
    opacity: 0.7;
}

.skx-kit-value:hover .skx-kit-value-k {
    color: var(--skx-dim);
}

/* «без ціни: 2»: only on a set with things the sum leaves out; the names are in the breakdown.
   Inside the button (its hover well and focus ring take it in), but its height is given back with
   a negative margin: it hangs in the gap over the stats, so cards in a row keep one rhythm */
.skx-kit-value.has-none {
    margin-bottom: -17px;
    padding-bottom: 1px;
}

.skx-kit-value-none {
    margin-top: -3px;
    font-size: 10.5px;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--skx-mute);
}

.skx-kit-value strong {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--skx-ink);
}

.skx-kit-value strong i {
    margin-right: 5px;
    font-style: normal;
    font-weight: 500;
    color: var(--skx-mute);
}

/* catalog cards: the price at the end of the meta line */
.skx-card-price::before {
    content: '·';
    margin: 0 6px;
    color: var(--skx-mute);
}

.skx-card-price.is-first::before {
    content: none;
}

/* ============================================================
   «Поділитися набором» (25.10.2026): the share sheet, its buttons
   ============================================================ */

/* «Мій набір»: next to the value; a Комплект card: between «Застосувати» and «⋯» */
.skx-lo-share {
    flex: none;
}

.skx-kit-share {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-dim);
}

.skx-kit-share:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

/* a narrow card (a 320 phone, two columns at 640-760, the star of try mode): «Застосувати» keeps
   its whole label, «Поділитися» stays in the «⋯» menu; the card is the container, not the screen */
.skx-kits-grid > .skx-kit {
    container: skx-kit / inline-size;
}

@container skx-kit (max-width: 319px) {
    .skx-kit-share {
        display: none;
    }
}

/* two columns at 640 with the star of try mode: a little less air inside the button */
@container skx-kit (max-width: 279px) {
    .skx-kit-go {
        gap: 6px;
        padding-inline: 10px;
    }
}

.skx-sum.skx-share {
    width: min(1060px, 100%);
    max-height: min(820px, 100%);
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(70% 40% at 0% 0%, rgba(var(--glhf-accent-rgb), 0.05), transparent 60%),
        linear-gradient(180deg, #0f161b, var(--skx-surface) 240px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 50px 120px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skx-share-body {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: minmax(0, 1.36fr) minmax(330px, 1fr);
    align-items: start;
    gap: 28px;
    padding: 26px 28px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ---------- the card as it will be seen ---------- */

.skx-share-stage {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 0;
}

.skx-share-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(60% 70% at 30% 90%, rgba(126, 166, 242, 0.08), transparent 70%),
        #06080b;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 70px -34px rgba(0, 0, 0, 0.95), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}

.skx-share-frame.is-tall {
    width: auto;
    height: min(540px, 58vh);
    max-width: 100%;
    aspect-ratio: 1080 / 1350;
}

.skx-share-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s var(--skx-ease);
}

.skx-share-img.is-loaded {
    opacity: 1;
}

/* drawing: a quiet shimmer under a spinner; drawing again: the old card dims under it */
.skx-share-frame.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.015) 70%) 0 0 / 300% 100%;
    animation: skx-shimmer 1.6s ease-in-out infinite;
}

.skx-share-veil {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(6, 8, 11, 0.5);
    color: var(--skx-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--skx-ease);
}

.skx-share-frame.is-loading .skx-share-veil,
.skx-share-frame.is-busy .skx-share-veil,
.skx-share-frame:not(.is-ready):not(.is-loading) .skx-share-veil {
    opacity: 1;
}

.skx-share-frame.is-loading .skx-share-veil {
    background: none;
}

.skx-share-seg.is-format .skx-seg-btn {
    min-width: 112px;
}

/* ---------- options, the link, where to send it ---------- */

.skx-share-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}

.skx-share-opts {
    display: grid;
    border-radius: 14px;
    border: 1px solid var(--skx-line);
    background: rgba(8, 11, 14, 0.45);
}

.skx-share-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
    padding: 10px 14px 10px 16px;
}

/* «Назва»: the field under its label, the whole width */
.skx-share-opt.is-title {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px 14px 16px;
}

.skx-share-title {
    height: 40px;
}

.skx-share-opt + .skx-share-opt {
    border-top: 1px solid var(--skx-line);
}

.skx-share-opt-l {
    display: grid;
    gap: 3px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--skx-ink);
}

.skx-share-opt-l small {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--skx-dim);
}

.skx-share-seg.is-side .skx-seg-btn {
    gap: 6px;
    padding: 0 11px;
}

.skx-share-team {
    display: block;
    width: 18px;
    height: auto;
    opacity: 0.55;
    transition: opacity 0.18s;
}

.skx-seg-btn.is-active .skx-share-team {
    opacity: 1;
}

.skx-switch {
    position: relative;
    flex: none;
    width: 46px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-3);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.skx-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c9d1d8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transition: transform 0.22s var(--skx-ease), background-color 0.2s;
}

.skx-switch.is-on {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    background: rgba(var(--glhf-accent-rgb), 0.85);
}

.skx-switch.is-on i {
    background: #04110a;
    transform: translateX(18px);
}

.skx-switch:disabled {
    opacity: 0.5;
    cursor: progress;
}

.skx-switch:focus-visible,
.skx-share-act:focus-visible,
.skx-share-url:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 7px 0 15px;
    border-radius: 13px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-bg);
    color: var(--skx-mute);
}

.skx-share-url {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--skx-ink);
    font: inherit;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
}

.skx-share-url:focus-visible {
    outline-offset: -2px;
}

.skx-share-link.is-pending .skx-share-url::placeholder {
    color: var(--skx-mute);
}

.skx-share-copy {
    flex: none;
    height: 40px;
}

.skx-share-acts {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
}

.skx-share-act {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 88px;
    padding: 12px 6px 11px;
    border-radius: 13px;
    border: 1px solid var(--skx-line);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, transform 0.18s var(--skx-ease);
}

/* four destinations: two by two, the icon beside the label (four in a row cut the labels) */
.skx-share-acts.is-four {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skx-share-acts.is-four .skx-share-act {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 58px;
    padding: 9px 14px 9px 10px;
    font-size: 13px;
    text-align: left;
}

.skx-share-acts.is-four .skx-share-act-ic {
    flex: none;
    width: 38px;
    height: 38px;
}

.skx-share-act:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-3);
    color: var(--skx-ink);
}

.skx-share-act:disabled,
.skx-share-act[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.skx-share-act-ic {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    --tone: 238, 242, 245;
    background: rgba(var(--tone), 0.08);
    box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.16);
    color: rgb(var(--tone));
}

.skx-share-act-l {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the destinations keep their own colours, softly */
.skx-share-act:nth-child(2) .skx-share-act-ic {
    --tone: var(--glhf-accent-rgb);
}

.skx-share-act[href*="t.me"] .skx-share-act-ic {
    --tone: 42, 171, 238;
}

.skx-share-act:last-child .skx-share-act-ic {
    --tone: 128, 137, 255;
}

.skx-share-err {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 93, 93, 0.3);
    background: rgba(239, 93, 93, 0.07);
    font-size: 13.5px;
    color: var(--skx-ink);
}

.skx-share-err > span {
    flex: 1 1 180px;
}

.skx-share-err .skx-ico {
    color: var(--skx-danger);
}

.skx-share-foot {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding-top: 2px;
}

.skx-share-foot p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--skx-mute);
}

.skx-share-del {
    margin-left: -13px;
    color: var(--skx-mute);
}

.skx-share-del:hover:not(:disabled) {
    color: var(--skx-danger);
}

.skx-share-guest {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 10px;
    padding: 30px 10px 34px;
    text-align: center;
}

.skx-share-guest h4 {
    margin: 6px 0 0;
    font-family: var(--glhf-font-heading);
    font-size: 19px;
    color: var(--skx-ink);
}

.skx-share-guest p {
    max-width: 360px;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
}

.skx-dialog-wrap.is-share .skx-sum.is-guest {
    width: min(480px, 100%);
}

/* tablets and narrow windows: one column, the card on top */
@media (max-width: 959px) {
    .skx-sum.skx-share {
        width: min(640px, 100%);
        max-height: min(960px, 100%);
    }

    .skx-share-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px 22px 24px;
    }
}

/* upright phones: a sheet from the bottom (the shared rule), the card full width */
@media (max-width: 639px) and (orientation: portrait) {
    .skx-dialog-wrap.is-share > .skx-sum.skx-share {
        max-height: calc(100% - max(10px, env(safe-area-inset-top)));
    }

    .skx-share-body {
        gap: 16px;
        padding: 14px 16px 20px;
    }

    .skx-share-frame {
        border-radius: 12px;
    }

    .skx-share-frame.is-tall {
        height: min(460px, 50vh);
    }

    .skx-share-opt {
        min-height: 58px;
        padding: 9px 12px 9px 14px;
    }

    .skx-share-copy {
        height: 42px;
    }

    .skx-share-act {
        min-height: 80px;
        padding: 10px 4px;
        font-size: 12px;
    }

    .skx-share-act-ic {
        width: 38px;
        height: 38px;
    }

    .skx-share-acts.is-four .skx-share-act {
        gap: 10px;
        min-height: 54px;
        padding: 8px 10px 8px 8px;
        font-size: 12.5px;
    }

    .skx-share-acts.is-four .skx-share-act-ic {
        width: 34px;
        height: 34px;
    }
}

/* phones up to 420 px: the side picker drops its emblems (with them the row is wider than the sheet) */
@media (max-width: 420px) {
    .skx-share-seg.is-side .skx-share-team {
        display: none;
    }
}

/* the narrowest phones: the copy button drops its label; the destinations go two by two, the icon over
   the label (a third one takes the whole row, its icon beside the label) */
@media (max-width: 374px) {
    .skx-share-acts {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skx-share-act,
    .skx-share-acts.is-four .skx-share-act {
        display: grid;
        justify-content: stretch;
        justify-items: center;
        min-height: 74px;
        padding: 10px 4px;
        font-size: 12px;
        text-align: center;
    }

    .skx-share-acts.is-four .skx-share-act-ic {
        width: 38px;
        height: 38px;
    }

    .skx-share-act:last-child:nth-child(odd) {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 56px;
        padding: 8px 12px;
    }

    .skx-share-act:last-child:nth-child(odd) .skx-share-act-ic {
        width: 34px;
        height: 34px;
    }

    .skx-share-copy > span {
        display: none;
    }

    .skx-share-copy {
        width: 44px;
        padding: 0;
    }

    .skx-share-opt {
        padding-right: 10px;
        padding-left: 12px;
    }
}

.skx-share-frame.is-failed .skx-share-veil {
    opacity: 1;
    background: none;
    color: var(--skx-mute);
}

/* phones on their side: two columns again, the card smaller */
@media (max-height: 500px) and (orientation: landscape) {
    .skx-sum.skx-share {
        width: min(860px, 100%);
    }

    .skx-share-body {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
        gap: 18px;
        padding: 14px 18px 18px;
    }

    .skx-share-frame.is-tall {
        height: min(300px, 70vh);
    }

    .skx-share-head .skx-kits-titles p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skx-share-img,
    .skx-share-veil,
    .skx-switch,
    .skx-switch i,
    .skx-share-act {
        transition: none;
    }

    .skx-share-frame.is-loading::before {
        animation: none;
    }
}

/* ============================================================
   Фільтр за кольором (25.10.2026): swatches in the real colour of the skins
   ============================================================ */

/* the swatch: a small glossy bead; --sw is the colour (or a metal gradient) of its code */
.skx-sw-dot {
    position: relative;
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%), var(--sw, #7b8794);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 -2px 3px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s var(--skx-ease), outline-color 0.18s;
}

:is(.skx-sw, .skx-sw-dot)[data-c="r"] { --sw: #d93b40; }
:is(.skx-sw, .skx-sw-dot)[data-c="o"] { --sw: #ec7b2b; }
:is(.skx-sw, .skx-sw-dot)[data-c="y"] { --sw: #eccb3c; }
:is(.skx-sw, .skx-sw-dot)[data-c="d"] { --sw: linear-gradient(140deg, #f6e1a0 0%, #d4a644 46%, #8c6520 100%); }
:is(.skx-sw, .skx-sw-dot)[data-c="g"] { --sw: #46a95b; }
:is(.skx-sw, .skx-sw-dot)[data-c="t"] { --sw: #2db5ac; }
:is(.skx-sw, .skx-sw-dot)[data-c="b"] { --sw: #3b73e1; }
:is(.skx-sw, .skx-sw-dot)[data-c="v"] { --sw: #8757dc; }
:is(.skx-sw, .skx-sw-dot)[data-c="p"] { --sw: #e2659f; }
:is(.skx-sw, .skx-sw-dot)[data-c="n"] { --sw: #8a5b37; }
:is(.skx-sw, .skx-sw-dot)[data-c="w"] { --sw: #eef0f2; }
:is(.skx-sw, .skx-sw-dot)[data-c="s"] { --sw: linear-gradient(140deg, #eef1f4 0%, #a8afb7 48%, #656c74 100%); }
:is(.skx-sw, .skx-sw-dot)[data-c="k"] { --sw: #121417; }

/* black on the dark page: a lighter rim so it reads as a bead, not a hole */
.skx-sw[data-c="k"] .skx-sw-dot,
.skx-sw-dot[data-c="k"] {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* the swatch button: a 28 px target around the bead */
.skx-sw {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.skx-sw:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.skx-sw.is-active .skx-sw-dot {
    outline: 1.5px solid var(--skx-ink);
    outline-offset: 3px;
}

.skx-sw:focus-visible .skx-sw-dot {
    outline: 2px solid var(--glhf-accent);
    outline-offset: 3px;
}

.skx-sw[disabled] {
    cursor: default;
}

.skx-sw[disabled] .skx-sw-dot {
    opacity: 0.2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .skx-sw:not([disabled]):hover .skx-sw-dot {
        transform: scale(1.14);
    }
}

/* the name above the bead: on hover and keyboard focus (phones read the chip of the chosen one).
   Not in the layout until shown (display), so a hidden tip never makes the row look scrollable. */
.skx-sw[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    display: none;
    width: max-content;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1b252d;
    box-shadow: inset 0 0 0 1px var(--skx-line-3), 0 14px 34px -10px rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--skx-ink);
    pointer-events: none;
    transform: translateX(-50%);
}

@media (hover: hover) {
    .skx-sw[data-tip]:not([disabled]):hover::after {
        display: block;
    }
}

.skx-sw[data-tip]:focus-visible::after {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .skx-sw[data-tip]::after {
        animation: skx-sw-tip 0.16s var(--skx-ease);
    }
}

@keyframes skx-sw-tip {
    from {
        opacity: 0;
        transform: translate(-50%, 3px);
    }
}

.skx-colors {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* the chosen colour: «● Червоний ×» */
.skx-color-on {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 9px 0 7px;
    border-radius: var(--glhf-radius-full);
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface-2);
    color: var(--skx-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-color-on .skx-sw-dot {
    width: 12px;
    height: 12px;
}

.skx-color-on .skx-ico {
    color: var(--skx-mute);
}

.skx-color-on:hover {
    border-color: var(--skx-line-3);
}

.skx-color-on:hover .skx-ico {
    color: var(--skx-ink);
}

.skx-color-on:focus-visible {
    outline: 2px solid var(--glhf-accent);
    outline-offset: 2px;
}

.skx-color-slot:empty {
    display: none;
}

.skx-colorbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.skx-colorbar-k {
    flex: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--skx-mute);
}

.skx-color-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.skx-sw-dot.is-big {
    width: 34px;
    height: 34px;
}

@media (prefers-reduced-motion: reduce) {
    .skx-sw-dot {
        transition: none;
    }
}

/* quiet until asked: the beads rest a little dimmed, the chosen one stands out of the others */
.skx-colorbar .skx-sw:not(.is-active) .skx-sw-dot {
    opacity: 0.72;
}

.skx-colorbar.is-on .skx-sw:not(.is-active) .skx-sw-dot {
    opacity: 0.4;
}

.skx-colorbar .skx-sw:not([disabled]):hover .skx-sw-dot,
.skx-colorbar .skx-sw:focus-visible .skx-sw-dot {
    opacity: 1;
}

.skx-colorbar .skx-sw[disabled] .skx-sw-dot {
    opacity: 0.16;
}

@media (max-width: 639px) {
    .skx-colorbar {
        gap: 8px;
    }

    .skx-colorbar-k {
        display: none;
    }
}

/* the skin list of the editor: the beads under the search, above the rarity chips; the panel is
   narrow, so no «Колір» word (the beads say it) */
.skx-color-slot.is-panel {
    margin-top: 12px;
}

.skx-colorbar.is-panel {
    gap: 6px;
}

.skx-colorbar.is-panel .skx-colorbar-k {
    display: none;
}

.skx-colorbar.is-panel .skx-colors {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0;
    margin-left: -5px;
}

/* the beads give a little of their targets before the row would spill (a 340 px panel at 960-1279) */
.skx-colorbar.is-panel .skx-sw {
    flex: 0 1 28px;
    min-width: 23px;
}

@media (max-width: 389px) {
    /* a 320 phone: the row scrolls with its fades, the cross stays at the end */
    .skx-colorbar.is-panel .skx-colors {
        flex: 1 1 auto;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .skx-colorbar.is-panel .skx-colors::-webkit-scrollbar {
        display: none;
    }

    .skx-colorbar.is-panel .skx-sw {
        flex: none;
        width: 27px;
        height: 32px;
    }
}

/* in the panel the chosen colour's chip is just its cross at the end of the beads (the ring marks
   the colour; its name is the tip and the label) */
.skx-colorbar.is-panel .skx-color-on {
    flex: none;
    justify-content: center;
    width: 28px;
    padding: 0;
    gap: 0;
}

.skx-colorbar.is-panel .skx-color-on > :not(.skx-ico) {
    display: none;
}

/* ============================================================
   «Значки» by category (26.10.2026): tiles of the categories, then of the
   groups inside a big one (events, seasons, years, operations), then the pins.
   renderPins in skinchanger.js; the pictures come from glhf_skins_pin_tree.
   ============================================================ */

.skx-pk-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0 0 16px;
}

.skx-pk-nav[hidden] {
    display: none;
}

.skx-pk-back {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid var(--skx-line-2);
    background: var(--skx-surface);
    color: var(--skx-ink);
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.skx-pk-back:hover {
    border-color: var(--skx-line-3);
    background: var(--skx-surface-2);
}

.skx-pk-crumbs {
    flex: 1;
    min-width: 0;
}

.skx-pk-crumbs ol {
    display: flex;
    align-items: baseline;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skx-pk-crumbs li {
    display: flex;
    flex: none;
    align-items: baseline;
    min-width: 0;
}

.skx-pk-crumbs li.is-here {
    flex: 0 1 auto;
}

/* a quiet slash between the crumbs */
.skx-pk-crumbs li + li::before {
    content: '/';
    margin: 0 10px;
    color: var(--skx-mute);
    opacity: 0.6;
}

.skx-pk-crumb {
    padding: 0;
    border: 0;
    background: none;
    color: var(--skx-dim);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s;
}

.skx-pk-crumb:hover {
    color: var(--skx-ink);
}

.skx-pk-title {
    overflow: hidden;
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-pk-title:focus {
    outline: none;
}

.skx-pk-title:focus-visible {
    border-radius: 4px;
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 3px;
}

.skx-pk-count {
    flex: none;
    margin-left: auto;
    font-size: 13px;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

/* the tiles */

.skx-pk-grid {
    display: grid;
    gap: 14px;
}

.skx-pk-grid.is-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skx-pk-grid.is-groups {
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.skx-pk {
    --kit-glow: #7b8794;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--skx-line-2);
    background: linear-gradient(180deg, var(--skx-surface-2), var(--skx-surface) 78%);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.3s var(--skx-ease), transform 0.3s var(--skx-ease);
}

.skx-pk:hover {
    border-color: var(--skx-line-3);
}

.skx-pk:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.7);
    outline-offset: 2px;
}

.skx-pk-stage {
    position: relative;
    display: block;
    height: 172px;
    overflow: hidden;
    background:
        radial-gradient(52% 70% at 50% 58%, color-mix(in srgb, var(--kit-glow) 22%, transparent), transparent 72%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, #0c1216, #080c0f);
}

/* the line where the picture ends, in the lead picture's colour */
.skx-pk-stage::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kit-glow) 50%, transparent);
    opacity: 0.5;
}

.skx-pk.is-group .skx-pk-stage {
    height: 132px;
}

/* an event name never ends in «…» («Copenhagen 2024», «Cluj-Napoca 2015» on narrow tiles): a second line */
.skx-pk.is-group .skx-pk-name {
    display: -webkit-box;
    font-size: 16px;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.skx-pk.is-group .skx-pk-body {
    grid-template-rows: 1fr auto;
    padding-right: 48px;
}

/* the pictures: the lead in the middle, the next two lower at its sides (a fourth only on the widest tiles) */
.skx-pk-pic {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: auto;
    max-height: 62%;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.35s, transform 0.45s var(--skx-ease);
}

.skx-pk-pic.is-loaded {
    opacity: 1;
}

.skx-pk-pic.is-broken {
    display: none;
}

.skx-pk-pic.is-0 {
    z-index: 3;
    width: 44%;
    max-height: 86%;
}

.skx-pk-pic.is-1,
.skx-pk-pic.is-2 {
    z-index: 2;
    top: 56%;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6)) brightness(0.8) saturate(0.9);
}

.skx-pk-pic.is-1 {
    left: 21%;
}

.skx-pk-pic.is-2 {
    left: 79%;
}

.skx-pk-pic.is-3 {
    display: none;
}

.skx-pk-stage.is-n1 .skx-pk-pic.is-0 {
    width: 48%;
}

.skx-pk-stage.is-n2 .skx-pk-pic.is-0 {
    left: 40%;
}

.skx-pk-stage.is-n2 .skx-pk-pic.is-1 {
    left: 70%;
}

/* a wide drawing (a Premier season, a viewer pass) a little smaller and further out, a tall one (a trophy)
   taller: three pictures side by side, none on top of another (picShape) */
.skx-pk-pic.is-0.is-wide {
    width: 40%;
}

:is(.is-n3, .is-n4) > .skx-pk-pic.is-wide:is(.is-1, .is-2) {
    width: 25%;
}

:is(.is-n3, .is-n4) > .skx-pk-pic.is-wide.is-1 {
    left: 18%;
}

:is(.is-n3, .is-n4) > .skx-pk-pic.is-wide.is-2 {
    left: 82%;
}

.skx-pk-pic.is-tall:is(.is-1, .is-2) {
    top: 53%;
    width: 46%;
    max-height: 76%;
}

.skx-pk-body {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
    padding: 14px 52px 16px 16px;
}

.skx-pk-name {
    overflow: hidden;
    font-family: var(--glhf-font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-ink);
}

.skx-pk-sub {
    overflow: hidden;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--skx-mute);
    font-variant-numeric: tabular-nums;
}

.skx-pk-part {
    white-space: nowrap;
}

.skx-pk-go {
    position: absolute;
    right: 14px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--skx-line-2);
    color: var(--skx-dim);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.3s var(--skx-ease);
}

.skx-pk:hover .skx-pk-go,
.skx-pk:focus-visible .skx-pk-go {
    border-color: var(--skx-line-3);
    background: rgba(255, 255, 255, 0.04);
    color: var(--skx-ink);
}

/* the pin that is on now is inside */
.skx-pk-mine {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px 0 8px;
    border-radius: 999px;
    background: rgba(8, 11, 14, 0.72);
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.35);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--skx-ink);
    backdrop-filter: blur(6px);
}

.skx-pk-mine::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glhf-accent);
}

.skx-pk.has-current {
    border-color: rgba(var(--glhf-accent-rgb), 0.32);
}

/* while the categories come */
.skx-pk.is-skeleton {
    pointer-events: none;
}

.skx-pk.is-skeleton .skx-pk-stage,
.skx-pk.is-skeleton .skx-sk-line {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%;
    animation: skx-shimmer 1.6s ease-in-out infinite;
}

.skx-pk.is-skeleton .skx-pk-stage::after {
    display: none;
}

.skx-pk-view .skx-grid-head:first-child {
    margin-top: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .skx-pk:hover {
        transform: translateY(-2px);
        box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .skx-pk:hover .skx-pk-pic.is-0.is-loaded {
        transform: translate(-50%, -52%) scale(1.04);
    }

    .skx-pk:hover .skx-pk-go {
        transform: translateX(2px);
    }
}

/* a new level comes in from the side it was asked from */
@media (prefers-reduced-motion: no-preference) {
    .skx-pk-view.is-enter-down {
        animation: skx-pk-in-down 0.26s var(--skx-ease) both;
    }

    .skx-pk-view.is-enter-up {
        animation: skx-pk-in-up 0.26s var(--skx-ease) both;
    }
}

@keyframes skx-pk-in-down {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes skx-pk-in-up {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .skx-pk,
    .skx-pk-pic,
    .skx-pk-go {
        transition: none !important;
    }

    .skx-pk.is-skeleton .skx-pk-stage,
    .skx-pk.is-skeleton .skx-sk-line {
        animation: none !important;
    }
}

/* the widest: the fourth picture far at the sides of the category tiles */
@media (min-width: 1440px) {
    .skx-pk.is-cat .skx-pk-stage {
        height: 188px;
    }
}

/* M 640-959: two category tiles across, the groups as the catalogue (three) */
@media (max-width: 959px) {
    .skx-pk-grid.is-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skx-pk-grid.is-groups {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* phones: the categories are rows (their names are long: never cut), the groups two tiles across */
@media (max-width: 639px) {
    .skx-pk-grid {
        gap: 10px;
    }

    .skx-pk-grid.is-cats {
        grid-template-columns: minmax(0, 1fr);
    }

    .skx-pk.is-cat {
        flex-direction: row;
        align-items: center;
        min-height: 92px;
    }

    .skx-pk.is-cat .skx-pk-stage {
        flex: none;
        align-self: stretch;
        width: 128px;
        height: auto;
        min-height: 92px;
    }

    /* the line where the picture ends stands on its right side here */
    .skx-pk.is-cat .skx-pk-stage::after {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, transparent, var(--kit-glow) 50%, transparent);
    }

    .skx-pk.is-cat .skx-pk-pic.is-0 {
        width: 54%;
    }

    .skx-pk.is-cat .skx-pk-pic.is-1,
    .skx-pk.is-cat .skx-pk-pic.is-2 {
        width: 32%;
    }

    .skx-pk.is-cat .skx-pk-pic.is-1 {
        left: 19%;
    }

    .skx-pk.is-cat .skx-pk-pic.is-2 {
        left: 81%;
    }

    .skx-pk.is-cat .skx-pk-pic.is-0.is-wide {
        width: 50%;
    }

    .skx-pk.is-cat :is(.is-n3, .is-n4) > .skx-pk-pic.is-wide:is(.is-1, .is-2) {
        width: 26%;
    }

    .skx-pk.is-cat :is(.is-n3, .is-n4) > .skx-pk-pic.is-wide.is-1 {
        left: 15%;
    }

    .skx-pk.is-cat :is(.is-n3, .is-n4) > .skx-pk-pic.is-wide.is-2 {
        left: 85%;
    }

    .skx-pk.is-cat .skx-pk-pic.is-tall:is(.is-1, .is-2) {
        width: 50%;
    }

    .skx-pk.is-cat .skx-pk-body {
        flex: 1;
        gap: 4px;
        padding: 12px 48px 12px 16px;
    }

    .skx-pk.is-cat .skx-pk-name {
        font-size: 16px;
        white-space: normal;
    }

    .skx-pk.is-cat .skx-pk-go {
        top: 50%;
        right: 12px;
        bottom: auto;
        display: grid;
        transform: translateY(-50%);
    }

    .skx-pk.is-cat .skx-pk-mine {
        position: static;
        justify-self: start;
        margin-top: 3px;
        background: rgba(var(--glhf-accent-rgb), 0.08);
        backdrop-filter: none;
    }

    .skx-pk-grid.is-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skx-pk {
        border-radius: 14px;
    }

    .skx-pk-stage,
    .skx-pk.is-group .skx-pk-stage {
        height: 112px;
    }

    /* the arrow is hidden on the group tiles here: its room goes to the name */
    .skx-pk-body,
    .skx-pk.is-group .skx-pk-body {
        padding: 11px 12px 13px;
    }

    /* a long event name takes a second line instead of «…», broken between words only */
    .skx-pk-name {
        display: -webkit-box;
        font-size: 15px;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .skx-pk-sub {
        font-size: 12px;
        white-space: normal;
    }

    .skx-pk.is-group .skx-pk-go {
        display: none;
    }

    .skx-pk-mine {
        top: 8px;
        left: 8px;
        height: 22px;
        font-size: 11px;
    }

    .skx-pk-nav {
        flex-wrap: wrap;
        gap: 4px 10px;
        margin-bottom: 12px;
    }

    .skx-pk-back {
        width: 36px;
        height: 36px;
    }

    .skx-pk-title {
        font-size: 17px;
    }

    /* under the title, in line with it */
    .skx-pk-count {
        flex: 0 0 100%;
        margin: 0;
        padding-left: 46px;
        font-size: 12.5px;
    }
}

/* phones inside a category: «Зараз» in one line (the kicker and «розділ · група» go, the picture smaller) */
@media (max-width: 639px) {
    .skx-pin-now.is-compact {
        gap: 10px;
        margin-bottom: 12px;
        padding: 6px 8px 6px 6px;
    }

    .skx-pin-now.is-compact .skx-pin-now-media {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .skx-pin-now.is-compact .skx-pin-now-img {
        width: 34px;
        max-height: 34px;
    }

    .skx-pin-now.is-compact .skx-pin-now-sub {
        display: none;
    }

    .skx-pin-now.is-compact .skx-pin-now-kicker {
        font-size: 10px;
    }

    .skx-pin-now.is-compact .skx-pin-now-title {
        display: block;
        font-size: 14px;
        white-space: nowrap;
        -webkit-line-clamp: none;
    }

    .skx-pin-now.is-compact > .skx-btn {
        position: relative;
        padding: 0 10px;
    }

    .skx-pin-now.is-compact .skx-pin-now-x {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* the narrowest (320-389): the category rows give the picture less room, the names more;
   the group names a size smaller, so «Copenhagen 2024» breaks between its words */
@media (max-width: 389px) {
    .skx-pk.is-cat .skx-pk-stage {
        width: 100px;
    }

    .skx-pk.is-cat .skx-pk-body {
        padding: 12px 42px 12px 14px;
    }

    .skx-pk.is-cat .skx-pk-go {
        right: 10px;
        width: 26px;
        height: 26px;
    }

    .skx-pk.is-group .skx-pk-stage {
        height: 100px;
    }

    .skx-pk.is-group .skx-pk-body {
        padding: 10px 11px 12px;
    }

    .skx-pk.is-group .skx-pk-name {
        font-size: 14px;
    }
}

/* the narrowest: only the parent's crumb before the title («←» goes up anyway) */
@media (max-width: 389px) {
    .skx-pk-crumbs li:not(.is-here):not(:nth-last-child(2)) {
        display: none;
    }

    .skx-pk-crumbs li + li::before {
        margin: 0 7px;
    }

    .skx-pk-crumbs li:nth-last-child(2)::before {
        display: none;
    }

    .skx-pk-crumb {
        font-size: 13px;
    }
}

/* the section bar has the way back from 640 px; phones keep the crumb over the section */
@media (min-width: 640px) {
    .skx-crumb-row {
        display: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    .skx-toolbar .skx-tb-lead {
        display: none;
    }

    .skx-crumb-row {
        display: flex;
    }
}

/* phones: «Мій набір»'s CT / T across the width, the short names only */
@media (max-width: 639px) {
    .skx-lo-head-text {
        flex: 1 1 100%;
    }

    .skx-lo-head-text:has(.skx-lo-sides) {
        flex-direction: column;
        align-items: stretch;
    }


    .skx-lo-sides .skx-side {
        width: 100%;
    }

    /* the longer «Спецпризначенці» takes more of the width, so both names fit from 360 px */
    .skx-lo-sides .skx-side-btn {
        flex: 1 1 auto;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        padding: 0 8px;
    }

    .skx-lo-sides .skx-side-name {
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

/* ============================================================
   «Оглянути»: a dialog with the skin stage and what is on the item (openInspect in
   skinchanger-stage.js) - the share page's tiles, the agents of the skin changer
   ============================================================ */

html.skx-insp-locked,
html.skx-insp-locked body {
    overflow: hidden;
}

.skx-insp {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 6, 8, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.26s var(--sh-ease, ease);
}

.skx-insp.is-in {
    opacity: 1;
}

.skx-insp-box {
    --sh-surface: #0d1216;
    --sh-surface-2: #11181d;
    --sh-line: rgba(255, 255, 255, 0.07);
    --sh-line-2: rgba(255, 255, 255, 0.12);
    --sh-ink: #eef2f5;
    --sh-dim: #9aa5b0;
    --sh-mute: #66717c;
    --sh-gold: #f5e6bd;
    --sh-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    width: min(1280px, 100%);
    height: min(780px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--rarity, #7b8794) 30%, rgba(255, 255, 255, 0.08));
    background: #0a0f13;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    color: var(--sh-dim);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.32s var(--sh-ease), border-color 0.3s;
}

.skx-insp.is-in .skx-insp-box {
    transform: none;
}

.skx-insp-box *,
.skx-insp-box *::before,
.skx-insp-box *::after {
    box-sizing: border-box;
}

.skx-insp-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--sh-line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--sh-dim);
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

.skx-insp-icon:hover,
.skx-insp-icon:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--sh-ink);
    outline: none;
}

.skx-insp-icon[hidden] {
    display: none;
}

/* the side: what it is and what is on it */
.skx-insp-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 18px 20px 22px;
    overflow-y: auto;
    border-left: 1px solid var(--sh-line);
    background: var(--sh-surface);
}

.skx-insp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skx-insp-count {
    flex: 1;
    text-align: center;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    color: var(--sh-mute);
}

.skx-insp-nav .is-close {
    margin-left: 6px;
}

.skx-insp-title {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--rarity, #7b8794);
}

.skx-insp-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sh-dim);
}

.skx-insp-kicker .skx-insp-st {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(207, 106, 50, 0.16);
    color: #cf6a32;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.skx-insp-skin {
    font-family: var(--glhf-font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sh-ink);
}

.skx-insp-info {
    display: grid;
    gap: 18px;
}

.skx-insp-sec h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sh-mute);
}

.skx-insp-sec {
    display: grid;
    gap: 10px;
}

.skx-insp-sec h3 {
    margin: 0;
}

.skx-insp-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skx-insp-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 6px 10px 6px 6px;
    border-radius: 11px;
    background: var(--sh-surface-2);
    box-shadow: inset 0 0 0 1px var(--sh-line);
}

.skx-insp-pic {
    display: grid;
    place-items: center;
    width: 52px;
    height: 44px;
}

.skx-insp-pic img {
    width: 48px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

.skx-insp-tn {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sh-ink);
}

.skx-insp-tn small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sh-mute);
}

/* ← / →: the next item eases in */

.skx-insp-box.is-swap .skx-insp-title,
.skx-insp-box.is-swap .skx-insp-info {
    animation: skx-insp-swap 0.32s var(--sh-ease);
}

@keyframes skx-insp-swap {
    from { opacity: 0; translate: 0 6px; }
    to { opacity: 1; translate: 0 0; }
}

/* phones and narrow windows: the stage on top, what is on it below */
@media (max-width: 860px) {
    .skx-insp {
        padding: 0;
    }

    .skx-insp-box {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(400px, 66vh) minmax(0, 1fr);
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
    }

    .skx-insp-side {
        border-left: 0;
        border-top: 1px solid var(--sh-line);
        padding: 14px 16px 22px;
    }

    /* an agent stands: the stage takes most of the height, the name and the facts fit under it */
    .skx-insp-box.is-agent {
        grid-template-rows: minmax(420px, 1fr) auto;
        transition: transform 0.32s var(--sh-ease), border-color 0.3s;
    }

    /* the picture fills the stage's row down to the facts (the editor's phone rule gives it a fixed 44vh) */
    .skx-insp-box .skx-stage-art {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    .skx-insp-skin {
        font-size: 21px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .skx-insp,
    .skx-insp-box {
        transition: none;
    }

    .skx-insp-box.is-swap .skx-insp-title,
    .skx-insp-box.is-swap .skx-insp-info {
        animation: none;
    }
}

/* «3D» on an agent card: opens the agent in the shared «Оглянути» dialog */
.skx-card-3d {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px 0 8px;
    border-radius: 8px;
    background: rgba(8, 11, 14, 0.78);
    box-shadow: inset 0 0 0 1px var(--skx-line-2);
    color: var(--skx-ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s, box-shadow 0.18s;
}

.skx-card-3d .skx-ico {
    color: var(--glhf-accent);
}

.skx-card-3d:hover,
.skx-card-3d:focus-visible {
    background: rgba(18, 24, 30, 0.92);
    box-shadow: inset 0 0 0 1px var(--skx-line-3);
    outline: none;
}

/* on the «Мій набір» agent, left of the pencil */
.skx-lo-agent .skx-card-3d {
    right: 50px;
}

/* ---------- agent patches in the inspect dialog ---------- */
.skx-insp-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--sh-mute);
}

.skx-patch-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.skx-patch-slot {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--skx-ink, #eef2f5);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.skx-patch-slot:hover,
.skx-patch-slot.is-open {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.skx-patch-slot img {
    width: 56px;
    height: auto;
}

.skx-patch-plus {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 24px;
    color: var(--sh-mute);
}

.skx-patch-slot small {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    color: var(--sh-mute);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skx-patch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    max-height: 260px;
    padding: 6px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    animation: skx-patch-in 0.2s ease-out;
}

@keyframes skx-patch-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.skx-patch-pick {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.skx-patch-pick:hover,
.skx-patch-pick.is-on {
    border-color: rgba(var(--glhf-accent-rgb), 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.skx-patch-pick img {
    width: 100%;
    height: auto;
}

.skx-patch-pick.is-none span {
    font-size: 10px;
    line-height: 1.2;
    color: var(--sh-mute);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .skx-patch-grid {
        animation: none;
    }
}

/* «Улюбленці»: one line on what a pet does */
.skx-pet-note {
    margin: 0 0 14px;
    color: var(--skx-dim);
    font-size: 14px;
    line-height: 1.45;
}

/* «Графіті»: the colours of a single-colour one */
.skx-gr-dialog {
    width: min(640px, calc(100vw - 32px));
    max-width: none;
}

.skx-gr-tints {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    max-height: min(60vh, 520px);
    overflow-y: auto;
    margin: 4px 0 12px;
}

.skx-gr-tint {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--skx-dim);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.skx-gr-tint:hover,
.skx-gr-tint:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: var(--skx-ink);
}

.skx-gr-tint.is-on {
    border-color: var(--glhf-accent);
    color: var(--skx-ink);
}

.skx-gr-tint-img {
    width: 72px;
    height: auto;
}

.skx-gr-tint-name {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* below «Активний» the agent window only shows the side's patches */
.skx-patch-slots.is-locked .skx-patch-slot {
    cursor: default;
}

.skx-patch-slots.is-locked .skx-patch-slot:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.skx-insp-patches:has(.skx-patch-slots.is-locked) .skx-insp-note {
    color: #e9d6a8;
}

.skx-agent-go {
    width: 100%;
    margin-top: 4px;
}

.skx-agent-on {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-top: 4px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.35);
    color: var(--glhf-accent);
    font-size: 13px;
    font-weight: 700;
}

/* prices under a patch (its slot, a tile of the picker) and a graffiti colour */
.skx-patch-price,
.skx-gr-tint-price {
    font-size: 10.5px;
    line-height: 1.2;
}

.skx-patch-pick {
    gap: 2px;
}

.skx-patch-pick .skx-patch-price {
    font-size: 9.5px;
}
