@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-semibold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --site-bg: #101211;
    --site-surface: #191c1b;
    --site-surface-strong: #242825;
    --site-muted: #afb3ad;
    --site-violet: #95652e;
    --site-violet-soft: #edc590;
    --site-header-height: 72px;
    --cs2-sand: #e4b777;
    --cs2-ink: #f4f1e9;
    --cs2-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

body {
    position: relative;
    isolation: isolate;
    background: var(--site-bg);
    color: var(--cs2-ink);
    accent-color: var(--cs2-sand);
    caret-color: var(--cs2-sand);
}

.cs2-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: #101211; }
.cs2-backdrop > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.8) brightness(0.72); }
.cs2-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #101211c4, #101211aa 48%, #101211a8), linear-gradient(180deg, #10121118 25%, #10121190 75%, #101211ed); }

::selection { background: #e4b777; color: #151713; }
:focus-visible { outline: 2px solid var(--cs2-sand); outline-offset: 4px; }

.site-header {
    background: #141715;
    box-shadow: none;
    backdrop-filter: none;
}

.site-header__inner { min-height: 72px; }
.site-header__mark { box-shadow: none; }
.site-header__mark::before,
.site-header__mark::after,
.site-header__mark span { background: #9b92ff; }
.site-header__nav-link.is-active { background: #2a2c26; }
.site-header__nav-link:hover { background: #252923; }

.site-header__steam,
.home-action--market,
.primary-action,
.nova-vault__steam-login,
.loadout-checkout,
.loadout-trigger,
.nova-vault__button:not(.nova-vault__button--ghost),
.seller__button:not(.seller__button--secondary) {
    background: var(--cs2-sand);
    border-color: transparent;
    color: #171a15;
    box-shadow: none;
    text-shadow: none;
}

.site-header__steam:hover,
.home-action--market:hover,
.primary-action:hover,
.nova-vault__steam-login:hover,
.loadout-checkout:hover,
.loadout-trigger:hover,
.nova-vault__button:not(.nova-vault__button--ghost):hover,
.seller__button:not(.seller__button--secondary):hover {
    background: #f0c88f;
    color: #171a15;
    box-shadow: none;
}

.site-header__steam-icon,
.home-action--market > img,
.nova-vault__steam-login > img { filter: brightness(0.15); }
.nova-vault__steam-login small { color: #3c412e; }
.loadout-trigger strong { background: #282e25; color: #fff; }

.home-main,
.inner-main,
.nova-vault,
.armory { background: transparent; }

.home-main::before,
.home-main::after,
.nova-vault::before,
.nova-vault__hero::after,
.armory::before,
.signal-hero::before,
.signal-hero::after { display: none; }

.home-command h1,
.nova-vault__hero h1,
.armory-hero h1,
.seller h1,
.signal-hero h1,
.content-hero h1 {
    font-family: var(--cs2-display);
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.015em;
    line-height: 0.98;
    text-transform: uppercase;
    text-wrap: balance;
}

.home-route h2,
.home-collection h2,
.home-help h2,
.nova-module h2,
.nova-vault__guest h2,
.nova-vault__section-header h2,
.seller h2,
.content-card h2,
.contact-hub h2,
.support-console h2,
.feedback-console h2 {
    font-family: var(--cs2-display);
    font-weight: 600;
    letter-spacing: 0;
}

.home-kicker,
.page-label,
.armory-kicker,
.nova-vault__eyebrow,
.nova-module__rail { display: none; }

/* Actual game imagery carries the visual identity; controls stay on solid surfaces. */
.cs2-scene {
    position: relative;
    min-width: 0;
    min-height: 300px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    background: #232b2a;
}

.cs2-scene__map {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs2-scene::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, #1012110d 30%, #10121140 62%, #101211eb 100%);
    pointer-events: none;
}

.cs2-scene__weapon {
    position: absolute;
    top: 44%;
    left: 50%;
    width: 82%;
    height: 66%;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(-12deg);
    filter: drop-shadow(12px 28px 18px #080c0c85);
}

.cs2-scene__caption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    color: #fff;
}

.cs2-scene__location,
.cs2-scene__item { display: grid; gap: 4px; font-size: 12px; line-height: 1.4; }
.cs2-scene__location > strong { font-family: var(--cs2-display); font-size: 32px; font-weight: 600; line-height: 1; }
.cs2-scene__location > span { color: #d1d4cf; font-size: 11px; }
.cs2-scene__item { text-align: right; color: #d1d4cf; }
.cs2-scene__item > strong { color: #fff; font-size: 15px; font-weight: 600; }
.cs2-scene--profile .cs2-scene__weapon { width: 90%; transform: translate(-50%, -50%) rotate(-16deg); }
.cs2-scene--feedback .cs2-scene__weapon,
.cs2-scene--faq .cs2-scene__weapon { width: 62%; transform: translate(-50%, -50%) rotate(-12deg); }
.cs2-scene--contacts .cs2-scene__map { object-position: 56% 50%; }

/* Home: the loadout and the map get room, without squeezing the headline. */
.home-command {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(270px, 0.75fr);
    align-items: stretch;
    gap: 28px;
    max-width: 1536px;
    min-height: 0;
    padding: 42px 32px 0;
}

.home-command__intro { display: flex; flex-direction: column; justify-content: center; padding: 32px 0 48px; }
.home-command h1 { max-width: none; margin: 0; font-size: clamp(56px, 5.5vw, 82px); }
.home-command__copy { max-width: 38ch; margin-top: 24px; color: #bfc3bc; font-size: 16px; line-height: 1.65; }
.home-command__actions { flex-wrap: wrap; margin-top: 26px; }
.home-action { padding: 14px 20px; white-space: nowrap; }
.home-command__facts { margin-top: 26px; }
.home-command__facts li { color: #b3b9af; font-size: 12px; }
.home-command__stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.home-command__stage::before,
.home-command__stage::after { display: none; }
.cs2-scene--home { flex: 1; min-height: 360px; height: auto; }
.cs2-scene--home .cs2-scene__weapon { top: 42%; width: 88%; }
.home-spotlight { position: relative; right: auto; bottom: auto; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 12px; width: 100%; min-height: 0; margin: 12px 0 0; padding: 14px; border: 1px solid #8d957955; background: #181c18f2; box-shadow: none; }
.home-spotlight > img { grid-column: 1; grid-row: 2; width: 64px; height: 64px; }
.home-spotlight__index { grid-column: 1 / -1; color: var(--cs2-sand); font-family: inherit; }
.home-spotlight__name { grid-column: 2; grid-row: 2; }
.home-spotlight__name small { color: #babfb5; font-family: inherit; }
.home-spotlight__price { grid-column: 3; grid-row: 2; align-self: center; margin: 0; font-size: 15px; white-space: nowrap; }

.home-pulse {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    background: #131814f5;
}

.home-pulse__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 18px; }
.home-pulse__header h2 { font-size: 20px; }
.home-pulse__toggle { font-family: inherit; }
.home-pulse__list { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr); gap: 0; }
.home-pulse__item { min-height: 96px; padding: 12px 0; gap: 10px; grid-template-columns: 56px minmax(0, 1fr) auto; border: 0; border-top: 1px solid var(--site-border-soft); }
.home-pulse__item > img { width: 56px; height: 56px; object-fit: contain; }
.home-pulse__name { min-width: 0; }
.home-pulse__name :is(strong, span) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-pulse__name small { color: #beb5a7; }
.home-pulse__price { grid-column: 3; margin: 0; font-size: 12px; white-space: nowrap; }
.home-pulse__all { margin: 16px 0 0; padding: 12px; border: 1px solid var(--site-border); background: #1d241e; font-family: inherit; font-size: 11px; }
.home-route,
.home-collection,
.home-help { width: min(1472px, calc(100% - 64px)); margin-right: auto; margin-left: auto; }
.home-route h2,
.home-collection h2 { font-size: clamp(32px, 3.5vw, 48px); }
.home-market-card,
.home-market-card--lead { background: #1b201d; box-shadow: none; }
.home-help { background: #20251f; box-shadow: none; }

/* Account and working pages share the imagery, with compact headers. */
.nova-vault { padding-right: 32px; padding-left: 32px; }
.nova-vault__hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 48px; padding: 36px 0; }
.nova-vault__hero h1 { max-width: 11ch; margin: 0; font-size: clamp(56px, 6vw, 88px); }
.nova-vault__hero h1 span { color: #b8c1b3; }
.nova-vault__lead { max-width: 46ch; color: #bfc3bc; }
.nova-vault__hero .cs2-scene { min-height: 340px; }
.nova-vault__guest { background: #1b201c; box-shadow: none; }
.nova-vault__guest::before,
.nova-vault__guest::after { display: none; }
.cs2-guest-item { display: block; width: 140px; max-width: 100%; height: 110px; object-fit: contain; }
.nova-module { background: #191d1a; box-shadow: none; }
.nova-module__header { padding-left: 24px; }
.nova-vault__loading,
.nova-vault__error { background: none; }

.armory-body {
    --armory-bg: #101211;
    --armory-panel: #191d1a;
    --armory-panel-strong: #232923;
    --armory-muted: #b4baaf;
    --armory-violet: #95652e;
    --armory-violet-soft: #edc590;
}

.armory-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: 12px 48px; padding: 30px 0; }
.armory-hero h1 { margin: 0 0 18px; font-size: clamp(48px, 5.5vw, 82px); }
.armory-hero h1 em { color: #b8c1b3; -webkit-text-stroke: 0; }
.armory-hero__copy > p { max-width: 45ch; font-size: 16px; }
.armory-hero > .cs2-scene { grid-column: 2; grid-row: 1 / span 2; min-height: 300px; }
.armory-hero__telemetry { min-width: 0; width: min(100%, 480px); border: 0; box-shadow: none; clip-path: none; backdrop-filter: none; background: none; }
.armory-hero__telemetry > div { padding: 10px 20px; }
.armory-hero__telemetry > div:first-child { padding-left: 0; }
.armory-hero__telemetry strong { font-size: 24px; }
.armory-filters,
.armory-toolbar { background: #191d1a; box-shadow: none; }
.armory-catalog__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.armory-catalog__title > [data-armory-result-label] { font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.loadout-checkout,
.loadout-trigger { box-shadow: none; }
.request-guest__mark > img { width: 40px; height: 40px; }

.seller { max-width: 1344px; }
.seller__heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: center; gap: 0 40px; }
.seller__heading > div { max-width: 560px; }
.seller h1 { font-size: clamp(48px, 5vw, 76px); }
.seller__heading > .cs2-scene { grid-column: 2; grid-row: 1 / span 2; min-height: 290px; }
.seller__heading > a { justify-self: start; align-self: start; padding-top: 0; }
.seller__steps,
.seller__balances { border-radius: 4px; background: #1a1f1b; }
.seller__item:has(input:checked) { background: #343020; }
.seller__status { color: #edc590; background: #353024; }

/* Read and support pages: a different location, with room to read and write. */
.signal-hero,
.content-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); align-items: center; gap: 16px 40px; min-height: 280px; padding: 0 0 30px; }
.signal-hero h1,
.content-hero h1 { max-width: 14ch; margin: 0; font-size: clamp(48px, 5vw, 72px); }
.signal-hero > p,
.content-hero > p { align-self: start; max-width: 55ch; margin: 0; color: #bbc2b5; font-size: 16px; line-height: 1.65; }
.signal-hero > .cs2-scene,
.content-hero > .cs2-scene { grid-column: 2; grid-row: 1 / span 2; min-height: 280px; }
.content-hero .cs2-scene__caption { right: 18px; bottom: 18px; left: 18px; }
.content-hero .cs2-scene__item { font-size: 11px; }
.contact-hub,
.support-console,
.feedback-console,
.feedback-feed { background: #191d1a; box-shadow: none; }
.contact-hub::before,
.support-console::before,
.feedback-console::before { display: none; }
.content-card { background: none; }

.site-footer { position: relative; overflow: hidden; isolation: isolate; background: #141a17; }
.site-footer__scenery { position: absolute; z-index: -1; inset: 0 0 0 42%; pointer-events: none; opacity: 0.22; }
.site-footer__scenery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #141a17, #141a1780 55%, #141a1733); }
.site-footer__scenery > img { width: 100%; height: 100%; object-fit: cover; }
.site-footer__inner { position: relative; }

@media (max-width: 1100px) {
    .home-command { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); gap: 0 28px; }
    .home-command h1 { font-size: clamp(64px, 7.5vw, 90px); }
    .home-pulse { grid-column: 1 / -1; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px 24px; margin-top: 24px; }
    .home-pulse__all { grid-column: 2; justify-self: end; padding: 0; }
    .home-pulse__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
    .nova-vault__hero,
    .armory-hero { gap: 24px; }
}

@media (max-width: 900px) {
    :root { --site-header-height: 64px; }
    .site-header__inner { min-height: 64px; }
    .site-header__menu { background: #191d1a; }
    .home-command { padding: 28px 24px 0; }
    .home-command h1 { font-size: clamp(68px, 10vw, 90px); }
    .home-command__copy { font-size: 15px; }
    .home-pulse__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nova-vault { padding-right: 24px; padding-left: 24px; }
    .nova-vault__hero h1 { font-size: 64px; }
    .nova-vault__hero .cs2-scene { min-height: 280px; }
    .nova-vault__guest { grid-template-columns: 110px minmax(0, 1fr); }
    .armory-hero h1 { font-size: 56px; }
    .signal-hero,
    .content-hero { gap: 16px 24px; }
    .signal-hero h1,
    .content-hero h1 { font-size: 54px; }
    .cs2-scene__caption { right: 16px; left: 16px; bottom: 18px; }
    .cs2-scene__location > strong { font-size: 28px; }
    .cs2-scene__item > strong { font-size: 13px; }
}

@media (max-width: 700px) {
    .home-command { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 0; }
    .home-command__intro { padding: 0 0 28px; }
    .home-command h1 { max-width: none; font-size: clamp(52px, 15vw, 70px); }
    .home-command__copy { max-width: 40ch; margin-top: 18px; }
    .home-command__actions { display: flex; margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
    .home-command__actions .home-action { width: auto; flex: 1; padding: 12px 10px; font-size: 12px; }
    .home-command__facts { display: none; }
    .cs2-scene--home { flex: none; height: 240px; min-height: 240px; }
    .home-pulse { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
    .home-pulse__header { display: flex; justify-content: space-between; align-items: center; }
    .home-pulse__all { grid-column: 1; justify-self: stretch; margin: 0; padding: 12px; }
    .home-pulse__list { grid-template-columns: minmax(0, 1fr); }
    .home-route,
    .home-collection,
    .home-help { width: calc(100% - 40px); }
    .home-route { padding-top: 36px; padding-bottom: 36px; }
    .home-route__steps { margin-top: 8px; }
    .home-market-card--lead { grid-column: auto; }
    .nova-vault { padding: 0 20px 56px; }
    .nova-vault__hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0; }
    .nova-vault__hero h1 { max-width: 12ch; font-size: 64px; }
    .nova-vault__lead { margin-top: 16px; font-size: 15px; }
    .nova-vault__hero .cs2-scene { min-height: 250px; }
    .nova-vault__guest { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .cs2-guest-item { display: none; }
    .nova-vault__steam-login { grid-column: 1; max-width: 100%; }
    .armory-hero { grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); gap: 20px; padding: 28px 0 20px; }
    .armory-hero h1 { font-size: 56px; }
    .armory-hero__copy > p { font-size: 15px; }
    .armory-hero > .cs2-scene { grid-column: 1; grid-row: auto; min-height: 220px; }
    .armory-hero__telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .armory-hero__telemetry > div { padding: 6px 12px; }
    .seller { padding: 28px 20px 48px; }
    .seller__heading { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .seller h1 { font-size: 60px; }
    .seller__heading > .cs2-scene { grid-column: 1; grid-row: auto; min-height: 240px; }
    .seller__heading > a { grid-row: 2; }
    .inner-main { padding: 28px 20px 56px; }
    .content-shell { width: calc(100% - 40px); padding: 28px 0 56px; }
    .signal-hero,
    .content-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 24px; }
    .signal-hero h1,
    .content-hero h1 { max-width: 16ch; font-size: 56px; }
    .signal-hero > p,
    .content-hero > p { font-size: 15px; }
    .signal-hero > .cs2-scene,
    .content-hero > .cs2-scene { grid-column: 1; grid-row: auto; min-height: 220px; }
    .cs2-scene__location > strong { font-size: 30px; }
    .site-footer__scenery { inset: 0; opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
    .cs2-scene *,
    .cs2-scene *::before,
    .cs2-scene *::after { animation: none; transition: none; }
}
