@font-face {
    font-family: "gg sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src:
        url("/assets/fonts/ggsans-Bold.woff") format("woff"),
        local("gg sans Bold"),
        local("gg sans"),
        local("ggsans-Bold");
}

html, body { background: #000000 !important; color: #ffffff; }
:root {
    color-scheme: dark;
    --bg: #080a0d;
    --surface: #101318;
    --surface-2: #151920;
    --surface-3: #1a1f27;
    --surface-glass: rgba(16, 19, 24, .88);
    --line: #292f38;
    --line-strong: #3b4451;
    --text: #f4f6f8;
    --muted: #a0a9b6;
    --subtle: #717b88;
    --orange: #eda338;
    --blue: #4179a3;
    --green: #52ce90;
    --yellow: #e6f13d;
    --purple: #803ca1;
    --accent: var(--orange);
    --accent-strong: var(--orange);
    --accent-deep: var(--orange);
    --accent-soft: rgba(237, 163, 56, .14);
    --accent-faint: rgba(237, 163, 56, .07);
    --accent-contrast: #11100d;
    --success: var(--green);
    --warning: var(--yellow);
    --danger: var(--orange);
    --shadow: 0 28px 90px rgba(0, 0, 0, .42);
    --shadow-soft: 0 14px 42px rgba(0, 0, 0, .26);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 10px;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: "gg sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { background: #000000; background: var(--bg, #000000); color: #ffffff; color: var(--text, #ffffff); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Page scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(237, 163, 56, .82) #080a0d;
}
html::-webkit-scrollbar {
    width: 8px;
}
html::-webkit-scrollbar-track {
    background: #080a0d;
}
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(237, 163, 56, .96), rgba(237, 163, 56, .68));
    border: 2px solid #080a0d;
    border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
    background: #eda338;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--sans);
    color: var(--text);
    background:
        radial-gradient(circle at 15% -10%, rgba(237, 163, 56, .13), transparent 32rem),
        radial-gradient(circle at 88% 12%, rgba(65, 121, 163, .10), transparent 28rem),
        radial-gradient(circle at 70% 88%, rgba(128, 60, 161, .055), transparent 30rem),
        linear-gradient(180deg, #080a0d 0%, #090c10 48%, #080a0d 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(237, 163, 56, .34);
    outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 999;
    transform: translateY(-180%);
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

main,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: inherit;
    text-decoration: none;
}
.brand-mark {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(237, 163, 56, .62);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(237,163,56,.18), rgba(237,163,56,.055));
    color: var(--accent-strong);
    box-shadow: inset 0 0 18px rgba(237,163,56,.08);
}
.brand-mark::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
    animation: brand-scan 3.2s ease-in-out infinite;
}
.brand-mark img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,255,255,.12)); animation: icon-breathe 2.8s ease-in-out infinite; }
.brand strong,
.brand small { display: block; }
.brand strong { font-size: .98rem; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .74rem; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(230,241,61,.1);
    animation: state-pulse 1.8s ease-in-out infinite;
}
.state-dot.is-ready { background: var(--success); box-shadow: 0 0 0 4px rgba(82,206,144,.1); }
.state-dot.is-error { background: var(--danger); box-shadow: 0 0 0 4px rgba(237,163,56,.1); }
.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.icon-button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-2); }
.icon-button-motion i { transition: transform .28s ease; }
.icon-button-motion:hover i { transform: rotate(12deg) scale(1.08); }

.ui-icon {
    display: inline-grid;
    place-items: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: -.14em;
}
.ui-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Optical sizing for the custom SVG set. Some glyphs use more internal
   whitespace than others, so context-specific sizing keeps them balanced. */
.card-icon .ui-icon {
    width: 1.08em;
    height: 1.08em;
    transform: scale(1.12);
}
.stat-card .card-icon .ui-icon {
    width: 1.12em;
    height: 1.12em;
    transform: scale(1.16);
}
.tab .ui-icon {
    width: 1.08em;
    height: 1.08em;
    font-size: .94rem;
    flex: 0 0 auto;
}
.profile-meta dt .ui-icon {
    width: 1rem;
    height: 1rem;
    font-size: .88rem;
    flex: 0 0 auto;
}
.detail-list dt .ui-icon {
    width: 1rem;
    height: 1rem;
    font-size: .9rem;
    flex: 0 0 auto;
}
.section-heading h3 .ui-icon,
.result-kicker .ui-icon,
.panel-heading-icon .ui-icon {
    width: 1.08em;
    height: 1.08em;
}
.ui-icon svg * {
    vector-effect: non-scaling-stroke;
}
.ui-icon::before,
.ui-icon::after {
    content: none !important;
    display: none !important;
}

main { padding: 34px 0 82px; }
.search-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    min-height: 360px;
}
.ambient-icons {
    position: absolute;
    inset: -20px 0 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.ambient-icon {
    position: absolute;
    color: rgba(237, 163, 56, .13);
    filter: drop-shadow(0 0 18px rgba(237,163,56,.18));
}
.ambient-icon-one { left: 5%; top: 16%; font-size: 2.4rem; animation: float-one 8s ease-in-out infinite; }
.ambient-icon-two { right: 7%; top: 5%; font-size: 3.2rem; animation: float-two 10s ease-in-out infinite; }
.ambient-icon-three { left: 15%; bottom: 8%; font-size: 2rem; animation: spin-slow 18s linear infinite; }
.ambient-icon-four { right: 13%; bottom: 10%; font-size: 2.2rem; animation: float-one 9s ease-in-out infinite reverse; }

.eyebrow,
.panel-eyebrow,
.result-kicker {
    margin: 0;
    color: var(--accent-strong);
    font-family: var(--mono);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .15em;
}
.result-kicker { display: inline-flex; align-items: center; gap: .45rem; }
.search-panel {
    position: relative;
    width: min(920px, 100%);
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(22,26,33,.97), rgba(11,14,18,.98)),
        var(--surface);
    padding: clamp(20px, 4vw, 34px);
    box-shadow: var(--shadow);
}
.search-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(237,163,56,.12), transparent 26rem),
        linear-gradient(105deg, transparent 0 45%, rgba(255,255,255,.018) 50%, transparent 55% 100%);
}
.search-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.search-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.language-picker {
    position: relative;
    z-index: 8;
}
.language-trigger {
    height: 34px;
    min-width: 126px;
    display: inline-grid;
    grid-template-columns: 18px minmax(68px, 1fr) 14px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(237,163,56,.42);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(23,25,29,.98), rgba(11,14,18,.98));
    color: var(--text);
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.03), 0 8px 22px rgba(0,0,0,.16);
    transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.language-trigger:hover,
.language-trigger:focus-visible,
.language-picker.is-open .language-trigger {
    border-color: rgba(237,163,56,.78);
    background: linear-gradient(180deg, rgba(237,163,56,.095), rgba(12,15,19,.99));
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.22), 0 0 0 3px rgba(237,163,56,.055);
}
.language-trigger:hover { transform: translateY(-1px); }
.language-trigger:focus-visible { outline: 0; }
.language-trigger > .bi-translate { color: var(--accent); font-size: .9rem; }
.language-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.language-chevron {
    justify-self: end;
    color: var(--muted);
    font-size: .72rem;
    transition: transform .18s ease, color .18s ease;
}
.language-picker.is-open .language-chevron { transform: rotate(180deg); color: var(--accent); }
.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    max-width: min(220px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid rgba(237,163,56,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18,21,26,.995), rgba(9,12,16,.995));
    box-shadow: 0 18px 44px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(14px);
    transform-origin: top left;
    animation: language-menu-in .15s ease-out both;
}
.language-menu[hidden] { display: none; }
.language-option {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 30px 1fr 18px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-strong);
    font: inherit;
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.language-option + .language-option { margin-top: 2px; }
.language-option:hover,
.language-option:focus-visible {
    outline: 0;
    color: var(--text);
    background: rgba(237,163,56,.09);
    transform: translateX(1px);
}
.language-option[aria-selected="true"] {
    color: #f7f8fa;
    background: linear-gradient(90deg, rgba(237,163,56,.16), rgba(237,163,56,.055));
}
.language-code {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--accent);
    background: rgba(237,163,56,.055);
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .06em;
}
.language-name { min-width: 0; }
.language-check { justify-self: end; color: var(--accent); opacity: 0; transform: scale(.75); transition: opacity .15s ease, transform .15s ease; }
.language-option[aria-selected="true"] .language-check { opacity: 1; transform: scale(1); }
@keyframes language-menu-in {
    from { opacity: 0; transform: translateY(-5px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-help-button {
    position: static;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
.search-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.search-heading-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(237,163,56,.35);
    border-radius: 15px;
    background: var(--accent-faint);
    color: var(--accent-strong);
    font-size: 1.28rem;
}
.search-heading-icon img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,255,255,.12)); animation: icon-breathe 2.8s ease-in-out infinite; }
.search-heading h1 {
    margin: .25rem 0 .2rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.search-heading p:last-child { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.search-label { position: relative; display: block; margin-bottom: .65rem; font-size: .78rem; font-weight: 750; color: var(--muted); }
.search-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.search-control {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: .72rem;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: #0a0d11;
    padding: 0 .85rem 0 .55rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-control::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent, rgba(237,163,56,.1), var(--accent), rgba(237,163,56,.1), transparent 32%);
    animation: search-border-spin 2.8s linear infinite;
    transition: opacity .2s ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}
.search-control:focus-within {
    border-color: rgba(237,163,56,.7);
    background: #0b0e13;
    box-shadow: 0 0 0 5px var(--accent-soft), 0 18px 42px rgba(0,0,0,.24);
}
.search-control:focus-within::before,
.search-control.is-loading::before { opacity: 1; }
.search-control.is-valid { border-color: rgba(82,206,144,.42); }
.search-control.is-invalid { border-color: rgba(237,163,56,.65); }
.search-orbit {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}
.search-prefix {
    position: relative;
    z-index: 2;
    color: var(--accent-strong);
    font-size: 1.05rem;
    animation: search-core-pulse 2.2s ease-in-out infinite;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(237,163,56,.34);
}
.orbit-ring::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: -3px;
    left: 50%;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 10px var(--accent);
}
.orbit-ring-outer { inset: 2px; animation: spin 3.2s linear infinite; }
.orbit-ring-inner { inset: 8px; border-style: dashed; animation: spin-reverse 2.2s linear infinite; }
.search-control input {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: .9rem;
}
.search-control input::placeholder { color: #68727e; }
.input-detection {
    flex: 0 0 auto;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--subtle);
    font-size: .66rem;
}
.input-detection.is-detected { color: var(--success); }
.input-detection.is-warning { color: var(--warning); }
.clear-input {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.clear-input:hover { color: var(--text); background: rgba(255,255,255,.055); transform: rotate(5deg); }

.primary-button,
.secondary-button,
.primary-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: 12px;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button,
.primary-link {
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 88%, white), var(--orange));
    color: var(--accent-contrast);
    padding: 0 .95rem;
    box-shadow: 0 10px 28px rgba(237,163,56,.18);
}
.primary-button { min-width: 146px; }
.primary-button:hover,
.primary-link:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 78%, white), var(--orange)); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(237,163,56,.24); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.primary-button .button-icon { transition: transform .18s ease; }
.primary-button:hover .button-icon { transform: scale(1.12) rotate(-8deg); }
.secondary-button {
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    padding: 0 .82rem;
}
.secondary-button:hover { transform: translateY(-1px); border-color: #5a6574; background: var(--surface-3); }
.secondary-button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-loader { display: none; font-size: 1.05rem; }
.button-loader i { display: inline-block; animation: spin .75s linear infinite; }
.primary-button.is-loading .button-loader { display: inline-flex; }
.primary-button.is-loading .button-icon { display: none; }
.primary-button.is-loading .button-label { opacity: .82; }

.search-progress {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .8rem;
    padding: .7rem .85rem;
    overflow: hidden;
    border: 1px solid rgba(237,163,56,.2);
    border-radius: 12px;
    background: rgba(237,163,56,.055);
    color: #d7b4b9;
    font-size: .75rem;
}
.search-progress::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
    animation: progress-scan 1.5s ease-in-out infinite;
}
.progress-spinner { color: var(--accent-strong); }
.progress-spinner i { display: inline-block; animation: spin .8s linear infinite; }
.search-meta {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .85rem;
    color: var(--subtle);
    font-size: .71rem;
}
.search-meta span { display: inline-flex; align-items: center; gap: .38rem; }
.search-meta i { color: var(--accent-strong); }
kbd {
    padding: .15rem .38rem;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #080a0d;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
}
.quick-types {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .72rem 1.15rem;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}
.quick-types span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .12rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: .69rem;
    white-space: nowrap;
}
.quick-types i { color: var(--accent-strong); transition: transform .2s ease, color .2s ease; }
.quick-types span:hover { color: var(--text); }
.quick-types span:hover i { color: var(--yellow); transform: translateY(-1px) rotate(-5deg); }
.recent-searches { position: relative; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.recent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; color: var(--muted); font-size: .75rem; }
.recent-heading > span { display: inline-flex; align-items: center; gap: .4rem; }
.recent-heading button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--subtle); cursor: pointer; font-size: .71rem; }
.recent-heading button:hover { color: var(--accent-strong); }
.recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.recent-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
    color: var(--text);
    padding: .68rem .75rem;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.recent-item:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.recent-item .recent-icon { color: var(--accent-strong); }
