/*
 * SXVXN Battle Arena public site — v2.3 visual system.
 *
 * The design intentionally stays restrained: dark neutral surfaces, one SXVXN
 * amber accent, thin borders and minimal elevation. Creature artwork provides
 * most of the colour rather than the interface competing with it.
 */

/* -------------------------------------------------------------------------- */
/* Design tokens / reset                                                      */
/* -------------------------------------------------------------------------- */
:root {
    --bg: #090a0d;
    --bg-elevated: #0d0f13;
    --surface: #11141a;
    --surface-2: #151920;
    --surface-3: #1a1f27;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .15);
    --text: #f3f4f6;
    --text-soft: #c8ccd3;
    --muted: #8f96a3;
    --muted-2: #686f7a;
    --brand: #f5ad17;
    --brand-strong: #ffc13d;
    --brand-ink: #1b1200;
    --good: #45c781;
    --warn: #d7a43a;
    --danger: #e16c6c;
    --max: 1220px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(245, 173, 23, .025), transparent 16rem),
        var(--bg);
    color: var(--text);
    font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

::selection { background: rgba(245, 173, 23, .28); color: #fff; }

:focus-visible {
    outline: 2px solid var(--brand-strong);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 700;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* -------------------------------------------------------------------------- */
/* Header / brand / navigation                                                */
/* -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 10, 13, .91);
    backdrop-filter: blur(14px);
}
.site-header-inner {
    width: min(var(--max), calc(100% - 52px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}
.brand-name {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color .15s ease, background .15s ease;
}
.main-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .035);
}
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 99px;
    background: var(--brand);
}

/* -------------------------------------------------------------------------- */
/* Global layout / typography / buttons                                       */
/* -------------------------------------------------------------------------- */
.site-main {
    width: min(var(--max), calc(100% - 52px));
    min-height: calc(100vh - 148px);
    margin: 0 auto;
    padding: 42px 0 82px;
}
.section-label,
.profile-kicker,
.hero-kicker {
    color: #aeb4be;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero-kicker { color: var(--brand-strong); }
.muted { color: var(--muted); }
.text-link {
    color: var(--text-soft);
    font-weight: 650;
    transition: color .15s ease;
}
.text-link:hover { color: var(--brand-strong); }

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-weight: 700;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.button:hover {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .05);
}
.button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--brand-ink);
}
.button.primary:hover {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
}
.button.quiet { color: var(--muted); }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

/* -------------------------------------------------------------------------- */
/* Freshness / synchronisation status                                         */
/* -------------------------------------------------------------------------- */
.freshness-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 38px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.freshness-state {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--good);
}
.freshness-notice.is-training .freshness-state,
.freshness-notice.is-stale .freshness-state { background: var(--warn); }
.freshness-copy { min-width: 0; flex: 1; }
.freshness-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}
.freshness-notice strong {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}
.freshness-notice p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.freshness-meta {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 11px;
    white-space: nowrap;
}

.freshness-notice.compact {
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px 14px;
}
.freshness-notice.compact .freshness-state { margin-top: 0; }
.freshness-notice.compact strong { font-size: 12px; }
.freshness-notice.compact .freshness-meta { font-size: 11px; }
.freshness-compact-separator { color: var(--muted-2); }

/* -------------------------------------------------------------------------- */
/* Arena home                                                                 */
/* -------------------------------------------------------------------------- */
.hero {
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
    align-items: center;
    gap: 64px;
}
.hero h1 {
    max-width: 760px;
    margin: 14px 0 20px;
    font-size: clamp(52px, 6.2vw, 78px);
    line-height: .98;
    letter-spacing: -.052em;
    text-transform: uppercase;
}
.hero h1 span { color: var(--brand-strong); }
.hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.champion-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.champion-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--brand);
}
.champion-card-header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.champion-crown { color: var(--brand-strong); font-size: 21px; }
.champion-art {
    display: grid;
    place-items: center;
    margin: 15px 0 12px;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #0c0e12;
}
.champion-art img { width: 100%; height: 100%; object-fit: contain; }
.champion-card h2 {
    margin: 3px 0 0;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.champion-card > p { margin: 3px 0 16px; color: var(--muted); }
.champion-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.champion-stats span {
    padding: 11px 4px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.champion-stats span + span { border-left: 1px solid var(--line); }
.champion-stats strong {
    display: block;
    text-transform: none;
    margin-bottom: 1px;
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0;
}
.champion-card .text-link { color: var(--brand-strong); font-size: 13px; }

.community-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    margin: 34px 0 0;
    padding: 24px 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(245, 173, 23, .075), transparent 55%),
        var(--surface);
}
.community-cta.is-live {
    border-color: rgba(225, 108, 108, .34);
    background:
        linear-gradient(120deg, rgba(225, 108, 108, .075), transparent 52%),
        var(--surface);
}
.community-cta-copy { min-width: 0; }
.community-cta-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.community-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 173, 23, .09);
}
.community-cta.is-live .community-status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(225, 108, 108, .1);
}
.community-cta h2 {
    margin: 8px 0 4px;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.community-cta p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.community-cta-meta {
    display: block;
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 11px;
}
.community-cta-inline {
    display: inline-block;
    margin-top: 9px;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 700;
}
.community-cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    white-space: nowrap;
}


.section-block { margin-top: 62px; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.section-heading.compact { margin-bottom: 15px; }
.section-heading h2 {
    margin: 4px 0 0;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.leader-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.leader-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s ease, transform .15s ease;
}
.leader-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}
.leader-champion-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 4px 7px;
    border: 1px solid rgba(245, 173, 23, .38);
    border-radius: 7px;
    background: rgba(27, 18, 0, .88);
    color: var(--brand-strong);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.leader-card.current-champion { border-color: rgba(245, 173, 23, .24); }

