/* Self-hosted DM Sans (variable font, wght axis 400-700) — the exact woff2
   files Google Fonts v17 served before; visual no-op, third-party request kill.
   DM Sans has NO cyrillic subset: RU text falls through the system sans
   fallback chain via unicode-range, exactly as it did with Google Fonts. */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/dm-sans-v17-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/dm-sans-v17-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base Reset & Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0f1115;
    --bg-card: #1a1d24;
    --bg-card-hover: #22262f;
    --text: #e8eaed;
    --text-muted: #8b919a;
    --text-dim: #5f646d;
    --border: #2a2f38;
    --online: #4ade80;
    --offline: #f87171;
    --slow: #fbbf24;

    /* Semantic status aliases — same values as the dot tokens above.
       One system: green = good/online, amber = caution, red = bad/stale. */
    --ok: var(--online);
    --warn: var(--slow);
    --danger: var(--offline);
    --info: #60a5fa; /* pre-existing steam-reference blue; NOT a brand accent */
    --ok-rgb: 74, 222, 128;
    --warn-rgb: 251, 191, 36;
    --danger-rgb: 248, 113, 113;
    --info-rgb: 96, 165, 250;

    /* CS2 item-variant colors (domain, not status) — existing values, named */
    --stattrak: #cf6a32;
    --stattrak-rgb: 207, 106, 50;
    --souvenir: #ffd700;
    --souvenir-rgb: 255, 215, 0;

    /* Spacing rhythm (observed 4px scale; use for new/touched rules) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 20px;

    /* Shadows (observed; dropdowns/popovers vs modals) */
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Z-index ladder (observed) */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-toast: 1000;
    --z-max: 9999;
}

/* ══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — 2026 unify pass
   One quiet, compact grammar shared by every rebuilt surface (home, CS2).
   These tokens + primitives are the single source of truth going forward;
   the legacy component CSS further down is superseded surface-by-surface.
   Additive only — nothing here changes existing pages until they opt in.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Surface ladder — quiet dark, one elevation path */
    --bg-elev: #22262f;          /* hover / raised nested surface */
    --border-soft: #23262e;      /* internal hairline, quieter than --border */

    /* Frame widths — the width law. Focus column vs catalog width, one gutter. */
    --w-page: 1080px;            /* catalog / wide surfaces (CS2) */
    --w-focus: 720px;            /* front door, tools, single-column */
    --w-prose: 660px;            /* long-form reading measure */
    --gutter: 16px;

    /* Type scale — few steps; lean on weight + color, not size, for hierarchy */
    --fs-display: 1.5rem;        /* page H1 */
    --fs-lead: 1.0625rem;        /* hero lede / section lede */
    --fs-title: 0.9375rem;       /* section + card titles */
    --fs-body: 0.8125rem;        /* body copy */
    --fs-sm: 0.75rem;            /* secondary */
    --fs-meta: 0.6875rem;        /* labels, captions, uppercase eyebrows */
    --lh: 1.55;
    --lh-tight: 1.3;

    --tx: 0.15s ease;            /* one transition curve */
}

/* ── Width law: one frame, chosen per surface via containerClass ── */
.container--home { max-width: var(--w-focus); }

/* Inner measures — constrain reading/hero content inside a wider frame */
.u-measure  { max-width: var(--w-prose); }
.u-tnum     { font-variant-numeric: tabular-nums; }

/* Eyebrow: the one uppercase micro-label used across surfaces */
.u-eyebrow {
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Quiet delta text (price movement) — color carries it, no boxing by default ── */
.u-delta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-delta--up   { color: var(--online); }
.u-delta--down { color: var(--offline); }
.u-delta--flat { color: var(--text-dim); }

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

/* Links never fall back to UA blue: unstyled anchors inherit the text color
   with a quiet dim underline (the prose-link code). Styled links override. */
a {
    color: inherit;
    text-decoration-color: var(--text-dim);
    text-underline-offset: 2px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 16px;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nav Toggle (mobile) */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.nav-toggle-line {
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle--active .nav-toggle-line--top {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle--active .nav-toggle-line--mid {
    opacity: 0;
}

.nav-toggle--active .nav-toggle-line--bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navigation */
.nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding-top: 10px;
    order: 10;
}

.nav--open {
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 16px;
}

.nav-dropdown-link {
    display: block;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-dropdown-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

/* Desktop Navigation */
@media (min-width: 640px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        width: auto;
        padding-top: 0;
        order: 0;
        margin-left: auto;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        padding: 6px 10px;
    }

    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 6px 6px;
        padding-left: 0;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        min-width: 200px;
        z-index: var(--z-dropdown);
        flex-direction: column;
        gap: 2px;
        margin-top: 0;
        box-shadow: var(--shadow-pop);
    }

    .nav-item::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 8px;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
        display: flex;
    }

    .nav-dropdown-link {
        padding: 8px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .nav-dropdown-link:hover {
        background: var(--bg-card-hover);
    }
}

.logo {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.logo-link {
    display: flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.logo-accent {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
}

.header-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.2s ease;
}

.header-status-dot[data-status="online"] {
    background: var(--online);
}

.header-status-dot[data-status="offline"] {
    background: var(--offline);
}

.header-status-dot[data-status="slow"] {
    background: var(--slow);
}

.header-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}


/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections */
.section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Data-age caption beside a section title. Base .freshness carries no size of
   its own, so unstyled it inherits 1rem and shouts louder than the 0.875rem
   heading it annotates — pin it to the quiet meta scale. */
.section-header .freshness {
    font-size: var(--fs-meta);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    white-space: nowrap;
}

/* Homepage dashboard de-cramp. It carries denser content than prod's sparse
   front door at the same 720 width, so the stack reads "слипнуто" unless each
   section is a clearly separated group (28px between sections vs 10px title→body)
   with a two-step title hierarchy — section titles a notch above the door/card
   titles nested inside them. Scoped to the home container so the rest of the
   site (tools, single-column pages) stays as tight as before. */
.is-home .main { gap: 28px; }
.is-home .section-title { font-size: 0.9375rem; }

/* Breadcrumb row with the currency/name/view tools pinned RIGHT — shared by the
   catalog and browse (подборки) surfaces. Global (not page-scoped) so it can't
   silently fall back to a stacked "tools below breadcrumbs" layout if a page's
   scoped style fails to inject. */
.crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.crumb-row .breadcrumbs { margin-bottom: 0; }
.crumb-tools { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.crumb-tools .locale-toggles { margin: 0; }
/* Mobile: if the toolbar can't share the breadcrumb row it wraps — sit it
   flush-left as a tidy toolbar (space-between keeps it right when it fits),
   not floating right under the crumbs with an empty gap on the left. */
@media (max-width: 640px) {
    .crumb-tools { margin-left: 0; }
}

/* Desktop-only sidebar collapse control (sits right of the grid/board toggle).
   Hidden on mobile, where the sidebar is a drawer with its own FAB. Shown +
   wired to the collapse layout inside the ≥1100px sidebar media query below. */
.sidebar-collapse-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    background: none;
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sidebar-collapse-btn:hover { color: var(--text); }
/* Active = sidebar ON: the filled highlight. Off = no box at all (transparent). */
.sidebar-collapse-btn[aria-pressed="true"] { background: var(--bg-card-hover); color: var(--text); }

.section-link {
    font-size: 0.688rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--text);
}

.status-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-update {
    font-size: 0.688rem;
    color: var(--text-dim);
}

.status-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-decoration: none;
}

.status-link-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}

.status-link-dot[data-status="online"] {
    background: var(--online);
}

.status-link-dot[data-status="slow"] {
    background: var(--degraded);
}

.status-link-dot[data-status="offline"] {
    background: var(--offline);
}

.badge {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 3px 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    gap: 8px;
}

.status-grid {
    grid-template-columns: repeat(2, 1fr);
}

.tools-grid {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.15s ease;
}

.card-main {
    grid-column: span 2;
    padding: 14px;
}

.card-wide {
    grid-column: span 2;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.card-main .card-icon {
    width: 40px;
    height: 40px;
}

/* Status Icon States */
.status-icon[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
}

.status-icon[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--offline);
}

.status-icon[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.12);
    color: var(--slow);
}

.status-icon[data-status="loading"] {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-title {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--text);
}