.recent-item .recent-arrow { color: var(--subtle); transition: transform .16s ease; }
.recent-item:hover .recent-arrow { transform: translateX(2px); color: var(--text); }
.recent-copy { min-width: 0; }
.recent-item strong,
.recent-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item strong { font-size: .76rem; }
.recent-item small { margin-top: .2rem; color: var(--subtle); font-family: var(--mono); font-size: .69rem; }

.notice-card {
    margin-top: 30px;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    border: 1px solid rgba(230,241,61,.2);
    border-radius: var(--radius-md);
    background: rgba(230,241,61,.045);
    padding: 16px 18px;
}
.notice-icon {
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(230,241,61,.12);
    color: var(--warning);
}
.notice-icon i { animation: icon-breathe 3s ease-in-out infinite; }
.notice-card strong { font-size: .84rem; }
.notice-card p { margin: .28rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.result-shell { scroll-margin-top: 98px; margin-top: 48px; }
.result-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 14px; }
.updated-at { display: block; margin-top: .32rem; color: var(--subtle); font-size: .74rem; }
.toolbar-actions { display: flex; align-items: center; gap: .65rem; }
.profile-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-2), #0c1015);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}
.profile-card::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(237,163,56,.12);
    border-radius: 38% 62% 57% 43%;
    animation: morph-rotate 18s linear infinite;
    pointer-events: none;
}
.avatar-wrap { position: relative; width: 116px; height: 116px; border-radius: 20px; background: var(--surface-3); overflow: visible; }
.avatar-wrap::before { content: attr(data-fallback); position: absolute; inset: 0; display: grid; place-items: center; border-radius: 20px; color: var(--muted); font-size: 2rem; font-weight: 800; background-image: url("/assets/brand/mxy-mark-64.png"); background-repeat: no-repeat; background-position: center 28px; background-size: 38px 38px; padding-top: 44px; }
.avatar-wrap img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 1px solid var(--line-strong); }
#playerAvatar:not([data-media-state="ready"]) { visibility: hidden; }
.presence-ring { position: absolute; z-index: 2; right: -4px; bottom: -4px; width: 22px; height: 22px; border: 5px solid var(--surface-2); border-radius: 50%; background: var(--subtle); }
.status-online, .status-looking-to-play, .status-looking-to-trade { background: var(--success) !important; }
.status-busy { background: var(--danger) !important; }
.status-away, .status-snooze { background: var(--warning) !important; }
.status-offline { background: #68727e !important; }
.profile-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.profile-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.profile-heading p { margin: .35rem 0 0; color: var(--muted); }
.visibility-badge { flex: 0 0 auto; padding: .42rem .62rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .67rem; }
.visibility-badge.is-public { border-color: rgba(82,206,144,.3); color: var(--success); }
.visibility-badge.is-private { border-color: rgba(230,241,61,.3); color: var(--warning); }
.presence-line { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; color: var(--muted); font-size: .84rem; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.profile-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
.profile-meta div { min-width: 0; }
.profile-meta dt { display: flex; align-items: center; gap: .35rem; margin-bottom: .3rem; color: var(--subtle); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.profile-meta dt i { color: var(--accent-strong); }
.profile-meta dd { margin: 0; color: var(--text); font-size: .79rem; overflow-wrap: anywhere; }
.profile-meta code { color: var(--text); font-family: var(--mono); font-size: .74rem; }
.profile-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .55rem; min-width: 172px; }
.availability-banner { margin-top: 14px; border: 1px solid rgba(230,241,61,.25); border-radius: 12px; background: rgba(230,241,61,.06); color: #d9c59c; padding: .8rem 1rem; font-size: .81rem; line-height: 1.5; }
.tabs { display: flex; gap: .45rem; margin-top: 30px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scrollbar-width: thin; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .48rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: .7rem .9rem; cursor: pointer; font-size: .78rem; font-weight: 700; }
.tab i { color: var(--subtle); transition: transform .18s ease, color .18s ease; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.tab:hover i { color: var(--accent-strong); transform: translateY(-1px); }
.tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab.is-active i { color: var(--accent-strong); }
.tab-panel { padding-top: 24px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary-card,
.stat-card,
.info-panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.summary-card {
    position: relative;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.summary-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.summary-card::after { content: ""; position: absolute; right: -34px; bottom: -50px; width: 110px; height: 110px; border: 1px solid rgba(237,163,56,.08); border-radius: 50%; }
.card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: .8rem;
    border: 1px solid rgba(237,163,56,.22);
    border-radius: 10px;
    background: var(--accent-faint);
    color: var(--accent-strong);
}
.summary-card:hover .card-icon i,
.stat-card:hover .card-icon i { animation: icon-pop .45s ease; }
.summary-label { color: var(--muted); font-size: .74rem; }
.summary-value { margin-top: auto; padding-top: .8rem; font-family: var(--mono); font-size: 1.62rem; letter-spacing: -.04em; }
.summary-detail { margin-top: .38rem; color: var(--subtle); font-size: .74rem; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.info-panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; gap: .8rem; }
.panel-heading-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(237,163,56,.2); border-radius: 11px; background: var(--accent-faint); color: var(--accent-strong); }
.panel-heading-icon i { animation: icon-breathe 3.2s ease-in-out infinite; }
.panel-heading h3,
.section-heading h3 { margin: .35rem 0 0; font-size: 1.18rem; }
.section-heading h3 i { margin-right: .35rem; color: var(--accent-strong); }
.detail-list { margin: 1.1rem 0 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .77rem; }
.detail-list dt i { color: var(--accent-strong); }
.detail-list dd { margin: 0; text-align: right; color: var(--text); font-size: .79rem; overflow-wrap: anywhere; }
.detail-list.compact { margin-top: .8rem; }
.ban-status { border: 1px solid var(--line); border-radius: 12px; margin-top: 1.1rem; padding: 1rem; }
.ban-status.is-clean { border-color: rgba(82,206,144,.28); background: rgba(82,206,144,.05); }
.ban-status.has-warning { border-color: rgba(237,163,56,.3); background: rgba(237,163,56,.05); }
.ban-status strong { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; }
.ban-status p { margin: .35rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.inline-empty { color: var(--muted); font-size: .82rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 14px; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); text-align: right; font-size: .77rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    padding: 17px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.stat-card .card-icon { width: 32px; height: 32px; margin-bottom: .65rem; font-size: .96rem; }
.stat-label { color: var(--muted); font-size: .75rem; }
.stat-value { margin-top: auto; padding-top: .65rem; font-family: var(--mono); font-size: 1.28rem; }
.metric-track,
.progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: #080a0d; }
.metric-track { margin-top: .7rem; }
.metric-track span,
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.data-note,
.empty-state { margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); padding: 1rem; font-size: .79rem; line-height: 1.55; }
.card-grid { display: grid; gap: 12px; }
.collectible-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collectible-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .18s ease, border-color .18s ease; content-visibility: auto; contain-intrinsic-size: 360px; }
.collectible-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.collectible-image { --item-background: #090c10; position: relative; aspect-ratio: 1.25; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,255,255,.055), transparent 64%), linear-gradient(145deg, color-mix(in srgb, var(--item-background) 72%, #090c10), #090c10 76%); }
.steam-media-placeholder {
    display: none;
    grid-template-rows: auto auto;
    place-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #65707d;
    font-size: 1.05rem;
    background: radial-gradient(circle, rgba(237,163,56,.08), transparent 62%);
}
.steam-media-placeholder-brand { width: 32px; height: 32px; object-fit: contain; opacity: .9; filter: drop-shadow(0 0 8px rgba(255,255,255,.08)); }
.steam-media-placeholder-icon { display: grid; place-items: center; line-height: 1; }
img[data-media-state="loading"],
img[data-media-state="failed"] { visibility: hidden; }
img[data-media-state="ready"] { visibility: visible; }
.image-loading > .steam-media-placeholder,
.image-failed > .steam-media-placeholder { display: grid; }
.image-loading > .steam-media-placeholder { opacity: .48; }
.image-loading > .steam-media-placeholder i { animation: icon-breathe 1.8s ease-in-out infinite; }
.image-failed > img { display: none !important; }
.collectible-image img { width: 86%; height: 86%; object-fit: contain; object-position: center; color: transparent; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); transition: transform .22s ease; }
.collectible-card:hover .collectible-image img { transform: scale(1.04) rotate(-1deg); }
.collectible-body { --rarity-color: var(--accent); position: relative; padding: 15px; }
.collectible-body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rarity-color); }
.collectible-body strong,
.collectible-body span,
.collectible-body small { display: block; }
.collectible-body strong { min-height: 2.55em; color: var(--item-name-color, var(--text)); font-size: .81rem; line-height: 1.35; }
.collectible-type { margin-top: .45rem; color: var(--muted); font-size: .67rem; }
.collectible-body small { margin-top: .45rem; color: var(--subtle); font-size: .63rem; }
.steam-progress { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 14px; }
.steam-progress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; color: var(--muted); font-size: .71rem; }
.badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.badge-card { min-width: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 12px; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.badge-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.badge-image { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 11px; background: #090c10; overflow: hidden; }
.badge-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; color: transparent; transition: transform .22s ease; }
.badge-card:hover .badge-image img { transform: scale(1.06); }
.badge-body { min-width: 0; }
.badge-body strong,
.badge-body span,
.badge-body small { display: block; overflow: hidden; text-overflow: ellipsis; }
.badge-body strong { font-size: .79rem; white-space: nowrap; }
.badge-body span { margin-top: .35rem; color: var(--muted); font-size: .67rem; white-space: nowrap; }
.badge-body small { margin-top: .45rem; color: var(--subtle); font-size: .63rem; }
.inline-link { color: var(--accent-strong); }
.achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.achievement-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 14px; transition: transform .18s ease, border-color .18s ease; }
.achievement-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.achievement-card.is-locked { opacity: .62; }
.achievement-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 11px; background: #090c10; overflow: hidden; }
.achievement-icon img { width: 100%; height: 100%; object-fit: contain; object-position: center; color: transparent; }
.achievement-body strong { font-size: .81rem; }
.achievement-body p { margin: .35rem 0; color: var(--muted); font-size: .71rem; line-height: 1.45; }
.achievement-body small { color: var(--subtle); font-size: .63rem; }
.error-panel { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; border: 1px solid rgba(237,163,56,.35); border-radius: var(--radius-md); background: rgba(237,163,56,.06); padding: 16px; }
.error-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(237,163,56,.15); color: var(--danger); }
.error-mark i { animation: warning-nudge 1.2s ease-in-out 2; }
.error-panel strong { font-size: .86rem; }
.error-panel p { margin: .25rem 0 0; color: var(--muted); font-size: .79rem; }
.error-panel button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.site-footer { display: flex; flex-direction: column; justify-content: center; gap: .7rem; align-items: center; border-top: 1px solid var(--line); padding: 24px 0 38px; color: var(--subtle); font-size: .77rem; text-align: center; }
.site-footer p { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; margin: 0; }
.site-footer p i { color: var(--muted); }
.footer-disclaimer { width: 100%; }
.footer-credit { min-height: 20px; color: var(--muted); letter-spacing: .015em; font-size: .77rem; }
.footer-credit > span { font-family: var(--sans); white-space: nowrap; }
.footer-heart { color: var(--accent-strong) !important; font-size: .68rem; animation: footer-heartbeat 2.4s ease-in-out infinite; }
.mxyouone-link { display: inline-flex; align-items: center; justify-content: center; padding: 1px 2px; border-radius: 7px; text-decoration: none; transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.mxyouone-link img { display: block; width: 62px; height: auto; max-width: 100%; filter: drop-shadow(0 0 0 rgba(237,163,56,0)); transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.mxyouone-link:hover,
.mxyouone-link:focus-visible { transform: translateY(-2px); outline: none; }
.mxyouone-link:hover img,
.mxyouone-link:focus-visible img { transform: scale(1.035); filter: drop-shadow(0 0 9px rgba(237,163,56,.42)); }
.mxyouone-link:active { transform: translateY(0) scale(.98); }
@keyframes footer-heartbeat {
    0%, 72%, 100% { transform: scale(1); }
    78% { transform: scale(1.14); }
    84% { transform: scale(.98); }
    90% { transform: scale(1.08); }
}
.shortcut-dialog { width: min(560px, calc(100% - 32px)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 22px; box-shadow: var(--shadow); }
.shortcut-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; }
.dialog-header h2 { margin: .35rem 0 0; }
.dialog-header h2 i { margin-right: .35rem; color: var(--accent-strong); }
.shortcut-list { margin: 1.2rem 0 0; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.shortcut-list > div:last-child { border-bottom: 0; }
.shortcut-list dt,
.shortcut-list dd { margin: 0; }
.shortcut-list dd { color: var(--muted); font-size: .77rem; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: .6rem; }
.toast { min-width: 260px; max-width: 380px; display: flex; align-items: center; gap: .55rem; border: 1px solid rgba(82,206,144,.35); border-radius: 12px; background: #11161a; color: var(--text); padding: .85rem 1rem; box-shadow: var(--shadow); font-size: .77rem; animation: toast-in .2s ease-out; }
.toast i { color: var(--success); }
.toast-error { border-color: rgba(237,163,56,.35); }
.toast-error i { color: var(--danger); }


/* Steam/CS2 context and verified collectible presentation */
.game-context {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    margin-top: 1rem;
    max-width: 560px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.018);
    padding: .72rem .8rem;
    overflow: hidden;
}
.game-context::after {
    content: "";
    position: absolute;
    inset: auto -32px -40px auto;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(237,163,56,.12);
    border-radius: 50%;
    pointer-events: none;
}
.game-context-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #080b0f;
    color: var(--accent-strong);
}
.game-context-icon img { display: none; width: 100%; height: 100%; object-fit: cover; }
.game-context-icon.has-image img { display: block; }
.game-context-icon.has-image i { display: none; }
.game-context-icon:not(.has-image) i { font-size: 1.15rem; animation: icon-breathe 2.8s ease-in-out infinite; }
.game-context-copy { min-width: 0; }
.game-context-copy > span { display: block; color: var(--accent-strong); font-family: var(--mono); font-size: .59rem; letter-spacing: .08em; }
.game-context-copy strong { display: block; margin-top: .2rem; font-size: .78rem; }
.game-context-copy small { display: block; margin-top: .22rem; color: var(--muted); font-size: .67rem; line-height: 1.45; }

.collection-overview {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(237,163,56,.055), var(--surface));
    padding: 20px;
    overflow: hidden;
}
.collection-overview-head,
.cs2-steam-badges-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.collection-overview-head h3 { margin: .35rem 0 0; font-size: 1.08rem; }
.collection-overview-head h3 i { margin-right: .35rem; color: var(--accent-strong); }
.collection-overview > p { margin: .75rem 0 0; max-width: 790px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.source-chip,
.cdn-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    border: 1px solid rgba(82,206,144,.22);
    border-radius: 999px;
    background: rgba(82,206,144,.05);
    color: #52ce90;
    padding: .34rem .52rem;
    font-size: .61rem;
    white-space: nowrap;
}
.collection-summary-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.collection-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0,0,0,.14);
    color: var(--muted);
    padding: .43rem .62rem;
    font-size: .65rem;
}
.collection-summary-chip i { color: var(--accent-strong); }
.collection-summary-chip strong { color: var(--text); font-family: var(--mono); }
.collection-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.collection-highlight {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8,11,15,.66);
    padding: .65rem;
}
.collection-highlight-image { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #070a0d; overflow: hidden; }
.collection-highlight-image img { width: 92%; height: 92%; object-fit: contain; object-position: center; color: transparent; filter: drop-shadow(0 7px 11px rgba(0,0,0,.55)); }
.collection-highlight-image.image-failed img { display: none; }
.collection-highlight > div:last-child { min-width: 0; }
.collection-highlight-type { display: flex; align-items: center; gap: .3rem; color: var(--accent-strong); font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; }
.collection-highlight strong,
.collection-highlight small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-highlight strong { margin-top: .2rem; font-size: .68rem; }
.collection-highlight small { margin-top: .25rem; color: var(--subtle); font-size: .58rem; }

.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }
.section-actions p { max-width: none; }
.mini-link,
.collectible-market,
.badge-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .32rem;
    color: #eda338;
    text-decoration: none;
    font-size: .67rem;
    font-weight: 720;
}
.mini-link:hover,
.collectible-market:hover,
.badge-external:hover { color: #fff; }
.collection-controls {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    grid-template-areas:
        "search sort"
        "filters filters";
    gap: .75rem .85rem;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(17,20,24,.96), rgba(11,14,18,.96));
    padding: .75rem;
    isolation: isolate;
}
.collection-search {
    grid-area: search;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #0a0e12;
    padding: 0 .78rem;
    color: var(--subtle);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.collection-search:focus-within { border-color: rgba(237,163,56,.58); background: #0b0f13; box-shadow: 0 0 0 3px rgba(237,163,56,.075); }
.collection-search i { color: var(--accent-strong); }
.collection-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .74rem; }
.collection-search input::placeholder { color: #65707d; }
.collection-filters {
    grid-area: filters;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    overflow: visible;
    padding: 1px 0 0;
}
.collection-filter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .36rem;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.015);
    color: var(--muted);
    padding: 0 .58rem;
    cursor: pointer;
    font-size: .66rem;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.collection-filter i { color: var(--subtle); }
.collection-filter span { min-width: 20px; border-radius: 999px; background: rgba(255,255,255,.045); color: var(--subtle); padding: .1rem .28rem; font-family: var(--mono); font-size: .57rem; }
.collection-filter:hover { border-color: rgba(237,163,56,.34); background: rgba(237,163,56,.045); color: var(--text); transform: translateY(-1px); }
.collection-filter.is-active { border-color: rgba(237,163,56,.46); background: var(--accent-faint); color: #fff; box-shadow: inset 0 0 0 1px rgba(237,163,56,.05); }
.collection-filter.is-active i { color: var(--accent-strong); }

.collection-sort-picker {
    grid-area: sort;
    position: relative;
    z-index: 24;
    min-width: 198px;
    max-width: 236px;
    justify-self: end;
}
.collection-sort-trigger {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 30px minmax(112px, 1fr) 14px;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(237,163,56,.34);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(19,22,27,.99), rgba(9,12,16,.99));
    color: var(--text);
    padding: .35rem .65rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 6px 18px rgba(0,0,0,.12);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.collection-sort-trigger:hover,
.collection-sort-trigger:focus-visible,
.collection-sort-picker.is-open .collection-sort-trigger {
    outline: 0;
    border-color: rgba(237,163,56,.72);
    background: linear-gradient(180deg, rgba(237,163,56,.085), rgba(10,13,17,.99));
    box-shadow: 0 0 0 3px rgba(237,163,56,.055), 0 9px 24px rgba(0,0,0,.18);
}
.collection-sort-trigger:hover { transform: translateY(-1px); }
.collection-sort-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(237,163,56,.18);
    border-radius: 8px;
    background: rgba(237,163,56,.06);
    color: var(--accent);
    font-size: .78rem;
}
.collection-sort-copy { min-width: 0; display: grid; gap: 1px; }
.collection-sort-copy small { color: var(--subtle); font-size: .56rem; line-height: 1; font-weight: 650; }
.collection-sort-copy strong { overflow: hidden; color: var(--muted-strong); font-size: .68rem; line-height: 1.25; font-weight: 720; white-space: nowrap; text-overflow: ellipsis; }
.collection-sort-chevron { justify-self: end; color: var(--muted); font-size: .7rem; transition: transform .18s ease, color .18s ease; }
.collection-sort-picker.is-open .collection-sort-chevron { transform: rotate(180deg); color: var(--accent); }
.collection-sort-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    max-width: min(264px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid rgba(237,163,56,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18,21,26,.998), rgba(8,11,15,.998));
    box-shadow: 0 20px 48px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.03);
    backdrop-filter: blur(14px);
    transform-origin: top left;
    animation: collection-sort-menu-in .15s ease-out both;
}
.collection-sort-menu[hidden] { display: none; }
.collection-sort-option {
    width: 100%;
    min-height: 39px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    align-items: center;
    gap: .55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-strong);
    padding: .42rem .55rem;
    font: inherit;
    font-size: .7rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.collection-sort-option + .collection-sort-option { margin-top: 2px; }