.leader-position {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    min-width: 30px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(9, 10, 13, .84);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.leader-art {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #0c0e12;
}
.leader-art img { width: 100%; height: 100%; object-fit: contain; }
.leader-card-copy { padding: 14px; }
.leader-card-copy strong,
.leader-card-copy span,
.leader-card-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-card-copy strong { font-size: 14px; }
.leader-card-copy span { margin-top: 1px; color: var(--muted); font-size: 12px; }
.leader-card-copy b { margin-top: 9px; color: var(--brand-strong); font-size: 12px; }

/* -------------------------------------------------------------------------- */
/* Shared inner-page introduction                                             */
/* -------------------------------------------------------------------------- */
.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}
.page-intro h1 {
    margin: 5px 0 0;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -.05em;
}
.page-intro p {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Creature browser                                                           */
/* -------------------------------------------------------------------------- */
.roster-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(150px, .65fr) minmax(160px, .7fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}
.filter-field { min-width: 0; }
.filter-field label {
    display: block;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}
.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
}
.filter-field input::placeholder { color: #69707c; }
.filter-field input:focus,
.filter-field select:focus { border-color: rgba(245, 173, 23, .7); }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .button { min-height: 42px; }
.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 11px;
}

/* Subtle element accents are intentionally limited to a small cue rather than
   recolouring whole cards. This keeps the roster restrained and artwork-led. */