.card-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-label {
    font-size: 0.688rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.card-value-large {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Tool Cards */
.card-tool {
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.card-tool:hover {
    background: var(--bg-card-hover);
}

.tool-icon {
    background: var(--bg);
    color: var(--text-dim);
}

.card-tool:hover .tool-icon {
    color: var(--text-muted);
}

.tool-title {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-desc {
    font-size: 0.688rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CS2 Skins Cards */
.skins-grid {
    grid-template-columns: repeat(2, 1fr);
}

.skins-grid .card-skin-link:first-child {
    grid-column: span 2;
}

.skin-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.tool-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.563rem;
    font-weight: 500;
    padding: 2px 6px;
    background: var(--bg);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content Sections */
.section-content {
    padding: 16px 0;
}

.section-content .section-title {
    margin-bottom: 10px;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-text p {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.content-text strong {
    color: var(--text);
}

/* Page Content (legal pages) */
.page-content {
    padding: 8px 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.tool-last-updated {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 24px;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.page-title-row .page-title {
    margin-bottom: 0;
}

.tool-share-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.tool-share-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.tool-share-btn:hover {
    color: var(--text);
}

.tool-share-btn:active {
    opacity: 0.7;
}

.tool-share-btn [data-icon="check"] { display: none; }

.tool-share-btn.is-copied { color: var(--ok); }
.tool-share-btn.is-copied [data-icon="copy"]  { display: none; }
.tool-share-btn.is-copied [data-icon="check"] { display: block; }

.tool-focus-target {
    position: relative;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 28px rgba(0,0,0,0.18);
}

.tool-focus-target::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: inherit;
    pointer-events: none;
}

.content-section {
    margin-bottom: 24px;
}

.content-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.content-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
}

.content-section p {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.content-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-section a:hover {
    color: var(--text-muted);
}

/* Markdown body from Content Collections — same styles as .content-section */
.article-body { margin-bottom: 24px; }
.article-body h2 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 24px 0 10px; }
.article-body h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.article-body p { font-size: 0.813rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.article-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--text-muted); }
.article-body ul, .article-body ol { font-size: 0.813rem; color: var(--text-muted); line-height: 1.7; margin: 10px 0; padding-left: 20px; }
.article-body li { margin: 3px 0; }
.article-body li::marker { color: var(--text-dim); }
.article-body > *:first-child { margin-top: 0; }

/* ── Markdown-body rich vocabulary — tables, code, quotes, rules ──
   Shared by article + news bodies and authored content sections so
   long-form copy renders in the site design code, not browser defaults.
   Data tables follow the canonical table idiom (uppercase dim head,
   hairline rows, card fill); the table is a block scroll box so wide
   pricing grids never push the page body sideways on narrow viewports. */
.article-body table,
.content-section table {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin: 14px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
}
.article-body thead,
.content-section thead { background: var(--bg-card); }
.article-body th,
.content-section th {
    text-align: left;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.article-body td,
.content-section td {
    padding: 8px 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.5;
}
.article-body tbody tr:last-child td,
.content-section tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover td,
.content-section tbody tr:hover td { background: var(--bg-card); }
.article-body td:first-child,
.content-section td:first-child { color: var(--text); font-weight: 500; }

.article-body strong,
.content-section strong { color: var(--text); font-weight: 600; }
.article-body code,
.content-section code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.813em;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
}
.article-body pre,
.content-section pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    overflow-x: auto;
    margin: 14px 0;
}
.article-body pre code,
.content-section pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.article-body blockquote,
.content-section blockquote {
    margin: 14px 0;
    padding: 2px 0 2px 14px;
    border-left: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.813rem;
    line-height: 1.7;
}
.article-body blockquote p:last-child,
.content-section blockquote p:last-child { margin-bottom: 0; }
.article-body h4,
.content-section h4 { font-size: 0.813rem; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
.article-body hr,
.content-section hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.article-body img,
.content-section img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.content-list {
    list-style: none;
    margin: 10px 0;
    padding-left: 0;
}

.content-list li {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.content-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.content-list strong {
    color: var(--text);
}


.contact-email {
    margin: 8px 0;
}

.contact-email a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: background 0.15s;
}

.contact-email a:hover {
    background: var(--bg-card-hover);
}

/* Tool Placeholder */
.tool-placeholder {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--bg);
    border-radius: 50%;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.placeholder-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 0.813rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.placeholder-link {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.placeholder-link:hover {
    background: var(--bg-card-hover);
}

/* Steam ID Finder Tool */
.sid-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sid-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.sid-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.sid-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.sid-input::placeholder {
    color: var(--text-dim);
}

.sid-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.sid-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.sid-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.sid-btn-convert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sid-btn-convert:hover {
    opacity: 0.85;
}

.sid-btn-convert:disabled {
    opacity: 0.6;
    cursor: default;
}

.sid-spinner {
    animation: sid-spin 0.8s linear infinite;
}

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

.sid-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.sid-examples-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sid-example {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
}

.sid-example:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.sid-error {
    background: rgba(var(--danger-rgb), 0.08);
    border: 1px solid rgba(var(--danger-rgb), 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.813rem;
    color: var(--offline);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sid-detected {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--online);
    margin-bottom: 12px;
    padding: 6px 0;
}

.sid-detected strong {
    color: var(--online);
}

.sid-results {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.sid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
}

.sid-row-header {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex-shrink: 0;
}

.sid-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.sid-desc {
    font-size: 0.688rem;
    color: var(--text-dim);
}

.sid-row-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sid-value {
    font-size: 0.813rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    word-break: break-all;
    text-align: right;
}

.sid-copy {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.sid-copy:hover {
    color: var(--text);
}

.sid-copy .check-icon {
    color: var(--online);
}

@media (max-width: 600px) {
    .sid-tool {
        flex-direction: column;
    }

    .sid-btn-convert {
        justify-content: center;
    }

    .sid-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sid-row-value {
        width: 100%;
        justify-content: space-between;
    }

    .sid-value {
        text-align: left;
    }
}

/* Steam Player Count Tool */
.spc-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.spc-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.spc-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.spc-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.spc-input::placeholder {
    color: var(--text-dim);
}

.spc-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.spc-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.spc-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.spc-btn-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.spc-btn-search:hover {
    opacity: 0.85;
}

.spc-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.spc-quick-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.spc-quick {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.spc-quick:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

/* Leaderboard table */
.spc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.spc-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.spc-meta {
    font-size: 0.688rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.spc-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.spc-table {
    width: 100%;
    border-collapse: collapse;
}

.spc-table th {
    text-align: left;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.spc-table th:last-child {
    text-align: right;
}

.spc-row td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background 0.1s;
}

.spc-row:last-child td {
    border-bottom: none;
}

.spc-row:hover td {
    background: var(--bg-card-hover);
}

.spc-rank {
    width: 32px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    text-align: center !important;
}

.spc-game-name {
    font-size: 0.813rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spc-game-icon {
    width: 32px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.spc-game-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.spc-game-name a:hover {
    color: var(--text-muted);
}

.spc-count {
    text-align: right;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--online);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.spc-shimmer {
    display: inline-block;
    width: 52px;
    height: 12px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    animation: spcPulse 1.2s ease-in-out infinite;
}

@keyframes spcPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}

/* Search results */
.spc-search-wrap {
    margin-bottom: 20px;
}

.spc-search-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spc-thumb-cell {
    width: 52px;
    padding-right: 0 !important;
}

.spc-thumb {
    width: 48px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.spc-status {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 20px 12px !important;
    background: var(--bg-card);
}

/* Footer meta */
.spc-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding: 0 2px;
}

.spc-live {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--online);
    animation: spcBlink 2s ease-in-out infinite;
}

@keyframes spcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 600px) {
    .spc-tool {
        flex-direction: column;
    }

    .spc-btn-search {
        justify-content: center;
    }

    .spc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .spc-rank {
        width: 24px;
        font-size: 0.688rem;
    }

    .spc-row td {
        padding: 7px 8px;
    }

    .spc-thumb {
        width: 36px;
        height: 14px;
    }

    .spc-thumb-cell {
        width: 42px;
    }

    .spc-footer-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .spc-game-name {
        font-size: 0.75rem;
        gap: 6px;
    }

    .spc-game-icon {
        width: 26px;
        height: 10px;
    }

    .spc-count {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════
   STEAM CALCULATOR TOOL
   ═══════════════════════════════════════════════════════ */

.scalc-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.scalc-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.scalc-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.scalc-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.scalc-input::placeholder {
    color: var(--text-dim);
}

.scalc-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.scalc-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.scalc-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.scalc-btn-calc {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.scalc-btn-calc:hover {
    opacity: 0.85;
}

.scalc-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.scalc-examples-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.scalc-example {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
}

.scalc-example:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.scalc-error {
    background: rgba(var(--danger-rgb), 0.08);
    border: 1px solid rgba(var(--danger-rgb), 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.813rem;
    color: var(--offline);
    margin-bottom: 16px;
    line-height: 1.5;
}

.scalc-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px;
    justify-content: center;
    font-size: 0.813rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.scalc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--text-muted);
    border-radius: 50%;
    animation: scalcSpin 0.7s linear infinite;
}

@keyframes scalcSpin {
    to { transform: rotate(360deg); }
}

/* Profile card */
.scalc-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.scalc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.scalc-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: block;
}

.scalc-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-dim);
    border: 2.5px solid var(--bg-card);
}

.scalc-status-dot.scalc-online {
    background: var(--online);
}

.scalc-profile-info {
    flex: 1;
    min-width: 0;
}

.scalc-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scalc-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.scalc-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.scalc-member {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.scalc-status-text {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.scalc-badges {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.scalc-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scalc-badge-vac {
    background: rgba(var(--danger-rgb), 0.15);
    color: var(--offline);
}

.scalc-badge-trade {
    background: rgba(var(--warn-rgb), 0.15);
    color: var(--slow);
}

.scalc-badge-limited {
    background: rgba(139, 145, 154, 0.15);
    color: var(--text-dim);
}

.scalc-profile-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.scalc-profile-link:hover {
    color: var(--text-muted);
    background: var(--bg);
}

/* Stats grid */
.scalc-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.scalc-stat {
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.scalc-stat-label {
    font-size: 0.688rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
    margin-bottom: 4px;
}

.scalc-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.scalc-stat-value::selection {
    background: var(--text-dim);
}

.scalc-stat-sub {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 3px;
}

.scalc-stat-value {
    color: var(--text);
}

.scalc-stat-spent .scalc-stat-value {
    color: var(--slow);
}

/* Section header */
.scalc-section-header {
    margin-bottom: 10px;
    margin-top: 4px;
}

.scalc-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Games table */
.scalc-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.scalc-table {
    width: 100%;
    border-collapse: collapse;
}

.scalc-table th {
    text-align: left;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.scalc-table th:last-child {
    text-align: right;
}

.scalc-game-row td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background 0.1s;
}

.scalc-game-row:last-child td {
    border-bottom: none;
}

.scalc-game-row:hover td {
    background: var(--bg-card-hover);
}

.scalc-game-rank {
    width: 32px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    text-align: center !important;
}

.scalc-game-name {
    font-size: 0.813rem;
}

.scalc-game-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.scalc-game-name a:hover {
    color: var(--text-muted);
}

.scalc-game-hours {
    text-align: right;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.scalc-inv-thumb-cell {
    width: 52px;
    padding-right: 0 !important;
}

.scalc-inv-thumb {
    width: 48px;
    height: 36px;
    object-fit: contain;
    border-radius: 3px;
    display: block;
    background: var(--bg);
}

/* Notices */
.scalc-notice {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(139, 145, 154, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    align-items: flex-start;
}

.scalc-notice svg {
    flex-shrink: 0;
    color: var(--text-dim);
    margin-top: 1px;
}

.scalc-notice strong {
    display: block;
    font-size: 0.813rem;
    color: var(--text);
    margin-bottom: 4px;
}

.scalc-notice p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.scalc-notice-warn {
    background: rgba(var(--warn-rgb), 0.06);
    border-color: rgba(var(--warn-rgb), 0.15);
}

.scalc-notice-warn svg {
    color: var(--slow);
}

/* Disclaimer */
.scalc-disclaimer {
    font-size: 0.688rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 0;
    margin-bottom: 20px;
}

.scalc-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Mobile */
@media (max-width: 600px) {
    .scalc-tool {
        flex-direction: column;
    }

    .scalc-btn-calc {
        justify-content: center;
    }

    .scalc-profile {
        padding: 12px;
        gap: 10px;
    }

    .scalc-avatar {
        width: 44px;
        height: 44px;
    }

    .scalc-status-dot {
        width: 12px;
        height: 12px;
    }

    .scalc-name {
        font-size: 0.875rem;
    }

    .scalc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .scalc-stat {
        padding: 10px;
    }

    .scalc-stat-value {
        font-size: 1.05rem;
    }

    .scalc-game-row td {
        padding: 7px 8px;
    }

    .scalc-game-rank {
        width: 24px;
        font-size: 0.688rem;
    }

    .scalc-game-name {
        font-size: 0.75rem;
    }

    .scalc-game-hours {
        font-size: 0.75rem;
    }
}

/* Below 480px the stats grid is 2-col: an odd trailing tile spans the full
   row instead of sitting orphaned beside an empty cell. */
@media (max-width: 479px) {
    .scalc-stats > .scalc-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Desktop 3-col stats */
@media (min-width: 480px) {
    .scalc-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Is Steam Down Tool */
.isd-banner {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.isd-banner[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.08);
    border: 1px solid rgba(var(--ok-rgb), 0.15);
}

.isd-banner[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.08);
    border: 1px solid rgba(var(--danger-rgb), 0.15);
}

.isd-banner[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.08);
    border: 1px solid rgba(var(--warn-rgb), 0.15);
}

.isd-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.isd-banner-icon[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
}

.isd-banner-icon[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--offline);
}

.isd-banner-icon[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.12);
    color: var(--slow);
}

.isd-banner-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.isd-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.isd-banner[data-status="online"] .isd-banner-title {
    color: var(--online);
}

.isd-banner[data-status="offline"] .isd-banner-title {
    color: var(--offline);
}

.isd-banner[data-status="slow"] .isd-banner-title {
    color: var(--slow);
}

.isd-banner-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.isd-banner-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.isd-last-check {
    font-size: 0.688rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.isd-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.isd-banner[data-status] .isd-refresh-btn {
    background: rgba(255, 255, 255, 0.06);
}

.isd-refresh-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.isd-refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Services grid */
.isd-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.isd-service {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.isd-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text-muted);
}

.isd-service-icon[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
}

.isd-service-icon[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--offline);
}

.isd-service-icon[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.12);
    color: var(--slow);
}

.isd-service-icon[data-status="loading"] {
    animation: pulse 1.5s ease-in-out infinite;
}

.isd-service-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.isd-service-name {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
}

.isd-service-status {
    font-size: 0.688rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.isd-service-status[data-status="online"] {
    color: var(--online);
}

.isd-service-status[data-status="offline"] {
    color: var(--offline);
}

.isd-service-status[data-status="slow"] {
    color: var(--slow);
}

.isd-service-latency {
    font-size: 0.688rem;
    font-weight: 500;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.isd-service-latency[data-status="online"] {
    color: var(--online);
}

.isd-service-latency[data-status="slow"] {
    color: var(--slow);
}

.isd-service-latency[data-status="offline"] {
    color: var(--offline);
}

/* Players online */
.isd-players {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.isd-players-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
    flex-shrink: 0;
}

.isd-players-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.isd-players-label {
    font-size: 0.688rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.isd-players-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Maintenance notice */
.isd-notice {
    background: rgba(var(--warn-rgb), 0.08);
    border: 1px solid rgba(var(--warn-rgb), 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: var(--slow);
    line-height: 1.5;
}

.isd-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 600px) {
    .isd-banner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .isd-banner-icon {
        width: 36px;
        height: 36px;
    }

    .isd-banner-icon svg {
        width: 20px;
        height: 20px;
    }

    .isd-banner-title {
        font-size: 1rem;
    }

    .isd-banner-meta {
        width: 100%;
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .isd-service {
        padding: 8px 10px;
    }

    .isd-service-icon {
        width: 28px;
        height: 28px;
    }

    .isd-service-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== Steam Server Status (sss-) ===== */

.sss-banner {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.sss-banner[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.08);
    border: 1px solid rgba(var(--ok-rgb), 0.15);
}

.sss-banner[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.08);
    border: 1px solid rgba(var(--danger-rgb), 0.15);
}

.sss-banner[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.08);
    border: 1px solid rgba(var(--warn-rgb), 0.15);
}

.sss-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.sss-banner-icon[data-status="online"] {
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
}

.sss-banner-icon[data-status="offline"] {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--offline);
}

.sss-banner-icon[data-status="slow"] {
    background: rgba(var(--warn-rgb), 0.12);
    color: var(--slow);
}

.sss-banner-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sss-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.sss-banner[data-status="online"] .sss-banner-title { color: var(--online); }
.sss-banner[data-status="offline"] .sss-banner-title { color: var(--offline); }
.sss-banner[data-status="slow"] .sss-banner-title { color: var(--slow); }

.sss-banner-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sss-banner-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sss-last-check {
    font-size: 0.688rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.sss-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.sss-banner[data-status] .sss-refresh-btn {
    background: rgba(255, 255, 255, 0.06);
}

.sss-refresh-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.sss-refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Summary stats row */
.sss-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.sss-stat {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.sss-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.sss-stat-label {
    font-size: 0.625rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Maintenance notice */
.sss-notice {
    background: rgba(var(--warn-rgb), 0.08);
    border: 1px solid rgba(var(--warn-rgb), 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: var(--slow);
    line-height: 1.5;
}

.sss-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Sections */
.sss-section {
    margin-bottom: 20px;
}

.sss-section-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sss-section-title svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.sss-section-desc {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin: -4px 0 8px;
}

/* Platform & Game card grid */
.sss-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.sss-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sss-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.15s;
}

.sss-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sss-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-dim);
    transition: background 0.3s;
}

.sss-card-dot[data-status="online"] { background: var(--online); box-shadow: 0 0 6px rgba(var(--ok-rgb), 0.4); }
.sss-card-dot[data-status="offline"] { background: var(--offline); box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.4); }
.sss-card-dot[data-status="slow"] { background: var(--slow); box-shadow: 0 0 6px rgba(var(--warn-rgb), 0.4); }
.sss-card-dot[data-status="loading"] { animation: pulse 1.5s ease-in-out infinite; }

.sss-card-name {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.sss-card-latency {
    font-size: 0.688rem;
    font-weight: 500;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.sss-card-latency[data-status="online"] { color: var(--online); }
.sss-card-latency[data-status="slow"] { color: var(--slow); }
.sss-card-latency[data-status="offline"] { color: var(--offline); }

.sss-card-status {
    font-size: 0.688rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.sss-card-status[data-status="online"] { color: var(--online); }
.sss-card-status[data-status="offline"] { color: var(--offline); }
.sss-card-status[data-status="slow"] { color: var(--slow); }

/* Game card detail (player count) */
.sss-card-detail {
    font-size: 0.625rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.sss-card-detail[data-status="active"] {
    color: var(--text-muted);
}

.sss-card-detail[data-status="offline"] {
    color: var(--offline);
}

/* Region rows */
.sss-regions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.sss-region {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.sss-region-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-dim);
    transition: background 0.3s;
}

.sss-region-dot[data-status="online"] { background: var(--online); box-shadow: 0 0 6px rgba(var(--ok-rgb), 0.4); }
.sss-region-dot[data-status="offline"] { background: var(--offline); box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.4); }
.sss-region-dot[data-status="slow"] { background: var(--slow); box-shadow: 0 0 6px rgba(var(--warn-rgb), 0.4); }
.sss-region-dot[data-status="loading"] { animation: pulse 1.5s ease-in-out infinite; }

.sss-region-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sss-region-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.sss-region-status {
    font-size: 0.625rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.sss-region-status[data-status="online"] { color: var(--online); }
.sss-region-status[data-status="offline"] { color: var(--offline); }
.sss-region-status[data-status="slow"] { color: var(--slow); }

.sss-region-latency {
    font-size: 0.688rem;
    font-weight: 500;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
    flex-shrink: 0;
}

.sss-region-latency[data-status="online"] { color: var(--online); }
.sss-region-latency[data-status="slow"] { color: var(--slow); }
.sss-region-latency[data-status="offline"] { color: var(--offline); }

/* Mobile responsive */
@media (max-width: 600px) {
    .sss-banner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sss-banner-icon {
        width: 36px;
        height: 36px;
    }

    .sss-banner-icon svg {
        width: 20px;
        height: 20px;
    }

    .sss-banner-title {
        font-size: 1rem;
    }

    .sss-banner-meta {
        width: 100%;
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sss-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .sss-stat {
        padding: 10px 6px;
    }

    .sss-stat-value {
        font-size: 0.938rem;
    }

    .sss-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sss-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sss-regions {
        grid-template-columns: 1fr;
    }

    .sss-card {
        padding: 10px;
    }

    .sss-region {
        padding: 8px 10px;
    }
}

@media (max-width: 400px) {
    .sss-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== End Steam Server Status ===== */

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    padding: 12px 14px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1rem;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 14px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 404 Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 50vh;
}

.error-container {
    text-align: center;
}

.error-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
    letter-spacing: -0.04em;
}

.error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 12px 0 8px;
}

.error-text {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.error-link {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.error-link:hover {
    background: var(--bg-card-hover);
}

/* Footer */
.footer {
    margin-top: 24px;
    padding: 20px 0 12px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-bottom: 20px;
}

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    font-size: 1rem;
    color: var(--text-muted);
}

.footer-logo strong {
    color: var(--text);
}

.footer-tagline {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-heading {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    color: var(--text-dim);
}

/* Sized like the other footer captions — not body-size (G3) */
.footer-lang-label {
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.footer-lang svg {
    flex-shrink: 0;
}

.footer-lang-current {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
}

.footer-lang-sep {
    font-size: 0.688rem;
    color: var(--text-dim);
}

.footer-lang-link {
    font-size: 0.688rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-lang-link:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.footer-disclaimer {
    font-size: 0.625rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.625rem;
    color: var(--text-dim);
}

/* Tablet footer: brand banner row, then the four sections in one row —
   no orphan section wrapping to a crooked second row (G4) */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Desktop footer: brand + all four sections on one row (G4) */
@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* Tablet & Desktop */
@media (min-width: 640px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 680px;
        padding: 20px;
    }

    .header {
        margin-bottom: 24px;
    }

    .bento-grid {
        gap: 10px;
    }

    .status-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-main {
        grid-column: span 2;
        grid-row: span 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .card-main .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-main .card-content {
        align-items: center;
    }

    .card-wide {
        grid-column: span 2;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skins-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .skins-grid .card-skin-link:first-child {
        grid-column: span 1;
    }

    .card {
        padding: 14px;
    }
}

@media (min-width: 900px) {
    .container {
        max-width: 800px;
        padding: 24px;
    }

    .main {
        gap: 28px;
    }

    .section {
        gap: 12px;
    }

    .status-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Smooth loading states */
.card-value[data-loading="true"] {
    background: linear-gradient(90deg, var(--bg) 25%, var(--bg-card-hover) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
    min-width: 40px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Status text colors */
.card-value[data-status="online"] {
    color: var(--online);
}

.card-value[data-status="offline"] {
    color: var(--offline);
}

.card-value[data-status="slow"] {
    color: var(--slow);
}

/* ═══════════════════════════════════════════════════════
   TOOLS LISTING
   ═══════════════════════════════════════════════════════ */

.tools-listing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.tool-listing-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s ease;
}

.tool-listing-card:hover {
    background: var(--bg-card-hover);
}

.tool-listing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.tool-listing-card:hover .tool-listing-icon {
    color: var(--text-muted);
}

.tool-listing-content {
    flex: 1;
    min-width: 0;
}

.tool-listing-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.tool-listing-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 2px 0 0;
    line-height: 1.4;
}

.tool-listing-arrow {
    color: var(--text-dim);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
}

.tool-listing-card:hover .tool-listing-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════
   RELATED TOOLS (cross-linking between tool pages)
   ═══════════════════════════════════════════════════════ */

.related-tools {
    margin-top: 32px;
    margin-bottom: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.related-tools-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-tools-title svg {
    color: var(--text-dim);
}

.related-tools-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s ease;
}

.related-tool-card:hover {
    background: var(--bg-card-hover);
}

.related-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.related-tool-card:hover .related-tool-icon {
    color: var(--text-muted);
}

.related-tool-info {
    flex: 1;
    min-width: 0;
}

.related-tool-name {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.related-tool-desc {
    display: block;
    font-size: 0.688rem;
    color: var(--text-dim);
    line-height: 1.3;
    margin-top: 1px;
}

.related-tool-arrow {
    color: var(--text-dim);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
}

.related-tool-card:hover .related-tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 640px) {
    .related-tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════
   CONTENT FEED (Articles & News)
   ═══════════════════════════════════════════════════════ */

.content-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.content-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.15s ease;
}

.content-tag:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.content-tag--active {
    background: var(--text);
    color: var(--bg);
}

.content-tag--active:hover {
    background: var(--text-muted);
    color: var(--bg);
}

.content-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.feed-card {
    display: block;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s ease;
}

.feed-card:hover {
    background: var(--bg-card-hover);
}

.feed-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.688rem;
    color: var(--text-dim);
}

.feed-card-sep {
    color: var(--text-dim);
}

.feed-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.feed-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.feed-tag {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 2px 8px;
    background: var(--bg);
    color: var(--text-dim);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   ARTICLE / NEWS DETAIL
   ═══════════════════════════════════════════════════════ */

.article-detail .page-title {
    line-height: 1.3;
}

.article-header {
    margin-bottom: 20px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.article-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-breadcrumb a:hover {
    color: var(--text);
}

.article-breadcrumb-sep {
    color: var(--text-dim);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.article-meta-sep {
    color: var(--text-dim);
}

.article-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.article-lead {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.article-lead p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.article-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.article-back {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.article-back:hover {
    background: var(--bg-card-hover);
}

/* ═══════════════════════════════════════════════════════
   SKINS SECTION
   ═══════════════════════════════════════════════════════ */

/* Rarity Colors */
:root {
    --rarity-consumer: #b0c3d9;
    --rarity-industrial: #5e98d9;
    --rarity-milspec: #4b69ff;
    --rarity-restricted: #8847ff;
    --rarity-classified: #d32ce6;
    --rarity-covert: #eb4b4b;
    --rarity-extraordinary: #e4ae39;
    --rarity-contraband: #e4ae39;
}

/* Wide Container */
.container--wide {
    max-width: 540px;
}

/* Skins Layout */
.skins-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skins-content {
    flex: 1;
    min-width: 0;
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
    margin-bottom: 16px;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    font-size: 0.688rem;
}

.breadcrumbs-sep {
    margin: 0 6px;
    color: var(--text-dim);
}

.breadcrumbs-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumbs-link:hover {
    color: var(--text);
}

.breadcrumbs-current {
    color: var(--text-dim);
}

/* ─── Sidebar ─── */
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-sticky);
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 0.813rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-modal);
    transition: all 0.15s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-overlay) - 1);
}

.sidebar-backdrop.active {
    display: block;
}

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg);
    border-right: 1px solid var(--border);
    z-index: var(--z-overlay);
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.sidebar.open {
    display: flex;
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-close:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.sidebar-search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-search-input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.75rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.sidebar-search-input::placeholder {
    color: var(--text-dim);
}

.sidebar-search-input:focus {
    border-color: var(--text-dim);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.sidebar-group {
    margin-bottom: 2px;
}

.sidebar-group.hidden {
    display: none;
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    gap: 6px;
    transition: background 0.15s;
}

.sidebar-group-toggle:hover {
    background: var(--bg-card);
}

.sidebar-group-count {
    font-size: 0.625rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-right: auto;
}

.sidebar-chevron {
    transition: transform 0.2s ease;
    color: var(--text-dim);
    flex-shrink: 0;
}

.sidebar-group-toggle.expanded .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-group-items {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding-bottom: 4px;
}

.sidebar-group-items.expanded {
    display: flex;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 6px 24px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    border-radius: 0;
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.sidebar-link.active {
    color: var(--text);
    background: var(--bg-card);
    font-weight: 500;
}

.sidebar-link.hidden {
    display: none;
}

.sidebar-link-count {
    font-size: 0.625rem;
    color: var(--text-dim);
}

.sidebar-models {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    margin-left: 10px;
    margin-bottom: 4px;
}

.sidebar-link--model {
    font-size: 0.688rem;
    padding: 4px 10px;
}

/* ─── Game Hub ─── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.game-card:hover {
    background: var(--bg-card-hover);
}

.game-card--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.game-card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.game-card-name {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--text);
}

.game-card-badge {
    font-size: 0.625rem;
    padding: 2px 8px;
    background: var(--bg);
    color: var(--text-dim);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Category Cards (Hub) ─── */
.hub-section {
    margin-bottom: 24px;
}

.hub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hub-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.hub-section-count {
    font-size: 0.688rem;
    color: var(--text-dim);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.hub-grid--hero {
    gap: 10px;
}

.hub-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.hub-grid--compact .cat-card {
    min-width: 0;
}

.hub-grid--compact .cat-card-name {
    font-size: 0.75rem;
}

.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
}

.cat-card:hover {
    background: var(--bg-card-hover);
}

.cat-card--hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    gap: 10px;
}

.cat-card-img {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    flex-shrink: 0;
    overflow: hidden;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cat-card-img img.loaded {
    opacity: 1;
}

.cat-card-img--hero {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
}

.cat-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cat-card-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-card--hero .cat-card-name {
    font-size: 0.938rem;
    font-weight: 600;
    white-space: normal;
}

.cat-card-count {
    font-size: 0.625rem;
    color: var(--text-dim);
}

/* Weapon class subsection */
.weapon-class {
    margin-bottom: 14px;
}

.weapon-class-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 2px;
}

/* ─── Hub Search ─── */
.hub-search {
    margin-bottom: 20px;
}

.hub-search-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.hub-search-input::placeholder {
    color: var(--text-dim);
}

.hub-search-input:focus {
    border-color: var(--text-muted);
}

.cs2-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.cs2-search-form.hub-search {
    position: relative;
}

.cs2-search-input {
    padding-right: 38px;
}

.cs2-search-submit {
    position: absolute;
    right: 5px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
}

.cs2-search-submit:hover,
.cs2-search-submit:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.cs2-search-panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(520px, 70vh);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    scrollbar-width: thin;
    scrollbar-color: var(--text-dim) transparent;
}

.cs2-search-panel::-webkit-scrollbar {
    width: 8px;
}

.cs2-search-panel::-webkit-scrollbar-track {
    background: transparent;
}

.cs2-search-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
}

.cs2-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cs2-search-filters {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.cs2-search-filters::-webkit-scrollbar {
    display: none;
}

.cs2-search-filter {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    padding: 4px 9px;
    font-family: inherit;
    font-size: 0.688rem;
    font-weight: 600;
    cursor: pointer;
}

.cs2-search-filter:hover,
.cs2-search-filter.active {
    color: var(--text);
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
}

.cs2-search-result {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 9px 10px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--rarity-color, transparent);
}

.cs2-search-result:hover,
.cs2-search-result:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

.cs2-search-result[hidden] {
    display: none;
}

.cs2-search-result-visual {
    width: 74px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.cs2-search-result-img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.cs2-search-result-placeholder {
    width: 38px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.cs2-search-result-body,
.cs2-search-result-names {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs2-search-result-body {
    gap: 4px;
}

.cs2-search-result-top {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cs2-search-result-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.813rem;
    font-weight: 700;
}

.cs2-search-result-alt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dim);
    font-size: 0.688rem;
}

.cs2-search-result-price {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 0.813rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.cs2-search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.688rem;
}

.cs2-search-result-chip {
    color: var(--text-muted);
}

.cs2-search-result-chip:not(:last-child)::after {
    content: "/";
    margin-left: 5px;
    color: var(--text-dim);
}

.cs2-search-result-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cs2-search-result-badges {
    display: inline-flex;
    gap: 3px;
}

.cs2-search-result-market {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dim);
    font-size: 0.625rem;
}

.cs2-search-empty,
.cs2-search-loading {
    padding: 12px 10px;
    color: var(--text-muted);
    font-size: 0.813rem;
}

@media (max-width: 520px) {
    .cs2-search-result {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 9px;
    }

    .cs2-search-result-visual {
        width: 62px;
        height: 46px;
    }

    .cs2-search-result-top {
        flex-direction: column;
        gap: 3px;
    }
}

.hub-no-results {
    display: none;
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.813rem;
}

.hub-no-results.visible {
    display: block;
}

/* ─── Category Page ─── */
.category-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.category-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.category-tab.active {
    background: var(--text);
    color: var(--bg);
}

.category-tab.active:hover {
    background: var(--text-muted);
    color: var(--bg);
}

.category-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.category-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.category-badge {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 3px 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-filter-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.813rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.category-filter-input::placeholder {
    color: var(--text-dim);
}

.category-filter-input:focus {
    border-color: var(--text-muted);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.items-no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.813rem;
}

.items-no-results.visible {
    display: block;
}

/* ─── Skin Card ─── */
.skin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

/* hover: hover — no sticky :hover on touch devices, so iPhone taps follow the
   card link on the first tap instead of first painting the hover state. */
@media (hover: hover) {
    .skin-card:hover {
        background: var(--bg-card-hover);
        border-color: var(--border);
    }
}

.skin-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #12151b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    overflow: hidden;
}
/* v3 grammar: rarity keyline tab at the caption edge, not a full-width bar */
.skin-card-visual::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 30px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--rarity-color, transparent);
}

@keyframes img-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skin-card-visual::before,
.item-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    animation: img-shimmer 1.6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.skin-card-visual.img-loaded::before,
.item-image.img-loaded::before {
    display: none;
}

.skin-card-featured {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(15, 17, 21, 0.85);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.skin-card-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
    z-index: 1;
}

.skin-card-badge {
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.563rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    background-color: rgba(15, 17, 21, 0.85);
}

.skin-card-badge--st {
    background-color: rgba(15, 17, 21, 0.88);
    border: 1px solid rgba(var(--stattrak-rgb), 0.4);
    color: var(--stattrak);
}

.skin-card-badge--sv {
    background-color: rgba(15, 17, 21, 0.88);
    border: 1px solid rgba(var(--souvenir-rgb), 0.35);
    color: #d4a72c;
}

.skin-card-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-card-img img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.skin-card-img img.loaded {
    opacity: 1;
}

.skin-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
}

.skin-card-name {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skin-card-rarity {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.skin-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.skin-card-price {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.skin-card-mp-count {
    font-size: 0.563rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ─── Finish Card Phase Tag ─── */
.finish-card-phase {
    font-size: 0.688rem;
    color: var(--text-muted);
}

/* ─── Item Detail Page ─── */
.item-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.item-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: #12151b;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border-bottom: 3px solid var(--rarity-color, var(--border));
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.item-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-image img.loaded {
    opacity: 1;
}

/* ─── Inspect in Game ─── */
.inspect-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.15s;
    z-index: 2;
    cursor: pointer;
}
.inspect-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}
.inspect-btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* ─── Lightbox ─── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-max);
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(0.92);
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.item-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.item-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    align-self: stretch;
}

.item-badges .locale-toggles {
    margin-left: auto;
}

.item-rarity-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.item-badge-pill {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.item-badge-pill--st {
    background: rgba(var(--stattrak-rgb), 0.1);
    border-color: rgba(var(--stattrak-rgb), 0.25);
    color: var(--stattrak);
}

/* ─── Item Price Hero (inline marketplace offers) ─── */
.item-price-hero {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.hero-offer--best {
    border-color: rgba(var(--ok-rgb), 0.25);
    background: rgba(var(--ok-rgb), 0.04);
}

.hero-offer-mp {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-offer-price {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-left: auto;
}

.hero-offer--best .hero-offer-price {
    color: var(--online);
}

.hero-offer-save {
    font-size: 0.563rem;
    font-weight: 700;
    padding: 2px 5px;
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.hero-offer-link {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-offer-link:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.hero-offer--best .hero-offer-link {
    background: rgba(var(--ok-rgb), 0.1);
    border-color: rgba(var(--ok-rgb), 0.25);
    color: var(--online);
}

.hero-offer--best .hero-offer-link:hover {
    background: var(--online);
    color: var(--bg);
}

.hero-offer-more {
    font-size: 0.688rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    text-align: center;
    padding: 4px;
    transition: color 0.15s;
}

.hero-offer-more:hover {
    color: var(--text-muted);
}

/* Float Range */
.float-range {
    margin-top: 2px;
}

.float-range-label {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.float-range-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.float-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--text-muted);
    border-radius: 2px;
}

.float-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 0.625rem;
    color: var(--text-dim);
}

/* ─── Filter Bar ─── */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-chip {
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.688rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.filter-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.filter-chip.active {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    color: var(--text);
}


/* Filter chip: full name on desktop, short on mobile */
.filter-short { display: none; }

/* Mobile: horizontal scroll for filter chips */
@media (max-width: 640px) {
    .filter-full { display: none; }
    .filter-short { display: inline; }

    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

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

/* ─── Category Toolbar ─── */
.category-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.category-filter {
    position: relative;
    display: flex;
    align-items: center;
}

.category-filter-icon {
    position: absolute;
    left: 10px;
    color: var(--text-dim);
    pointer-events: none;
}

.category-filter-input {
    padding-left: 30px;
}

/* ─── Toolbar Row (sort left, locale right) ─── */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ─── Sort Controls ─── */
.sort-controls {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sort-controls::-webkit-scrollbar {
    display: none;
}

.sort-btn {
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: 0.688rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sort-btn:hover {
    color: var(--text-muted);
    background: var(--bg-card-hover);
}

.sort-btn.active {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    color: var(--text);
}

/* ─── Finish Gallery (Model Page) ─── */
.finish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

/* finish-card now reuses skin-card classes for consistency */
.finish-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.finish-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

/* ─── Finish Selector (Finish Page) ─── */
.finish-selector {
    margin-bottom: 14px;
}

.finish-selector-label {
    display: block;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.finish-selector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

@media (max-width: 640px) {
    .finish-selector-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .finish-selector-list::-webkit-scrollbar {
        display: none;
    }
}

.finish-selector-pill {
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.688rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.finish-selector-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.finish-selector-pill.active {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    color: var(--text);
}

.finish-selector--phases {
    margin-top: -6px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.finish-selector-pill--phase {
    font-size: 0.625rem;
    padding: 4px 8px;
}

/* ─── Wear Selector ─── */
.wear-selector,
.stattrak-selector,
.color-selector {
    margin-bottom: 14px;
}

.color-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .color-pills,
    .wear-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .color-pills::-webkit-scrollbar,
    .wear-pills::-webkit-scrollbar {
        display: none;
    }
}

.wear-selector-label {
    display: block;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.wear-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wear-pill {
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.wear-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.wear-pill.active {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    color: var(--text);
}

.wear-pill-abbr {
    display: inline;
}

.wear-pill-full {
    display: none;
}

.wear-pill-price {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    margin-left: 2px;
}

.wear-pill-price::before {
    content: '\00b7';
    margin-right: 2px;
}

.wear-pill.active .wear-pill-price {
    color: var(--text-muted);
}

.st-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--stattrak);
}

.wear-pill--st.active .st-badge {
    color: #e4853f;
}

.sv-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--souvenir);
}

.wear-pill--sv.active .sv-badge {
    color: #ffe44d;
}

/* ─── Price Table ─── */
.price-section {
    margin-bottom: 24px;
}

.price-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.price-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.price-section-updated {
    font-size: 0.625rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.price-variant.hidden {
    display: none;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.price-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.price-row:hover {
    border-color: var(--border);
    background: var(--bg-card-hover);
}

.price-row--best {
    border-color: rgba(var(--ok-rgb), 0.2);
    background: rgba(var(--ok-rgb), 0.04);
}

.price-row--best:hover {
    border-color: rgba(var(--ok-rgb), 0.35);
}

.price-row-rank {
    min-width: 52px;
}

.price-rank-num {
    font-size: 0.688rem;
    color: var(--text-dim);
    font-weight: 500;
}

.price-best-badge {
    font-size: 0.563rem;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(var(--ok-rgb), 0.15);
    color: var(--online);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.price-row-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.price-mp-name-row {
    display: flex;
    align-items: center;
}

.price-mp-name {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
a.price-mp-name:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--text-dim); }

.price-mp-review {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    border-radius: 50%;
    color: var(--text-dim);
    opacity: 0.45;
    transition: opacity 0.15s, color 0.15s;
    text-decoration: none;
}

.price-mp-review:hover {
    opacity: 1;
    color: rgba(var(--info-rgb), 0.9);
}

.price-offers {
    font-size: 0.563rem;
    color: var(--text-dim);
}

/* Shared row context (buy + sell tables): fit dot, type, rails, flags. */
.price-mp-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.price-fit {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
}

.price-fit--good { background: var(--online); }
.price-fit--warn { background: var(--warn); }
.price-fit--neutral { background: var(--text-dim); }
.price-fit--danger { background: var(--offline); }

.price-mp-type {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* region flag glyph (replaces the wide "CN REFERENCE" / "RU RAILS" text) */
.price-flag-ic { display: inline-flex; align-items: center; }
.price-flag-ic svg { width: 16px; height: 11px; display: block; border-radius: 2px; }

.price-mp-rails {
    font-size: 0.688rem;
    color: var(--text-dim);
}

.price-mp-rails::before { content: "· "; }

.price-offers--inline { font-size: 0.688rem; color: var(--text-dim); }
.price-offers--inline::before { content: "· "; color: var(--text-dim); }

.price-fee-note {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}

.price-flag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.price-flag--warn { background: rgba(var(--warn-rgb), 0.14); color: var(--warn); }
.price-flag--danger { background: rgba(var(--danger-rgb), 0.14); color: var(--danger); }
.price-flag--neutral { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.price-flag--good {
    background: rgba(var(--ok-rgb), 0.12);
    color: var(--online);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* Payment-rail filter chips + quick picks (buy + sell tables). */
.price-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.price-fchip {
    display: inline-flex;
    align-items: center;
    font-size: 0.688rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-card);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.fchip-ic { display: inline-flex; margin-right: 5px; }
.fchip-ic svg { width: 13px; height: 13px; display: block; }

.price-fchip:hover { color: var(--text); }
.price-fchip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.price-row.row-filtered { display: none; }

.price-filter-empty {
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 10px 2px;
    margin: 0;
}

.price-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 2px;
}

.price-picks-label { font-size: 0.688rem; color: var(--text-dim); }

.price-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.688rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-card);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.price-pick:hover { color: var(--text); border-color: var(--text-dim); }
.price-pick-k { font-weight: 700; color: var(--text-muted); }
.price-pick-m { color: var(--text); font-weight: 600; }
.price-pick-p { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.price-pinned-badge {
    font-size: 0.563rem;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(var(--info-rgb), 0.12);
    color: rgba(var(--info-rgb), 0.85);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.price-steam-ref {
    margin-bottom: 12px;
}

.price-row--steam {
    border-color: rgba(var(--info-rgb), 0.15);
    background: rgba(var(--info-rgb), 0.03);
}

.price-row--steam:hover {
    border-color: rgba(var(--info-rgb), 0.3);
}

.price-steam-markup {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--danger);
    white-space: nowrap;
}

.price-row-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-row--best .price-amount {
    color: var(--online);
}

.price-save-tag {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--online);
    white-space: nowrap;
}

.price-save-tag--negative {
    color: var(--text-dim);
}

.price-row-action {
    flex-shrink: 0;
}

.price-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.15s;
    white-space: nowrap;
    cursor: pointer;
}

.price-cta:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.price-row--best .price-cta {
    background: rgba(var(--ok-rgb), 0.15);
    border-color: rgba(var(--ok-rgb), 0.3);
    color: var(--online);
}

.price-row--best .price-cta:hover {
    background: var(--online);
    color: var(--bg);
    border-color: var(--online);
}

.price-cta--dim {
    color: var(--text-muted);
}

.price-cta--disabled,
.price-cta--disabled:hover {
    background: transparent;
    border-color: transparent;
    color: var(--text-dim);
    cursor: default;
}

.price-disclaimer {
    font-size: 0.625rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.price-table-intro {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 4px 0 12px;
}

#allPrices .sort-controls {
    margin-bottom: 12px;
}

/* Mobile: compact price rows */
@media (max-width: 640px) {
    .price-row {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .price-row-rank {
        display: none;
    }

    .price-cta {
        padding: 5px 8px;
        font-size: 0.625rem;
    }
}

/* ── Item price table — mobile clean-up (2026-07): the header/tabs/filters were
      scattering (space-between + right-aligned chips), and rows ran 4+ lines from
      the wrapping payment-method meta. Stack the header; condense the rows. ── */
@media (max-width: 640px) {
    /* heading over the "sell?" link; tabs and filter-chips each a left row */
    .ip-page .t-sechead { flex-direction: column; align-items: flex-start; gap: 3px; }
    .ip-page .t-sechead .t-sechead-r { margin-left: 0; }
    .ip-page .t-table-head { flex-direction: column; align-items: stretch; gap: 9px; }
    .ip-page .t-table-head .price-filter-bar { justify-content: flex-start; }
    /* Buy / Sell tabs split the full width */
    .ip-page .t-pricezone .ptabs { display: flex; gap: 8px; }
    .ip-page .t-pricezone .ptab { flex: 1 1 0; justify-content: center; text-align: center; }

    /* rows: name + price + button on top; ONE short meta line (venue type only).
       Drop the payment-rail list, offer count, region + KYC badges that were
       wrapping the row to 4–5 lines — they stay on desktop / the market page. */
    .ip-page .t-pricezone .price-row { align-items: center; padding: 7px 10px; min-height: 0; }
    .ip-page .price-row-info { gap: 2px; min-width: 0; }
    .ip-page .price-mp-context { flex-wrap: nowrap; overflow: hidden; gap: 6px; }
    .ip-page .price-mp-context .price-mp-type { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ip-page .price-mp-context .pay-icons,
    .ip-page .price-mp-context .price-flag-ic,
    .ip-page .price-mp-context .price-flag { flex: 0 0 auto; }
    /* offer count is the one text bit that stays desktop-only */
    .ip-page .price-mp-context .price-offers { display: none; }
}

/* ─── Related Items ─── */
.related-section {
    margin-bottom: 24px;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* ─── Locale Toggles ─── */
.locale-toggles {
    display: flex;
    gap: 4px;
    align-items: center;
}

.locale-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 0.688rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.locale-toggle:hover {
    border-color: var(--text-muted);
    background: var(--bg-card-hover);
}

.locale-toggle-sep {
    color: var(--text-dim);
    font-weight: 400;
}

.locale-toggle-opt {
    transition: color 0.15s ease;
}

.locale-toggle-opt--dim {
    color: var(--text-dim);
}

/* ─── SEO Content Section (skins pages) ─── */
.skins-about {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.skins-about h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.skins-about p {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Prose links inside about/guide zones follow the one link code:
   text color, quiet dim underline — no UA blue, no size changes. */
.skins-about p a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text-dim);
    text-underline-offset: 2px;
}

.skins-about p a:hover {
    text-decoration-color: var(--text);
}

/* ─── Skins Responsive: Tablet ─── */
@media (min-width: 640px) {
    .container--wide {
        max-width: 960px;
    }

    .hub-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hub-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-grid--compact .cat-card-name {
        font-size: 0.813rem;
    }

    .finish-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .item-hero {
        flex-direction: row;
        gap: 24px;
    }

    .item-image {
        width: 55%;
        flex-shrink: 0;
    }

    .item-info {
        flex: 1;
    }

    .wear-pill-abbr {
        display: none;
    }

    .wear-pill-full {
        display: inline;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── Skins Responsive: Desktop (sidebar visible) ─── */
@media (min-width: 1100px) {
    .container--wide {
        max-width: 1080px;
    }

    .sidebar-toggle {
        display: none;
    }

    .skins-layout--with-sidebar {
        flex-direction: row;
        gap: 20px;
    }

    .skins-layout--with-sidebar .sidebar {
        display: flex;
        position: sticky;
        top: 12px;
        width: 240px;
        flex-shrink: 0;
        max-width: none;
        height: calc(100vh - 24px);
        background: var(--bg);
        border-right: none;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        z-index: 1;
        transform: none;
        transition: none;
    }

    .skins-layout--with-sidebar .sidebar .sidebar-header {
        display: none;
    }

    /* Sidebar collapse: the button appears by the view toggle, and toggling it
       hides the sidebar so the content flexes to the full width. */
    .sidebar-collapse-btn { display: inline-flex; }
    .skins-layout--with-sidebar.skins-layout--sidebar-collapsed .sidebar { display: none; }

    .finish-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-grid--compact {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 20px 0 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s;
}

.pagination-btn:hover {
    color: var(--text);
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
}

.pagination-current {
    color: var(--text);
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    cursor: default;
}

.pagination-dots {
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 0 4px;
}

/* ─── Scroll to top button ─── */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    color: var(--text);
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
}

/* Steam Workshop Downloader Tool */
.swd-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.swd-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.swd-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.swd-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.swd-input::placeholder {
    color: var(--text-dim);
}

.swd-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.swd-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.swd-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.swd-btn-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.swd-btn-search:hover {
    opacity: 0.85;
}

.swd-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.swd-examples-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.swd-example {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
}

.swd-example:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.swd-error {
    background: rgba(var(--danger-rgb), 0.08);
    border: 1px solid rgba(var(--danger-rgb), 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.813rem;
    color: var(--offline);
    margin-bottom: 16px;
    line-height: 1.5;
}

.swd-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 0.813rem;
    color: var(--text-dim);
    justify-content: center;
}

.swd-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--text-muted);
    border-radius: 50%;
    animation: swd-spin 0.7s linear infinite;
}

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

/* Results container */
.swd-results {
    margin-bottom: 24px;
}

/* Item card */
.swd-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.swd-card-preview {
    flex-shrink: 0;
    width: 200px;
    min-height: 120px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swd-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swd-card-body {
    flex: 1;
    padding: 14px 16px 14px 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.swd-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.swd-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.swd-tag {
    font-size: 0.688rem;
    color: var(--text-dim);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.swd-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Stats grid */
.swd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.swd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg-card);
}

.swd-stat svg {
    color: var(--text-dim);
}

.swd-stat-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.swd-stat-label {
    font-size: 0.688rem;
    color: var(--text-dim);
}

/* Download section */
.swd-download-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.swd-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
}

.swd-section-title svg {
    color: var(--text-dim);
}

.swd-option {
    margin-bottom: 14px;
}

.swd-option:last-child {
    margin-bottom: 0;
}

.swd-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.swd-option-badge {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.swd-badge-green {
    color: var(--online);
    background: rgba(var(--ok-rgb), 0.1);
}

.swd-badge-dim {
    color: var(--text-dim);
}

.swd-option-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Command block */
.swd-cmd-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.swd-cmd-text {
    flex: 1;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.5;
}

.swd-copy {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.swd-copy:hover {
    color: var(--text);
}

.swd-copy .check-icon {
    color: var(--online);
}

/* Action buttons */
.swd-btn-download,
.swd-btn-steam,
.swd-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
    font-family: inherit;
}

.swd-btn-download {
    background: var(--online);
    color: #000;
}

.swd-btn-steam {
    background: var(--text);
    color: var(--bg);
}

.swd-btn-link {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.swd-btn-download:hover,
.swd-btn-steam:hover,
.swd-btn-link:hover {
    opacity: 0.85;
}

.swd-option-direct {
    background: rgba(var(--ok-rgb), 0.04);
    border: 1px solid rgba(var(--ok-rgb), 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .swd-tool {
        flex-direction: column;
    }

    .swd-btn-search {
        justify-content: center;
    }

    .swd-card {
        flex-direction: column;
    }

    .swd-card-preview {
        width: 100%;
        height: 180px;
    }

    .swd-card-body {
        padding: 12px 14px;
    }

    .swd-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .swd-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .swd-cmd-text {
        font-size: 0.688rem;
    }
}

/* ═══════════════════════════════════════════════════════
   STEAM CHARTS TOOL
   ═══════════════════════════════════════════════════════ */

/* Overview stat cards */
.sc-overview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.sc-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
}

.sc-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sc-stat-label {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.sc-stat-live .sc-stat-value {
    color: var(--online);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Search bar */
.sc-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sc-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.sc-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.sc-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.sc-input::placeholder {
    color: var(--text-dim);
}

.sc-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.sc-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.sc-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.sc-btn-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sc-btn-search:hover {
    opacity: 0.85;
}

/* Quick search chips */
.sc-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.sc-quick-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sc-quick {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.sc-quick:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

/* Section header */
.sc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sc-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-meta {
    font-size: 0.688rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Chart table */
.sc-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-table th {
    text-align: left;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.sc-table th:last-child {
    text-align: right;
}

.sc-row td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background 0.1s;
}

.sc-row:last-child td {
    border-bottom: none;
}

.sc-row:hover td {
    background: var(--bg-card-hover);
}

.sc-rank {
    width: 32px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    text-align: center !important;
}

.sc-game-name {
    font-size: 0.813rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-game-icon {
    width: 32px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.sc-game-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.sc-game-name a:hover {
    color: var(--text-muted);
}

.sc-count {
    text-align: right;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--online);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sc-shimmer {
    display: inline-block;
    width: 52px;
    height: 12px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    animation: scPulse 1.2s ease-in-out infinite;
}

@keyframes scPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}

/* Search results */
.sc-search-wrap {
    margin-bottom: 20px;
}

.sc-search-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-thumb-cell {
    width: 52px;
    padding-right: 0 !important;
}

.sc-thumb {
    width: 48px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.sc-status {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 20px 12px !important;
    background: var(--bg-card);
}

/* Footer meta */
.sc-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding: 0 2px;
}

.sc-live {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--online);
    animation: scBlink 2s ease-in-out infinite;
}

@keyframes scBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile */
@media (max-width: 600px) {
    .sc-overview {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sc-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .sc-stat-value {
        font-size: 1rem;
    }

    .sc-stat-card {
        padding: 10px 12px;
    }

    .sc-tool {
        flex-direction: column;
    }

    .sc-btn-search {
        justify-content: center;
    }

    .sc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sc-rank {
        width: 24px;
        font-size: 0.688rem;
    }

    .sc-row td {
        padding: 7px 8px;
    }

    .sc-thumb {
        width: 36px;
        height: 14px;
    }

    .sc-thumb-cell {
        width: 42px;
    }

    .sc-footer-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .sc-game-name {
        font-size: 0.75rem;
        gap: 6px;
    }

    .sc-game-icon {
        width: 26px;
        height: 10px;
    }

    .sc-count {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════
   Steam Sales Tool
   ═══════════════════════════════════════════════ */

/* Hero block: countdown */
.ss-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
}

.ss-hero--active {
    border-color: var(--online);
    box-shadow: 0 0 0 1px var(--online), 0 0 20px rgba(var(--ok-rgb), 0.08);
}

.ss-hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.ss-hero--active .ss-hero-status {
    color: var(--online);
    font-weight: 600;
}

.ss-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}

.ss-hero--active .ss-status-dot {
    background: var(--online);
    animation: scBlink 2s ease-in-out infinite;
}

.ss-hero-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

/* Countdown digits */
.ss-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ss-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.ss-countdown-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ss-hero--active .ss-countdown-val {
    color: var(--online);
}

.ss-countdown-label {
    font-size: 0.625rem;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ss-countdown-sep {
    font-size: 1.25rem;
    color: var(--text-dim);
    font-weight: 700;
    align-self: flex-start;
    margin-top: 4px;
}

.ss-hero-dates {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Quick stats */
.ss-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.ss-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
}

.ss-stat-val {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.ss-stat-lbl {
    font-size: 0.625rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Year toggle */
.ss-year-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.ss-year-btn {
    padding: 6px 16px;
    font-size: 0.813rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s;
}

.ss-year-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.ss-year-btn--active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.ss-year-btn--active:hover {
    opacity: 0.85;
    background: var(--text);
    color: var(--bg);
}

/* Sale calendar cards */
.ss-calendar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.ss-sale-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: background 0.1s;
}

.ss-sale-card:hover {
    background: var(--bg-card-hover);
}

.ss-sale-card--active {
    border-color: var(--online);
}

.ss-sale-card--past {
    opacity: 0.55;
}

.ss-sale-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.ss-sale-card--active .ss-sale-icon {
    color: var(--online);
}

.ss-sale-body {
    flex: 1;
    min-width: 0;
}

.ss-sale-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.ss-sale-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-major-tag {
    font-size: 0.563rem;
    font-weight: 700;
    color: var(--slow);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    background: rgba(var(--warn-rgb), 0.1);
    border-radius: 3px;
}

.ss-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

.ss-badge--active {
    color: var(--online);
    background: rgba(var(--ok-rgb), 0.1);
}

.ss-badge--upcoming {
    color: var(--text-muted);
    background: var(--bg);
}

.ss-badge--past {
    color: var(--text-dim);
    background: var(--bg);
}

.ss-sale-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.ss-sale-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.688rem;
    color: var(--text-muted);
}

.ss-sale-dates {
    font-weight: 600;
}

.ss-sale-dur {
    color: var(--text-dim);
}

/* Mobile: steam sales */
@media (max-width: 600px) {
    .ss-hero {
        padding: 20px 16px;
    }

    .ss-hero-name {
        font-size: 1.05rem;
    }

    .ss-countdown-val {
        font-size: 1.35rem;
    }

    .ss-countdown-unit {
        min-width: 40px;
    }

    .ss-countdown-sep {
        font-size: 1rem;
    }

    .ss-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ss-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .ss-stat-val {
        font-size: 0.938rem;
    }

    .ss-stat-card {
        padding: 10px 10px;
    }

    .ss-sale-card {
        padding: 12px 12px;
        gap: 10px;
    }

    .ss-sale-icon {
        width: 32px;
        height: 32px;
    }

    .ss-sale-icon svg {
        width: 16px;
        height: 16px;
    }

    .ss-sale-name {
        font-size: 0.813rem;
    }

    .ss-sale-top {
        gap: 4px;
    }

    .ss-sale-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════
   Steam Price History Tool
   ═══════════════════════════════════════════════════════ */

/* Search bar */
.sph-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sph-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.sph-input-wrap:focus-within {
    border-color: var(--text-dim);
}

.sph-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    padding: 10px 12px;
    font-family: inherit;
    min-width: 0;
}

.sph-input::placeholder {
    color: var(--text-dim);
}

.sph-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    flex-shrink: 0;
}

.sph-btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.sph-btn-icon:hover {
    color: var(--text-muted);
    background: var(--bg);
}

.sph-btn-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sph-btn-search:hover {
    opacity: 0.85;
}

/* Dropdown */
.sph-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-pop);
}

.sph-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.sph-dd-item:hover {
    background: var(--bg-card-hover);
}

.sph-dd-img {
    width: 80px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sph-dd-img-placeholder {
    width: 80px;
    height: 30px;
    background: var(--border);
    border-radius: 4px;
    flex-shrink: 0;
}

.sph-dd-name {
    font-size: 0.813rem;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sph-dd-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 0.813rem;
    color: var(--text-dim);
}

/* Quick links */
.sph-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.sph-quick-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sph-quick {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.sph-quick:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

/* Error & loading */
.sph-error {
    background: rgba(var(--danger-rgb),0.08);
    border: 1px solid rgba(var(--danger-rgb),0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #f87171;
    font-size: 0.813rem;
    margin-bottom: 16px;
}

.sph-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 16px;
    color: var(--text-dim);
    font-size: 0.813rem;
}

.sph-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: sph-spin 0.6s linear infinite;
}

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

/* ── Game card ── */
.sph-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.sph-game-header {
    width: 100%;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background: var(--border);
}

.sph-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sph-game-info {
    padding: 14px 16px;
}

.sph-game-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.sph-game-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    min-width: 0;
    margin: 0;
}

.sph-store-link {
    color: var(--text-dim);
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
    margin-top: 3px;
}

.sph-store-link:hover {
    color: var(--text);
}

.sph-game-desc {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sph-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sph-game-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.sph-mc {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.sph-mc-good {
    background: rgba(var(--ok-rgb),0.15);
    color: #4ade80;
}

.sph-mc-mixed {
    background: rgba(var(--warn-rgb),0.15);
    color: #fbbf24;
}

.sph-mc-bad {
    background: rgba(var(--danger-rgb),0.15);
    color: #f87171;
}

.sph-players {
    color: var(--online);
}

.sph-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.sph-tag {
    font-size: 0.688rem;
    color: var(--text-dim);
    padding: 2px 8px;
    background: var(--bg);
    border-radius: var(--radius-pill);
}

.sph-game-platforms {
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ── Price hero ── */
.sph-price-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sph-price-hero--sale {
    border-color: rgba(var(--ok-rgb),0.25);
    background: rgba(var(--ok-rgb), 0.04);
}

.sph-price-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sph-discount-badge {
    background: #4ade80;
    color: #0f1115;
    font-size: 1.125rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.sph-price-nums {
    display: flex;
    flex-direction: column;
}

.sph-price-old {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.sph-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.sph-price-badge {
    text-align: center;
}

.sph-price-label {
    display: block;
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.sph-price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.sph-free .sph-price-value {
    color: var(--online);
}

.sph-deal-badge {
    font-size: 0.813rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── Regional prices table ── */
.sph-section {
    margin-bottom: 12px;
}

.sph-section-header {
    margin-bottom: 8px;
}

.sph-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.sph-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.sph-table {
    width: 100%;
    border-collapse: collapse;
}

.sph-table th {
    text-align: left;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.sph-table th:last-child {
    text-align: right;
}

.sph-tbl-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.sph-tbl-row:last-child {
    border-bottom: none;
}

.sph-tbl-row:hover {
    background: var(--bg-card);
}

.sph-tbl-region {
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem;
}

.sph-tbl-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.sph-tbl-name {
    color: var(--text);
}

.sph-tbl-price {
    padding: 9px 12px;
    font-size: 0.813rem;
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sph-tbl-sale {
    color: var(--online);
}

.sph-tbl-old {
    font-size: 0.688rem;
    color: var(--text-dim);
    text-decoration: line-through;
    font-weight: 400;
}

.sph-tbl-disc {
    padding: 9px 12px;
    text-align: right;
    font-size: 0.813rem;
}

.sph-tbl-discount {
    background: rgba(var(--ok-rgb),0.12);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.75rem;
}

.sph-tbl-no-disc {
    color: var(--text-dim);
}

.sph-tbl-usd {
    padding: 9px 12px;
    font-size: 0.813rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.sph-tbl-cheapest {
    background: rgba(var(--ok-rgb),0.06);
}

.sph-tbl-cheapest .sph-tbl-usd {
    color: var(--online);
    font-weight: 600;
}

.sph-disclaimer {
    font-size: 0.688rem;
    color: var(--text-dim);
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.4;
}

.sph-disclaimer svg {
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Sale card ── */
.sph-sale-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sph-sale-card--active {
    border-color: rgba(var(--danger-rgb),0.3);
    background: rgba(var(--danger-rgb), 0.04);
}

.sph-sale-icon {
    color: var(--text-dim);
    flex-shrink: 0;
    margin-top: 2px;
}

.sph-sale-body {
    flex: 1;
    min-width: 0;
}

.sph-sale-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.sph-sale-major {
    font-size: 0.625rem;
    background: rgba(var(--warn-rgb),0.15);
    color: #fbbf24;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    vertical-align: middle;
}

.sph-sale-status {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.sph-sale-live {
    color: #f87171;
    font-weight: 600;
}

.sph-sale-tip {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ── Buy advice ── */
.sph-advice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sph-advice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.sph-advice-body {
    flex: 1;
    min-width: 0;
}

.sph-advice-body strong {
    font-size: 0.875rem;
    display: block;
    margin-bottom: 2px;
}

.sph-advice-body p {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
    .sph-tool {
        flex-direction: column;
    }

    .sph-btn-search {
        justify-content: center;
        padding: 12px 18px;
    }

    .sph-price-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .sph-discount-badge {
        font-size: 1rem;
        padding: 4px 10px;
    }

    .sph-price-current {
        font-size: 1.125rem;
    }

    .sph-game-name {
        font-size: 1rem;
    }

    .sph-game-desc {
        -webkit-line-clamp: 2;
    }

    .sph-tbl-region {
        padding: 8px 10px;
    }

    .sph-tbl-price {
        padding: 8px 10px;
    }

    .sph-tbl-disc {
        padding: 8px 10px;
    }

    .sph-tbl-usd {
        padding: 8px 8px;
        font-size: 0.75rem;
    }

    .sph-tbl-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Deadlock section
   Reuses the site tokens only (no accent colour). Mirrors cat-card,
   filter-chip, skin-card and skins-about so it reads as native.
   ═══════════════════════════════════════════════════════════════ */
.dl-lede {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 68ch;
    margin-top: 6px;
}
.dl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.dl-toolbar .hub-search-input { flex: 1 1 200px; }
.dl-result-count { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }

/* tiles */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 8px;
}
.dl-grid--items { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.dl-grid--skins { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 520px) {
    .dl-grid { grid-template-columns: repeat(3, 1fr); }
    .dl-grid--skins { grid-template-columns: repeat(2, 1fr); }
}

.dl-tile {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.dl-tile:hover { background: var(--bg-card-hover); border-color: var(--border); }
.dl-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 1.5rem;
    font-weight: 700;
}
.dl-tile--item .dl-tile-img { aspect-ratio: 1 / 1; padding: 8px; }
.dl-tile-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s ease; }
.dl-tile--item .dl-tile-img img { object-fit: contain; }
.dl-tile-img img.loaded { opacity: 1; }
.dl-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-tile-name { font-size: 0.813rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.dl-tile-sub { font-size: 0.688rem; color: var(--text-dim); }
.dl-tile-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.dl-chip-tag {
    font-size: 0.625rem;
    padding: 2px 6px;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
}

/* detail header */
.dl-detail { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.dl-detail-art {
    flex: 0 0 200px;
    max-width: 200px;
    aspect-ratio: 3 / 4;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.dl-detail-art--item { flex-basis: 120px; max-width: 120px; aspect-ratio: 1 / 1; padding: 14px; }
.dl-detail-art img { width: 100%; height: 100%; object-fit: cover; }
.dl-detail-art--item img { object-fit: contain; }
.dl-detail-main { flex: 1 1 300px; min-width: 0; }
.dl-detail-main .page-title { margin-bottom: 8px; }
.dl-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* stat cards */
.dl-section { margin-top: 24px; }
.dl-section-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.dl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 6px;
}
.dl-stat { background: var(--bg-card); border-radius: var(--radius-sm); padding: 10px 12px; }
.dl-stat-label { font-size: 0.625rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.dl-stat-value { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-top: 2px; }

/* abilities */
.dl-ability { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.dl-ability:first-child { border-top: none; padding-top: 4px; }
.dl-ability-icon {
    flex: 0 0 44px; width: 44px; height: 44px;
    background: var(--bg-card); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dl-ability-icon img { width: 100%; height: 100%; object-fit: contain; }
.dl-ability-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dl-ability-desc { font-size: 0.813rem; color: var(--text-muted); line-height: 1.6; white-space: pre-line; }

/* prose + FAQ */
.dl-prose p { font-size: 0.813rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; white-space: pre-line; }
.dl-prose h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.dl-faq { display: flex; flex-direction: column; gap: 8px; }
.dl-faq-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; }
.dl-faq-q { font-size: 0.813rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dl-faq-a { font-size: 0.813rem; color: var(--text-muted); line-height: 1.6; }

/* related links row */
.dl-related { display: flex; flex-wrap: wrap; gap: 6px; }

/* hub cards */
.dl-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dl-hub-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 16px;
    text-decoration: none; display: flex; flex-direction: column; gap: 4px;
    border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease;
}
.dl-hub-card:hover { background: var(--bg-card-hover); border-color: var(--border); }
.dl-hub-card-count { font-size: 0.688rem; color: var(--text-dim); }
.dl-hub-card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.dl-hub-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* source line */
.dl-source { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.dl-source p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.6; }
.dl-source a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.dl-source a:hover { color: var(--text); }

/* skins */
.dl-skin-author { font-size: 0.688rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-skin-stats { display: flex; gap: 10px; font-size: 0.688rem; color: var(--text-dim); }
.dl-skin-card--mature .skin-card-img img { filter: blur(18px); }
.dl-skin-card--mature.revealed .skin-card-img img { filter: none; }
.dl-mature-tag {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    z-index: 1; font-size: 0.625rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em; pointer-events: none;
}
.dl-skin-card--mature.revealed .dl-mature-tag { display: none; }

/* age gate modal (mirrors lightbox-overlay) */
.dl-agegate {
    position: fixed; inset: 0; z-index: var(--z-max);
    background: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.dl-agegate.active { opacity: 1; visibility: visible; }
.dl-agegate-box {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; max-width: 380px; text-align: center;
}
.dl-agegate-box h2 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.dl-agegate-box p { font-size: 0.813rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.dl-agegate-actions { display: flex; gap: 8px; justify-content: center; }
.dl-btn {
    padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600;
    font-family: inherit; cursor: pointer; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-muted); transition: all 0.15s ease;
}
.dl-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.dl-btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.dl-btn--primary:hover { background: var(--text-muted); color: var(--bg); }

/* ── Deadlock: view switch / table / compare ── */
.dl-views { display: inline-flex; gap: 4px; background: var(--bg-card); border-radius: var(--radius-pill); padding: 3px; }
.dl-views button {
    padding: 5px 12px; border: none; background: transparent; color: var(--text-muted);
    font-size: 0.688rem; font-weight: 600; font-family: inherit; cursor: pointer; border-radius: var(--radius-pill);
}
.dl-views button.active { background: var(--text); color: var(--bg); }
.dl-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.dl-table th, .dl-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dl-table th { color: var(--text-dim); font-weight: 600; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dl-table td { color: var(--text-muted); }
.dl-table tr:hover td { background: var(--bg-card); }
.dl-table .dl-table-name { color: var(--text); font-weight: 600; }
.dl-table a.dl-table-name { text-decoration: none; }
.dl-table a.dl-table-name:hover { text-decoration: underline; }
.dl-table-row[data-status-tag="dev"] .dl-table-name::after,
.dl-tile[data-released="0"] .dl-tile-name::after {
    content: attr(data-dev-label); margin-left: 6px; font-size: 0.563rem; font-weight: 700;
    color: var(--slow); border: 1px solid var(--slow); border-radius: 4px; padding: 0 4px; vertical-align: middle; text-transform: uppercase;
}
.dl-table-img { width: 28px; height: 28px; border-radius: var(--radius-sm); object-fit: cover; vertical-align: middle; background: var(--bg); }
.dl-compare-hint { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 0.813rem; }
.dl-table td:first-child, .dl-table th:first-child { position: sticky; left: 0; background: var(--bg); }
.dl-compare-pick { width: 15px; height: 15px; accent-color: var(--text); }
.dl-dev-badge { margin-left: 6px; font-size: 0.563rem; font-weight: 700; color: var(--slow); border: 1px solid var(--slow); border-radius: 4px; padding: 0 4px; vertical-align: middle; text-transform: uppercase; white-space: nowrap; }
.dl-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; user-select: none; }
.dl-toggle input { accent-color: var(--text); width: 14px; height: 14px; }
.dl-toggle:hover { color: var(--text); }

/* ── Deadlock fixes: hidden must win over card display; FAQ spacing; empty ── */
.dl-tile[hidden], .skin-card[hidden], .dl-table-row[hidden], [data-dl-card][hidden] { display: none !important; }
.dl-faq { display: flex; flex-direction: column; }
.dl-faq-item { margin-bottom: 8px; }
.dl-faq-item:last-child { margin-bottom: 0; }
.skins-about .dl-faq-item { margin-bottom: 8px; }
.dl-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: 0.813rem; }

/* ── Deadlock hub: logo header + featured heroes strip ── */
.dl-hub-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.dl-hub-logo { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 520px) { .dl-hub-logo { width: 44px; height: 44px; } }
.dl-hero-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dl-hero-chip { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg-card); overflow: hidden; display: block; transition: background 0.15s ease; }
.dl-hero-chip:hover { background: var(--bg-card-hover); }
.dl-hero-chip img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s ease; }
.dl-hero-chip img.loaded { opacity: 1; }

/* ─── Accessibility hard-fix bundle (Phase 0) ─── */

/* One global keyboard-focus style: the UA default outline is invisible on the
   dark palette, and most interactive elements had no focus style at all. */
:focus-visible {
    outline: 2px solid var(--online);
    outline-offset: 2px;
}

/* Skip link: visually hidden until keyboard-focused. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: var(--z-toast);
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Data freshness (FreshnessBadge) ─── */

/* Neutral under 24h, amber past 24h, red past 72h — capture time, not build time. */
.freshness--warn {
    color: var(--slow);
}

.freshness--danger {
    color: var(--offline);
    font-weight: 600;
}

.price-fx-note {
    display: block;
    margin-top: 2px;
}

/* Money CTAs are real anchors now; keep the button look. */
.hero-offer-link {
    text-decoration: none;
}

/* ─── Numeric alignment ───
   Tabular figures on price/float/count displays so digits column up.
   Same size, same color — pure alignment. font-variant-numeric inherits,
   so container classes cover their children. */
.card-value,
.card-value-large,
.sid-value,
.sid-row-value,
.skin-card-mp-count,
.float-range-values,
.price-rank-num,
.price-row-value,
.price-offers,
.price-offers--inline,
.category-count,
.sidebar-link-count,
.sidebar-group-count,
.hub-section-count,
.cat-card-count,
.sc-rank,
.dl-stat-value {
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════
   T-KIT — the shared terminal row/pill/tile/delta vocabulary (ecosystem spec §3).
   Every class here is new and namespaced t-*; only existing tokens are used.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── t-delta: THE delta atom (hub pulse, board rows, identity strip, cards) ── */
.t-delta {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    border: 1px solid;
    white-space: nowrap;
}
.t-delta--up { color: var(--ok); border-color: rgba(var(--ok-rgb), 0.2); background: rgba(var(--ok-rgb), 0.06); }
.t-delta--down { color: var(--danger); border-color: rgba(var(--danger-rgb), 0.2); background: rgba(var(--danger-rgb), 0.06); }
.t-delta--flat { color: var(--text-dim); border-color: var(--border); background: transparent; }

/* ── Board: column header + entity rows; the whole row is one link ── */
.t-board { display: flex; flex-direction: column; gap: 2px; }
.t-thead, .t-row { display: grid; align-items: center; gap: 12px; padding: 7px 12px; }
.t-thead {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
.t-row {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
@media (hover: hover) { .t-row:hover { background: var(--bg-card-hover); border-color: var(--border); } }
/* Money-column contract: SKIN · PRICE · 30D · SOLD/DAY · MARKETS */
.t-cols-cat { grid-template-columns: 46px minmax(0, 1fr) 110px 96px 96px 86px; }
.t-cols-rank { grid-template-columns: 34px 46px minmax(0, 1fr) 110px 96px 96px 86px; }
.t-cols-pulse { grid-template-columns: 34px minmax(0, 1fr) 84px 74px; }
.t-cols-mkt { grid-template-columns: minmax(0, 1fr) 92px 152px 84px; }
.t-rank { font-size: 0.688rem; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.t-thumb {
    width: 46px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #12151b;
    border-radius: 6px;
    border-bottom: 2px solid var(--rarity-color, var(--border));
}
.t-thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }
.t-thumb--sm { width: 34px; height: 26px; }
.t-name-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.t-name { font-size: 0.813rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name .t-vbadge { margin-left: 5px; }
.t-caption {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t-num { font-size: 0.813rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.t-num--dim { color: var(--text-muted); font-weight: 500; }
.t-cell-r { text-align: right; }
/* Mobile fold line: SOLD/DAY + MARKETS collapse into the name cell */
.t-fold { display: none; font-size: 0.625rem; color: var(--text-dim); }
/* Family-tree grouping (model boards, G1): group label + indented child rows */
.t-board-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 12px 12px 4px;
}
.t-row--child { margin-left: 24px; border-left: 1px solid var(--border); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.t-vbadge { display: inline-block; padding: 1px 4px; border-radius: 4px; font-size: 0.563rem; font-weight: 700; vertical-align: 1px; }
.t-vbadge--st { background: rgba(var(--stattrak-rgb), 0.18); border: 1px solid rgba(var(--stattrak-rgb), 0.3); color: var(--stattrak); }
.t-vbadge--sv { background: rgba(var(--souvenir-rgb), 0.12); border: 1px solid rgba(var(--souvenir-rgb), 0.26); color: var(--souvenir); }
@media (max-width: 700px) {
    .t-cols-cat { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
    .t-cols-rank { grid-template-columns: 28px 46px minmax(0, 1fr) auto auto; }
    .t-cell--sold, .t-cell--mkts { display: none; }
    .t-fold { display: block; }
    .t-row--child { margin-left: 16px; }
}
/* Movers landings (spec §2.5): the delta IS the ranking key — bolder column */
.t-board--movers .t-delta { font-size: 0.75rem; padding: 2px 8px; }

/* ── Hub pulse board (3 columns × 6 rows; 4 rows stacked on mobile) ── */
.t-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t-pulse-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-pulse-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 0 2px;
}
.t-pulse-label a { color: var(--text-dim); text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 500; }
.t-pulse-label a:hover { color: var(--text); }
/* Compact pulse (H1 2026-07): the leader row of each column + one expander is
   the DEFAULT at every width — desktop shows one tight three-cell row, mobile
   stacks the same cells. The full 3×6 board renders only after expand. */
.t-pulse-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: stretch; }
.t-pulse-mini .t-row { padding: 5px 10px; }
/* Mini tiles: price/delta shrink to content so the NAME keeps real width
   ("PP-Bizon (Rust Coat)", not "P.."). */
.t-pulse-mini .t-cols-pulse { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.t-mini-k { display: block; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.t-pulse-more {
    font-size: 0.688rem;
    font-family: inherit;
    color: var(--text-muted);
    padding: 6px 10px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.t-pulse-more:hover { background: var(--bg-card-hover); color: var(--text); }
[data-pulse]:not(.t-pulse--open) .t-pulse { display: none; }
[data-pulse].t-pulse--open .t-pulse-mini { display: none; }
@media (max-width: 900px) {
    .t-pulse { grid-template-columns: 1fr; }
    .t-pulse-col > .t-row:nth-child(n + 6) { display: none; }
    .t-pulse-mini { display: flex; flex-direction: column; gap: 6px; }
}

/* ── Answer box: BUY / SELL / STEAM verdict rows (item pages only) ── */
.t-answer { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-ans-row { display: flex; align-items: center; gap: 10px; }
.t-ans-k {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    min-width: 44px;
    flex-shrink: 0;
}
.t-ans-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.t-ans-v { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.25; white-space: nowrap; }
.t-ans-v--buy { color: var(--ok); }
.t-ans-v--dim { color: var(--text-muted); }
.t-ans-m { font-size: 0.688rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-ans-note { font-size: 0.625rem; color: var(--text-dim); margin: 2px 0 0; }
.t-ans-note a { color: inherit; text-decoration: none; }
.t-ans-note a:hover { color: var(--text); }

/* ── Variant band: WEAR / QUALITY / PHASE / FINISH label rows ── */
.t-variants { display: flex; flex-direction: column; gap: 10px; }
.t-var-row { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.t-var-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    min-width: 52px;
    flex-shrink: 0;
}
.t-var-pills { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
/* G3: the one opinionated default — BEST VALUE on the liquidity-leader wear */
.t-bestval {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(var(--ok-rgb), 0.15);
    color: var(--online);
    white-space: nowrap;
}
.t-var-note { font-size: 0.688rem; color: var(--text-dim); margin: -4px 0 0; padding-left: 62px; }
.t-var-row details { min-width: 0; }
.t-var-row summary.wear-pill { list-style: none; cursor: pointer; }
.t-var-row summary.wear-pill::-webkit-details-marker { display: none; }
.t-finish-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-width: 900px; }
@media (max-width: 640px) { .t-var-note { padding-left: 0; } }

/* ── Provenance strip (G4): hairline fact cells, every value a zoom link ── */
.t-provs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.t-prov-cell { padding: 9px 12px; background: var(--bg-card); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-prov-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-prov-k { font-size: 0.563rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.t-prov-v { font-size: 0.75rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.t-prov-v { text-decoration: none; }
a.t-prov-v:hover { text-decoration: underline; text-underline-offset: 2px; }
.t-prov-s { font-size: 0.625rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .t-provs { grid-template-columns: repeat(2, 1fr); } }

/* ── Market band: history chart + six stat tiles as ONE unit ── */
.t-band { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: stretch; }
.t-band-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: stretch; }
.t-band .price-history { margin: 0; min-width: 0; }
.t-band .price-history .ph-header { display: none; }
@media (max-width: 1000px) { .t-band { grid-template-columns: 1fr; } }

/* ── Navigation spine: sibling line (top) + keep-browsing line (bottom, G9) ── */
.t-siblings { font-size: 0.688rem; color: var(--text-dim); margin: 0; }
.t-siblings a { color: var(--text-muted); text-decoration: none; }
.t-siblings a:hover { color: var(--text); }
.t-siblings strong { color: var(--text); font-weight: 600; }
/* K4: container sibling chips — the active drop pool as a clickable chip row */
.t-sibchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.t-sibchips-label { font-size: 0.688rem; font-weight: 600; color: var(--text); margin-right: 2px; }
.t-sibchip {
    font-size: 0.688rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-card);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
a.t-sibchip:hover { color: var(--text); border-color: var(--text-dim); }
.t-sibchip--current { color: var(--text); border-color: var(--text-muted); }
.t-keepb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-top: 24px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--border);
}
.t-keepb-label { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.t-keepb a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.t-keepb a:hover { color: var(--text); }

/* ── Drop-status badge: case pages, collection pages, the drop-pool board ── */
.pool-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none;
}
.pool-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pool-badge--active { color: var(--online); background: rgba(74, 222, 128, 0.10); }
.pool-badge--armory { color: var(--slow); background: rgba(251, 191, 36, 0.10); }
.pool-badge--rare { color: var(--text-muted); background: var(--bg-card-hover); }
.pool-badge--off { color: var(--offline); background: rgba(248, 113, 113, 0.10); }
a.pool-badge:hover { filter: brightness(1.15); }

/* ── Drop-pool / new-releases board columns (same .t-row anatomy as boards) ── */
.t-cols-pool { grid-template-columns: 46px minmax(0, 1fr) 92px 150px 100px 70px; }
.t-since { font-size: 0.688rem; color: var(--text-dim); font-variant-numeric: tabular-nums; line-height: 1.35; }
.t-cell--rel { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.t-status-cell { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
@media (max-width: 900px) {
    .t-cols-pool { grid-template-columns: 46px minmax(0, 1fr) auto; }
    .t-cols-pool .t-cell--rel, .t-cols-pool .t-cell--d30, .t-cols-pool .t-status-cell { display: none; }
    .t-cols-pool .t-fold { display: block; }
}
.t-row--link { justify-content: center; text-align: center; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; display: flex; border: 1px dashed var(--border); background: none; }
.t-row--link:hover { color: var(--text); border-color: var(--text-dim); background: none; }

/* ── Contents tile extras: min–max range line, "+N more" tile (§3.1.6) ── */
.case-tile-range { font-size: 0.625rem; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-tile--more { align-items: center; justify-content: center; border-bottom-color: var(--border); background: none; border: 1px dashed var(--border); }
.case-tile--more:hover { background: none; border-color: var(--text-dim); }
.case-tile-morelabel { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-align: center; line-height: 1.4; }
.case-tile--more:hover .case-tile-morelabel { color: var(--text); }

/* ── Tooltip bubble (CSS hover/focus; touch keeps the row self-sufficient) ── */
.tip-anchor { position: relative; }
.tip-bubble {
    position: absolute;
    z-index: 300;
    width: 232px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-pop, 0 12px 32px rgba(0, 0, 0, 0.55));
    padding: 8px 10px;
    font-size: 0.688rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    white-space: normal;
    text-align: left;
    display: none;
}
.tip-anchor:hover .tip-bubble, .tip-anchor:focus-within .tip-bubble { display: block; }
.tip-bubble b { color: var(--text); font-weight: 600; }
.tip-q {
    display: inline-flex;
    width: 13px;
    height: 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--text-dim);
    border-radius: 50%;
    font-size: 0.563rem;
    color: var(--text-dim);
    margin-left: 4px;
    cursor: help;
    vertical-align: 1px;
}
@media (max-width: 700px) { .tip-bubble, .tip-q { display: none !important; } }

/* ── Dated changelog rows (drop-pool registry) ── */
.log-list { display: flex; flex-direction: column; gap: 2px; }
.log-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 7px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}
.log-date { font-size: 0.688rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.log-text a { color: var(--text); text-decoration: none; }
.log-text a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .log-row { grid-template-columns: 1fr; gap: 2px; } }

/* release-date badge on new-releases cards (the featured-pill slot) */
.skin-card-datebadge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 0.563rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(15, 17, 21, 0.7);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* verdict sentence inside the case EV card */
.case-ev-verdictline { margin: 10px 0 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.55; }
.case-ev-verdictline b { color: var(--text); font-weight: 600; }

/* collection identity: the contents ARE the identity — 2×2 collage of top items */
.coll-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; padding: 10px; }
.coll-collage-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #12151b;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
/* v3 grammar: rarity keyline tab, not a full-width underline */
.coll-collage-cell::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 0;
    width: 24px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--rc, transparent);
}
.coll-collage-cell img { max-width: 82%; max-height: 82%; object-fit: contain; }

/* let an open tooltip escape the provenance strip's overflow clipping */
.t-provs:has(.tip-bubble) { overflow: visible; }

/* answer-box extra rows: linked meta reads like the plain meta line */
a.t-ans-m { color: var(--text-dim); text-decoration: none; }
a.t-ans-m:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ── Page-head vocabulary shared by all catalog archetypes ── */
.t-page-head { display: flex; flex-direction: column; gap: 10px; }
.t-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.t-h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.t-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-lead { font-size: 0.813rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.t-meta-line { font-size: 0.688rem; color: var(--text-dim); margin: 0; }
.t-meta-line a { color: var(--text-muted); text-decoration: none; }
.t-meta-line a:hover { color: var(--text); }
.t-cap { font-size: 0.688rem; color: var(--text-dim); }

/* ── Reading zones on wide screens (G1): prose fills the container as
   two-column reading instead of a capped measure with a half-screen void.
   Headings, bylines, FAQ and browse rows span both columns; paragraph text
   flows across the columns at a sane line length. ── */
@media (min-width: 1100px) {
    .container--wide .read-zone {
        columns: 2;
        column-gap: 48px;
    }

    .container--wide .read-zone > h2,
    .container--wide .read-zone > h3,
    .container--wide .read-zone > .byline,
    .container--wide .read-zone > div,
    .container--wide .read-zone > section,
    .container--wide .read-zone > table,
    .container--wide .read-zone > nav,
    .container--wide .read-zone > ul,
    .container--wide .read-zone > ol {
        column-span: all;
    }

    .container--wide .read-zone > p {
        max-width: none;
    }
}

/* ── Card strips (Most wanted / More from — the ONE image-forward row) ── */
.t-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.t-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .t-strip, .t-strip--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .t-strip, .t-strip--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Price table shell: tabs + rail chips + the ONE freshness stamp ── */
.t-table-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-table-note { font-size: 0.688rem; color: var(--text-dim); margin: 10px 0 0; }
.t-table-note a { color: var(--text-muted); text-decoration: none; }
.t-table-note a:hover { color: var(--text); }
/* G8: cost of not choosing the best row, under every non-best price */
.t-vsbest { font-size: 0.625rem; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* G2: rows 9+ ship in the server HTML, hidden behind one disclosure */
.t-more-row[hidden] { display: none; }
.t-showmore {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 12px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.t-showmore:hover { color: var(--text); border-color: var(--text-dim); }
.t-showmore[hidden] { display: none; }
/* Sell tab honest empty state — no payable buyback quote for this audience */
.t-sell-empty {
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}
.t-sell-empty-lead { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.t-sell-empty-venues { font-size: 0.688rem; color: var(--text-dim); margin: 6px 0 0; }
.t-sell-empty-venues a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.t-sell-empty-venues a:hover { color: var(--text); }
.t-sell-empty-fee { white-space: nowrap; }
/* tabs left · filter chips right = two groups at the row edges (space-between) */
.t-table-head .price-filter-bar { margin-top: 0; flex: 0 1 auto; justify-content: flex-end; }
/* [hidden] must win over the bar's display:flex (tab-head chip bars swap per tab) */
.price-filter-bar[hidden] { display: none; }
@media (max-width: 700px) { .t-table-head .price-filter-bar { flex-basis: 100%; } }

/* ── t-id: item identity strip (spec §2.6 block 1 — image | identity | answer) ── */
.t-id {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 320px;
    grid-template-rows: auto auto;
    gap: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}
.t-id-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #12151b;
    border-radius: var(--radius-sm);
    padding: 10px;
    min-height: 130px;
}
.t-id-visual img { max-width: 100%; max-height: 150px; object-fit: contain; }
.t-id-core { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t-id-answer {
    grid-row: 1 / 3;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
    padding-left: 20px;
    min-width: 0;
}
.t-id-float { grid-column: 1 / 3; }
.t-id-titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-id-h1 { font-size: 1.571rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.t-id-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-id-deltas { display: flex; gap: 6px; flex-wrap: wrap; }
.t-rarity { font-size: 0.688rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
@media (max-width: 1000px) {
    /* Mobile order: name → answer box → image → float bar (first price stays
       inside the first viewport; image capped, never a full screen).
       Scoped under .t-id — the decision card (.t-dc) orders its own children. */
    .t-id { grid-template-columns: 1fr; grid-template-rows: none; }
    .t-id .t-id-core { order: 1; }
    .t-id .t-id-answer { order: 2; grid-row: auto; grid-column: 1; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
    .t-id .t-id-visual { order: 3; max-height: 40vh; }
    .t-id .t-id-visual img { max-height: 38vh; }
    .t-id .t-id-float { order: 4; grid-column: 1; }
}

/* ── t-float: quiet float bar spanning under image+identity ── */
.t-float { display: flex; flex-direction: column; gap: 4px; }
.t-float-bar { position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: var(--border); }
.t-float-fill { position: absolute; top: 0; bottom: 0; background: var(--text-dim); border-radius: 3px; }
.t-float-tick { position: absolute; top: -1px; bottom: -1px; width: 1px; background: var(--bg); opacity: 0.9; }
.t-float-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.625rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}
.t-float-guide { color: var(--text-dim); text-decoration: none; }
.t-float-guide:hover { color: var(--text-muted); }

/* Provenance multi-part values ("Normal · ST · SV") — each part a zoom link. */
.t-prov-v a { color: inherit; text-decoration: none; }
.t-prov-v a:hover { color: var(--text-muted); }
a.t-prov-v { text-decoration: none; }
a.t-prov-v:hover { color: var(--text-muted); }

/* ── Hub catalog index (§2.2 block 3): first-class image tiles + dense text tiles ── */
.t-first-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (max-width: 900px) { .t-first-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .t-first-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-first-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0;
}
.t-first-tile:hover { background: var(--bg-card-hover); border-color: var(--border); }
.t-first-img { height: 44px; display: flex; align-items: center; color: var(--text-dim); }
.t-first-img img { max-height: 44px; max-width: 80%; object-fit: contain; }
.t-first-name { font-size: 0.813rem; font-weight: 600; color: var(--text); }
.t-first-meta { font-size: 0.625rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.t-index-group { margin-bottom: 14px; }
.t-index-group:last-child { margin-bottom: 0; }
.t-index-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.t-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; }
.t-index-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0;
}
.t-index-tile:hover { background: var(--bg-card-hover); border-color: var(--border); }
.t-index-name { font-size: 0.75rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-index-meta { font-size: 0.625rem; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Hub browse rails (§2.2 block 4): ONE card, five link columns ── */
.t-rails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 0;
}
.t-rail { padding: 0 16px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.t-rail:first-child { border-left: none; }
.t-rail-label { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.t-rail a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.t-rail a:hover { color: var(--text); }
@media (max-width: 900px) {
    .t-rails { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
    .t-rail:nth-child(odd) { border-left: none; }
}

/* ── Method line (§2.2 block 5) — quiet prose foot with methodology anchors ── */
.t-foot-about { font-size: 0.75rem; color: var(--text-dim); line-height: 1.6; max-width: 860px; margin: 0; }
.t-foot-about a { color: var(--text-muted); text-decoration: none; }
.t-foot-about a:hover { color: var(--text); }

/* ── Game chooser (§2.1): two real game tiles, nothing else ── */
.t-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .t-games { grid-template-columns: 1fr; } }
.t-game {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0;
}
.t-game:hover { background: var(--bg-card-hover); border-color: var(--border); }
.t-game-head { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.t-game-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-game-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t-game-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.t-game-head:hover .t-game-name { text-decoration: underline; text-underline-offset: 3px; }
.t-game-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.t-game-links a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.t-game-links a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════
   Item page — winning variant A "compact decision card first"
   (approved mockup page-designs-v2/item-A, 2026-07). Namespace: t-dc / t-w / t-fam / t-read.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Zone 1: decision card — image | identity | answer + selector footer ── */
.t-dc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr) 300px;
    gap: 12px 20px;
    margin-bottom: 28px;
    align-items: start;
}
.t-dc-media { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t-dc .t-id-visual {
    aspect-ratio: 16 / 10;
    min-height: 0;
    padding: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
/* rarity keyline tab (same grammar as the discovery cards) */
.t-dc .t-id-visual::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--rarity-color, transparent);
}
.t-dc .t-id-visual img { max-width: 92%; max-height: 92%; }
.t-dc .inspect-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(15, 17, 21, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px 9px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.t-dc .inspect-btn:hover { color: var(--text); border-color: var(--text-dim); }
.t-dc .inspect-btn svg { width: 11px; height: 11px; }
.t-dc-id { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.t-dc-lead { font-size: 0.875rem; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 62ch; }
.t-onpage { font-size: 0.625rem; color: var(--text-dim); margin-top: auto; }
.t-onpage a { color: var(--text-muted); text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
.t-onpage a:hover { color: var(--text); }
/* rarity as a tinted chip (mockup va-chip--rarity) */
.t-dc .t-rarity {
    display: inline-flex;
    align-items: center;
    font-size: 0.563rem;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--rarity-color, #8b919a) 35%, transparent);
    background: color-mix(in srgb, var(--rarity-color, #8b919a) 12%, transparent);
}

/* answer column: one quiet ledger — aligned rows, hairline dividers,
   no per-row tinted "input boxes"; color lives only in the values. */
.t-dc-ans { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-dc .t-answer { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; flex-direction: column; }
.t-dc .t-ans-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
}
.t-dc .t-ans-row + .t-ans-row, .t-dc .t-answer .t-ans-note { border-top: 1px solid var(--border); }
.t-dc .t-ans-k { font-size: 0.625rem; }
.t-dc .t-ans-v { font-size: 1rem; line-height: 1.15; }
.t-dc .t-ans-row .price-cta { padding: 5px 11px; }
.t-dc .t-answer .t-ans-note { margin: 0; padding: 7px 11px 8px; line-height: 1.45; }
.t-ans-stamp { font-size: 0.625rem; color: var(--text-dim); }
.t-ans-stamp .freshness { font-size: 0.625rem; }
.t-ans-stamp a { color: var(--text-muted); text-decoration: none; }
.t-ans-stamp a:hover { color: var(--text); }

/* float bar under the image (track normalized to the item's own range) */
.t-dcf { display: flex; flex-direction: column; }
.t-dcf-track {
    position: relative;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b4c3b 0%, #4a4a37 30%, #4c3b35 100%);
    opacity: 0.9;
}
.t-dcf-track i { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--text-dim); }
.t-dcf-seg { position: absolute; top: -1px; bottom: -1px; background: rgba(232, 234, 237, 0.35); border-radius: 2px; }
.t-dcf-labels { position: relative; height: 13px; font-size: 0.625rem; color: var(--text-dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.t-dcf-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.t-dcf-labels span:first-child { transform: none; left: 0; }
.t-dcf-labels span:last-child { transform: none; right: 0; left: auto; }
.t-dcf-cap { font-size: 0.625rem; color: var(--text-dim); margin-top: 5px; line-height: 1.45; }
.t-dcf-cap a { color: var(--text-muted); }

/* selector footer inside the card */
.t-dc-sel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.t-dc-sel .t-variants { gap: 8px; }
.t-dc-sel .t-var-label { min-width: 48px; }

/* wear tiles (render + name + price + float range) */
.t-wtiles { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; }
.t-wtile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px 6px;
    text-decoration: none;
    min-width: 108px;
}
.t-wtile:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }
.t-wtile.active { background: var(--bg-card-hover); border-color: var(--text-muted); }
.t-wtile img { width: 78px; height: 40px; object-fit: contain; }
.t-wtile .n { font-size: 0.688rem; font-weight: 600; color: var(--text); line-height: 1.25; display: flex; align-items: baseline; gap: 4px; text-align: center; }
.t-wtile .m { display: flex; align-items: baseline; gap: 5px; }
.t-wtile .p { font-size: 0.625rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.t-wtile .f { font-size: 0.5rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.t-wtile .tick { font-size: 0.5rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.t-wtile .t-bestval { position: absolute; left: 6px; top: 4px; }
.t-wearcap { font-size: 0.563rem; color: var(--text-dim); align-self: center; max-width: 220px; line-height: 1.45; }
.t-bestval { font-size: 0.5rem; font-weight: 700; color: var(--online); text-transform: uppercase; letter-spacing: 0.03em; }
/* quality pill min/max tick */
.wear-pill .t-qtick { font-size: 0.5rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }
/* finish line (inline link, replaces the disclosure) */
.t-finishline { font-size: 0.688rem; color: var(--text-muted); }
.t-finishline a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
.t-finishline a:hover { border-bottom-color: var(--text-muted); }
.t-var-row--quality { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }

/* ── Zone 2: price table — section head + pill tabs + denser rows ── */
.t-sechead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.t-sechead .t-h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
.t-sechead-r { margin-left: auto; font-size: 0.625rem; color: var(--text-dim); }
.t-sechead-r a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.t-sechead-r a:hover { color: var(--text); }
.t-tabnote { font-size: 0.563rem; color: var(--text-dim); }
.t-pricezone .ptabs { gap: 8px; }
.t-pricezone .ptab {
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-muted);
    margin-bottom: 0;
}
.t-pricezone .ptab.active { background: var(--bg-card-hover); color: var(--text); border-color: var(--text-muted); }
.t-pricezone .price-row { padding: 5px 10px; min-height: 36px; }
.t-pricezone .price-list { display: flex; flex-direction: column; gap: 3px; }
.t-pricezone .price-list--steam { margin-bottom: 3px; }

/* ── Zone 3: market band — heading + legend inside the chart card ── */
.ph-cardhead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.ph-title-sm { font-size: 0.75rem; font-weight: 600; color: var(--text); margin: 0; }

/* ── Zone 5: family rows panel + hover quick-preview ── */
.t-fam-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; position: relative; }
.t-fam-panel .t-sechead { margin-bottom: 8px; }
.t-fam-panel .t-sechead .t-h2 { font-size: 0.875rem; }
.t-fam-cap { font-size: 0.625rem; color: var(--text-dim); }
.t-famgrid { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 0 20px; align-items: start; }
.t-fam-hoverzone { position: relative; min-height: 40px; }
.t-lhead {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 72px 56px;
    gap: 10px;
    padding: 0 6px 4px;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.t-lhead span:nth-child(3), .t-lhead span:nth-child(4) { text-align: right; }
.t-lrows { display: flex; flex-direction: column; }
.t-lrow {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 72px 56px;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid transparent;
}
a.t-lrow:hover { background: var(--bg-card-hover); }
.t-lrow--self { border: 1px dashed var(--border); cursor: default; }
.t-lrow--self .t-here {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 4px;
    margin-left: 5px;
    vertical-align: 1px;
}
.t-lrow .im {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 6px;
    border-bottom: 2px solid var(--rc, transparent);
}
.t-lrow .im img { max-width: 34px; max-height: 24px; object-fit: contain; }
.t-lrow .nm { min-width: 0; }
.t-lrow .nm b { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-lrow .nm .cap { display: block; font-size: 0.563rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.t-lrow .pr { font-size: 0.813rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.t-lrow .tr { font-size: 0.625rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.t-lrow .tr.up { color: var(--online); }
.t-lrow .tr.down { color: var(--offline); }
.t-fam-foot { font-size: 0.625rem; color: var(--text-dim); margin: 6px 0 0; line-height: 1.5; }
/* hover quick-preview card */
.t-hovercard {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 55;
    display: none;
    transition: top 0.12s ease;
}
.t-hovercard.visible { display: block; }
.t-hovercard::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--bg-card-hover);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}
.t-hovercard .hv-im {
    aspect-ratio: 4 / 3;
    background: #12151b;
    border-radius: var(--radius-sm);
    border-bottom: 2px solid var(--hv-rc, var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
}
.t-hovercard .hv-im img { max-width: 82%; max-height: 82%; object-fit: contain; }
.t-hovercard .hv-nm { display: block; font-size: 0.813rem; font-weight: 600; color: var(--text); }
.t-hovercard .hv-r { display: block; font-size: 0.563rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hv-rc, var(--text-dim)); margin-bottom: 5px; }
.t-hovercard .hv-lad { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 5px; }
.t-hovercard .hv-lr { display: flex; justify-content: space-between; font-size: 0.688rem; color: var(--text-muted); }
.t-hovercard .hv-lr b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.t-hovercard .hv-ft { display: block; font-size: 0.5rem; color: var(--text-dim); margin-top: 5px; }

/* ── Zone 6: reading zone — open prose + wear table aside ── */
.t-read-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.t-prose { font-size: 0.813rem; line-height: 1.55; color: var(--text-muted); column-count: 2; column-gap: 24px; }
.t-prose p { margin: 0 0 8px; }
.t-prose .t-src { font-size: 0.625rem; color: var(--text-dim); }
.t-weartable { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; align-self: start; }
.t-weartable .t {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.t-wtr { display: grid; grid-template-columns: 1fr 76px 64px; gap: 8px; font-size: 0.688rem; padding: 3px 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.t-wtr:first-of-type { border-top: 0; }
.t-wtr b { color: var(--text); font-weight: 600; }
.t-wtr .r { text-align: right; font-variant-numeric: tabular-nums; }
.t-wtr .r.na { color: var(--text-dim); }
.t-wtr--head { font-size: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); border-top: 0; padding-bottom: 1px; }
.t-wtr--active b, .t-wtr--active .r { color: var(--text); }

/* ── Knowledge zone (P4a/P2): authored lead + a void-proof grid of compact
   design-wear-market cards. auto-fill so a short-text item's cards stretch to
   fill the row instead of leaving the old right-column hole. ── */
.t-know-lead { font-size: 0.813rem; line-height: 1.55; color: var(--text-muted); max-width: 78ch; margin-bottom: 14px; }
.t-know-lead--single { column-count: 1; }
.t-know-lead p { margin: 0 0 8px; }
.t-know-lead p:last-child { margin-bottom: 0; }
/* Balanced 2-column masonry: cards of different heights pack with no ragged
   grid holes, and the widest content (the wear card) gets a full column. */
.t-know-grid { columns: 2; column-gap: 12px; }
.t-know-grid--solo { columns: 1; max-width: 560px; }
.t-kc { break-inside: avoid; margin-bottom: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.t-kc--market { font-variant-numeric: tabular-nums; }
.t-kc-h { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 9px; }
.t-kc > p { margin: 0 0 7px; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.t-kc > p:last-of-type { margin-bottom: 0; }
.t-kc .t-dataline { color: var(--text-muted); }
.t-kc .t-src { font-size: 0.625rem; color: var(--text-dim); margin-top: 7px; }
.t-kc-cap { margin-top: 8px; font-size: 0.625rem; color: var(--text-dim); }
.t-kc-note { margin-top: 8px; font-size: 0.688rem; color: var(--text-dim); line-height: 1.45; }
.t-kc-chip { display: inline-block; margin-top: 9px; font-size: 0.688rem; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.t-kc-chip:hover { color: var(--text); }
/* chip row (trade-up outputs): bordered mini-links, one wrap-line */
.t-kc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-kc-chips .t-kc-chip { margin-top: 0; padding: 3px 9px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-weight: 500; }
.t-kc-chips .t-kc-chip:hover { background: var(--bg-card-hover); }
/* fact value may be a link (source case/collection) — quiet underline */
.t-kc-fact a.v { text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
.t-kc-fact a.v:hover { color: var(--text); border-bottom-color: var(--text-muted); }

/* fact rows (seed flag, glove specifics) */
.t-kc-fact { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--border); }
.t-kc-fact:first-of-type { border-top: 0; padding-top: 0; }
.t-kc-fact .k { color: var(--text-muted); flex: 0 0 auto; }
.t-kc-fact .v { color: var(--text); text-align: right; }
.t-kc-fact .v.na { color: var(--text-dim); }

/* wear band + rows */
.t-wband { position: relative; display: flex; height: 26px; border-radius: 4px; overflow: hidden; background: var(--bg); margin-bottom: 10px; }
.t-wband-seg { position: relative; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--bg-card); min-width: 0; }
.t-wband-seg:first-child { border-left: 0; }
.t-wband-seg.made { background: var(--bg-card-hover); }
.t-wband-seg.na { background: repeating-linear-gradient(45deg, transparent, transparent 3px, var(--border) 3px, var(--border) 4px); }
.t-wband-lab { font-size: 0.563rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.02em; }
.t-wband-seg.na .t-wband-lab { color: var(--text-dim); }
.t-wband-env { position: absolute; bottom: 0; height: 3px; background: var(--text); opacity: 0.85; border-radius: 2px 2px 0 0; }
.t-wrows { display: flex; flex-direction: column; }
.t-wrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; padding: 3px 0; border-top: 1px solid var(--border); font-size: 0.688rem; }
.t-wrow:first-child { border-top: 0; }
.t-wrow b { color: var(--text); font-weight: 600; }
.t-wrow .f { color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.t-wrow .p { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; min-width: 52px; }
.t-wrow.na b, .t-wrow.na .f, .t-wrow.na .p { color: var(--text-dim); }

/* variant fact rows (StatTrak / Souvenir mechanics) */
.t-vf { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--border); }
.t-vf:first-of-type { border-top: 0; padding-top: 0; }
.t-vf-badge { flex: 0 0 auto; font-size: 0.563rem; font-weight: 700; padding: 2px 5px; border-radius: 3px; letter-spacing: 0.03em; line-height: 1.2; }
.t-vf-st { background: rgba(var(--stattrak-rgb), 0.18); border: 1px solid rgba(var(--stattrak-rgb), 0.3); color: var(--stattrak); }
.t-vf-sv { background: rgba(var(--souvenir-rgb), 0.12); border: 1px solid rgba(var(--souvenir-rgb), 0.26); color: var(--souvenir); }
.t-vf-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.t-vf-body b { color: var(--text); font-size: 0.75rem; font-weight: 600; }
.t-vf-note { color: var(--text-dim); font-size: 0.688rem; line-height: 1.4; }

@media (max-width: 640px) {
    .t-know-grid { columns: 1; }
}

/* ── Zone 7: FAQ — top-level per-question disclosures ── */
.t-faqsec { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.t-faqsec .faq-item { margin: 0; }

/* ── Responsive (mockup @1099 block) ── */
@media (max-width: 1099px) {
    .t-dc { grid-template-columns: 1fr; }
    .t-dc-id { order: 1; }
    .t-dc-ans { order: 2; }
    .t-dc-media { order: 3; }
    .t-dc-sel { order: 4; }
    .t-onpage { margin-top: 2px; }
    .t-famgrid { grid-template-columns: 1fr; }
    .t-fam-hoverzone { display: none; }
    .t-read-grid { grid-template-columns: 1fr; }
    .t-prose { column-count: 1; }
    .t-wtile { flex: 1; min-width: 96px; }
    .t-wearcap { max-width: none; align-self: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS KIT — stickers category/group/team hubs + pattern family/children
   (page-designs-v2/sections contract). DNA tokens only, no new colors.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Header hub strips (tournaments / teams / per-weapon children) ── */
.g-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.g-row { display: flex; align-items: center; gap: 8px 6px; flex-wrap: wrap; }
.g-label { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); min-width: 96px; }
@media (max-width: 700px) { .g-label { min-width: 0; flex-basis: 100%; } }

/* ── Board search (search-within-board input row) ── */
.board-search { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.board-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 0.813rem; }
.board-search input::placeholder { color: var(--text-dim); }
.board-search .bs-icon { color: var(--text-dim); font-size: 0.75rem; line-height: 1; }

/* ── Min–max caption line (#10i companions; board ranges use .t-range from
   the discovery kit) ── */
.t-mm { font-size: 0.625rem; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Board foot-line ── */
.t-foot { font-size: 0.625rem; color: var(--text-dim); margin-top: 8px; }
.t-foot a { color: var(--text-muted); text-decoration: none; }
.t-foot a:hover { color: var(--text); }

/* Hover preview cards use the discovery kit (.hovercard in DiscoveryStyles +
   [data-hover] payloads rendered by cs2-discovery.js) — no duplicate here. */

/* ── Famous-seeds table (§4.8: render cell + inspect + live price) ── */
.pt-seed-cols { grid-template-columns: 50px 104px minmax(0, 0.85fr) 92px minmax(0, 1.75fr) 92px 74px; }
.pt-row-static { cursor: default; }
.pt-render { position: relative; width: 104px; height: 50px; display: flex; align-items: center; justify-content: center; background: #12151b; border-radius: 6px; overflow: hidden; }
.pt-render::after { content: ""; position: absolute; left: 8px; bottom: 0; width: 22px; height: 3px; border-radius: 2px 2px 0 0; background: var(--rarity-color, transparent); }
.pt-render img { max-width: 92%; max-height: 90%; object-fit: contain; }
.pt-seed { font-size: 0.813rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-tier-badge { display: inline-flex; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
.pt-claim { font-size: 0.688rem; color: var(--text-muted); line-height: 1.45; }
.pt-sources { display: block; font-size: 0.563rem; color: var(--text-dim); margin-top: 2px; }
.pt-sources a { color: var(--text-dim); }
.pt-sources a:hover { color: var(--text-muted); }
.pt-inspect { display: inline-flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 600; color: var(--text-muted); padding: 4px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; text-decoration: none; }
.pt-inspect:hover { background: var(--bg-card-hover); color: var(--text); }
@media (max-width: 900px) {
    .pt-seed-cols { grid-template-columns: 40px 64px minmax(0, 1fr) 76px; }
    .pt-seed-cols .pt-tier-cell, .pt-seed-cols .pt-claim-cell, .pt-seed-cols .pt-inspect-cell { display: none; }
    .pt-seed-cols .pt-render { width: 64px; height: 40px; }
}

/* ── Seed chips + tier rows joined to prices ── */
.seed-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.seed-chip { font-size: 0.688rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; text-decoration: none; line-height: 1.2; }
a.seed-chip:hover { background: var(--bg-card-hover); color: var(--text); }
.seed-chip--famous { border-color: var(--text-muted); color: var(--text); }
.tier-cols { grid-template-columns: 96px minmax(0, 1fr) 150px; }
.tier-note { font-size: 0.688rem; color: var(--text-dim); line-height: 1.5; margin-top: 6px; }
.tier-join { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
@media (max-width: 900px) {
    .tier-cols { grid-template-columns: 80px minmax(0, 1fr); }
    .tier-cols .tier-join { display: none; }
    .t-thead.tier-cols span:nth-child(3) { display: none; }
}

/* ── Seed-lookup widget (canon tier verdict) ── */
.lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.lookup-label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.lookup input { width: 110px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.813rem; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.lookup input:focus { outline: none; border-color: var(--text-dim); }
.lookup-btn { display: inline-flex; align-items: center; font-size: 0.688rem; font-weight: 600; color: var(--text); padding: 6px 12px; background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; }
.lookup-btn:hover { background: var(--text); color: var(--bg); }
.lookup-verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 10px; }
.lookup-verdict:empty { display: none; }
.lookup-verdict strong { font-variant-numeric: tabular-nums; }
.lookup-hint { font-size: 0.625rem; color: var(--text-dim); flex-basis: 100%; line-height: 1.5; }

/* ── Wear strip with min/max ticks (#10i) ── */
.wear-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-mm { font-size: 0.625rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 5px; }

/* ── Capsule provenance rows (tournament boards) ── */
.caps-cols { grid-template-columns: 46px minmax(0, 1fr) 110px 90px minmax(0, 0.9fr); }
.caps-v { font-size: 0.75rem; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
    .caps-cols { grid-template-columns: 38px minmax(0, 1fr) 90px; }
    .caps-cols .caps-hide-m { display: none; }
    .t-thead.caps-cols span:nth-child(4), .t-thead.caps-cols span:nth-child(5) { display: none; }
}
@media (max-width: 900px) { .t-row.caps-cols > .caps-v.t-cell-r:nth-child(4) { display: none; } }

/* ── Editions matrix (tournament groups) + crest lineage (team hubs) ── */
.ed-cols { grid-template-columns: 46px minmax(0, 1fr) 104px 104px 96px 104px; }
.ev-cols { grid-template-columns: minmax(0, 1fr) 96px 96px 96px 96px 118px; }
.ed-none { font-size: 0.688rem; color: var(--text-dim); }
.ed-sub { font-size: 0.563rem; color: var(--text-dim); display: block; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 900px) {
    .ed-cols { grid-template-columns: 38px minmax(0, 1fr) 88px 88px; }
    .ed-cols .ed-hide-m { display: none; }
    .ev-cols { grid-template-columns: minmax(0, 1fr) 88px 88px; }
    .ev-cols .ed-hide-m { display: none; }
}

/* ── Crafts desk (stickers category) ── */
.desk { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.desk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.desk-fact { background: var(--bg); border-radius: var(--radius-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; }
.desk-fact-k { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); font-weight: 600; }
.desk-fact-v { font-size: 0.75rem; color: var(--text-muted); line-height: 1.45; }
.desk-foot { font-size: 0.688rem; color: var(--text-dim); margin: 0; }
.desk-foot a { color: var(--text-muted); text-decoration: none; }
.desk-foot a:hover { color: var(--text); }
.desk-fact-v [data-tip] { border-bottom: 1px dotted var(--text-dim); }

/* ── Answer-first box (what-is intent, pattern pages) ── */
.ansbox { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; max-width: 860px; }
.ansbox-k { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); display: block; margin-bottom: 3px; }
.ansbox-a { font-size: 0.813rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.ansbox-a strong { color: var(--text); }

/* ── Reading zone: open prose + byline (collapsed-guide pattern retired) ── */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.prose p { margin: 0; font-size: 0.813rem; line-height: 1.6; color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.byline { font-size: 0.688rem; color: var(--text-dim); }

/* The Cards ⇄ Board toggle + grid vocabulary live in the discovery kit
   (DiscoveryStyles.astro + cs2-discovery.js) — shared, not duplicated here. */

/* ═══════════════════════════════════════════════════════════════════════════
   ITEM PAGE — prod design-code pass (2026-07). Prod (steamdb.com) is the visual
   reference; our content is denser, so we PACK it in prod's language rather than
   copy it: one flat/inset vocabulary across every below-hero surface — quiet
   subtle-fill panels for prose/FAQ (a fill, never a hard-outlined box), flat
   head+rows for data, ONE section rhythm, ONE heading scale, green kept strictly
   deal-semantic. Scoped to .ip-page so no other surface is touched.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── one vertical rhythm: flex-gap owns every inter-section gap; kill the old
      ad-hoc per-section margins (20/24/28) that made the spacing "float" ── */
.ip-page { display: flex; flex-direction: column; gap: 26px; }
.ip-page > * { margin-top: 0; margin-bottom: 0; }
/* the two nav lines hug the block they annotate rather than float at full gap */
.ip-page > .t-sibchips { margin-bottom: -10px; }
.ip-page > .t-coll-sibs { margin-top: -12px; }

/* ── one heading scale (prod section heads: ~1rem / 600 / white) ── */
.ip-page .t-sechead .t-h2,
.ip-page .section-title,
.ip-page .t-fam-panel .t-sechead .t-h2,
.ip-page .skins-about h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* ── "on other knives" family: flat head + rows on the page, no panel box ── */
.ip-page .t-fam-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

/* ── knowledge zone: kill the floaty CSS-columns masonry (the ragged, uneven
      pairing the owner flagged); an aligned grid of quiet, borderless subtle
      panels — prod's prose-panel language: a fill, not an outlined box ── */
.ip-page .t-know-grid {
    columns: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
/* flex-grow (not fixed grid tracks): the last row's cards EXPAND to fill, so a
   lone trailing card goes full-width instead of leaving a dead column. */
.ip-page .t-know-grid > .t-kc { flex: 1 1 320px; }
/* wide prose/data cards claim a full row on their own (a short card never gets
   stretched tall next to a taller neighbour) */
.ip-page .t-know-grid > .t-kc--market,
.ip-page .t-know-grid > .t-kc--wide { flex-basis: 100%; }
.ip-page .t-know-grid--solo { display: block; max-width: 560px; }
.ip-page .t-kc {
    margin: 0;
    border: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 13px 15px;
}
@media (max-width: 640px) {
    .ip-page .t-know-grid > .t-kc { flex-basis: 100%; }
}

/* ── FAQ: quiet subtle-fill panels with prod breathing room ── */
.ip-page .t-faqsec { gap: 8px; }
.ip-page .t-datafaq { background: var(--bg-card); }
.ip-page .t-datafaq .faq-question { padding: 13px 15px; }
.ip-page .t-datafaq .faq-answer { padding: 0 15px 13px; }

/* ── Item-facts board — provenance + market metrics as ONE tile board.
      flex + flex-grow (NOT grid): the last row's tiles EXPAND to fill the row,
      so an odd fact count can never leave the empty-track hole a grid leaves.
      Prod's "Item Facts" look: quiet bg-card tiles, caps label over value. ── */
.ip-page .ip-facts .t-sechead { margin-bottom: 8px; }
.ip-page .ip-facts .t-provs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
/* compact tiles: denser + smaller, and ~150px basis → 2 per row on mobile
   (not one full-screen column) since these facts are secondary info. */
.ip-page .ip-facts .t-provs { gap: 6px; }
.ip-page .ip-facts .t-prov-cell {
    flex: 1 1 150px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 6px 11px 7px;
    gap: 0;
}
.ip-page .ip-facts .t-prov-k { font-size: 0.5625rem; }
.ip-page .ip-facts .t-prov-v { font-size: 0.75rem; margin-top: 1px; }
.ip-page .ip-facts .t-prov-s { font-size: 0.5625rem; }
/* fact links never underline — hover just lifts the colour */
.ip-page .ip-facts a.t-prov-v,
.ip-page .ip-facts a.t-prov-s,
.ip-page .ip-facts .t-prov-s a,
.ip-page .ip-facts .t-prov-v a { text-decoration: none; }
.ip-page .ip-facts a.t-prov-v:hover,
.ip-page .ip-facts a.t-prov-s:hover,
.ip-page .ip-facts .t-prov-s a:hover,
.ip-page .ip-facts .t-prov-v a:hover { text-decoration: none; color: var(--text); }
/* source tile ("Drops from") — a tiny inline render before the case name,
   like the case glyph in listing-card meta lines. Label stays left-aligned. */
.ip-page .ip-facts .t-prov-vicon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    vertical-align: -3px;
    margin-right: 5px;
}

/* ── Card delta as a top-right badge over the render (family + related cards)
      instead of a puffy bottom trend row. ── */
.ip-page .skin-card { position: relative; }
.ip-page .skin-card-trend {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
}
.ip-page .skin-card-trend .t-delta { background: rgba(15, 17, 21, 0.82); }