.collection-sort-option > i:first-child { color: var(--subtle); }
.collection-sort-option:hover,
.collection-sort-option:focus-visible { outline: 0; color: var(--text); background: rgba(237,163,56,.09); transform: translateX(1px); }
.collection-sort-option[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, rgba(237,163,56,.16), rgba(237,163,56,.045)); }
.collection-sort-option[aria-selected="true"] > i:first-child { color: var(--accent); }
.collection-sort-check { justify-self: end; color: var(--accent); opacity: 0; transform: scale(.75); transition: opacity .15s ease, transform .15s ease; }
.collection-sort-option[aria-selected="true"] .collection-sort-check { opacity: 1; transform: scale(1); }
@keyframes collection-sort-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.language-picker.is-open .language-menu,
.collection-sort-picker.is-open .collection-sort-menu {
    will-change: transform, opacity;
}
.collection-results { display: grid; gap: 1rem; }
.collection-group { min-width: 0; }
.collection-group-heading { display: flex; align-items: center; gap: .75rem; margin: .4rem 0 .72rem; }
.collection-group-heading > div { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .48rem; min-width: 0; }
.collection-group-heading i { color: var(--accent-strong); }
.collection-group-heading strong { font-size: .86rem; line-height: 1.25; }
.collection-group-count { display: inline-flex; align-items: center; min-height: 22px; padding: .18rem .45rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.collectible-media-top { position: absolute; z-index: 2; inset: .55rem .55rem auto .55rem; display: flex; justify-content: space-between; gap: .4rem; pointer-events: none; }
.collectible-category {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    max-width: 66%;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(5,7,10,.78);
    backdrop-filter: blur(5px);
    color: #d6dce3;
    padding: .3rem .45rem;
    font-size: .57rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.collectible-category i { color: var(--accent-strong); }
.cdn-chip { max-width: 44%; overflow: hidden; text-overflow: ellipsis; background: rgba(5,7,10,.76); }
.collectible-description { min-height: 2.8em; margin: .7rem 0 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.collectible-footer { display: flex; justify-content: space-between; gap: .55rem; align-items: flex-end; margin-top: .8rem; }
.collectible-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.status-pill { display: inline-flex !important; align-items: center; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: .23rem .4rem; font-size: .55rem !important; line-height: 1.1; }
.status-pill.is-positive { border-color: rgba(82,206,144,.22); background: rgba(82,206,144,.055); color: #52ce90; }
.status-pill.is-muted { color: var(--subtle); }
.collectible-market { flex: 0 0 auto; border-bottom: 1px solid rgba(237,163,56,.24); padding-bottom: .12rem; }

.cs2-steam-badges {
    margin-bottom: 14px;
    border: 1px solid rgba(237,163,56,.22);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(237,163,56,.065), rgba(11,14,18,.96));
    padding: 16px;
}
.cs2-steam-badges-head strong { display: block; margin-top: .3rem; font-size: .82rem; }
.cs2-steam-badge-list { display: grid; gap: .65rem; margin-top: .85rem; }
.cs2-steam-badge-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(5,8,11,.72);
    padding: .72rem;
}
.cs2-steam-badge-card::after { content: "730"; position: absolute; right: 70px; top: -12px; color: rgba(255,255,255,.022); font: 800 5rem/1 var(--mono); pointer-events: none; }
.cs2-steam-badge-card.is-foil { border-color: rgba(230,241,61,.26); }
.cs2-steam-badge-image { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle, rgba(255,255,255,.055), transparent 68%), #06090c; overflow: hidden; }
.cs2-steam-badge-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; color: transparent; filter: drop-shadow(0 8px 16px rgba(0,0,0,.55)); transition: transform .2s ease; }
.cs2-steam-badge-card:hover .cs2-steam-badge-image img { transform: scale(1.06) rotate(-2deg); }
.cs2-steam-badge-image.image-failed img { display: none; }
.cs2-steam-badge-copy { min-width: 0; position: relative; z-index: 1; }
.cs2-steam-badge-eyebrow { display: block; color: var(--accent-strong); font-family: var(--mono); font-size: .56rem; letter-spacing: .07em; }
.cs2-steam-badge-copy > strong { display: block; margin-top: .28rem; font-size: 1rem; }
.cs2-steam-badge-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.cs2-steam-badge-copy > small { display: block; margin-top: .45rem; color: var(--subtle); font-size: .59rem; }
.badge-completion { color: var(--muted) !important; }
.badge-external { position: relative; z-index: 1; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 .65rem; white-space: nowrap; }
.badge-source { color: #708090 !important; }


.profile-about {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: .85rem;
}
.profile-about summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    cursor: pointer;
    font-size: .72rem;
    list-style: none;
}
.profile-about summary::-webkit-details-marker { display: none; }
.profile-about summary i { color: var(--accent-strong); }
.profile-about[open] summary { color: var(--text); }
.profile-about > strong { display: block; margin-top: .8rem; font-size: .78rem; }
.profile-about > p { margin: .55rem 0 0; color: var(--muted); white-space: pre-line; font-size: .69rem; line-height: 1.6; overflow-wrap: anywhere; }

.expand-row {
    display: flex;
    justify-content: center;
    margin-top: 1.15rem;
}
.expand-row[hidden] { display: none; }
.expand-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    padding: .55rem .9rem;
    cursor: pointer;
    font: inherit;
    font-size: .69rem;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.expand-button i { color: var(--accent-strong); transition: transform .18s ease; }
.expand-button:hover { border-color: rgba(237,163,56,.42); background: var(--accent-faint); color: #fff; transform: translateY(-1px); }
.expand-button:hover i { transform: rotate(7deg); }
.expand-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes search-border-spin { to { transform: rotate(360deg); } }
@keyframes search-core-pulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(237,163,56,.7)); } }
@keyframes state-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes brand-scan { 0%,100% { transform: translateY(-18px); opacity: 0; } 45%,55% { opacity: 1; } 100% { transform: translateY(18px); } }
@keyframes icon-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes icon-pop { 0% { transform: scale(1); } 45% { transform: scale(1.2) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes progress-scan { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
@keyframes float-one { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(12px,-16px,0) rotate(9deg); } }
@keyframes float-two { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(-16px,13px,0) rotate(-12deg); } }
@keyframes morph-rotate { 0% { transform: rotate(0deg); border-radius: 38% 62% 57% 43%; } 50% { border-radius: 63% 37% 42% 58%; } 100% { transform: rotate(360deg); border-radius: 38% 62% 57% 43%; } }
@keyframes warning-nudge { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-2px) rotate(-3deg); } 70% { transform: translateX(2px) rotate(3deg); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1020px) {
    .collection-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .collection-controls { grid-template-columns: minmax(240px, 1fr) auto; }
    .profile-card { grid-template-columns: auto minmax(0, 1fr); }
    .profile-actions { grid-column: 1 / -1; flex-direction: row; }
    .profile-actions > * { flex: 1; }
    .profile-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid,
    .collectible-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    main,
    .site-footer { width: min(100% - 24px, 1180px); }
    main { padding-top: 34px; }
    .search-stage { min-height: 0; }
    .ambient-icon { opacity: .55; }
    .search-panel { padding: 18px; border-radius: 22px; }
    .search-heading { align-items: flex-start; }
    .search-heading p:last-child { font-size: .8rem; }
    .search-row { grid-template-columns: 1fr; }
    .primary-button { min-height: 44px; width: 100%; }
    .search-meta { flex-direction: column; gap: .4rem; }
    .input-detection { display: none; }
    .recent-list { grid-template-columns: 1fr; }
    .notice-card { margin-top: 22px; }
    .result-toolbar,
    .section-heading { align-items: flex-start; flex-direction: column; }
    .toolbar-actions { width: 100%; flex-wrap: wrap; }
    .toolbar-actions .secondary-button { flex: 1; }
    .profile-card { grid-template-columns: 1fr; text-align: center; padding: 20px; }
    .avatar-wrap { margin-inline: auto; }
    .profile-heading { align-items: center; flex-direction: column; }
    .presence-line { justify-content: center; }
    .profile-meta { text-align: left; }
    .profile-actions { grid-column: auto; }
    .game-context { margin-inline: auto; text-align: left; }
    .collection-overview-head,
    .cs2-steam-badges-head { flex-direction: column; }
    .collection-controls {
        grid-template-columns: 1fr;
        grid-template-areas:
            "search"
            "sort"
            "filters";
    }
    .collection-sort-picker { width: 100%; max-width: none; min-width: 0; }
    .collection-sort-menu { left: 0; right: auto; width: 100%; min-width: 100%; max-width: none; }
    .collection-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
    .section-actions { width: 100%; justify-content: flex-start; }
    .cs2-steam-badge-card { grid-template-columns: 76px minmax(0, 1fr); }
    .cs2-steam-badge-image { width: 76px; height: 76px; }
    .badge-external { grid-column: 1 / -1; }
    .summary-grid,
    .stats-grid,
    .collectible-grid,
    .badge-grid,
    .achievement-grid,
    .overview-grid { grid-template-columns: 1fr 1fr; }
    .section-heading p { text-align: left; }
    .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 520px) {
    .brand strong { font-size: .88rem; }
    .brand-mark { width: 40px; height: 40px; }
    .search-heading-icon { width: 42px; height: 42px; border-radius: 13px; }
    .search-heading h1 { font-size: 1.3rem; }
    .quick-types { display: flex; justify-content: center; gap: .65rem 1rem; }
    .quick-types span { justify-content: center; }
    .profile-meta,
    .summary-grid,
    .stats-grid,
    .collectible-grid,
    .badge-grid,
    .achievement-grid,
    .overview-grid { grid-template-columns: 1fr; }
    .profile-actions { flex-direction: column; }
    .game-context { grid-template-columns: 42px minmax(0, 1fr); }
    .game-context-icon { width: 42px; height: 42px; }
    .collection-highlights { grid-template-columns: 1fr; }
    .collection-highlight { grid-template-columns: 44px minmax(0, 1fr); }
    .collection-highlight-image { width: 44px; height: 44px; }
    .collection-controls { padding: .55rem; }
    .collection-filter { min-height: 34px; }
    .collectible-footer { align-items: flex-start; flex-direction: column; }
    .cs2-steam-badge-card { grid-template-columns: 64px minmax(0, 1fr); gap: .65rem; }
    .cs2-steam-badge-image { width: 64px; height: 64px; }
    .cs2-steam-badge-meta .status-pill:nth-child(3) { width: 100%; }
    .toolbar-actions { align-items: stretch; flex-direction: column; }
    .steam-progress-copy { flex-direction: column; gap: .25rem; }
    .shortcut-list > div { align-items: flex-start; flex-direction: column; }
    .toast-region { left: 12px; right: 12px; bottom: 12px; }
    .toast { min-width: 0; max-width: none; }
}