.element-air { --element-accent: #b9b3ff; }
.element-earth { --element-accent: #a9cf69; }
.element-fire { --element-accent: #ff9a6f; }
.element-water { --element-accent: #6eb8ff; }
.element-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--element-accent, var(--brand-strong));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--element-accent, var(--brand-strong)) 12%, transparent);
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.creature-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.creature-card:hover {
    border-color: color-mix(in srgb, var(--element-accent, var(--brand-strong)) 42%, var(--line-strong));
    background: #12161d;
    transform: translateY(-2px);
}
.creature-card:focus-visible {
    outline: 2px solid var(--brand-strong);
    outline-offset: 3px;
}
.creature-art {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--element-accent, #ffffff) 6%, transparent), transparent 54%),
        #0c0f14;
}
.creature-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .18s ease; }
.creature-card:hover .creature-art img { transform: scale(1.012); }
.creature-card-body { display: block; padding: 14px 14px 13px; }
.creature-element {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.creature-name {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.owner {
    display: block;
    overflow: hidden;
    margin: 3px 0 12px;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 650;
}
.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.pagination-link {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}
.pagination-link:last-child { justify-self: end; }
.pagination-link:hover { color: var(--brand-strong); }
.pagination-link.disabled { color: #4e545e; pointer-events: none; }
.pagination-current { color: var(--muted); font-size: 12px; }

/* -------------------------------------------------------------------------- */
/* Creature profile                                                           */
/* -------------------------------------------------------------------------- */
.profile-hero {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 58px;
    margin: 8px 0 34px;
}
.profile-art { min-width: 0; }
.profile-art-frame {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top-color: color-mix(in srgb, var(--element-accent, var(--brand-strong)) 55%, var(--line));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--element-accent, #ffffff) 6%, transparent), transparent 58%),
        #0c0f14;
}
.profile-art img { width: 100%; height: 100%; object-fit: contain; }
.profile-copy h1 {
    margin: 8px 0 0;
    font-size: clamp(49px, 5.6vw, 72px);
    line-height: 1;
    letter-spacing: -.052em;
}
.profile-owner { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.title-line { margin: 10px 0 0; color: var(--brand-strong); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.profile-meta span {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.level-progress { max-width: 620px; margin-top: 28px; }
.level-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
}
.progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
}
.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}
.profile-training-note {
    max-width: 620px;
    margin-top: 20px;
    padding: 11px 13px;
    border-left: 2px solid var(--brand);
    background: rgba(245, 173, 23, .055);
}
.profile-training-note strong,
.profile-training-note span { display: block; }
.profile-training-note strong { color: var(--text-soft); font-size: 12px; }
.profile-training-note span { margin-top: 2px; color: var(--muted); font-size: 12px; }

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.profile-metrics > div { padding: 16px 18px; }
.profile-metrics > div + div { border-left: 1px solid var(--line); }
.profile-metrics span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.profile-metrics strong {
    display: block;
    margin-top: 3px;
    font-size: 20px;
    letter-spacing: -.025em;
}
.profile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 42px;
}
.content-section {
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
}
.profile-columns .content-section { padding-top: 2px; }
.detail-list > div,
.skill-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.detail-list > div:last-child,
.skill-grid > div:nth-last-child(-n+2) { border-bottom-color: transparent; }
.detail-list span,
.skill-grid span { color: var(--muted); }
.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 38px;
}
.profile-skills { margin-bottom: 42px; }
.claim-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}
.claim-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.claim-state {
    order: 2;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.claim-item.complete .claim-state { color: var(--good); }
.claim-item strong { font-size: 13px; font-weight: 650; }

/* -------------------------------------------------------------------------- */
/* Leaderboard                                                                */
/* -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-elevated);
}
.tabs a {
    padding: 7px 11px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--brand); color: var(--brand-ink); }
.leaderboard-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.leaderboard-head,
.leader-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 10px;
}
.leaderboard-head {
    padding: 11px 18px;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.leaderboard-head span:last-child { text-align: right; }
.leader-row {
    min-height: 76px;
    padding: 9px 18px;
    border-top: 1px solid var(--line);
    transition: background .15s ease;
}
.leader-row:hover { background: rgba(255, 255, 255, .025); }
.rank { font-size: 14px; font-weight: 700; }
.rank > span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--text-soft);
}
.rank-1 .rank > span { background: rgba(245, 173, 23, .16); color: #ffd36c; }
.rank-2 .rank > span { background: rgba(202, 208, 216, .11); color: #d8dde4; }
.rank-3 .rank > span { background: rgba(191, 128, 80, .13); color: #d8a77f; }
.leader-person { display: flex; align-items: center; gap: 13px; min-width: 0; }
.leader-person img {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    border-radius: 9px;
    background: #0b0e12;
}
.leader-person strong,
.leader-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leader-person strong { font-size: 14px; }
.leader-person small { color: var(--muted); font-size: 12px; }
.leader-value { text-align: right; font-size: 19px; letter-spacing: -.02em; }

/* -------------------------------------------------------------------------- */
/* Monthly goals                                                              */
/* -------------------------------------------------------------------------- */
.goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.goal-card {
    min-height: 160px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.goal-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.goal-collection {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.goal-reward {
    flex: 0 0 auto;
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 700;
}
.goal-card h2 {
    margin: 28px 0 7px;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -.025em;
}
.goal-card p { margin: 0; color: var(--muted); }

/* -------------------------------------------------------------------------- */
/* Empty states / footer                                                      */
/* -------------------------------------------------------------------------- */
.empty-state {
    max-width: 680px;
    margin: 90px auto;
    text-align: center;
}
.empty-state-mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
}
.empty-state h1,
.empty-state h2 {
    margin: 10px 0;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -.04em;
}
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 12px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
    width: min(var(--max), calc(100% - 52px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted-2);
    font-size: 11px;
}
.footer-brand { color: #7f8692; font-weight: 650; }
.footer-links { display: flex; align-items: center; gap: 8px; }
.footer-links span { color: #444a54; }
.footer-links a { color: #7f8692; font-weight: 650; transition: color .15s ease; }
.footer-links a:hover { color: var(--brand-strong); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------- */
/* Maintenance mode                                                           */
/* -------------------------------------------------------------------------- */
.maintenance-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
}
.maintenance-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}
.maintenance-card {
    width: min(650px, 100%);
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.maintenance-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 30px;
}
.maintenance-brand img {
    width: 42px;
    height: 42px;
    border-radius: 9px;
}
.maintenance-brand span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.maintenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--good);
}
.maintenance-pulse { background: var(--brand); }
.maintenance-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(46px, 8vw, 70px);
    line-height: .98;
    letter-spacing: -.052em;
}
.maintenance-message {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
}
.maintenance-divider {
    width: 58px;
    height: 2px;
    margin: 28px auto 22px;
    background: var(--brand);
}
.maintenance-reassurance { margin: 0; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.maintenance-checkback { margin: 7px 0 0; color: var(--muted-2); font-size: 12px; }

/* -------------------------------------------------------------------------- */
/* Responsive layout                                                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .champion-card { max-width: 440px; }
    .community-cta { grid-template-columns: 1fr; align-items: start; }
    .community-cta-actions { justify-content: flex-start; }
    .leader-cards { grid-template-columns: repeat(3, 1fr); }
    .creature-grid { grid-template-columns: repeat(3, 1fr); }
    .goal-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-metrics { grid-template-columns: repeat(3, 1fr); }
    .profile-metrics > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
    .profile-metrics > div:nth-child(5),
    .profile-metrics > div:nth-child(6) { border-top: 1px solid var(--line); }
    .roster-filters { grid-template-columns: 1fr 1fr 1fr; }
    .search-field { grid-column: span 3; }
}

@media (max-width: 760px) {
    .site-header-inner,
    .site-main,
    .site-footer-inner { width: min(100% - 34px, var(--max)); }
    .site-header-inner {
        min-height: 0;
        padding: 12px 0 10px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
    .main-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .main-nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
    .site-main { padding-top: 28px; }
    .freshness-notice { margin-bottom: 30px; }
    .freshness-topline { align-items: flex-start; flex-direction: column; gap: 2px; }
    .freshness-meta { white-space: normal; }
    .hero { gap: 34px; }
    .hero h1 { font-size: clamp(44px, 13vw, 62px); }
    .champion-card { max-width: 100%; }
    .page-intro { align-items: flex-start; flex-direction: column; }
    .leader-cards,
    .creature-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-hero { grid-template-columns: 1fr; gap: 30px; }
    .profile-art { max-width: 460px; }
    .profile-columns { grid-template-columns: 1fr; gap: 32px; }
    .goal-grid { grid-template-columns: 1fr; }
    .roster-filters { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: span 2; }
    .filter-actions { grid-column: span 2; }
    .leaderboard-head,
    .leader-row { grid-template-columns: 44px minmax(0, 1fr) 100px; }
    .leader-person img { width: 44px; height: 44px; flex-basis: 44px; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
    .footer-links { flex-wrap: wrap; }
}

@media (max-width: 500px) {
    .brand-name { font-size: 10px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .community-cta { padding: 20px; }
    .community-cta-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .leader-cards,
    .creature-grid { grid-template-columns: 1fr; }
    .profile-metrics { grid-template-columns: repeat(2, 1fr); }
    .profile-metrics > div:nth-child(n) { border-top: 0; }
    .profile-metrics > div:nth-child(even) { border-left: 1px solid var(--line); }
    .profile-metrics > div:nth-child(odd) { border-left: 0; }
    .profile-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .skill-grid,
    .claim-grid { grid-template-columns: 1fr; }
    .skill-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .065); }
    .skill-grid > div:last-child { border-bottom-color: transparent; }
    .roster-filters { grid-template-columns: 1fr; }
    .search-field,
    .filter-actions { grid-column: auto; }
    .filter-actions { flex-direction: column; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination-current { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .pagination-link { grid-row: 2; }
    .leaderboard-head { display: none; }
    .leader-row { grid-template-columns: 38px minmax(0, 1fr) 76px; padding-left: 12px; padding-right: 12px; }
    .leader-value { font-size: 16px; }
}

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


/* -------------------------------------------------------------------------- */
/* Live Arena — v2.3                                                          */
/* -------------------------------------------------------------------------- */
.live-arena { display: grid; gap: 22px; }
.live-arena-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245, 173, 23, .075), rgba(255,255,255,.018) 55%), var(--surface);
    overflow: hidden;
}
.live-arena-hero.is-live { border-color: rgba(69, 199, 129, .28); }
.live-arena-hero.is-live .community-status-dot {
    background: var(--good);
    box-shadow: 0 0 0 5px rgba(69, 199, 129, .09);
}
.live-arena-hero.is-offline .community-status-dot { background: var(--muted-2); box-shadow: none; }
.live-arena-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.live-arena-hero h1 {
    margin: 9px 0 10px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: .98;
    letter-spacing: -.052em;
}
.live-arena-hero-copy > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; }
.live-arena-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: start;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 10, 13, .55);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.live-refresh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.live-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    overflow: hidden;
}
.live-metrics > div { min-width: 0; padding: 17px 19px; }
.live-metrics > div + div { border-left: 1px solid var(--line); }
.live-metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.live-metrics strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.025em; }
.live-arena-columns { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.35fr); gap: 22px; align-items: start; }
.live-arena-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elevated); }
.live-queue-summary { color: var(--muted-2); font-size: 12px; font-weight: 650; }
.live-champion-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(245, 173, 23, .17);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(245, 173, 23, .055), transparent 62%), var(--surface);
    transition: border-color .15s ease, transform .15s ease;
}
.live-champion-card:hover { border-color: rgba(245, 173, 23, .34); transform: translateY(-1px); }
.live-champion-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #0c0e12; overflow: hidden; }
.live-champion-art img { width: 100%; height: 100%; object-fit: contain; }
.live-champion-copy { min-width: 0; }
.live-champion-copy > strong { display: block; margin-top: 3px; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.live-champion-copy > span:not(.creature-element):not(.live-inline-stats) { display: block; margin-top: 3px; color: var(--muted); }
.live-inline-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.live-inline-stats b { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.live-queue-list { display: grid; gap: 8px; }
.live-queue-card {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: background .15s ease, border-color .15s ease;
}
.live-queue-card:hover { background: var(--surface-2); border-color: var(--line-strong); }
.live-queue-position { color: var(--muted-2); font-size: 12px; font-weight: 800; text-align: center; }
.live-queue-art { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: #0c0e12; overflow: hidden; }
.live-queue-art img { width: 100%; height: 100%; object-fit: contain; }
.live-queue-copy { min-width: 0; }
.live-queue-copy strong, .live-queue-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-queue-copy strong { font-size: 14px; }
.live-queue-copy span { margin-top: 1px; color: var(--muted); font-size: 12px; }
.live-queue-lives { justify-self: end; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.live-empty { padding: 30px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.live-empty strong { display: block; font-size: 15px; }
.live-empty span { display: block; max-width: 460px; margin: 5px auto 0; color: var(--muted); font-size: 13px; }
.live-arena-footnote { margin: -2px 2px 0; color: var(--muted-2); font-size: 12px; text-align: center; }

@media (max-width: 920px) {
    .live-arena-hero { grid-template-columns: 1fr; }
    .live-arena-refresh { justify-self: start; }
    .live-arena-columns { grid-template-columns: 1fr; }
    .live-metrics { grid-template-columns: repeat(2, 1fr); }
    .live-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .live-metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .live-arena-hero { padding: 22px; }
    .live-arena-hero h1 { font-size: clamp(40px, 13vw, 56px); }
    .live-arena-refresh { width: 100%; white-space: normal; }
    .live-metrics { grid-template-columns: 1fr 1fr; }
    .live-champion-card { grid-template-columns: 100px minmax(0, 1fr); gap: 13px; }
    .live-champion-copy > strong { font-size: 20px; }
    .live-queue-card { grid-template-columns: 28px 46px minmax(0, 1fr); }
    .live-queue-art { width: 46px; height: 46px; }
    .live-queue-lives { grid-column: 3; justify-self: start; }
}

/* Seven Streets active-game presentation */
.seven-streets-site .brand-name{color:#ffe600}.ss-hero{align-items:stretch}.ss-join-card{min-width:280px;max-width:390px;padding:30px;border:1px solid #3f4655;border-radius:22px;background:linear-gradient(160deg,#181b22,#0d0f14)}.ss-join-card h2{margin:10px 0}.ss-join-card p,.ss-join-card small{display:block;color:#9ca4b3;line-height:1.55}.ss-join-card code{display:block;margin:20px 0;padding:17px 20px;border:1px solid #6d6316;border-radius:12px;background:#201f0d;color:#ffe600;font-size:26px;font-weight:900;text-align:center}
.ss-character-grid,.ss-district-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ss-character-card,.ss-district-card{display:block;padding:20px;border:1px solid #262b35;border-radius:16px;background:#101218;color:inherit;text-decoration:none}.ss-character-card:hover{border-color:#565f70;transform:translateY(-2px)}.ss-character-card>span,.ss-district-card>span{color:#7d8593;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.ss-character-card h2,.ss-district-card h2{margin:8px 0 4px}.ss-character-card p,.ss-district-card p{margin:0 0 14px;color:#969eac}.ss-character-card strong{color:#ffe600}.ss-health{height:7px;overflow:hidden;border-radius:99px;background:#292e37}.ss-health i{display:block;height:100%;background:linear-gradient(90deg,#ffe600,#f99d2d)}
.ss-live-fight{margin-bottom:18px;padding:22px;border:1px solid #6d541c;border-radius:16px;background:#20190d}.ss-live-fight h2{margin:7px 0}.ss-live-fight p{margin:0;color:#c3b48e}.ss-profile{padding:32px;border:1px solid #2a303a;border-radius:20px;background:#101218}.ss-profile h1{font-size:clamp(36px,7vw,72px);margin:8px 0}.ss-profile p{color:#a4abb8}.ss-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:28px}.ss-profile-stats span{padding:15px;border:1px solid #282e38;border-radius:12px;background:#0c0e13;color:#8d95a3}.ss-profile-stats strong{display:block;margin-bottom:4px;color:#fff;font-size:20px}
@media(max-width:1000px){.ss-character-grid,.ss-district-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.ss-character-grid,.ss-district-grid,.ss-profile-stats{grid-template-columns:1fr}.ss-join-card{max-width:none;min-width:0}}

/* Seven Streets public experience — MultiGame v0.7.0 */
.ss-city-pulse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 46px}.ss-city-pulse>div{padding:18px 20px;border:1px solid #252a34;border-radius:14px;background:linear-gradient(180deg,#12151c,#0e1117)}.ss-city-pulse span,.ss-city-pulse strong{display:block}.ss-city-pulse span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8791a0}.ss-city-pulse strong{margin-top:7px;font-size:25px;color:#f5f7fa}.leader-card[href]{text-decoration:none;transition:.16s ease}.leader-card[href]:hover{transform:translateY(-2px);border-color:#4b515c;background:#151920}.ss-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ss-featured-character{min-height:250px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #282d37;border-radius:15px;background:#11141a;text-decoration:none;transition:.16s ease}.ss-featured-character:hover{transform:translateY(-2px);border-color:#4e5561}.ss-featured-art{position:relative;width:100%;height:170px;background:radial-gradient(circle at 50% 25%,rgba(255,197,56,.13),transparent 58%),#0b0d11}.ss-featured-art img{width:100%;height:100%;object-fit:contain;padding:10px}.ss-featured-character>.ss-featured-copy{padding:15px}.ss-featured-character span,.ss-featured-character strong,.ss-featured-character small,.ss-featured-character b{display:block}.ss-featured-character span{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#f0b934}.ss-featured-character strong{margin-top:6px;font-size:17px;color:#f5f6f8}.ss-featured-character small{margin-top:4px;color:#7d8794}.ss-featured-character b{margin-top:11px;font-size:10px;color:#a9b1bc}.ss-directory-intro{align-items:end}.ss-public-search{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:8px;width:min(620px,100%)}.ss-public-search input,.ss-public-search select{min-width:0;padding:11px 12px;border:1px solid #303541;border-radius:9px;background:#101319;color:#f3f5f7}.ss-public-search select{cursor:pointer}.ss-character-grid-rich{grid-template-columns:repeat(4,minmax(0,1fr))}.ss-character-grid-rich .ss-character-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.ss-character-art{height:155px;background:radial-gradient(circle at 50% 25%,rgba(255,197,56,.11),transparent 58%),#0b0d11;border-bottom:1px solid #252a34}.ss-character-art img{width:100%;height:100%;object-fit:contain;padding:8px}.ss-character-card-body{padding:16px;display:flex;flex-direction:column;flex:1}.ss-character-card-body span{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#929baa}.ss-character-card-body h2{margin:7px 0 0}.ss-character-card-body p{margin:4px 0 0}.ss-character-card-body strong{margin-top:auto;padding-top:14px}.ss-character-card-body small{display:block;margin-top:5px;color:#7d8794}.ss-public-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0 4px}.ss-public-pagination span{font-size:11px;color:#8993a0}.ss-profile-rich{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(420px,1fr);gap:26px;align-items:center}.ss-profile-identity{display:flex;align-items:center;gap:24px}.ss-profile-art-wrap{width:210px;height:210px;flex:0 0 auto;border:1px solid #303641;border-radius:18px;background:radial-gradient(circle at 50% 25%,rgba(255,197,56,.14),transparent 58%),#0b0d11;overflow:hidden}.ss-profile-art-wrap img{width:100%;height:100%;object-fit:contain;padding:10px}.ss-mini-districts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ss-mini-districts article{padding:16px;border:1px solid #292e38;border-radius:13px;background:#11141a}.ss-mini-districts strong,.ss-mini-districts span{display:block}.ss-mini-districts span{margin:5px 0 10px;color:#7f8996;font-size:10px}.ss-inline-stats{display:flex;gap:10px}.ss-inline-stats span{padding:12px 15px;border:1px solid #2b303a;border-radius:11px;background:#11141a;color:#7f8996;font-size:10px}.ss-inline-stats strong{display:block;margin-bottom:4px;color:#f3f5f7;font-size:18px}.ss-district-card p a{color:#f2c44c;text-decoration:none}.ss-district-card p a:hover{text-decoration:underline}.ss-district-card small{display:block;margin-top:8px;color:#7e8793}.ss-leaderboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.section-heading.compact{padding:18px 18px 4px;margin:0}.section-heading.compact h2{font-size:20px}.leaderboard-panel .section-heading.compact+.leaderboard-head{margin-top:4px}
@media(max-width:1080px){.ss-city-pulse,.ss-featured-grid,.ss-character-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-profile-rich,.ss-leaderboard-grid{grid-template-columns:1fr}.ss-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.ss-mini-districts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ss-city-pulse,.ss-featured-grid,.ss-character-grid-rich,.ss-mini-districts{grid-template-columns:1fr}.ss-public-search{grid-template-columns:1fr}.ss-directory-intro{align-items:stretch}.ss-profile-identity{align-items:flex-start;flex-direction:column}.ss-profile-art-wrap{width:160px;height:160px}.ss-profile-stats{grid-template-columns:1fr 1fr}.ss-inline-stats{margin-top:14px;flex-wrap:wrap}}


/* Seven Streets Web/Admin polish — MultiGame v0.7.1 */
.ss-public-art-fallback{width:100%;height:100%;display:grid;place-items:center;color:#f4c94a;font-size:42px;font-weight:900;background:radial-gradient(circle at 50% 25%,rgba(255,197,56,.12),transparent 58%),#0b0d11}
.ss-profile-art-wrap{position:relative}.ss-profile-art-wrap>.ss-public-art-fallback{position:absolute;inset:0;display:grid;font-size:64px}
.ss-character-art{position:relative}.ss-character-art>.ss-public-art-fallback{position:absolute;inset:0;display:grid}
.ss-featured-art>.ss-public-art-fallback{position:absolute;inset:0;display:grid}
.ss-footer-status{display:flex;align-items:center;gap:10px}.ss-footer-status span{color:var(--muted-2)}
@media(max-width:760px){.ss-footer-status{align-items:flex-start;flex-direction:column;gap:3px}}


/* SXVXN Streets public commands + profile resilience — Web v0.8.0 */
.ss-profile-identity>div:last-child{min-width:0}.ss-profile-identity h1{max-width:100%;font-size:clamp(32px,5.5vw,68px);line-height:.96;overflow-wrap:anywhere;word-break:break-word}
.ss-commands-intro{align-items:end}.ss-command-count{min-width:130px;padding:16px 18px;border:1px solid #2a303a;border-radius:13px;background:#101319;text-align:right}.ss-command-count strong,.ss-command-count span{display:block}.ss-command-count strong{font-size:28px;color:#f5f7fa}.ss-command-count span{margin-top:3px;color:#818a98;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.ss-command-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 28px}.ss-command-tabs{display:flex;gap:6px;flex-wrap:wrap}.ss-command-tabs button{min-height:42px;padding:9px 14px;border:1px solid #303641;border-radius:9px;background:#101319;color:#9aa3af;font:inherit;font-weight:700;cursor:pointer}.ss-command-tabs button.active{border-color:#82751a;background:#201f0d;color:#ffe600}.ss-command-search{width:min(420px,100%)}.ss-command-search input{width:100%;min-height:44px;padding:10px 13px;border:1px solid #303641;border-radius:9px;background:#101319;color:#f3f5f7;font-size:16px}.ss-command-group{margin:0 0 34px}.ss-command-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ss-command-card{display:flex;min-width:0;flex-direction:column;padding:17px;border:1px solid #282e38;border-radius:14px;background:#101319}.ss-command-card[hidden],.ss-command-group[hidden]{display:none!important}.ss-command-card-head{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.ss-command-card-head code{min-width:0;color:#ffe600;font-size:15px;font-weight:800;overflow-wrap:anywhere}.ss-command-badge{flex:0 0 auto;padding:4px 7px;border:1px solid #514b20;border-radius:999px;background:#1d1b0c;color:#d9c74e;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.ss-command-card p{margin:10px 0 16px;color:#9da6b3;font-size:13px;line-height:1.5}.ss-command-example{margin-top:auto;padding:10px 11px;border:1px solid #252b34;border-radius:9px;background:#0c0f14}.ss-command-example span,.ss-command-example code{display:block}.ss-command-example span{margin-bottom:4px;color:#747e8c;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.ss-command-example code{color:#d9dde3;overflow-wrap:anywhere}.ss-copy-command{min-height:42px;margin-top:9px;border:1px solid #3a414d;border-radius:9px;background:#171b22;color:#eef0f3;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.ss-copy-command:hover{border-color:#6b7482}.ss-copy-status{min-height:20px;color:#a7afba;font-size:12px}.ss-command-empty{margin-top:20px}
@media(max-width:1050px){.ss-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.ss-commands-intro{align-items:stretch}.ss-command-count{text-align:left}.ss-command-tools{align-items:stretch;flex-direction:column}.ss-command-search{width:100%}.ss-command-grid{grid-template-columns:1fr}.ss-profile-identity h1{font-size:clamp(32px,12vw,54px)}}

/* SXVXN Streets homepage + commands refinement — Web/Admin v0.8.1 */
.ss-home-hero{grid-template-columns:minmax(0,1.45fr) minmax(330px,.7fr);gap:46px;align-items:center;padding-bottom:28px}
.ss-move-in-card{padding:24px;border:1px solid #323844;border-radius:18px;background:linear-gradient(155deg,#151922,#0d1015)}
.ss-move-in-card h2{margin:8px 0 18px;font-size:22px}.ss-move-in-card>.text-link{display:inline-block;margin-top:17px}
.ss-entry-route{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 0;border-top:1px solid #262c35}.ss-entry-route:first-of-type{border-top:0}.ss-entry-route strong,.ss-entry-route span{display:block}.ss-entry-route strong{font-size:13px;color:#f5f7fa}.ss-entry-route span{margin-top:3px;color:#858f9d;font-size:11px;line-height:1.4}.ss-entry-route code{min-width:105px;padding:10px 12px;border:1px solid #5c5417;border-radius:9px;background:#1b1a0b;color:#ffe600;font-size:17px;font-weight:900;text-align:center}
.ss-status-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 42px;padding:13px 16px;border:1px solid #2b3039;border-radius:12px;background:#101319}.ss-status-strip>div{display:flex;align-items:center;gap:9px;min-width:0}.ss-status-strip strong{font-size:11px;letter-spacing:.05em}.ss-status-strip>div>span:last-child{color:#929ba8;font-size:12px;white-space:normal}.ss-status-strip>a{flex:0 0 auto;color:#f2c44c;font-size:12px;font-weight:800;text-decoration:none}.ss-status-strip.is-live{border-color:rgba(69,199,129,.34);background:linear-gradient(90deg,rgba(32,104,65,.16),#101319)}.ss-status-strip.is-live .community-status-dot{background:#45c781;box-shadow:0 0 0 4px rgba(69,199,129,.1)}
.ss-now-section{margin-top:0}.ss-now-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ss-now-grid article{min-width:0;padding:20px;border:1px solid #292f39;border-radius:14px;background:linear-gradient(180deg,#13171e,#0f1217)}.ss-now-grid span,.ss-now-grid strong,.ss-now-grid small{display:block}.ss-now-grid span{color:#858f9c;font-size:10px;letter-spacing:.09em;text-transform:uppercase}.ss-now-grid strong{margin-top:8px;color:#f4f6f8;font-size:27px;line-height:1.1}.ss-now-grid .ss-now-name{font-size:18px;overflow-wrap:anywhere}.ss-now-grid small{margin-top:7px;color:#7e8794;font-size:11px;line-height:1.4}
.ss-how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ss-how-grid article{display:flex;gap:15px;padding:20px;border:1px solid #292f39;border-radius:14px;background:#101319}.ss-how-grid article>span{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border:1px solid #62591b;border-radius:50%;background:#1d1b0c;color:#ffe600;font-weight:900}.ss-how-grid strong{display:block;color:#f5f7fa}.ss-how-grid p{margin:5px 0 0;color:#9099a6;font-size:12px;line-height:1.5}.ss-how-grid code{color:#ffe600;font-weight:800}
.ss-command-card>.ss-copy-command{margin-top:auto}.ss-command-card>.ss-command-example{margin-top:12px}.ss-command-card>.ss-copy-example{margin-top:8px;background:#11151b;color:#cfd4db}
@media(max-width:1050px){.ss-home-hero{grid-template-columns:1fr}.ss-move-in-card{max-width:none}.ss-now-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ss-status-strip{align-items:flex-start;flex-direction:column}.ss-status-strip>div{align-items:flex-start;flex-wrap:wrap}.ss-entry-route{grid-template-columns:1fr}.ss-entry-route code{width:100%}.ss-now-grid,.ss-how-grid{grid-template-columns:1fr}.ss-home-hero{gap:28px}.ss-command-card>.ss-copy-command{margin-top:8px}}

/* SXVXN Streets Commands compact reference — Web/Admin v0.8.4 */
.ss-command-tools{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 30px;padding:14px;border:1px solid #252b35;border-radius:13px;background:#0f1218}
.ss-command-tools-right{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;flex:1}
.ss-command-visible{flex:0 0 auto;color:#778190;font-size:11px;white-space:nowrap}
.ss-command-search{width:min(390px,100%)}
.ss-command-group{margin:0 0 30px}
.ss-command-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 10px;padding:0 2px}
.ss-command-group-head h2{margin:4px 0 0;font-size:21px;letter-spacing:-.025em}
.ss-command-group-head>span{color:#737d8b;font-size:10px;white-space:nowrap}
.ss-command-list{overflow:hidden;border:1px solid #262c36;border-radius:14px;background:#0f1218}
.ss-command-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;min-width:0;padding:15px 16px;border-top:1px solid #222832}
.ss-command-row:first-child{border-top:0}
.ss-command-row[hidden],.ss-command-group[hidden]{display:none!important}
.ss-command-row:hover{background:#12161d}
.ss-command-main{min-width:0}
.ss-command-line{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.ss-command-line code{color:#ffe600;font-size:14px;font-weight:850;overflow-wrap:anywhere}
.ss-command-main>p{margin:6px 0 0;color:#9da6b3;font-size:12px;line-height:1.45}
.ss-copy-primary{min-width:82px;min-height:38px;margin:0;padding:8px 12px}
.ss-command-inline-example{display:flex;align-items:center;gap:8px;margin-top:9px;min-width:0;color:#747e8c;font-size:10px}
.ss-command-inline-example>span{flex:0 0 auto;text-transform:uppercase;letter-spacing:.08em}
.ss-command-inline-example code{min-width:0;padding:4px 7px;border:1px solid #272d37;border-radius:6px;background:#0b0e13;color:#d8dde4;font-size:11px;overflow-wrap:anywhere}
.ss-copy-mini{flex:0 0 auto;padding:4px 7px;border:0;background:transparent;color:#c0c7d0;font:inherit;font-size:10px;font-weight:750;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ss-copy-mini:hover{color:#fff}
.ss-copy-status{position:sticky;bottom:12px;z-index:5;width:max-content;max-width:100%;min-height:0;margin:0 0 16px;padding:0;color:#a7afba;font-size:11px}
.ss-copy-status:not(:empty){padding:8px 10px;border:1px solid #313845;border-radius:8px;background:#11151c}
@media(max-width:800px){.ss-command-tools{align-items:stretch;flex-direction:column}.ss-command-tools-right{align-items:stretch;flex-direction:column-reverse}.ss-command-visible{white-space:normal}.ss-command-search{width:100%}.ss-command-row{grid-template-columns:1fr;gap:12px}.ss-copy-primary{width:100%}.ss-command-inline-example{align-items:flex-start;flex-wrap:wrap}.ss-command-inline-example code{flex:1 1 180px}.ss-command-group-head{align-items:flex-start}}

/* SXVXN Streets Commands UX polish — Web/Admin v0.8.5 */
.ss-command-count{display:grid;justify-items:end;align-self:end;min-width:150px;padding:15px 17px}.ss-command-count strong{font-size:34px;line-height:1}.ss-command-count span{margin-top:5px}.ss-command-count small{display:block;margin-top:7px;color:#687281;font-size:10px;white-space:nowrap}
.ss-command-tools-right{gap:10px}.ss-command-jump{width:min(230px,100%)}.ss-command-jump select{width:100%;min-height:44px;padding:9px 34px 9px 12px;border:1px solid #303641;border-radius:9px;background:#101319;color:#c5cbd3;font-size:13px}.ss-command-jump select:disabled{opacity:.45;cursor:not-allowed}
.ss-command-group{scroll-margin-top:92px}.ss-command-group-head h2:focus{outline:2px solid #d8bd34;outline-offset:5px;border-radius:4px}
.ss-command-inline-example{padding-top:2px}.ss-example-label{padding:3px 6px;border:1px solid #353b46;border-radius:999px;background:#151922;color:#8d97a5!important;font-size:8px!important;font-weight:850;line-height:1;text-transform:uppercase;letter-spacing:.08em}.ss-command-inline-example code{border-color:#343b47;background:#11151c;color:#eef1f4}
.ss-copy-primary,.ss-copy-mini{transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}.ss-copy-primary.is-copied{border-color:#2b7d53;background:#102119;color:#8de7b5}.ss-copy-mini.is-copied{color:#8de7b5}.ss-copy-primary:active,.ss-copy-mini:active{transform:translateY(1px)}
.ss-copy-status:not(:empty){box-shadow:0 8px 28px rgba(0,0,0,.28)}
@media(max-width:800px){.ss-commands-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.ss-command-count{min-width:112px;padding:12px 13px;text-align:right;justify-items:end}.ss-command-count strong{font-size:28px}.ss-command-count small{white-space:normal;text-align:right}.ss-command-tools-right{display:grid;grid-template-columns:1fr;gap:9px}.ss-command-jump,.ss-command-search{width:100%}.ss-command-row{grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.ss-copy-primary{width:auto;min-width:70px;min-height:36px;padding:7px 10px;align-self:start}.ss-command-main>p{padding-right:2px}.ss-command-inline-example{gap:6px}.ss-copy-status{bottom:8px}}
@media(max-width:520px){.ss-commands-intro{grid-template-columns:1fr}.ss-command-count{justify-items:start;text-align:left;min-width:0}.ss-command-count small{text-align:left}.ss-command-row{padding:13px 12px}.ss-copy-primary{min-width:64px;padding-inline:9px}.ss-command-line code{font-size:13px}.ss-command-inline-example code{flex:1 1 140px}.ss-command-inline-example{padding-right:0}}

/* My Streets account controls — Public v0.9.1 */
.site-header-inner{flex-wrap:wrap}.main-nav{flex-wrap:wrap}
.ss-player-account{display:inline-flex;align-items:center;gap:8px;margin-left:8px}
.main-nav .ss-player-nav{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;color:#fff;background:#9146ff;border:1px solid #ac73ff;border-radius:8px;font-size:13px;font-weight:750;white-space:nowrap;box-shadow:0 3px 12px #9146ff22;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.main-nav .ss-player-nav:hover{color:#fff;background:#772ce8;border-color:#c4a1ff;transform:translateY(-1px)}
.main-nav .ss-player-nav.is-signed-in{color:var(--text);background:var(--surface-2);border-color:var(--line-strong);box-shadow:none}
.main-nav .ss-player-nav.is-signed-in:hover{background:var(--surface-3);border-color:var(--brand)}
.ss-twitch-icon{display:block;flex:0 0 18px;width:18px;height:18px}
.ss-player-nav.is-signed-in .ss-twitch-icon{color:#b88bff}
.ss-player-signout{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;border:1px solid #4c5360;border-radius:8px;background:transparent;color:var(--text-soft);font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;cursor:pointer}
.ss-player-signout:hover{color:#fff;background:var(--surface-2);border-color:#9299a7}
.ss-player-signout:disabled{cursor:wait;opacity:.65}.ss-player-signout[hidden],.ss-player-auth-status[hidden]{display:none!important}
.ss-player-auth-status{width:min(var(--max),calc(100% - 52px));margin:0 auto;padding:0 0 12px;color:var(--text-soft);font-size:12px;text-align:right}.ss-player-auth-status.is-error{color:#ffb4a0}
@media(max-width:760px){.main-nav{overflow:visible}.ss-player-account{flex:1 0 100%;margin:6px 0 0;gap:10px}.main-nav .ss-player-nav{flex:1;min-height:44px}.ss-player-signout{min-width:88px}.ss-player-auth-status{text-align:left;padding-top:5px}}
@media(prefers-reduced-motion:reduce){.main-nav .ss-player-nav{transition:none}.main-nav .ss-player-nav:hover{transform:none}}
