/* Skin changer /skins. Rebuilt 25.11.2026 (the owner: «раздел со скинами — полная фигня»; COMPETITORS.md, section 9)
   in the Chinese look of the site: lacquer plaques in a thin gold edge, red seals with gold letters, the light of the
   rarity under every skin, as a lamp under a thing in a shop window.
   From the top: the title with three steps; «Мой набор» — what the maniac and the survivors have on; the bar of
   categories; the catalog on the left and the stand on the right: the picked skin big on a plinth, its rarity,
   what each side has now, the settings (wear on the coin slider of the site, pattern, StatTrak, name tag) and the
   button. Below 1100 px the stand comes up from the bottom as a sheet (skins.js opens it on a click).
   The previous look (?cn=off) keeps working: the colours of the lacquer are variables, plain panels there. */
.skins-page {
    --sk-edge: var(--line-strong); --sk-edge-hi: rgba(242, 183, 48, 0.6); --sk-gold: var(--gold); --sk-gold-hi: #ffd978;
    --sk-lacquer: linear-gradient(180deg, var(--panel), var(--panel)); --sk-stand-bg: var(--panel); --sk-well: rgba(0, 0, 0, 0.35);
    padding-top: clamp(32px, 6vh, 64px); padding-bottom: clamp(56px, 9vh, 96px);
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; min-width: 0;
}
[data-cn] .skins-page {
    --sk-edge: rgba(231, 161, 54, 0.2); --sk-edge-hi: rgba(231, 161, 54, 0.7); --sk-gold: var(--cn-gold-lo); --sk-gold-hi: var(--cn-gold-hi);
    --sk-lacquer: linear-gradient(165deg, rgba(122, 18, 20, 0.3), rgba(28, 13, 15, 0.96) 58%);
    --sk-stand-bg: linear-gradient(180deg, #2b0c0e, #1b0b0c 240px, #160a0b); --sk-well: rgba(18, 8, 9, 0.72);
}
.skins-page .empty { color: var(--muted); }
.sk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

/* ── the title and the three steps, each number on a red seal ── */
.sk-top h1 { font-size: clamp(30px, 4vw, 52px); margin: 0 0 10px; }
.sk-top p { margin: 0; color: var(--soft); max-width: 720px; text-wrap: pretty; }
.sk-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--soft); font-size: 14px; }
.sk-steps li { display: flex; align-items: center; gap: 9px; }
.sk-steps i {
    flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
    font: italic 800 14px/1 var(--wide); color: #ffe2a0;
    background: radial-gradient(120% 120% at 30% 20%, #d23a2c, #9e1b17 60%, #6f0f0e);
    box-shadow: inset 0 0 0 2px rgba(255, 226, 160, 0.7), inset 0 0 0 3.5px #8a1512, 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── «Мой набор»: the maniac, the survivors and what both share, a small plaque for each thing; the colour of a
   paint's rarity is a line under its plaque and the colour of its name ── */
.sk-kit {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; min-width: 0; padding: 14px 18px;
    border: 1px solid var(--sk-edge); border-radius: 16px; background: var(--sk-lacquer);
}
.sk-kit-head { flex: 0 1 200px; min-width: 0; }
.sk-kit-head h2 { font-size: 20px; margin: 0 0 4px; }
.sk-kit-head p { margin: 0; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.sk-kit.is-guest { justify-content: space-between; }
.sk-kit.is-guest .sk-kit-head { flex: 1 1 420px; }
.sk-kit.is-guest .sk-kit-head p { font-size: 14px; color: var(--soft); max-width: 640px; }
.sk-kit-login { flex: none; }
.sk-kit-groups { flex: 1 1 600px; display: flex; flex-wrap: wrap; gap: 12px 22px; min-width: 0; }
.sk-kit-groups::-webkit-scrollbar { display: none; }
.sk-kit-group { flex: none; display: grid; gap: 7px; }
.sk-kit-side { display: flex; align-items: center; gap: 6px; font: italic 800 11px/1 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sk-kit-side::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--dim); transform: rotate(45deg); }
.sk-kit-group.is-t .sk-kit-side::before { background: #e2463a; }
.sk-kit-group.is-ct .sk-kit-side::before { background: #e7a136; }
.sk-kit-row { display: flex; gap: 8px; }
.sk-kit-slot {
    position: relative; display: grid; grid-template-rows: 52px auto auto; justify-items: center; gap: 2px; width: 106px; padding: 6px 7px 9px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--sk-well); color: var(--text); font: inherit; text-align: center; cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.sk-kit-slot::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rar, transparent); }
.sk-kit-pic { display: grid; place-items: center; width: 100%; height: 52px; }
.sk-kit-pic img { width: 100%; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.sk-kit-pic .sk-ico { width: 40px; height: 24px; color: var(--dim); }
.sk-kit-cap { font-size: 11px; line-height: 1.2; color: var(--muted); }
.sk-kit-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--rar, var(--soft)); }
.sk-kit-slot.is-empty .sk-kit-name { color: var(--dim); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .sk-kit-slot:hover { border-color: var(--sk-edge-hi); background: rgba(42, 18, 21, 0.9); } }
.sk-kit-slot:focus-visible { outline: 2px solid var(--sk-gold); outline-offset: 2px; }

/* ── the categories: a silhouette and a word each; the open one is red lacquer with gold letters ── */
.sk-cats { display: flex; gap: 4px; padding: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 16px; background: var(--sk-well); border: 1px solid var(--sk-edge); border-radius: 14px; }
.sk-cats::-webkit-scrollbar { display: none; }
.sk-cats button {
    flex: 1 0 auto; min-width: 82px; display: grid; justify-items: center; gap: 6px; padding: 9px 10px 8px;
    border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: 600 12.5px/1.1 var(--sans); cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.sk-cats .sk-ico { width: 46px; height: 22px; }
.sk-cats button[aria-selected="true"] {
    color: var(--sk-gold-hi); border-color: rgba(231, 161, 54, 0.55);
    background: linear-gradient(180deg, rgba(160, 30, 26, 0.7), rgba(90, 16, 16, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.12), 0 6px 16px -8px rgba(255, 80, 40, 0.5);
}
@media (hover: hover) and (pointer: fine) { .sk-cats button:not([aria-selected="true"]):hover { color: var(--text); background: rgba(42, 18, 21, 0.8); } }
.sk-cats button:focus-visible { outline: 2px solid var(--sk-gold); outline-offset: -2px; }
/* the icon files are white silhouettes; as a mask they take the colour of the text */
.sk-ico { display: block; width: 100%; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ── the catalog and the stand side by side ── */
.sk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; min-width: 0; }
.sk-layout.is-wide { grid-template-columns: minmax(0, 1fr); }
.sk-layout.is-wide .sk-stand-wrap { display: none; }
.sk-browse { display: grid; gap: 14px; align-content: start; min-width: 0; }

.sk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.sk-head-t { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.sk-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); overflow-wrap: anywhere; }
.sk-head .note { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.sk-back { justify-self: start; }
.link-btn { border: 0; background: none; padding: 0; color: var(--sk-gold); font: 500 14px var(--sans); cursor: pointer; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { text-decoration: underline; } }
.sk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sk-seg { display: inline-flex; background: var(--sk-well); border: 1px solid var(--sk-edge); border-radius: 999px; padding: 3px; }
.sk-seg button { border: 0; background: none; color: var(--muted); font: 500 14px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color 150ms ease, background-color 150ms ease; }
.sk-seg button[aria-pressed="true"] { background: rgba(120, 22, 20, 0.85); color: var(--sk-gold-hi); box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.45); }
.sk-search { width: 220px; min-width: 0; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; color: var(--text); font: 400 15px var(--sans); }
.sk-search:focus, .sk-seed input:focus, .sk-tag:focus, .sk-set-new input:focus { outline: none; border-color: rgba(231, 161, 54, 0.75); box-shadow: 0 0 0 3px rgba(231, 161, 54, 0.14); }

/* Cards: a lacquer plaque; the rarity is a lamp under the skin and a line along the bottom, its name in that colour.
   What is on wears a red seal «Надето» (or which side has it), what stands on the stand a gold edge. */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.sk-card {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 12px 12px 14px;
    text-align: left; color: var(--text); font: inherit; cursor: pointer; border: 1px solid var(--sk-edge); border-radius: 12px; overflow: hidden;
    background: var(--sk-lacquer);
    background: radial-gradient(58% 40% at 50% 40%, color-mix(in srgb, var(--rar, transparent) 24%, transparent), transparent 72%), var(--sk-lacquer);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease-out);
}
.sk-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rar, transparent); opacity: 0.85; }
.sk-pic { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 11; margin-bottom: 8px; }
.sk-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); transition: transform 200ms var(--ease-out); }
.sk-pic .sk-ico { width: 64%; height: 42%; color: var(--dim); }
.sk-card b { max-width: 100%; font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.sk-card small { max-width: 100%; color: var(--muted); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
.sk-card small.rar { color: var(--rar); }
@media (hover: hover) and (pointer: fine) {
    .sk-card:hover { border-color: rgba(231, 161, 54, 0.45); }
    .sk-card:hover .sk-pic img { transform: scale(1.06) rotate(-2deg); }
}
.sk-card:active { transform: scale(0.98); }
.sk-card:focus-visible { outline: 2px solid var(--sk-gold); outline-offset: 2px; }
.sk-card.is-pick { border-color: rgba(255, 214, 130, 0.9); box-shadow: 0 0 0 1px rgba(255, 214, 130, 0.45), 0 10px 28px -12px rgba(255, 150, 60, 0.55); }
.sk-seal {
    position: absolute; top: 9px; right: 9px; padding: 4px 6px 3px; border-radius: 4px; transform: rotate(-4deg);
    font: 800 10px/1 var(--wide); letter-spacing: 0.06em; text-transform: uppercase; color: #ffe2a0;
    background: radial-gradient(120% 120% at 30% 20%, #d23a2c, #9e1b17 60%, #6f0f0e);
    box-shadow: inset 0 0 0 1.5px rgba(255, 226, 160, 0.8), 0 2px 6px rgba(0, 0, 0, 0.45);
}
.sk-more { justify-self: center; }
.sk-nothing { grid-column: 1 / -1; margin: 8px 0; }

/* ── the stand ── */
.sk-stand-wrap { position: sticky; top: 16px; min-width: 0; }
/* rows as tall as their content: when the stand is higher than the screen it scrolls, the rows never squeeze */
.sk-stand {
    position: relative; display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 16px 16px 18px; border: 1px solid rgba(231, 161, 54, 0.32); border-radius: 16px; background: var(--sk-stand-bg);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 226, 160, 0.06);
}
.sk-stand:focus { outline: none; }
.sk-stand-x { display: none; }
/* the skin on its plinth: the light of its rarity behind it, its shadow and a thin gold ring on the floor */
.sk-stand-pic {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #1f0b0d, #120708);
    background: radial-gradient(40% 9% at 50% 84%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(62% 52% at 50% 48%, color-mix(in srgb, var(--rar, #e7a136) 32%, transparent), transparent 72%),
        linear-gradient(180deg, #1f0b0d, #120708);
    box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.22);
}
.sk-stand-pic::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 8%; height: 11%; border-radius: 50%; border: 1px solid rgba(231, 161, 54, 0.32); pointer-events: none; }
.sk-stand-pic img { position: relative; z-index: 1; width: 88%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.55)); }
.sk-stand-pic .sk-ico { width: 58%; height: 34%; color: var(--dim); }
.sk-rar {
    position: absolute; z-index: 2; left: 10px; top: 10px; padding: 5px 8px 4px; border-radius: 6px; font: 700 11px/1 var(--sans); color: #fff;
    background: rgba(18, 8, 9, 0.85); background: color-mix(in srgb, var(--rar) 30%, rgba(18, 8, 9, 0.88));
    box-shadow: inset 0 0 0 1px var(--rar);
}
.sk-stand-name { display: grid; gap: 3px; min-width: 0; }
.sk-stand-cap { font: italic 800 11px/1 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sk-stand-name h3 { margin: 0; font: italic 900 24px/1.1 var(--wide); text-transform: uppercase; overflow-wrap: anywhere; }
.sk-stand-name p { margin: 0; font-size: 16px; font-weight: 600; color: var(--soft); overflow-wrap: anywhere; }
.sk-stand-name p.rar { color: var(--rar); }
.sk-now { display: grid; gap: 4px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--sk-well); border: 1px solid var(--line); font-size: 13px; }
.sk-now div { display: flex; gap: 8px; min-width: 0; }
.sk-now dt { flex: none; color: var(--muted); }
.sk-now dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }

/* settings */
.sk-opts { display: grid; gap: 14px; }
.sk-opt { display: grid; gap: 7px; min-width: 0; }
.sk-opt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sk-opt-top label { font-weight: 600; font-size: 14px; }
.sk-opt output { font: 600 13px/1.2 var(--sans); color: var(--sk-gold-hi); font-variant-numeric: tabular-nums; text-align: right; }
.sk-opt small { color: var(--muted); font-size: 12px; line-height: 1.35; text-wrap: pretty; }
.sk-opt input[type="range"] { width: 100%; margin: 0; }
.sk-chips { display: flex; gap: 4px; }
.sk-chips button {
    flex: 1 1 auto; min-width: 0; padding: 6px 5px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--sk-well); color: var(--muted);
    font: 600 11.5px/1.1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.sk-chips button[aria-pressed="true"] { color: var(--sk-gold-hi); border-color: rgba(231, 161, 54, 0.7); background: rgba(120, 20, 20, 0.6); }
@media (hover: hover) and (pointer: fine) { .sk-chips button:not([aria-pressed="true"]):hover { color: var(--text); border-color: rgba(231, 161, 54, 0.45); } }
.sk-seed { display: flex; gap: 6px; }
.sk-seed input, .sk-tag {
    width: 100%; min-width: 0; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px;
    color: var(--text); font: 500 15px var(--sans); font-variant-numeric: tabular-nums;
}
.sk-dice { flex: none; display: grid; place-items: center; width: 42px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(42, 18, 21, 0.9); color: var(--sk-gold-hi); cursor: pointer; transition: border-color 150ms ease; }
.sk-dice svg { width: 20px; height: 20px; fill: currentColor; transition: transform 200ms var(--ease-out); }
.sk-dice:active svg { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .sk-dice:hover { border-color: rgba(231, 161, 54, 0.7); } }
/* StatTrak: a switch with the gold coin of the slider; the word in the orange of StatTrak in the game */
.sk-switch { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sk-well); cursor: pointer; }
.sk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sk-switch-ui { flex: none; position: relative; width: 40px; height: 22px; border-radius: 11px; background: #120809; box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.4); }
.sk-switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8f7d78; transition: transform 180ms var(--ease-out); }
.sk-switch input:checked + .sk-switch-ui { background: linear-gradient(90deg, #7d1210, #d8352a); }
.sk-switch input:checked + .sk-switch-ui::after { transform: translateX(18px); background: radial-gradient(circle at 35% 30%, #fff3c8, #f3c463 38%, #d08a22 70%, #8f5512); }
.sk-switch input:focus-visible + .sk-switch-ui { outline: 2px solid var(--sk-gold); outline-offset: 2px; }
.sk-switch-t { display: grid; gap: 1px; min-width: 0; }
.sk-switch-t b { font-size: 14px; color: #f08a4b; }
.sk-switch-t small { color: var(--muted); font-size: 12px; }

.sk-acts { display: grid; gap: 10px; justify-items: center; }
.sk-put { width: 100%; padding: 13px 16px; font-size: 15.5px; }
.sk-put svg { flex: none; width: 18px; height: 18px; }
.sk-put:disabled, .sk-put:disabled:hover { cursor: default; background: rgba(42, 18, 21, 0.95); color: var(--sk-gold-hi); border-color: rgba(231, 161, 54, 0.5); }
.sk-take { color: var(--muted); padding: 4px 8px; }
@media (hover: hover) and (pointer: fine) { .sk-take:hover { color: #ffb3a8; } }

.sk-stand-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 12px 26px; text-align: center; }
.sk-stand-stage { width: 72%; aspect-ratio: 3 / 1; border-radius: 50%; border: 1px solid rgba(231, 161, 54, 0.35); background: radial-gradient(closest-side, rgba(226, 74, 40, 0.28), transparent); }
.sk-stand-empty h3 { margin: 8px 0 0; font: italic 900 22px/1.1 var(--wide); text-transform: uppercase; }
.sk-stand-empty p { margin: 0; max-width: 270px; color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* ── sets (23.11.2026, like «Коллекции» of cs2red): a plaque for each saved set, the last one saves what is on now;
   the full reset below, apart. Taking something away asks a second click, then the button turns red. ── */
.sk-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sk-set { display: grid; align-content: start; gap: 4px; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--sk-edge); border-radius: 14px; background: var(--sk-lacquer); }
.sk-set b { font: italic 800 19px/1.2 var(--wide); overflow-wrap: anywhere; }
.sk-set small { color: var(--muted); font-size: 13px; }
.sk-set-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.sk-set-act .btn { padding: 9px 16px; font-size: 14px; }
.sk-set .sk-del { color: var(--muted); padding: 8px 0; }
.sk-set .sk-del.is-sure, .sk-set .sk-del:hover { color: var(--danger); }
.sk-set-new { background: var(--sk-well); border-style: dashed; }
.sk-set-new label { display: grid; gap: 6px; color: var(--soft); font-size: 14px; }
.sk-set-new input { width: 100%; min-width: 0; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; color: var(--text); font: 400 15px var(--sans); }
.sk-set-new .btn { justify-self: start; margin-top: 10px; padding: 9px 16px; font-size: 14px; color: var(--text); }
.sk-set-new.is-full { color: var(--muted); font-size: 14px; }
.sk-reset-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.sk-reset-all b { font: italic 800 17px/1.2 var(--wide); }
.sk-reset-all p { margin: 4px 0 0; max-width: 560px; color: var(--muted); font-size: 14px; }
.sk-danger { padding: 10px 18px; border-color: rgba(229, 100, 90, 0.45); background: transparent; color: var(--text); font-size: 14px; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .sk-danger:hover { border-color: var(--danger); } }
.sk-danger.is-sure { background: var(--danger); border-color: var(--danger); color: #1a0806; }

/* while a set is saved, put on or deleted its buttons rest; a guest gets the sign-in under the words */
.sk-set .btn:disabled, .sk-set .link-btn:disabled, .sk-danger:disabled { opacity: 0.55; cursor: default; }
.sk-sets-guest { display: grid; justify-items: start; gap: 12px; }
.sk-sets-guest .empty { margin: 0; }

/* the catalog or what is on did not load (a weak connection, an error of the server): the words and «Повторить» */
.sk-fail { display: grid; justify-items: start; gap: 12px; padding: 22px 20px; border: 1px solid var(--sk-edge); border-radius: 14px; background: var(--sk-lacquer); }
.sk-fail p { margin: 0; color: var(--soft); text-wrap: pretty; }
.sk-kit-fail { flex: 1 1 600px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; color: var(--soft); font-size: 14px; }
.sk-kit-fail p { margin: 0; }

/* "Saved" and errors pop up at the bottom for a few seconds, over the sheet of a phone too */
.sk-toast { position: fixed; z-index: 85; left: 50%; bottom: 28px; margin: 0; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
.sk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sk-toast.ok { color: var(--live); }
.sk-toast.bad { color: var(--danger); }
.sk-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(8, 3, 3, 0.62); }

/* ── narrow screens: one column, the stand comes up from the bottom ── */
@media (max-width: 1099px) {
    .sk-layout { grid-template-columns: minmax(0, 1fr); }
    .sk-stand-wrap {
        position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; top: auto;
        transform: translateY(102%); visibility: hidden; transition: transform 240ms var(--ease-out), visibility 0s linear 240ms;
    }
    .sk-stand-wrap.is-open { transform: none; visibility: visible; transition: transform 300ms var(--ease-out), visibility 0s; }
    .sk-layout.is-wide .sk-stand-wrap { display: block; }
    .sk-stand {
        width: min(560px, 100%); margin: 0 auto; max-height: 88vh; max-height: 88dvh; padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.8);
    }
    .sk-stand-x {
        position: sticky; top: 0; z-index: 3; justify-self: end; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: -52px;
        border: 1px solid rgba(231, 161, 54, 0.35); border-radius: 50%; background: rgba(26, 10, 12, 0.92); color: var(--soft); cursor: pointer;
    }
    .sk-stand-x svg { width: 16px; height: 16px; }
    .sk-stand-pic { aspect-ratio: 16 / 10; }
}
@media (min-width: 1100px) { .sk-backdrop { display: none; } }
@media (max-width: 720px) {
    .sk-kit { padding: 12px; gap: 12px; }
    .sk-kit-head { flex-basis: 100%; }
    /* on a phone the groups stand in one row that scrolls sideways, its right end fading */
    .sk-kit-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .sk-kit.is-guest .sk-kit-login { width: 100%; }
    .sk-tools { width: 100%; }
    .sk-seg { flex: 1 1 auto; }
    .sk-seg button { flex: 1 1 auto; padding: 7px 10px; }
    .sk-search { flex: 1 1 100%; width: auto; }
    .sk-cats button { min-width: 74px; }
}
@media (max-width: 560px) {
    .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sk-card { padding: 10px 10px 12px; }
    .sk-card b { font-size: 14px; }
    .sk-kit-slot { width: 96px; }
    .sk-steps { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .sk-card, .sk-pic img, .sk-stand-wrap, .sk-stand-wrap.is-open, .sk-switch-ui::after, .sk-dice svg, .sk-toast { transition: none; }
    .sk-card:hover .sk-pic img, .sk-card:active { transform: none; }
}