/* 2.6 palette and motion pass */
.search-row { align-items: center; }
.search-row .primary-button { min-height: 46px; height: 46px; align-self: center; font-size: .82rem; }
.profile-actions .primary-link,
.profile-actions .secondary-button { min-height: 40px; padding-inline: .82rem; font-size: .78rem; }
.toolbar-actions .secondary-button { min-height: 38px; font-size: .76rem; }

.primary-button,
.primary-link { position: relative; overflow: hidden; isolation: isolate; }
.primary-button::before,
.primary-link::before {
    content: "";
    position: absolute;
    inset: -40% auto -40% -38%;
    z-index: -1;
    width: 28%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    animation: button-sheen 5.4s ease-in-out infinite;
}
.primary-button .button-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 8px;
    background: rgba(0,0,0,.08);
    transition: transform .18s ease, background .18s ease;
}
.primary-button .button-icon i { font-size: .82rem; line-height: 1; }
.primary-button:hover .button-icon { transform: scale(1.06) rotate(-5deg); background: rgba(0,0,0,.14); }
.primary-button.is-loading .button-icon { display: none; }

.brand-mark { animation: brand-float 5.8s ease-in-out infinite; }
.brand-mark::after { background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.search-panel { animation: panel-settle .55s cubic-bezier(.2,.8,.2,1) both; }
.search-panel::before { background-size: 100% 100%, 220% 100%; animation: panel-sheen 9s ease-in-out infinite; }
.search-control:focus-within .search-prefix { animation-duration: 1.35s; }
.orbit-ring-outer { border-color: rgba(237,163,56,.46); }
.orbit-ring-inner { border-color: rgba(65,121,163,.34); }
.orbit-ring-inner::after { background: var(--blue); box-shadow: 0 0 10px rgba(65,121,163,.55); }

.ambient-icon-one { color: rgba(237,163,56,.16); filter: drop-shadow(0 0 18px rgba(237,163,56,.20)); }
.ambient-icon-two { color: rgba(65,121,163,.17); filter: drop-shadow(0 0 18px rgba(65,121,163,.20)); }
.ambient-icon-three { color: rgba(128,60,161,.16); filter: drop-shadow(0 0 18px rgba(128,60,161,.20)); }
.ambient-icon-four { color: rgba(82,206,144,.14); filter: drop-shadow(0 0 18px rgba(82,206,144,.18)); }

.tab { position: relative; overflow: hidden; }
.tab::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 2px; border-radius: 999px; opacity: 0; transform: scaleX(.45); transition: opacity .18s ease, transform .18s ease; }
.tab:nth-child(1)::after { background: var(--orange); }
.tab:nth-child(2)::after { background: var(--blue); }
.tab:nth-child(3)::after { background: var(--green); }
.tab:nth-child(4)::after { background: var(--purple); }
.tab:nth-child(5)::after { background: var(--yellow); }
.tab:nth-child(1).is-active i { color: var(--orange); }
.tab:nth-child(2).is-active i { color: var(--blue); }
.tab:nth-child(3).is-active i { color: var(--green); }
.tab:nth-child(4).is-active i { color: var(--purple); }
.tab:nth-child(5).is-active i { color: var(--yellow); }
.tab.is-active::after { opacity: 1; transform: scaleX(1); animation: tab-pulse 2.6s ease-in-out infinite; }

.summary-card:nth-child(5n+1) { --card-tone: var(--orange); }
.summary-card:nth-child(5n+2) { --card-tone: var(--blue); }
.summary-card:nth-child(5n+3) { --card-tone: var(--green); }
.summary-card:nth-child(5n+4) { --card-tone: var(--purple); }
.summary-card:nth-child(5n+5) { --card-tone: var(--yellow); }
.summary-card .card-icon { color: var(--card-tone, var(--orange)); border-color: color-mix(in srgb, var(--card-tone, var(--orange)) 34%, transparent); background: color-mix(in srgb, var(--card-tone, var(--orange)) 9%, transparent); }
.summary-card:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--card-tone, var(--orange)) 9%, transparent); }

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 43%, rgba(65,121,163,.04) 50%, rgba(128,60,161,.04) 56%, transparent 63%);
    background-size: 240% 100%;
    animation: profile-scan 10s ease-in-out infinite;
}
.profile-card::after { border-color: rgba(237,163,56,.12); }
.profile-card:hover { border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); }

