:root {
    --cs-bg: #0b0e15;
    --cs-surface: #15181e;
    --cs-raised: #1a1f2e;
    --cs-border: rgba(229, 229, 229, 0.1);
    --cs-border-strong: rgba(229, 229, 229, 0.18);
    --cs-text: #e5e5e5;
    --cs-muted: #8c8fa5;
    --cs-cyan: #00e0ff;
    --cs-magenta: #ff00c2;
    --cs-lime: #7cfc00;
    --cs-yellow: #facc15;
    --cs-danger: #ff6577;
    --cs-container: 100%;
    --cs-page-space: clamp(12px, 1.5vw, 32px);
}

[hidden] {
    display: none !important;
}

body.theme-casespin {
    min-width: 320px;
    background: var(--cs-bg);
    color: var(--cs-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body.theme-casespin .app-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.theme-casespin button,
body.theme-casespin input,
body.theme-casespin select {
    font: inherit;
}

body.theme-casespin :focus-visible {
    outline: 2px solid var(--cs-cyan);
    outline-offset: 3px;
}

.cs-coin {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid rgba(255, 241, 166, 0.75);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff2a8 0 12%, #ffd84a 26%, #f0ab00 72%, #bd7100 100%);
    box-shadow: inset 0 0 0 2px rgba(111, 64, 0, 0.22);
}

.cs-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 10px var(--cs-page-space) 0;
    background: rgba(11, 14, 21, 0.94);
    backdrop-filter: blur(16px);
}

.cs-header__inner {
    width: min(100%, var(--cs-container));
    min-height: 76px;
    margin: 0 auto;
    padding: 8px 12px 8px 18px;
    display: grid;
    grid-template-columns: minmax(176px, auto) 1fr auto;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    background: var(--cs-surface);
}

.cs-header__brand {
    width: 190px;
    height: 58px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cs-header__brand img {
    width: 190px;
    height: 64px;
    object-fit: contain;
}

.cs-header__nav {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.cs-header__nav a {
    position: relative;
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 9px;
    color: var(--cs-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.cs-header__nav a:hover,
.cs-header__nav a[aria-current="page"] {
    color: var(--cs-text);
    background: rgba(255, 255, 255, 0.045);
}

.cs-header__nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -9px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--cs-cyan);
}

.cs-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-header__currency,
.cs-header__deposit,
.cs-header__steam,
.cs-header__profile {
    min-height: 44px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
}

.cs-header__currency {
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--cs-text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cs-header__currency--gems i {
    color: var(--cs-magenta);
}

.cs-header__deposit {
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--cs-lime);
    background: var(--cs-lime);
    color: #10130e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

.cs-header__deposit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.cs-header__profile {
    padding: 3px 10px 3px 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--cs-muted);
    cursor: pointer;
}

.cs-header__profile img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
}

.cs-header__profile i {
    font-size: 11px;
    transition: transform 160ms ease;
}

.cs-header__profile[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cs-header__steam {
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-color: rgba(102, 192, 244, 0.28);
    background: #1b2838;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.cs-header__steam:hover {
    border-color: #66c0f4;
    background: #20364e;
}

.cs-account-menu {
    position: fixed;
    top: 94px;
    right: var(--cs-page-space);
    z-index: 1200;
    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--cs-border-strong);
    border-radius: 14px;
    background: rgba(21, 24, 30, 0.98);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
}

.cs-account-menu__user {
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-account-menu__user img {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
}

.cs-account-menu__user div,
.cs-account-menu__balance {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs-account-menu__user strong {
    overflow: hidden;
    color: var(--cs-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-account-menu__user span,
.cs-account-menu__balance > span {
    color: var(--cs-muted);
    font-size: 12px;
}

.cs-account-menu__balance {
    margin: 8px 0;
    padding: 12px;
    gap: 7px;
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    background: var(--cs-bg);
}

.cs-account-menu__balance strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

.cs-account-menu__balance a {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--cs-lime);
    color: #11160d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cs-account-menu nav {
    padding: 4px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cs-account-menu nav a,
.cs-account-menu__logout {
    min-height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    color: #bec1ce;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.cs-account-menu nav a:hover,
.cs-account-menu__logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.cs-account-menu nav i,
.cs-account-menu__logout i {
    width: 16px;
    color: var(--cs-muted);
    text-align: center;
}

.cs-account-menu__logout {
    margin-top: 6px;
    border-top: 1px solid var(--cs-border);
    border-radius: 0 0 8px 8px;
    color: var(--cs-danger);
}

.cs-live-drops {
    width: 100%;
    padding: 10px var(--cs-page-space) 0;
    background: var(--cs-bg);
}

.cs-live-drops__inner {
    width: min(100%, var(--cs-container));
    margin: 0 auto;
    padding: 13px 14px 14px;
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    background: var(--cs-surface);
}

.cs-live-drops__header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-live-drops__header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cs-live-drops__header h2 span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-lime);
}

.cs-live-drops__header p {
    color: #656a7b;
    font-size: 11px;
}

.cs-live-drops__track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 7px;
    overflow: hidden;
}

.cs-drop-card {
    min-width: 0;
    height: 90px;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #2b2c31;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.cs-drop-card:hover {
    border-color: var(--cs-border-strong);
    background: #313238;
}

.cs-drop-card__media {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cs-drop-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/img/logo.png') center / 38px no-repeat;
    opacity: 0.08;
}

.cs-drop-card__media img {
    position: relative;
    width: 84%;
    height: 58px;
    object-fit: contain;
    transition: transform 180ms ease;
}

.cs-drop-card:hover .cs-drop-card__media img {
    transform: translateY(-2px) scale(1.04);
}

.cs-drop-card__rarity {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #8a8d98;
}

.cs-drop-card__rarity--rare,
.cs-drop-card__rarity--uncommon {
    background: var(--cs-cyan);
}

.cs-drop-card__rarity--epic,
.cs-drop-card__rarity--mythic {
    background: var(--cs-magenta);
}

.cs-drop-card__rarity--legendary {
    background: var(--cs-yellow);
}

.cs-drop-card__details {
    padding: 4px 7px 6px;
    display: none;
}

.cs-drop-card__details strong,
.cs-drop-card__details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-live-drops__status {
    grid-column: 1 / -1;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--cs-muted);
    font-size: 12px;
}

.cs-home {
    width: 100%;
    min-height: 60vh;
    padding: 14px var(--cs-page-space) 40px;
    background: var(--cs-bg);
}

.cs-home__banner,
.cs-home__toolbar,
.cs-home__catalog {
    width: min(100%, var(--cs-container));
    margin-right: auto;
    margin-left: auto;
}

.cs-home__banner {
    height: clamp(170px, 20vw, 300px);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    background: var(--cs-surface);
}

.cs-home__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-home__toolbar {
    display: grid;
    gap: 18px;
}

.cs-home__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.cs-home__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--cs-cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cs-home__intro h1 {
    color: #ffffff;
    font-size: clamp(26px, 2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.cs-home__intro p {
    max-width: 480px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}

.cs-filters {
    position: sticky;
    top: 96px;
    z-index: 40;
    min-height: 60px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) 224px 190px auto auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cs-border);
    border-radius: 13px;
    background: rgba(21, 24, 30, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.cs-segmented {
    margin: 0;
    padding: 4px;
    display: flex;
    gap: 3px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: var(--cs-bg);
}

.cs-segmented legend,
.cs-field > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cs-segmented__option {
    cursor: pointer;
}

.cs-segmented__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cs-segmented__option span {
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 6px;
    color: var(--cs-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    transition: color 160ms ease, background-color 160ms ease;
}

.cs-segmented__option input:checked + span {
    background: var(--cs-raised);
    color: #ffffff;
}

.cs-segmented__option input:focus-visible + span {
    outline: 2px solid var(--cs-cyan);
    outline-offset: 2px;
}

.cs-field {
    position: relative;
    min-width: 0;
}

.cs-field input,
.cs-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: var(--cs-bg);
    color: var(--cs-text);
    font-size: 12px;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.cs-field input:hover,
.cs-field select:hover,
.cs-field input:focus,
.cs-field select:focus {
    border-color: var(--cs-border-strong);
    background: #10141d;
}

.cs-field input::placeholder {
    color: #686c7b;
}

.cs-field--search > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #686c7b;
    font-size: 12px;
    transform: translateY(-50%);
}

.cs-field--search input {
    padding-left: 38px;
}

.cs-field--select select {
    padding-right: 34px;
    appearance: none;
    cursor: pointer;
}

.cs-field--select > i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #686c7b;
    font-size: 10px;
    pointer-events: none;
    transform: translateY(-50%);
}

.cs-price-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    color: #686c7b;
}

.cs-price-range input {
    min-width: 0;
}

.cs-balance-filter {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: var(--cs-bg);
    color: var(--cs-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cs-balance-filter input {
    position: absolute;
    opacity: 0;
}

.cs-balance-filter__check {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #444958;
    border-radius: 5px;
    color: transparent;
    font-size: 9px;
}

.cs-balance-filter input:checked + .cs-balance-filter__check {
    border-color: var(--cs-lime);
    background: var(--cs-lime);
    color: #11160d;
}

.cs-balance-filter input:focus-visible + .cs-balance-filter__check {
    outline: 2px solid var(--cs-cyan);
    outline-offset: 2px;
}

.cs-filter-reset {
    min-height: 46px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 0, 194, 0.22);
    border-radius: 9px;
    background: transparent;
    color: #ef68ce;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.cs-filter-reset:hover {
    border-color: rgba(255, 0, 194, 0.44);
    background: rgba(255, 0, 194, 0.06);
}

.cs-home__catalog {
    padding-top: 6px;
}

.cs-category {
    padding-top: 24px;
}

.cs-category__header {
    min-height: 36px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.cs-category__line {
    width: clamp(32px, 5vw, 92px);
    height: 1px;
    background: #262c39;
}

.cs-category__line--long {
    width: auto;
    flex: 1;
}

.cs-category__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: var(--cs-surface);
    color: var(--cs-muted);
    font-size: 13px;
}

.cs-category__header h2 {
    color: #ffffff;
    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cs-category__count {
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--cs-raised);
    color: var(--cs-muted);
    font-size: 10px;
    font-weight: 700;
}

.cs-case-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.15vw, 22px);
}

.cs-case-card {
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto auto;
    color: var(--cs-text);
    text-decoration: none;
}

.cs-case-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #313745;
    border-radius: 12px;
    background: linear-gradient(145deg, #15181e, #10131a);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}


.cs-case-card__media img {
    position: relative;
    z-index: 1;
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cs-case-card:hover .cs-case-card__media {
    border-color: #4b5365;
    background: linear-gradient(145deg, #181c24, #11151d);
    transform: translateY(-2px);
}

.cs-case-card:hover .cs-case-card__media img {
    transform: scale(1.035);
}

.cs-case-card__body {
    min-width: 0;
    padding: 8px 2px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cs-case-card__name {
    min-width: 0;
    overflow: hidden;
    color: #f2f2f3;
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-case-card__price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8cad3;
    font-size: clamp(11px, 0.76vw, 13px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cs-case-card__price .cs-coin {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    border-width: 1px;
}

.cs-empty-state {
    margin-top: 34px;
    padding: 72px 24px;
    border: 1px dashed var(--cs-border-strong);
    border-radius: 14px;
    background: var(--cs-surface);
    text-align: center;
}

.cs-empty-state__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--cs-raised);
    color: var(--cs-muted);
}

.cs-empty-state h2 {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.cs-empty-state p {
    color: var(--cs-muted);
    font-size: 13px;
}

.cs-empty-state__action {
    min-height: 42px;
    margin-top: 18px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--cs-lime);
    color: #10130e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1599px) {
    .cs-header__inner {
        grid-template-columns: 170px 1fr auto;
        gap: 20px;
    }

    .cs-header__brand,
    .cs-header__brand img {
        width: 170px;
    }

    .cs-header__nav a {
        padding: 0 11px;
        font-size: 12px;
    }

    .cs-filters {
        grid-template-columns: auto minmax(180px, 1fr) 220px 170px auto;
    }

    .cs-filter-reset {
        grid-column: 5;
    }

    .cs-balance-filter {
        display: none;
    }

    .cs-live-drops__track {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

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

@media (max-width: 1279px) {
    .cs-header__inner {
        grid-template-columns: 150px 1fr auto;
    }

    .cs-header__brand,
    .cs-header__brand img {
        width: 150px;
    }

    .cs-header__nav a {
        padding: 0 9px;
    }

    .cs-header__nav a span {
        display: none;
    }

    .cs-header__currency--gems {
        display: none;
    }

    .cs-live-drops__track {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .cs-filters {
        grid-template-columns: auto minmax(180px, 1fr) 220px 170px;
    }

    .cs-filter-reset {
        grid-column: auto;
    }

    .cs-case-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .cs-header {
        padding-top: 8px;
    }

    .cs-header__inner {
        min-height: 66px;
        grid-template-columns: 1fr auto;
        padding-left: 14px;
    }

    .cs-header__brand {
        width: 152px;
        height: 50px;
    }

    .cs-header__brand img {
        width: 152px;
        height: 54px;
    }

    .cs-header__nav,
    .cs-header__currency--gems {
        display: none;
    }

    .cs-live-drops__track {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .cs-home {
        padding-top: 20px;
    }

    .cs-home__intro {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .cs-home__intro p {
        text-align: left;
    }

    .cs-filters {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .cs-segmented,
    .cs-field--search {
        grid-column: 1 / -1;
    }

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

@media (max-width: 639px) {
    :root {
        --cs-page-space: 12px;
    }

    body.theme-casespin {
        padding-bottom: 72px;
    }

    .cs-header__inner {
        min-height: 60px;
        border-radius: 11px;
    }

    .cs-header__brand {
        width: 130px;
        height: 44px;
    }

    .cs-header__brand img {
        width: 130px;
        height: 48px;
    }

    .cs-header__currency,
    .cs-header__deposit {
        display: none;
    }

    .cs-header__steam {
        min-height: 40px;
        padding: 0 12px;
    }

    .cs-header__steam span {
        display: none;
    }

    .cs-header__profile {
        min-height: 40px;
    }

    .cs-header__profile img {
        width: 34px;
        height: 34px;
    }

    .cs-account-menu {
        top: 82px;
        right: 12px;
    }

    .cs-live-drops {
        padding-top: 8px;
    }

    .cs-live-drops__inner {
        padding: 10px;
        border-radius: 11px;
    }

    .cs-live-drops__header p {
        display: none;
    }

    .cs-live-drops__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .cs-drop-card {
        height: 72px;
        border-radius: 8px;
    }

    .cs-drop-card__media img {
        height: 50px;
    }

    .cs-home {
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .cs-home__intro h1 {
        font-size: 27px;
    }

    .cs-home__intro p {
        font-size: 12px;
    }

    .cs-filters {
        padding: 8px;
        gap: 7px;
        border-radius: 11px;
    }

    .cs-segmented__option {
        flex: 1;
    }

    .cs-segmented__option span {
        justify-content: center;
    }

    .cs-price-range {
        grid-column: 1 / -1;
    }

    .cs-field--select,
    .cs-filter-reset {
        grid-column: auto;
    }

    .cs-category {
        padding-top: 26px;
    }

    .cs-category__line:first-child {
        display: none;
    }

    .cs-category__header {
        margin-bottom: 13px;
        gap: 8px;
    }

    .cs-category__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .cs-category__header h2 {
        font-size: 14px;
    }

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

    .cs-case-card__media {
        border-radius: 14px;
    }

    .cs-case-card__body {
        padding-top: 8px;
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .cs-case-card__name {
        width: 100%;
        font-size: 12px;
    }

    .cs-case-card__price {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-header__nav a,
    .cs-header__deposit,
    .cs-header__profile i,
    .cs-header__steam,
    .cs-drop-card,
    .cs-drop-card__media img,
    .cs-case-card__media,
    .cs-case-card__media img,
    .cs-filter-reset {
        transition: none;
    }
}
.player-footer {
    width: 100%;
    margin: 0;
    padding: 0 var(--cs-page-space);
    border-top: 1px solid var(--cs-border);
    background: #0d1017;
}

.player-footer__inner {
    width: min(100%, var(--cs-container));
    margin: 0 auto;
    padding: 34px 0 28px;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(540px, 1.4fr);
    gap: clamp(40px, 7vw, 120px);
}

.player-footer__brand {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.player-footer__logo img {
    width: 180px;
    height: 58px;
    object-fit: contain;
}

.player-footer__brand p {
    max-width: 330px;
    margin: 9px 0 17px;
    color: var(--cs-muted);
    font-size: 12px;
    line-height: 1.6;
}

.player-footer__socials {
    display: flex;
    gap: 7px;
}

.player-footer__socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    background: var(--cs-surface);
    color: var(--cs-muted);
    font-size: 13px;
    text-decoration: none;
}

.player-footer__socials a:hover {
    border-color: var(--cs-border-strong);
    color: #ffffff;
}

.player-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 5vw, 70px);
}

.player-footer__links > div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.player-footer__links h2 {
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.player-footer__links a {
    color: var(--cs-muted);
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
}

.player-footer__links a:hover {
    color: var(--cs-text);
}

.player-footer__bottom {
    width: min(100%, var(--cs-container));
    margin: 0 auto;
    padding: 14px 0 18px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--cs-border);
}

.player-footer__bottom p {
    color: #626777;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 899px) {
    .player-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .player-footer__links {
        gap: 24px;
    }
}

@media (max-width: 639px) {
    .player-footer {
        display: none;
    }
}
#custom-modal .content_pre {
    padding: 20px;
    background: rgba(4, 6, 10, 0.78);
    backdrop-filter: blur(14px);
}

#custom-modal .content {
    width: min(100%, 520px);
    max-width: 520px;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    animation: none;
}

#custom-modal ._remove_box {
    display: none;
}

.cs-login-modal {
    width: 100%;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--cs-border-strong);
    border-radius: 16px;
    background: var(--cs-surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.cs-login-modal__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(102, 192, 244, 0.24);
    border-radius: 12px;
    background: #1b2838;
    color: #66c0f4;
    font-size: 24px;
}

.cs-login-modal h2 {
    color: #ffffff;
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.cs-login-modal__description {
    margin-top: 8px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.6;
}

.cs-login-modal__checks {
    margin: 22px 0;
    display: grid;
    gap: 9px;
}

.cs-login-modal__checks label {
    min-height: 50px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: var(--cs-bg);
    cursor: pointer;
}

.cs-login-modal__checks input {
    position: absolute;
    opacity: 0;
}

.cs-login-modal__checks label > span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid #454b5a;
    border-radius: 5px;
    color: transparent;
    font-size: 10px;
}

.cs-login-modal__checks input:checked + span {
    border-color: var(--cs-lime);
    background: var(--cs-lime);
    color: #11160d;
}

.cs-login-modal__checks input:focus-visible + span {
    outline: 2px solid var(--cs-cyan);
    outline-offset: 2px;
}

.cs-login-modal__checks strong {
    color: #d9dae0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.cs-login-modal__checks a {
    color: var(--cs-cyan);
    text-decoration: none;
}

.cs-login-modal__actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
}

.cs-login-modal__actions button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cs-login-modal__cancel {
    border: 1px solid var(--cs-border-strong);
    background: transparent;
    color: var(--cs-muted);
}

.cs-login-modal__continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #66c0f4;
    background: #146b91;
    color: #ffffff;
}

.cs-login-modal__continue:disabled {
    border-color: var(--cs-border);
    background: var(--cs-raised);
    color: #686d7c;
    cursor: not-allowed;
}

.cs-login-modal__note {
    margin-top: 14px;
    color: var(--cs-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 479px) {
    #custom-modal .content_pre {
        padding: 12px;
    }

    #custom-modal .content {
        max-height: calc(100dvh - 24px);
    }

    .cs-login-modal {
        padding: 22px 18px;
        border-radius: 13px;
    }

    .cs-login-modal__actions {
        grid-template-columns: 1fr;
    }

    .cs-login-modal__cancel {
        order: 2;
    }
}
.cs-home__toolbar {
    gap: 0;
}

.cs-filters {
    top: 90px;
}

.cs-category__header h2,
.player-footer__links h2 {
    font-weight: 700;
}

.cs-case-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 225px));
    justify-content: start;
    gap: 16px;
}

.cs-case-card:hover .cs-case-card__media {
    transform: translateY(-1px);
}

.cs-case-card:hover .cs-case-card__media img {
    transform: scale(1.02);
}

@media (max-width: 639px) {
    .cs-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }
}
.cs-header__inner {
    min-height: 68px;
    padding: 6px 10px 6px 14px;
    grid-template-columns: 170px 1fr auto;
}

.cs-header__brand,
.cs-header__brand img {
    width: 170px;
}

.cs-header__brand {
    height: 50px;
}

.cs-header__brand img {
    height: 54px;
}

.cs-header__nav a {
    min-height: 44px;
    padding: 0 13px;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.cs-header__currency,
.cs-header__deposit,
.cs-header__steam,
.cs-header__profile {
    min-height: 40px;
}

.cs-header__deposit,
.cs-header__steam {
    font-size: 11px;
    font-weight: 700;
}

.cs-header__profile img {
    width: 34px;
    height: 34px;
}

.cs-live-drops__inner {
    padding: 10px 12px 11px;
}

.cs-live-drops__header {
    margin-bottom: 8px;
}

.cs-live-drops__header h2 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.cs-drop-card {
    height: 78px;
}

.cs-drop-card__media img {
    height: 52px;
}

.cs-filters {
    top: 82px;
    min-height: 58px;
    padding: 8px;
}

.cs-segmented__option span {
    min-height: 36px;
    font-size: 10px;
    font-weight: 700;
}

.cs-field input,
.cs-field select,
.cs-balance-filter,
.cs-filter-reset {
    min-height: 42px;
}

.cs-field input,
.cs-field select {
    font-size: 11px;
}

.cs-balance-filter,
.cs-filter-reset {
    font-size: 10px;
    font-weight: 700;
}

.cs-category {
    padding-top: 20px;
}

.cs-category__header {
    min-height: 32px;
    margin-bottom: 10px;
    gap: 9px;
}

.cs-category__icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.cs-category__header h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.cs-category__count {
    height: 20px;
    font-size: 9px;
}

.cs-case-card__name {
    font-size: 12px;
    font-weight: 600;
}

.cs-case-card__price {
    font-size: 11px;
    font-weight: 600;
}

.player-footer__links h2 {
    font-weight: 700;
}

@media (max-width: 899px) {
    .cs-header__inner {
        min-height: 62px;
        grid-template-columns: 1fr auto;
    }

    .cs-filters {
        top: auto;
    }
}

@media (max-width: 639px) {
    .cs-header__brand,
    .cs-header__brand img {
        width: 130px;
    }

    .cs-header__brand {
        height: 44px;
    }

    .cs-header__brand img {
        height: 48px;
    }

    .cs-drop-card {
        height: 64px;
    }

    .cs-drop-card__media img {
        height: 46px;
    }
}
.cs-drop-card {
    height: 64px;
}

.cs-drop-card__media img {
    height: 46px;
}

@media (min-width: 2200px) {
    .cs-live-drops__track {
        grid-template-columns: repeat(16, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .cs-drop-card {
        height: 58px;
    }

    .cs-drop-card__media img {
        height: 42px;
    }
}
.cs-header,
.cs-live-drops,
.cs-home,
.cs-account-menu {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-live-drops__inner {
    padding: 9px 10px 10px;
}

.cs-live-drops__header {
    min-height: 16px;
    margin-bottom: 7px;
    gap: 0;
}

.cs-live-drops__header h2 {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.065em;
    line-height: 1;
}

.cs-live-drops__header h2 span {
    width: 6px;
    height: 6px;
}

.cs-live-drops__track {
    display: flex;
    grid-template-columns: none;
    gap: 7px;
    min-height: 64px;
    overflow: hidden;
}

.cs-drop-card {
    width: 0;
    height: 64px;
    flex: 1 1 0;
    border-radius: 9px;
}

.cs-drop-card__media img {
    width: 80%;
    height: 46px;
}

.cs-live-drops__status {
    width: 100%;
    min-height: 64px;
    font-size: 11px;
}

.cs-account-menu {
    top: 86px;
    width: min(304px, calc(100vw - 24px));
    padding: 8px;
    border-radius: 12px;
    background: rgba(18, 22, 29, 0.985);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.52);
}

.cs-account-menu__user {
    min-height: 54px;
    padding: 7px 8px;
    gap: 10px;
}

.cs-account-menu__user img {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cs-border-strong);
    border-radius: 8px;
}

.cs-account-menu__user strong {
    font-size: 13px;
    font-weight: 700;
}

.cs-account-menu__user span,
.cs-account-menu__balance > span {
    font-size: 10px;
    font-weight: 600;
}

.cs-account-menu__balance {
    margin: 5px 0;
    padding: 10px;
    gap: 6px;
    border-radius: 9px;
    background: #0d1118;
}

.cs-account-menu__balance strong {
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
}

.cs-account-menu__balance a {
    min-height: 32px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cs-account-menu nav {
    padding: 3px 0;
    gap: 2px;
}

.cs-account-menu nav a,
.cs-account-menu__logout {
    min-height: 36px;
    padding: 0 9px;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
}

.cs-account-menu nav a:hover {
    background: rgba(0, 224, 255, 0.055);
    color: #ffffff;
}

.cs-account-menu nav a:hover i {
    color: var(--cs-cyan);
}

.cs-account-menu__logout {
    margin-top: 4px;
}

.cs-filters {
    top: 82px;
    min-height: 52px;
    padding: 6px;
    grid-template-columns: 218px minmax(190px, 1fr) 188px 154px auto auto;
    gap: 6px;
    border-radius: 11px;
    background: rgba(18, 22, 29, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.cs-segmented {
    padding: 3px;
    gap: 2px;
    border-radius: 8px;
    background: #0d1118;
}

.cs-segmented__option {
    flex: 1;
}

.cs-segmented__option span {
    min-height: 34px;
    padding: 0 9px;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.cs-segmented__option input:checked + span {
    background: #1a202a;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.15);
}

.cs-segmented__option input:checked + span i {
    color: var(--cs-cyan);
}

.cs-field input,
.cs-field select,
.cs-balance-filter,
.cs-filter-reset {
    min-height: 40px;
    border-radius: 8px;
    font-size: 10.5px;
}

.cs-field input,
.cs-field select {
    background: #0d1118;
}

.cs-balance-filter,
.cs-filter-reset {
    padding: 0 10px;
    font-weight: 700;
}

.cs-case-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 190px));
    gap: 14px;
}

.cs-case-card__media {
    aspect-ratio: 1.16;
    border-radius: 10px;
}

.cs-case-card__media img {
    width: 78%;
    height: 78%;
}

.cs-case-card__body {
    padding: 6px 2px 1px;
    gap: 7px;
}

.cs-case-card__name {
    font-size: 11.5px;
    font-weight: 600;
}

.cs-case-card__price {
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
}

.cs-case-card__price .cs-coin {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.cs-category {
    padding-top: 16px;
}

.cs-category__header {
    min-height: 28px;
    margin-bottom: 9px;
    gap: 8px;
}

.cs-category__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 11px;
}

.cs-category__header h2 {
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1599px) {
    .cs-filters {
        grid-template-columns: 210px minmax(180px, 1fr) 180px 150px auto;
    }

    .cs-case-grid {
        grid-template-columns: repeat(auto-fill, minmax(164px, 184px));
    }
}

@media (max-width: 1279px) {
    .cs-filters {
        grid-template-columns: 210px minmax(170px, 1fr) 176px 146px;
    }

    .cs-case-grid {
        grid-template-columns: repeat(auto-fill, minmax(158px, 176px));
    }
}

@media (max-width: 899px) {
    .cs-filters {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .cs-segmented,
    .cs-field--search {
        grid-column: 1 / -1;
    }

    .cs-case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 639px) {
    .cs-account-menu {
        top: 72px;
        right: 12px;
    }

    .cs-live-drops__inner {
        padding: 8px;
    }

    .cs-live-drops__track,
    .cs-live-drops__status {
        min-height: 56px;
    }

    .cs-drop-card {
        height: 56px;
    }

    .cs-drop-card__media img {
        height: 40px;
    }

    .cs-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 9px;
    }

    .cs-case-card__name {
        font-size: 11px;
    }
}
body.theme-casespin .cs-home__catalog {
    padding-top: 0;
}

body.theme-casespin .cs-category {
    padding-top: 36px;
}

body.theme-casespin .cs-category__header {
    margin-bottom: 24px;
}

@media (max-width: 899px) {
    body.theme-casespin .cs-category {
        padding-top: 28px;
    }

    body.theme-casespin .cs-category__header {
        margin-bottom: 18px;
    }
}

@media (max-width: 639px) {
    body.theme-casespin .cs-category {
        padding-top: 24px;
    }

    body.theme-casespin .cs-category__header {
        margin-bottom: 16px;
    }
}
:root {
    --cs-layout-width: 1500px;
    --cs-layout-gutter: 20px;
    --cs-layout-section: 40px;
    --cs-layout-title: 32px;
}

body.theme-casespin .cs-home__banner,
body.theme-casespin .cs-home__toolbar,
body.theme-casespin .cs-home__catalog {
    width: min(var(--cs-layout-width), calc(100% - var(--cs-layout-gutter) * 2));
    max-width: var(--cs-layout-width);
    margin-right: auto;
    margin-left: auto;
}

body.theme-casespin .cs-home {
    padding: 24px 0 56px;
}

body.theme-casespin .cs-home__toolbar {
    gap: 24px;
}

body.theme-casespin .cs-home__catalog {
    padding-top: 0;
}

body.theme-casespin .cs-category {
    padding-top: var(--cs-layout-section);
}

body.theme-casespin .cs-category__header {
    min-height: 32px;
    margin-bottom: var(--cs-layout-title);
    gap: 12px;
}

body.theme-casespin .cs-category__header > .cs-category__line:first-child {
    display: none;
}

body.theme-casespin .cs-category__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    font-size: 12px;
}

body.theme-casespin .cs-category__header h2 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

body.theme-casespin .cs-category__count {
    height: 22px;
    font-size: 10px;
}

body.theme-casespin .cs-case-grid {
    justify-content: start;
}


@media (max-width: 899px) {
    :root {
        --cs-layout-gutter: 16px;
        --cs-layout-section: 32px;
        --cs-layout-title: 24px;
    }

    body.theme-casespin .cs-home {
        padding-top: 20px;
        padding-bottom: 44px;
    }

    body.theme-casespin .cs-home__toolbar {
        gap: 20px;
    }

    body.theme-casespin .cs-category__header {
        margin-bottom: var(--cs-layout-title);
    }
}

@media (max-width: 639px) {
    :root {
        --cs-layout-gutter: 12px;
        --cs-layout-section: 28px;
        --cs-layout-title: 20px;
    }

    body.theme-casespin .cs-home {
        padding-top: 16px;
        padding-bottom: 36px;
    }

    body.theme-casespin .cs-home__toolbar {
        gap: 16px;
    }

    body.theme-casespin .cs-category__header {
        min-height: 30px;
        margin-bottom: var(--cs-layout-title);
        gap: 10px;
    }

    body.theme-casespin .cs-category__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    body.theme-casespin .cs-category__header h2 {
        font-size: 14px;
    }
}