.notice-card { border-color: rgba(230,241,61,.20); background: rgba(230,241,61,.04); }
.notice-icon { background: rgba(230,241,61,.10); color: var(--yellow); }
.error-panel { border-color: rgba(237,163,56,.30); background: rgba(237,163,56,.055); }
.error-mark { background: rgba(237,163,56,.13); color: var(--orange); }
.ban-status.has-warning { border-color: rgba(237,163,56,.28); background: rgba(237,163,56,.045); }

.recent-item:hover .recent-icon { animation: recent-pop .42s ease; }
.collection-highlight,
.collectible-card,
.badge-card,
.achievement-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.collection-highlight:hover,
.badge-card:hover,
.achievement-card:hover { box-shadow: 0 13px 28px rgba(65,121,163,.055); }

@keyframes button-sheen { 0%, 68% { left: -38%; opacity: 0; } 72% { opacity: 1; } 88%,100% { left: 125%; opacity: 0; } }
@keyframes brand-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes panel-settle { from { opacity: 0; transform: translateY(9px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes panel-sheen { 0%,100% { background-position: 0 0, 120% 0; } 50% { background-position: 0 0, -120% 0; } }
@keyframes profile-scan { 0%,100% { background-position: 120% 0; } 50% { background-position: -120% 0; } }
@keyframes tab-pulse { 0%,100% { opacity: .72; } 50% { opacity: 1; box-shadow: 0 0 9px currentColor; } }
@keyframes recent-pop { 0% { transform: scale(1); } 55% { transform: scale(1.14) rotate(-5deg); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
    .search-row .primary-button { min-height: 44px; height: 44px; }
    .profile-actions .primary-link,
    .profile-actions .secondary-button { min-height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* 2.7 profile fidelity and readability pass */
.avatar-wrap {
    width: 124px;
    height: 124px;
    flex: 0 0 auto;
}
.avatar-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: visible;
    border-radius: 20px;
}
.avatar-wrap .player-avatar-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface-3);
}
.avatar-frame-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: visible;
    pointer-events: none;
}
.avatar-wrap .player-avatar-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 132%;
    height: 132%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 9px 18px rgba(0,0,0,.38));
    pointer-events: none;
}
.avatar-wrap.has-avatar-frame .player-avatar-image { border-color: transparent; }
.avatar-wrap.has-avatar-frame::before { opacity: .28; }
.presence-ring { z-index: 5; }

/* Make dense account data readable without inflating the layout. */
.eyebrow,
.panel-eyebrow,
.result-kicker { font-size: .78rem; letter-spacing: .13em; }
.brand small { font-size: .79rem; }
.updated-at { font-size: .79rem; }
.visibility-badge { font-size: .72rem; }
.presence-line { font-size: .9rem; }
.profile-meta dt { font-size: .71rem; }
.profile-meta dd { font-size: .86rem; }
.profile-meta code { font-size: .81rem; }
.tab { font-size: .83rem; }
.summary-label { font-size: .8rem; }
.summary-detail { font-size: .76rem; }
.detail-list dt { font-size: .83rem; }
.detail-list dd { font-size: .85rem; }
.ban-status strong { font-size: .9rem; }
.ban-status p { font-size: .82rem; }
.section-heading p { font-size: .82rem; }
.stat-label { font-size: .77rem; }
.empty-state { font-size: .84rem; }
.collection-overview > p { font-size: .82rem; }
.source-chip,
.cdn-chip { font-size: .67rem; }
.collection-summary-chip { font-size: .71rem; }
.collection-highlight-type { font-size: .68rem; }
.collection-highlight strong { font-size: .75rem; }
.collection-highlight small { font-size: .69rem; }
.collection-group-heading strong { font-size: .86rem; }
.collection-group-count { font-size: .72rem; }
.collectible-category { font-size: .69rem; }
.collectible-body strong { font-size: .92rem; }
.collectible-type { font-size: .77rem; }
.collectible-body small { font-size: .72rem; }
.collectible-description { font-size: .76rem; line-height: 1.55; }
.status-pill { font-size: .67rem !important; }
.steam-progress-copy { font-size: .77rem; }
.badge-body strong { font-size: .86rem; }
.badge-body span { font-size: .73rem; }
.badge-body small { font-size: .69rem; }
.achievement-body strong { font-size: .88rem; }
.achievement-body p { font-size: .77rem; }
.achievement-body small { font-size: .69rem; }
.cs2-steam-badge-eyebrow { font-size: .62rem; }
.cs2-steam-badge-copy > small { font-size: .66rem; }
.profile-about summary { font-size: .79rem; }
.profile-about > strong { font-size: .84rem; }
.profile-about > p { font-size: .76rem; }
.site-footer { font-size: .77rem; }

.game-context {
    width: min(100%, 570px);
    margin: 1.15rem auto 0;
    padding: .8rem .9rem;
}
.game-context-copy > span { font-size: .66rem; }
.game-context-copy strong { font-size: .87rem; }
.game-context-copy small { font-size: .74rem; }

@media (max-width: 720px) {
    .avatar-wrap { width: 112px; height: 112px; }
    .avatar-wrap .player-avatar-frame { width: 130%; height: 130%; }
    .profile-meta dt { font-size: .69rem; }
    .profile-meta dd { font-size: .83rem; }
    .game-context { width: 100%; }
}

@media (max-width: 640px) {
    .search-tools { top: 12px; right: 12px; }
    .language-trigger { min-width: 112px; grid-template-columns: 16px minmax(60px, 1fr) 12px; padding-inline: 8px; font-size: .73rem; }
    .language-menu { width: 100%; min-width: 100%; max-width: min(188px, calc(100vw - 20px)); }
    .language-option { min-height: 36px; font-size: .74rem; }
    .search-heading { padding-top: 34px; }
}

/* 3.2 profile identity, level and background pass */
body { position: relative; }
main,
.site-footer { position: relative; z-index: 2; }
.profile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity .45s ease;
}
.profile-backdrop.is-visible { opacity: 1; }
.profile-backdrop-image,
.profile-backdrop-video,
.profile-backdrop-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-backdrop-image {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: .5;
    transform: scale(1.018);
    filter: saturate(.92) brightness(.82);
}
.profile-backdrop-video {
    object-fit: cover;
    object-position: center top;
    opacity: .44;
    filter: saturate(.92) brightness(.8);
}
.profile-backdrop-overlay {
    background:
        linear-gradient(180deg, rgba(8,10,13,.4) 0%, rgba(8,10,13,.64) 28%, rgba(8,10,13,.9) 72%, #080a0d 100%),
        radial-gradient(circle at center top, transparent 0 20rem, rgba(8,10,13,.22) 56rem);
}
.profile-backdrop.has-video .profile-backdrop-image { opacity: .22; }

.search-prefix-wrap {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(237,163,56,.28);
    border-radius: 10px;
    background: rgba(237,163,56,.055);
}
.search-prefix-wrap .search-prefix { animation: none; font-size: .95rem; }
.search-control:focus-within .search-prefix-wrap { border-color: rgba(237,163,56,.5); background: rgba(237,163,56,.09); }

.profile-actions { align-self: stretch; justify-content: flex-start; align-items: stretch; }
.profile-actions .visibility-badge { align-self: flex-end; margin-bottom: auto; white-space: nowrap; }
.profile-actions .primary-link { margin-top: auto; }

.steamid-inline { display: flex; align-items: center; gap: .35rem; }
.inline-copy-button {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
    color: var(--muted);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.inline-copy-button:hover { border-color: rgba(237,163,56,.42); color: var(--orange); background: rgba(237,163,56,.07); transform: translateY(-1px); }
.inline-copy-button i { font-size: .76rem; }

.steam-level-value { display: flex; align-items: center; gap: .48rem; }
.steam-level-number { color: var(--muted); font-family: var(--mono); font-size: .73rem; }
.steam-level-badge {
    --steam-level-color: #9b9b9b;
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid var(--steam-level-color);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--steam-level-color) 20%, transparent), rgba(6,8,11,.96) 68%);
    color: #f6f7f8;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--steam-level-color) 10%, transparent), 0 0 18px color-mix(in srgb, var(--steam-level-color) 18%, transparent);
}
.steam-level-badge::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid color-mix(in srgb, var(--steam-level-color) 44%, transparent);
    border-radius: inherit;
    opacity: .55;
}
.steam-level-badge.is-unknown { opacity: .62; }

.game-context { width: min(100%, 640px); justify-self: center; }

.match-history-source { display: flex; justify-content: flex-end; margin: -2px 0 10px; }
.match-provider-link, .match-source-link { color: #f84982; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.match-provider-link { font-size: .68rem; }
.match-source-link { display: inline-flex; width: fit-content; margin-top: .35rem; font-size: .66rem; }
.match-history-list { display: grid; gap: 10px; }
.match-history-empty { margin-top: 0; }
.match-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    padding: 12px 14px;
}
.match-card.match-win { border-left-color: var(--green); }
.match-card.match-loss { border-left-color: var(--orange); }
.match-card.match-draw { border-left-color: var(--blue); }
.match-map { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); color: var(--orange); }
.match-title { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.match-title strong { font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-mode { border: 1px solid var(--line); border-radius: 999px; padding: .18rem .42rem; color: var(--muted); font-size: .68rem; }
.match-meta { display: flex; flex-wrap: wrap; gap: .45rem .75rem; margin-top: .3rem; color: var(--muted); font-size: .72rem; }
.match-score { min-width: 84px; text-align: right; }
.match-score strong { display: block; font-family: var(--mono); font-size: 1rem; }
.match-score span { display: block; margin-top: .22rem; color: var(--muted); font-size: .7rem; }

/* Keep tab tones stable after adding Match History. */
.tab[data-tab="overview"]::after { background: var(--orange); }
.tab[data-tab="stats"]::after { background: var(--blue); }
.tab[data-tab="matches"]::after { background: var(--yellow); }
.tab[data-tab="medals"]::after { background: var(--green); }
.tab[data-tab="badges"]::after { background: var(--purple); }
.tab[data-tab="achievements"]::after { background: var(--yellow); }
.tab[data-tab="overview"].is-active i { color: var(--orange); }
.tab[data-tab="stats"].is-active i { color: var(--blue); }
.tab[data-tab="matches"].is-active i { color: var(--yellow); }
.tab[data-tab="medals"].is-active i { color: var(--green); }
.tab[data-tab="badges"].is-active i { color: var(--purple); }
.tab[data-tab="achievements"].is-active i { color: var(--yellow); }

@media (max-width: 900px) {
    .profile-actions .visibility-badge { margin-bottom: 0; align-self: flex-start; }
    .profile-actions .primary-link { margin-top: 0; }
}
@media (max-width: 640px) {
    .profile-backdrop-image, .profile-backdrop-video { opacity: .3; }
    .profile-actions .visibility-badge { align-self: center; }
    .steamid-inline, .steam-level-value { justify-content: flex-start; }
    .match-card { grid-template-columns: 42px minmax(0, 1fr); }
    .match-score { grid-column: 2; text-align: left; display: flex; align-items: center; gap: .5rem; }
    .match-score span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-backdrop-video { display: none !important; }
    .profile-backdrop { transition: none; }
}

/* Search landing content: visible, concise content for users and search engines. */
.seo-landing {
    max-width: var(--page-width);
    margin: 18px auto 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(14,17,21,.84);
    box-shadow: 0 18px 46px rgba(0,0,0,.16);
}
.seo-landing[hidden] { display: none; }
.seo-landing-copy { max-width: 800px; }
.seo-landing-copy h2 { margin: .35rem 0 .55rem; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.025em; }
.seo-landing-copy > p:last-child { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.seo-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.seo-feature-grid article { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9,12,16,.64); }
.seo-feature-grid article > i { color: var(--accent); font-size: 1rem; }
.seo-feature-grid h3 { margin: .55rem 0 .3rem; font-size: .84rem; }
.seo-feature-grid p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
@media (max-width: 820px) { .seo-feature-grid { grid-template-columns: 1fr; } }

/* 3.5.0 — Vesper-inspired visual refinement
   Visual-only pass. Header/footer markup and application behavior stay intact. */
html, body { background: #000000 !important; color: #ffffff; }

:root {
    --bg: #000000;
    --surface: rgba(6, 7, 9, .88);
    --surface-2: rgba(15, 16, 18, .92);
    --surface-3: rgba(25, 26, 29, .94);
    --surface-glass: rgba(5, 6, 8, .78);
    --line: rgba(255, 255, 255, .14);
    --line-strong: rgba(255, 255, 255, .28);
    --text: #ffffff;
    --muted: #a5a5a5;
    --subtle: #767676;
    --shadow: 0 26px 90px rgba(0, 0, 0, .58);
    --shadow-soft: 0 16px 46px rgba(0, 0, 0, .34);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --radius-sm: 8px;
}

body {
    background: #000000 !important;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body::before {
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

/* Keep a queried Steam background visible under the darker Vesper surfaces. */
.profile-backdrop-image {
    opacity: .56;
    filter: saturate(.9) brightness(.82) contrast(1.04);
}
.profile-backdrop-video {
    opacity: .48;
    filter: saturate(.9) brightness(.78) contrast(1.04);
}
.profile-backdrop-overlay {
    background:
        linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.48) 24%, rgba(0,0,0,.78) 64%, #000 100%),
        radial-gradient(circle at center top, transparent 0 23rem, rgba(0,0,0,.18) 60rem);
}
.profile-backdrop.has-video .profile-backdrop-image { opacity: .2; }

/* Main search surface: black glass + liquid-metal edge. */
.search-panel {
    overflow: visible;
    border: 1px solid rgba(225, 229, 236, .28);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(20,21,24,.92) 0%, rgba(5,6,8,.96) 48%, rgba(13,14,17,.94) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 30px 100px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.015);
}
.search-panel::before {
    border-radius: inherit;
    background:
        radial-gradient(circle at 8% 0%, rgba(255,255,255,.055), transparent 28rem),
        linear-gradient(112deg, transparent 28%, rgba(255,255,255,.045) 47%, transparent 66%);
    background-size: 100% 100%, 230% 100%;
    opacity: .84;
}
.search-panel::after {
    box-shadow:
        inset 0 1px rgba(255,255,255,.10),
        inset 0 -1px rgba(255,255,255,.018);
}
.search-heading h1 {
    color: #fff;
    font-weight: 640;
    letter-spacing: -.042em;
}
.search-heading > div:last-child > p:last-child { color: #9a9a9a; }
.eyebrow,
.panel-eyebrow,
.result-kicker { color: #d7d7d7; }

/* Search input reads like a recessed metallic control. */
.search-control {
    border-color: rgba(210,215,225,.28);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(2,3,4,.96), rgba(10,11,13,.96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        inset 0 -12px 28px rgba(255,255,255,.012);
}
.search-control::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.search-control:focus-within {
    border-color: rgba(235,235,235,.72);
    box-shadow:
        0 0 0 3px rgba(255,255,255,.055),
        0 0 24px rgba(195,210,240,.09),
        inset 0 1px 0 rgba(255,255,255,.05);
}
.search-control.is-valid { border-color: rgba(82,206,144,.52); }
.search-prefix-wrap {
    border-color: rgba(220,225,235,.22);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(0,0,0,.28));
    color: #f2f2f2;
}
.search-control:focus-within .search-prefix-wrap {
    border-color: rgba(238,238,238,.54);
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(0,0,0,.32));
}
.search-control input { color: #f7f7f7; }
.search-control input::placeholder { color: #6f6f72; }

/* Solid CTA from the reference: bright metal, not a flat orange block. */
.primary-button,
.primary-link {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #f4f4f4;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 48%, #cfcfcf 100%);
    color: #111;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
    font-weight: 720;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .2s ease;
}
.primary-button::before,
.primary-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateX(-130%);
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.58) 48%, transparent 76%);
    transition: transform .65s ease;
}
.primary-button:hover::before,
.primary-link:hover::before { transform: translateX(130%); }
.primary-button:hover,
.primary-link:hover {
    border-color: #f2f6ff;
    background: linear-gradient(180deg, #fff 0%, #f3f6ff 42%, #d5def2 100%);
    color: #111;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 #fff,
        0 0 24px rgba(186,208,255,.28),
        0 9px 20px rgba(255,255,255,.08);
}
.primary-button .button-icon {
    border-color: rgba(0,0,0,.18);
    background: rgba(0,0,0,.055);
}

/* Ghost controls / header-level controls become liquid-metal pills. */
.secondary-button,
.icon-button,
.language-trigger,
.inline-copy-button,
.expand-button,
.mini-link {
    border-color: rgba(198,198,198,.38);
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(0,0,0,.48) 50%, rgba(150,165,190,.055));
    color: #f1f1f1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.secondary-button:hover,
.icon-button:hover,
.language-trigger:hover,
.language-trigger:focus-visible,
.inline-copy-button:hover,
.expand-button:hover,
.mini-link:hover {
    border-color: rgba(225,230,240,.68);
    background: linear-gradient(135deg, rgba(210,225,255,.14), rgba(0,0,0,.38) 48%, rgba(180,195,220,.11));
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 0 20px rgba(170,200,255,.10);
}

/* Inputs badges/history are restrained metal pills. */
.input-hints span,
.source-chip,
.status-pill,
.visibility-badge,
.match-mode,
.collection-filter,
.recent-item {
    border-color: rgba(198,198,198,.25);
    background: linear-gradient(105deg, rgba(5,5,5,.9), rgba(38,38,38,.76) 48%, rgba(61,61,61,.34));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.input-hints span:hover,
.recent-item:hover,
.collection-filter:hover {
    border-color: rgba(235,235,235,.55);
    background: linear-gradient(105deg, rgba(17,17,17,.94), rgba(58,58,58,.78) 45%, rgba(91,91,91,.42));
    box-shadow: 0 0 16px rgba(200,210,230,.07);
}

/* Dropdowns adopt the same metal language without changing their alignment logic. */
.language-menu,
.collection-sort-menu {
    border-color: rgba(220,220,225,.28);
    background:
        linear-gradient(155deg, rgba(21,22,24,.98), rgba(5,6,8,.99) 58%, rgba(16,17,20,.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 24px 60px rgba(0,0,0,.52);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.language-option:hover,
.language-option:focus-visible,
.collection-sort-option:hover,
.collection-sort-option:focus-visible {
    background: rgba(255,255,255,.055);
}
.language-option[aria-selected="true"],
.collection-sort-option[aria-selected="true"] {
    background: linear-gradient(90deg, rgba(255,255,255,.11), rgba(255,255,255,.025));
    color: #fff;
}
.language-code {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.035);
    color: #e8e8e8;
}

/* Notice and landing copy become cleaner monochrome glass. */
.notice-card {
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(0,0,0,.55));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.notice-icon {
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.055);
    color: #e6e6e6;
}
.seo-landing {
    border-color: rgba(255,255,255,.15);
    background: linear-gradient(145deg, rgba(17,18,21,.86), rgba(4,5,7,.90));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 24px 64px rgba(0,0,0,.26);
}
.seo-feature-grid article {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,.13);
    background: rgba(3,4,5,.63);
    transition: transform .24s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.seo-feature-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateX(-130%);
    background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.07) 50%, transparent 72%);
    transition: transform .65s ease;
}
.seo-feature-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.26);
    background: rgba(15,16,18,.72);
    box-shadow: 0 16px 34px rgba(0,0,0,.25);
}
.seo-feature-grid article:hover::after { transform: translateX(130%); }
.seo-feature-grid article > i { color: #e8e8e8; }

/* Profile result shell and cards: frosted black, thinner metal borders. */
.profile-card,
.summary-card,
.stat-card,
.info-panel,
.match-card,
.collectible-card,
.badge-card,
.achievement-card,
.steam-progress,
.cs2-steam-badges,
.collection-controls,
.tabs,
.empty-state {
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(145deg, rgba(13,14,17,.88), rgba(3,4,5,.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.profile-card {
    border-radius: 19px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 24px 70px rgba(0,0,0,.30);
}
.profile-card::before {
    background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.045), transparent 24rem);
}
.profile-card::after { border-color: rgba(255,255,255,.06); }
.profile-card:hover { border-color: rgba(255,255,255,.25); }

.summary-card,
.stat-card,
.collectible-card,
.badge-card,
.achievement-card,
.match-card {
    transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.summary-card:hover,
.stat-card:hover,
.collectible-card:hover,
.badge-card:hover,
.achievement-card:hover,
.match-card:hover {
    transform: translateY(-3px);
    border-color: rgba(235,235,235,.30);
    background: linear-gradient(145deg, rgba(22,23,26,.92), rgba(7,8,10,.94));
    box-shadow: 0 18px 40px rgba(0,0,0,.24), 0 0 20px rgba(190,205,235,.035);
}
.summary-card::after { border-color: rgba(255,255,255,.045); }
.card-icon,
.panel-heading-icon,
.summary-card .card-icon,
.stat-card .card-icon {
    border-color: rgba(255,255,255,.17);
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(0,0,0,.22));
    color: #e6e6e6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* Tabs become true liquid-metal pills. */
.tabs {
    padding: 7px;
    gap: 7px;
    border-radius: 12px;
    background: rgba(2,3,4,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.tab {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #a7a7a7;
    font-weight: 620;
    transition: color .25s ease, border-color .3s ease, background .35s ease, box-shadow .35s ease, transform .2s ease;
}
.tab::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateX(-125%);
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.11) 50%, transparent 70%);
    transition: transform .6s ease;
}
.tab:hover::before { transform: translateX(125%); }
.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(198,198,198,.34);
    color: #f1f1f1;
    background: linear-gradient(105deg, #070707 0%, #282828 48%, #454545 100%);
}
.tab.is-active {
    border-color: rgba(235,235,235,.65);
    color: #fff;
    background: linear-gradient(105deg, #111 0%, #3a3a3a 45%, #606060 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 0 18px rgba(200,210,230,.08);
}
.tab::after {
    bottom: 3px;
    height: 1px;
    background: rgba(255,255,255,.86) !important;
    box-shadow: 0 0 8px rgba(255,255,255,.25);
}
.tab.is-active i,
.tab[data-tab].is-active i { color: #fff; }

/* Collection toolbar */
.collection-controls {
    border-radius: 12px;
    background: rgba(3,4,5,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.collection-search,
.collection-sort-trigger {
    border-color: rgba(255,255,255,.18);
    background: linear-gradient(145deg, rgba(8,9,11,.92), rgba(18,19,22,.82));
}
.collection-search:focus-within,
.collection-sort-trigger:hover,
.collection-sort-trigger:focus-visible,
.collection-sort-picker.is-open .collection-sort-trigger {
    border-color: rgba(235,235,235,.48);
    background: linear-gradient(145deg, rgba(22,23,26,.95), rgba(8,9,11,.95));
    box-shadow: 0 0 0 3px rgba(255,255,255,.035), 0 0 18px rgba(185,205,240,.06);
}
.collection-filter.is-active {
    border-color: rgba(240,240,240,.58);
    background: linear-gradient(105deg, #111 0%, #393939 48%, #575757 100%);
    color: #fff;
}

/* Keep semantic status colors, but reduce neon appearance. */
.visibility-badge { background: rgba(6,20,14,.62); border-color: rgba(82,206,144,.36); color: #78dca7; }
.availability-banner {
    border-color: rgba(230,241,61,.18);
    background: rgba(230,241,61,.035);
    color: #c9c9b2;
}
.ban-status.is-clean { background: rgba(82,206,144,.035); border-color: rgba(82,206,144,.24); }
.ban-status.has-warning { background: rgba(237,163,56,.035); }

/* Headings and spacing get the reference's tighter editorial rhythm. */
.section-heading h3,
.panel-heading h3,
.seo-landing-copy h2 { letter-spacing: -.035em; }
.summary-value,
.stat-value { letter-spacing: -.035em; }

/* Motion: subtle entrances / shines only, preserving current app behavior. */
@keyframes vesper-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes vesper-soft-scale {
    from { opacity: 0; transform: scale(.975); }
    to { opacity: 1; transform: scale(1); }
}
.search-panel { animation: vesper-soft-scale .7s cubic-bezier(.16,1,.3,1) both; }
.notice-card { animation: vesper-rise .78s .08s cubic-bezier(.16,1,.3,1) both; }
.seo-landing { animation: vesper-rise .82s .14s cubic-bezier(.16,1,.3,1) both; }
.result-shell:not([hidden]) { animation: vesper-rise .72s cubic-bezier(.16,1,.3,1) both; }

@media (max-width: 900px) {
    .search-panel { border-radius: 17px; }
    .tabs { border-radius: 11px; }
    .profile-card { border-radius: 16px; }
}

@media (max-width: 640px) {
    .search-panel { border-radius: 14px; }
    .profile-backdrop-image,
    .profile-backdrop-video { opacity: .34; }
}

@media (prefers-reduced-motion: reduce) {
    .search-panel,
    .notice-card,
    .seo-landing,
    .result-shell:not([hidden]) {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .primary-button::before,
    .primary-link::before,
    .tab::before,
    .seo-feature-grid article::after { transition: none !important; }
}

/* 3.7.0 — map-aware match history and balanced display typography */
.match-card {
    grid-template-columns: 152px minmax(0, 1fr) auto;
    min-height: 104px;
    padding: 9px 14px 9px 9px;
    overflow: hidden;
}
.match-map {
    position: relative;
    width: 152px;
    height: 86px;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(0,0,0,.55));
    isolation: isolate;
}
.match-map.has-image { color: #fff; }
.match-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
    filter: saturate(.88) contrast(1.04) brightness(.82);
    transition: transform .35s cubic-bezier(.16,1,.3,1), filter .35s ease;
}
.match-map-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0,0,0,.03) 15%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.62) 100%),
        linear-gradient(90deg, rgba(0,0,0,.1), transparent 48%);
    pointer-events: none;
}
.match-map-stamp {
    position: absolute;
    left: 8px;
    bottom: 7px;
    z-index: 2;
    width: 32px;
    height: auto;
    object-fit: contain;
    opacity: .72;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.65));
    pointer-events: none;
}
.match-card:hover .match-map-image {
    transform: scale(1.065);
    filter: saturate(.98) contrast(1.06) brightness(.9);
}
.match-title strong,
.match-score strong {
    font-family: "BBH Hegarty", var(--font-sans, system-ui, sans-serif);
    font-weight: 400;
    letter-spacing: .015em;
}
.match-title strong { font-size: 1.02rem; }
.match-score strong { font-size: 1.08rem; letter-spacing: .04em; }
.match-mode { align-self: center; }

@media (max-width: 760px) {
    .match-card {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 88px;
        padding: 8px;
        gap: 11px;
    }
    .match-map { width: 118px; height: 72px; }
    .match-score { grid-column: 2; }
}

@media (max-width: 480px) {
    .match-card { grid-template-columns: 92px minmax(0, 1fr); }
    .match-map { width: 92px; height: 66px; }
    .match-map-stamp { width: 24px; left: 6px; bottom: 5px; }
    .match-title { align-items: flex-start; flex-direction: column; gap: .3rem; }
}

/* 3.8.0 — Premier / season / rank dashboard */
.ranked-dashboard { display: grid; gap: 14px; }
.ranked-source-chip { align-self: center; }
.ranked-hero-grid,
.rank-chart-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; }
.ranked-lower-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.premier-card,
.rank-summary-card,
.ranked-block {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(17,20,25,.96), rgba(7,9,12,.98)),
        var(--surface);
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 50px rgba(0,0,0,.16);
}
.premier-card { --rank-color: var(--accent); padding: 22px; border-color: color-mix(in srgb, var(--rank-color) 34%, var(--line)); }
.premier-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--rank-color) 20%, transparent), transparent 35%);
}
.premier-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ranked-label { display: block; color: var(--muted); font-size: .68rem; font-family: var(--mono); letter-spacing: .13em; font-weight: 800; }
.premier-rating { display: block; margin-top: 8px; color: #fff; font-family: var(--mono); font-size: clamp(2.1rem, 5vw, 3.65rem); letter-spacing: -.055em; line-height: .95; text-shadow: 0 0 28px color-mix(in srgb, var(--rank-color) 28%, transparent); }
.premier-tier { display: block; margin-top: 10px; color: var(--rank-color); font-size: .82rem; font-weight: 800; }
.premier-orbit { position: relative; width: 112px; height: 112px; flex: 0 0 112px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--rank-color) 55%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--rank-color) 12%, transparent), transparent 66%); box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 34px color-mix(in srgb, var(--rank-color) 12%, transparent); }
.premier-orbit::before { content: ""; position: absolute; width: 86px; height: 86px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--rank-color) 38%, transparent); animation: spin-slow 22s linear infinite; }
.premier-orbit span { position: relative; z-index: 1; font-family: var(--mono); font-weight: 900; font-size: .95rem; color: var(--rank-color); }
.premier-meta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.premier-meta-grid div { min-width: 0; }
.premier-meta-grid span { display: block; color: var(--muted); font-size: .67rem; }
.premier-meta-grid strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: .95rem; }
.premier-meta-grid strong.is-positive { color: var(--success); }
.premier-meta-grid strong.is-negative { color: #e56a70; }
.rank-summary-card { padding: 22px; }
.rank-summary-list { display: grid; gap: 0; margin-top: 12px; }
.rank-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-summary-row:last-child { border-bottom: 0; }
.rank-summary-row span small { display: block; color: var(--muted); font-size: .68rem; }
.rank-summary-row span strong { display: block; margin-top: 3px; font-family: var(--mono); font-size: .95rem; }
.rank-summary-row em { color: var(--accent-strong); font-style: normal; font-size: .7rem; text-align: right; }
.ranked-block { padding: 18px; }
.ranked-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ranked-block-head h4 { margin: 5px 0 0; font-size: 1rem; }
.ranked-period,
.chart-value { color: var(--muted); font-size: .7rem; }
.season-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.season-stat-card { min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.season-stat-label { color: var(--muted); font-size: .69rem; }
.season-stat-value { margin-top: 7px; font-family: var(--mono); font-size: 1.28rem; letter-spacing: -.03em; }
.season-stat-detail { margin-top: 5px; color: var(--subtle); font-size: .62rem; }
.chart-card { min-height: 330px; }
.rank-history-chart { min-height: 248px; display: grid; place-items: center; }
.rank-history-chart svg { width: 100%; height: 250px; overflow: visible; }
.rank-chart-gridline { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.rank-chart-area { fill: rgba(237,163,56,.085); }
.rank-chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(237,163,56,.24)); }
.rank-chart-point { fill: #090b0e; stroke: var(--accent-strong); stroke-width: 2.4; }
.rank-chart-axis { fill: var(--subtle); font-family: var(--mono); font-size: 11px; }
.rank-chart-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .75rem; }
.season-result-chart { min-height: 248px; display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: 22px; }
.result-rate { width: 120px; height: 120px; display: grid; place-content: center; text-align: center; border-radius: 50%; border: 1px solid rgba(237,163,56,.38); background: radial-gradient(circle, rgba(237,163,56,.12), rgba(0,0,0,.18) 67%); box-shadow: inset 0 0 30px rgba(0,0,0,.42); }
.result-rate strong { font-family: var(--mono); font-size: 1.5rem; }
.result-rate span { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.result-bars { display: grid; gap: 14px; }
.result-bar-copy { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: .69rem; }
.result-bar-copy strong { color: var(--text); font-family: var(--mono); }
.result-bar-track,
.skill-bar-track,
.season-map-winbar { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.result-bar-track span,
.skill-bar-track span,
.season-map-winbar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.result-bar-row.is-win .result-bar-track span { background: var(--success); }
.result-bar-row.is-loss .result-bar-track span { background: #d65a61; }
.result-bar-row.is-draw .result-bar-track span { background: var(--blue); }
.skill-bars { display: grid; gap: 13px; }
.skill-bar-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .7rem; color: var(--muted); }
.skill-bar-copy strong { color: var(--text); font-family: var(--mono); }
.skill-bar-track { height: 7px; }
.skill-bar-track span { background: linear-gradient(90deg, var(--blue), var(--purple), var(--accent)); }
.rank-table,
.season-map-rows { display: grid; }
.rank-table-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-table-row:last-child { border-bottom: 0; }
.rank-map-name { text-transform: capitalize; color: var(--muted); font-size: .74rem; }
.rank-table-row strong { font-size: .75rem; text-align: right; }
.season-map-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.season-map-row:last-child { border-bottom: 0; }
.season-map-copy strong { display: block; text-transform: capitalize; font-size: .77rem; }
.season-map-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; }
.season-map-winbar { max-width: 360px; margin-top: 8px; }
.season-map-metrics { min-width: 74px; text-align: right; }
.season-map-metrics b { display: block; font-family: var(--mono); font-size: .86rem; }
.season-map-metrics small { display: block; margin-top: 4px; color: var(--subtle); font-size: .61rem; }
.ranked-muted { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }

@media (max-width: 980px) {
    .ranked-hero-grid, .rank-chart-grid, .ranked-lower-grid { grid-template-columns: 1fr; }
    .season-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .premier-card, .rank-summary-card, .ranked-block { padding: 15px; }
    .premier-orbit { width: 86px; height: 86px; flex-basis: 86px; }
    .premier-orbit::before { width: 66px; height: 66px; }
    .premier-meta-grid { grid-template-columns: 1fr; gap: 12px; }
    .season-stat-grid { grid-template-columns: 1fr 1fr; }
    .season-result-chart { grid-template-columns: 1fr; justify-items: center; }
    .result-bars { width: 100%; }
    .ranked-block-head { align-items: flex-start; flex-direction: column; }
}

/* 3.8.0 — explicit tab accents after Sezon & Rank insertion */
.tab[data-tab="overview"]::after { background: var(--orange); }
.tab[data-tab="stats"]::after { background: var(--blue); }
.tab[data-tab="ranked"]::after { background: var(--yellow); }
.tab[data-tab="matches"]::after { background: var(--green); }
.tab[data-tab="medals"]::after { background: var(--purple); }
.tab[data-tab="badges"]::after { background: var(--yellow); }
.tab[data-tab="achievements"]::after { background: var(--orange); }
.tab[data-tab="overview"].is-active i { color: var(--orange); }
.tab[data-tab="stats"].is-active i { color: var(--blue); }
.tab[data-tab="ranked"].is-active i { color: var(--yellow); }
.tab[data-tab="matches"].is-active i { color: var(--green); }
.tab[data-tab="medals"].is-active i { color: var(--purple); }
.tab[data-tab="badges"].is-active i { color: var(--yellow); }
.tab[data-tab="achievements"].is-active i { color: var(--orange); }

/* 3.8.2 — Season & Rank polish only */
.ranked-section-heading { align-items: flex-end; }
.ranked-dashboard { gap: 16px; }
.rank-chart-grid { align-items: stretch; }
.chart-card { min-height: 346px; }
.chart-value {
    min-width: 54px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
}
.chart-value:empty { display: none; }
.chart-value.is-positive { color: var(--success); border-color: rgba(82,206,144,.28); background: rgba(82,206,144,.07); }
.chart-value.is-negative { color: #e56a70; border-color: rgba(229,106,112,.28); background: rgba(229,106,112,.07); }
.rank-history-chart {
    position: relative;
    min-height: 264px;
    display: grid;
    place-items: stretch;
    padding: 2px 2px 0;
}
.rank-history-chart svg { width: 100%; height: 270px; overflow: visible; }
.rank-chart-area { fill: url(#rankAreaGradient); }
.rank-chart-line { stroke-width: 2.6; }
.rank-chart-gridline { stroke: rgba(255,255,255,.065); stroke-dasharray: 3 5; }
.rank-chart-axis { fill: rgba(255,255,255,.38); font-size: 10px; }
.rank-chart-date { fill: rgba(255,255,255,.48); font-size: 9.5px; }
.rank-chart-focus-line { stroke: rgba(237,163,56,.38); stroke-width: 1; stroke-dasharray: 4 5; pointer-events: none; }
.rank-chart-hit { fill: transparent; stroke: none; cursor: crosshair; }
.rank-chart-point-group { outline: none; }
.rank-chart-point-group .rank-chart-point { transition: r .16s ease, fill .16s ease, filter .16s ease; }
.rank-chart-point-group:hover .rank-chart-point,
.rank-chart-point-group:focus .rank-chart-point,
.rank-chart-point-group.is-active .rank-chart-point {
    r: 6.5px;
    fill: var(--accent);
    filter: drop-shadow(0 0 7px rgba(237,163,56,.5));
}
.rank-chart-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 142px;
    transform: translate(-50%, calc(-100% - 12px));
    padding: 9px 11px;
    border: 1px solid rgba(237,163,56,.35);
    border-radius: 10px;
    background: rgba(7,9,12,.96);
    box-shadow: 0 12px 34px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05);
    pointer-events: none;
    backdrop-filter: blur(12px);
}
.rank-chart-tooltip-date { display: block; color: var(--muted); font-size: .63rem; }
.rank-chart-tooltip-value { display: block; margin-top: 3px; color: #fff; font-family: var(--mono); font-size: .82rem; }
.rank-chart-tooltip-delta { display: block; margin-top: 3px; color: var(--subtle); font-family: var(--mono); font-size: .64rem; }
.rank-chart-tooltip-delta.is-positive { color: var(--success); }
.rank-chart-tooltip-delta.is-negative { color: #e56a70; }

.season-result-chart { grid-template-columns: 146px minmax(0,1fr); gap: 24px; }
.result-rate {
    --win-pct: 0%;
    --loss-pct: 0%;
    position: relative;
    width: 132px;
    height: 132px;
    border: 0;
    background: conic-gradient(
        var(--success) 0 var(--win-pct),
        #d65a61 var(--win-pct) var(--loss-pct),
        var(--blue) var(--loss-pct) 100%
    );
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.28);
}
.result-rate::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0d1014, #060709);
    box-shadow: inset 0 0 28px rgba(0,0,0,.56);
}
.result-rate strong,
.result-rate span { position: relative; z-index: 1; }
.result-bar-row {
    padding: 7px 8px;
    margin: -7px -8px;
    border-radius: 9px;
    outline: none;
    transition: background .18s ease, transform .18s ease;
}
.result-bar-row:hover,
.result-bar-row:focus-visible { background: rgba(255,255,255,.035); transform: translateX(2px); }
.result-bar-track { height: 6px; }
.result-bar-track span { transition: width .42s cubic-bezier(.16,1,.3,1), filter .18s ease; }
.result-bar-row:hover .result-bar-track span,
.result-bar-row:focus-visible .result-bar-track span { filter: brightness(1.2); }

.skill-bar-row {
    padding: 7px 8px;
    margin: -7px -8px;
    border-radius: 9px;
    outline: none;
    transition: background .18s ease;
}
.skill-bar-row:hover,
.skill-bar-row:focus-visible { background: rgba(255,255,255,.03); }
.skill-bar-row.is-negative .skill-bar-copy strong { color: #e56a70; }
.skill-bar-row.is-negative .skill-bar-track::after {
    content: "";
    display: block;
    width: 6px;
    height: 100%;
    border-radius: inherit;
    background: #e56a70;
}
.skill-bar-track span { transition: width .42s cubic-bezier(.16,1,.3,1); }

.rank-table-row {
    min-height: 54px;
    padding: 7px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    outline: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.rank-table-row:hover,
.rank-table-row:focus-visible { background: rgba(255,255,255,.032); transform: translateX(2px); }
.rank-map-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.rank-map-thumb,
.rank-map-fallback {
    width: 54px;
    height: 32px;
    flex: 0 0 54px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.09);
    background: #080a0d;
}
.rank-map-thumb { display: block; object-fit: cover; opacity: .9; }
.rank-map-fallback { display: grid; place-items: center; color: var(--accent); }
.rank-map-fallback .ui-icon { width: 16px; height: 16px; }
.rank-map-name { color: #d4d7dc; font-size: .76rem; font-weight: 700; }
.competitive-rank-badge {
    max-width: 52%;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.028);
    color: #e8eaed;
    font-size: .7rem !important;
    line-height: 1.15;
}
.competitive-rank-badge.is-silver { color: #cdd5dc; border-color: rgba(205,213,220,.22); }
.competitive-rank-badge.is-gold { color: #f2c45c; border-color: rgba(242,196,92,.25); }
.competitive-rank-badge.is-guardian { color: #76b6e8; border-color: rgba(65,121,163,.42); }
.competitive-rank-badge.is-eagle { color: #bc83d8; border-color: rgba(128,60,161,.45); }
.competitive-rank-badge.is-global { color: #f2aa5a; border-color: rgba(237,163,56,.48); box-shadow: 0 0 14px rgba(237,163,56,.08); }

.season-map-row {
    min-height: 76px;
    padding: 10px 8px;
    margin: 0 -8px;
    border-radius: 11px;
    outline: none;
    transition: background .18s ease, transform .18s ease;
}
.season-map-row:hover,
.season-map-row:focus-visible { background: rgba(255,255,255,.03); transform: translateX(2px); }
.season-map-main { min-width: 0; display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 12px; }
.season-map-thumb {
    width: 76px;
    height: 46px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px rgba(255,255,255,.05);
    opacity: .92;
}
.season-map-copy strong { font-size: .79rem; }
.season-map-winbar { max-width: 420px; height: 6px; }
.season-map-winbar span { background: linear-gradient(90deg, var(--accent), var(--yellow)); transition: width .42s cubic-bezier(.16,1,.3,1); }
.season-map-metrics b { font-size: .9rem; }

@media (max-width: 620px) {
    .rank-history-chart svg { height: 240px; }
    .rank-chart-tooltip { min-width: 124px; }
    .season-result-chart { grid-template-columns: 1fr; gap: 18px; }
    .result-rate { width: 118px; height: 118px; }
    .rank-map-thumb, .rank-map-fallback { width: 46px; height: 29px; flex-basis: 46px; }
    .competitive-rank-badge { max-width: 56%; }
    .season-map-main { grid-template-columns: 60px minmax(0,1fr); gap: 9px; }
    .season-map-thumb { width: 60px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .rank-chart-point-group .rank-chart-point,
    .result-bar-row,
    .result-bar-track span,
    .skill-bar-row,
    .skill-bar-track span,
    .rank-table-row,
    .season-map-row,
    .season-map-winbar span { transition: none !important; }
}

/* 3.8.3 — requested profile identity and CS2 presence polish */
.profile-identity {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 150px;
}
.profile-identity-name {
    width: 100%;
    min-height: 34px;
    padding-inline: 2px;
}
.profile-identity-name h2 {
    margin: 0;
    max-width: 210px;
    color: var(--text);
    font-size: clamp(1.42rem, 2.3vw, 2rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.profile-identity-name p {
    margin: .32rem 0 0;
    max-width: 190px;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.35;
}

.game-context {
    grid-template-columns: 62px minmax(0, 1fr);
}
.game-context-icon {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.game-context-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 39% center;
    border-radius: inherit;
    filter: saturate(1.05) contrast(1.03);
    transition: filter .22s ease, transform .22s ease;
}
.game-context.is-playing {
    border-color: rgba(82,206,144,.28);
    background: linear-gradient(135deg, rgba(82,206,144,.045), rgba(255,255,255,.016));
}
.game-context.is-playing .game-context-icon {
    border-color: rgba(82,206,144,.9);
    box-shadow:
        0 0 0 1px rgba(82,206,144,.18),
        0 0 17px rgba(82,206,144,.34),
        0 0 34px rgba(82,206,144,.13);
}
.game-context.is-playing .game-context-icon img {
    filter: saturate(1.12) contrast(1.05) brightness(1.04);
}
.game-context.is-playing:hover .game-context-icon {
    transform: translateY(-1px);
}

@media (max-width: 1020px) {
    .profile-identity { min-width: 132px; }
}

@media (max-width: 760px) {
    .profile-identity {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .profile-identity-name h2,
    .profile-identity-name p {
        max-width: 100%;
    }
    .game-context {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .game-context-icon {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-context-icon,
    .game-context-icon img {
        transition: none !important;
        transform: none !important;
    }
}

/* 3.8.4 readability normalization */
.collection-group-heading .collection-group-count { margin-left: .1rem; }
@media (max-width: 560px) {
    .collection-group-heading > div { gap: .4rem; }
    .collection-group-count { min-height: 21px; font-size: .69rem; }
}

/* 3.9.0 — CS2 visual polish */
:root {
    --cs2-orange: #eda338;
    --cs2-blue: #4179a3;
    --cs2-green: #52ce90;
    --cs2-yellow: #e6f13d;
    --cs2-purple: #803ca1;
    --cs2-ink: #090b0e;
}

/* Keep the landing copy compact: search intent stays visible without vertical bloat. */
.seo-landing-copy { margin-bottom: 14px; }
.seo-landing-copy h2 { margin: 0; }

/* Queried account avatar in the Steam account summary heading. */
.panel-heading-avatar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(65,121,163,.18), rgba(237,163,56,.08));
    border-color: rgba(65,121,163,.38);
}
.panel-heading-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity .18s ease, transform .2s ease;
}
.panel-heading-avatar.has-image img { opacity: 1; }
.panel-heading-avatar.has-image i { opacity: 0; }
.info-panel:hover .panel-heading-avatar.has-image img { transform: scale(1.035); }

/* VAC mark supplied by the user; keep it compact so the panel does not grow. */
.panel-heading-vac {
    overflow: hidden;
    padding: 0;
    background: #202225;
    border-color: rgba(255,255,255,.16);
}
.panel-heading-vac img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.04) brightness(1.04);
}

/* Semantic CS2 palette usage without recoloring the whole interface. */
#tab-stats.is-active i,
#panel-stats .section-heading h3 i { color: var(--cs2-blue); }
#tab-ranked.is-active i,
#panel-ranked .section-heading h3 i { color: var(--cs2-yellow); }
#tab-matches.is-active i { color: var(--cs2-orange); }
#tab-medals.is-active i { color: var(--cs2-purple); }
#tab-achievements.is-active i { color: var(--cs2-yellow); }
.ban-status.is-clean { border-color: color-mix(in srgb, var(--cs2-green) 34%, transparent); }
.visibility-badge.is-public { color: var(--cs2-green); border-color: color-mix(in srgb, var(--cs2-green) 34%, transparent); }
.game-context.is-playing { border-color: color-mix(in srgb, var(--cs2-green) 58%, transparent); }
.game-context.is-playing .game-context-icon {
    box-shadow: 0 0 0 1px rgba(82,206,144,.48), 0 0 18px rgba(82,206,144,.22);
}

@media (max-width: 700px) {
    .panel-heading-avatar,
    .panel-heading-vac { width: 36px; height: 36px; }
}

/* 3.9.1 R4 — ranked profile fidelity */
.rank-chart-single {
    min-height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}
.rank-chart-single-label {
    color: var(--muted);
    font-size: .72rem;
}
.rank-chart-single-value {
    color: var(--text);
    font-family: var(--mono);
    font-size: 1.15rem;
}
.competitive-rank {
    min-width: 190px;
    max-width: 56%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #e8eaed;
}
.competitive-rank-media {
    position: relative;
    width: 58px;
    height: 28px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
}
.competitive-rank-icon {
    width: 58px;
    height: 28px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.46));
}
.competitive-rank-media.image-failed .competitive-rank-icon { display: none; }
.competitive-rank-media.image-failed .competitive-rank-icon-fallback { display: grid; }
.competitive-rank-icon-fallback {
    display: none;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
}
.competitive-rank-icon-fallback .ui-icon { width: 15px; height: 15px; }
.competitive-rank-copy {
    min-width: 0;
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}
.competitive-rank-copy small {
    color: var(--muted);
    font-size: .6rem;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.competitive-rank-copy strong {
    color: currentColor;
    font-size: .72rem;
    line-height: 1.15;
}
.competitive-rank.is-silver { color: #cdd5dc; }
.competitive-rank.is-gold { color: #f2c45c; }
.competitive-rank.is-guardian { color: #76b6e8; }
.competitive-rank.is-eagle { color: #bc83d8; }
.competitive-rank.is-global { color: #f2aa5a; }

@media (max-width: 640px) {
    .competitive-rank { min-width: 0; max-width: 54%; gap: 7px; }
    .competitive-rank-media { width: 46px; height: 24px; flex-basis: 46px; }
    .competitive-rank-icon { width: 46px; height: 24px; }
    .competitive-rank-copy small { display: none; }
    .competitive-rank-copy strong { font-size: .66rem; }
}
