/* SXVXN Streets public homepage 0.9.5. Scoped homepage presentation. */
.ss-home-feature {
    margin: 0 0 22px;
    border: 1px solid #3b3423;
    border-radius: 18px;
    overflow: hidden;
    background: #101216;
    box-shadow: 0 20px 70px #0004;
}
.ss-home-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 390px;
    aspect-ratio: 2109 / 745;
}
.ss-home-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    background: #11100b;
}
.ss-home-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ss-home-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #07090df5 0%, #07090ddd 28%, #07090d9e 43%, #07090d00 59%);
    pointer-events: none;
}
.ss-home-feature .ss-home-copy {
    width: 48%;
    padding: 36px 0 38px 36px;
}
.ss-home-copy .hero-kicker {
    color: #e4bb56;
    font-size: 9px;
    letter-spacing: .14em;
}
.ss-home-copy h1 {
    margin: 15px 0 18px;
    color: #f8f7f3;
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-transform: uppercase;
}
.ss-home-copy h1 span { color: #ffc43a; }
.ss-home-feature .ss-home-copy > p {
    max-width: 410px;
    margin: 0;
    color: #c4c8cf;
    font-size: 14px;
    line-height: 1.65;
}
.ss-home-copy .hero-actions { gap: 9px; margin-top: 24px; }
.ss-home-copy .button { min-height: 44px; font-size: 12px; }
.ss-home-copy .button:not(.primary) {
    border-color: #ffffff3b;
    background: #101318cc;
}
.ss-home-feature .ss-home-start {
    display: grid;
    grid-template-columns: minmax(210px, .95fr) minmax(0, 1.8fr) auto;
    gap: 0 28px;
    padding: 23px 30px 17px;
    border: 0;
    border-top: 1px solid #61501f;
    border-radius: 0;
    background: linear-gradient(110deg, #17181c, #101216);
}
.ss-home-start-intro { align-self: center; }
.ss-home-start-intro .section-label { color: #9a906f; font-size: 9px; }
.ss-home-start-intro h2 { margin: 7px 0 0; font-size: 19px; line-height: 1.25; }
.ss-home-start .ss-entry-route {
    min-width: 0;
    gap: 13px;
    padding: 0 0 0 26px;
    border: 0;
    border-left: 1px solid #303036;
}
.ss-home-start .ss-entry-route strong { font-size: 12px; }
.ss-home-start .ss-entry-route span { max-width: 340px; font-size: 11px; line-height: 1.6; }
.ss-start-command {
    display: flex;
    align-items: center;
    justify-self: start;
    overflow: hidden;
    border: 1px solid #665222;
    border-radius: 9px;
    background: #211d11;
}
.ss-home-start .ss-entry-route code {
    min-width: 76px;
    padding: 11px 12px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    color: #ffc43a;
    background: transparent;
}
.ss-start-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid #665222;
    color: #f4e5b9;
    background: #ffc43a0a;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.ss-start-copy[hidden] { display: none; }
.ss-home-start .ss-start-copy span { margin: 0; font-size: 10px; line-height: 1; }
.ss-start-copy:hover { background: #ffc43a20; }
.ss-start-copy:focus-visible { outline: 2px solid #ffc43a; outline-offset: -3px; }
.ss-start-copy:disabled { opacity: .65; cursor: wait; }
.ss-home-start .ss-start-link { min-height: 44px; min-width: 140px; align-self: center; font-size: 12px; }
.ss-start-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    grid-column: 1 / -1;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #292c32;
}
.ss-start-feedback { min-height: 18px; color: #c7bc9d; font-size: 10px; line-height: 1.5; }
.ss-start-footer .text-link {
    flex: 0 0 auto;
    margin-left: auto;
    color: #e3d9be;
    font-size: 11px;
    text-align: right;
}
.ss-start-footer .text-link:hover { color: #ffc43a; }
@media (max-width: 1100px) {
    .ss-home-banner { display: block; min-height: 0; aspect-ratio: auto; }
    .ss-home-art { position: relative; z-index: auto; aspect-ratio: 2109 / 745; }
    .ss-home-banner::after { display: none; }
    .ss-home-feature .ss-home-copy {
        width: 100%;
        padding: 28px;
        border-top: 1px solid #3b321f;
        background: linear-gradient(150deg, #191a1e, #101216);
    }
    .ss-home-copy h1 { font-size: 35px; }
    .ss-home-feature .ss-home-copy > p { max-width: 640px; font-size: 13px; }
    .ss-home-feature .ss-home-start { gap: 18px 26px; grid-template-columns: minmax(0, 1fr) auto; }
    .ss-home-start-intro { grid-column: 1 / -1; }
    .ss-home-start .ss-entry-route { padding: 0; border-left: 0; }
    .ss-start-footer { margin-top: 0; }
}
@media (max-width: 760px) {
    .ss-home-feature { border-radius: 13px; margin-bottom: 18px; }
    .ss-home-banner { display: block; min-height: 0; aspect-ratio: auto; }
    .ss-home-art { position: relative; z-index: auto; aspect-ratio: 2.2; }
    .ss-home-art img { object-position: right center; }
    .ss-home-banner::after { display: none; }
    .ss-home-feature .ss-home-copy {
        width: 100%;
        padding: 24px 22px 26px;
        border-top: 1px solid #3b321f;
        background: linear-gradient(150deg, #191a1e, #101216);
    }
    .ss-home-copy .hero-kicker { font-size: 8px; letter-spacing: .12em; }
    .ss-home-copy h1 { font-size: clamp(30px, 8vw, 42px); margin: 13px 0 16px; }
    .ss-home-feature .ss-home-copy > p { max-width: 520px; font-size: 13px; line-height: 1.6; }
    .ss-home-copy .hero-actions { margin-top: 21px; flex-direction: row; align-items: stretch; }
    .ss-home-copy .button { flex: 1 1 auto; padding: 0 13px; }
    .ss-home-feature .ss-home-start { padding: 22px; gap: 18px; grid-template-columns: 1fr; }
    .ss-home-start-intro h2 { font-size: 19px; }
    .ss-home-start .ss-entry-route {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        padding: 17px 0 0;
        border-top: 1px solid #292c32;
    }
    .ss-home-start .ss-entry-route strong { font-size: 12px; }
    .ss-home-start .ss-entry-route span { max-width: none; font-size: 12px; }
    .ss-home-start .ss-entry-route code { width: auto; min-width: 84px; }
    .ss-start-footer { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 16px; }
    .ss-start-feedback:empty { min-height: 0; }
    .ss-start-feedback:not(:empty) { margin-bottom: 12px; }
    .ss-start-footer .text-link { margin-left: 0; text-align: left; font-size: 11px; }
}

/* City control: rank, identity and territory each have their own layout space. */
.ss-city-control > .section-heading > div { min-width: 0; }
.ss-city-control > .section-heading > .text-link { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
.ss-city-leaders {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    grid-auto-rows: minmax(76px, auto);
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ss-city-leader { min-width: 0; }
.ss-city-leader--featured { grid-row: span var(--ss-rank-rows, 4); }
.ss-city-leader-card {
    display: grid;
    grid-template-columns: 34px 40px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-width: 0;
    padding: 13px 20px;
    border: 1px solid #282e38;
    border-radius: 12px;
    background: linear-gradient(115deg, #14181f, #101318);
    text-decoration: none;
}
a.ss-city-leader-card { transition: border-color .15s ease, background .15s ease; }
a.ss-city-leader-card:hover { border-color: #756139; background: #191c23; }
a.ss-city-leader-card:focus-visible { outline: 2px solid #ffc43a; outline-offset: 3px; }
.ss-city-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #343b46;
    border-radius: 8px;
    color: #a4acb9;
    background: #0c0f14;
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.ss-city-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid #39404b;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #34383f, #171b22);
    color: #ddd3b7;
    font-size: 18px;
    font-weight: 800;
}
.ss-city-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ss-city-avatar > span { display: grid; place-items: center; width: 100%; height: 100%; }
.ss-city-avatar > [hidden] { display: none; }
.ss-city-player { min-width: 0; }
.ss-city-player h3 {
    margin: 0;
    color: #f0f1f4;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.ss-city-username { display: block; margin-top: 3px; color: #9199a7; font-size: 10px; overflow-wrap: anywhere; }
.ss-city-open { display: block; margin-top: 4px; color: #b9ad8d; font-size: 10px; line-height: 1.4; }
a.ss-city-leader-card:hover .ss-city-open { color: #ffce60; }
.ss-city-districts { min-width: 0; text-align: right; }
.ss-city-districts strong { display: block; color: #f1d58d; font-size: 25px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ss-city-districts > span { display: block; margin-top: 5px; color: #8d96a4; font-size: 10px; }
.ss-city-leader--unclaimed .ss-city-districts strong { color: #aeb5c0; }
.ss-city-leader--featured .ss-city-leader-card {
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 20px 18px;
    padding: 25px;
    border-color: #766032;
    border-radius: 15px;
    background: radial-gradient(ellipse at 100% 0, #604a152b, transparent 70%), linear-gradient(150deg, #232014, #101318 75%);
    box-shadow: inset 0 2px 0 #ffc43a80;
}
.ss-city-leader--featured .ss-city-rank { grid-column: 1; grid-row: 1; justify-self: start; color: #ffc43a; border-color: #6b5426; background: #ffc43a12; }
.ss-city-leader-label { grid-column: 2; grid-row: 1; justify-self: end; color: #d7b971; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ss-city-leader--featured .ss-city-avatar { grid-column: 1; grid-row: 2; width: 66px; height: 66px; border-color: #80662b; background: radial-gradient(circle at 20% 10%, #655126, #242113 75%); color: #ffd878; font-size: 29px; }
.ss-city-leader--featured .ss-city-player { grid-column: 2; grid-row: 2; }
.ss-city-leader--featured h3 { font-size: clamp(22px, 2.1vw, 29px); line-height: 1.15; }
.ss-city-leader--featured .ss-city-username { margin-top: 5px; font-size: 11px; }
.ss-city-leader--featured .ss-city-districts { display: flex; align-items: baseline; gap: 11px; grid-column: 1 / -1; grid-row: 3; align-self: center; text-align: left; }
.ss-city-leader--featured .ss-city-districts strong { color: #ffc43a; font-size: 62px; letter-spacing: -.055em; }
.ss-city-leader--featured .ss-city-districts > span { color: #b8b3a5; font-size: 12px; }
.ss-city-footprint { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; grid-column: 1 / -1; grid-row: 4; color: #a19b8c; font-size: 10px; }
.ss-city-track { display: block; overflow: hidden; grid-column: 1 / -1; height: 5px; margin-bottom: 3px; border-radius: 4px; background: #ffffff0e; }
.ss-city-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bb8620, #ffd366); }
.ss-city-footprint .ss-city-open { margin: 0; text-align: right; }
.ss-city-leaders--solo { grid-template-columns: 1fr; }
.ss-city-leaders--solo .ss-city-leader--featured { grid-row: auto; }
.ss-city-empty { padding: 30px; border: 1px solid #32302a; border-radius: 13px; background: linear-gradient(130deg, #1e1c14, #101318); }
.ss-city-empty h3 { margin: 0 0 8px; color: #f3e9cd; font-size: 19px; }
.ss-city-empty p { margin: 0; color: #929aa6; font-size: 13px; line-height: 1.6; }
@media (max-width: 1000px) {
    .ss-city-leaders { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .ss-city-leader-card { gap: 10px; padding: 13px; }
    .ss-city-leader--featured .ss-city-leader-card { padding: 22px; gap: 19px 14px; }
    .ss-city-leader--featured h3 { font-size: 23px; }
}
@media (max-width: 760px) {
    .ss-city-leaders { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ss-city-leader--featured { grid-row: auto; }
    .ss-city-leader--featured .ss-city-leader-card { grid-template-rows: auto auto auto auto; gap: 19px 16px; padding: 22px; }
    .ss-city-leader--featured .ss-city-player { grid-column: 2; grid-row: 2; }
    .ss-city-leader--featured .ss-city-districts { grid-row: 3; }
    .ss-city-leader--featured .ss-city-footprint { grid-row: 4; }
    .ss-city-leader--featured h3 { font-size: 24px; }
    .ss-city-leader--featured .ss-city-districts strong { font-size: 52px; }
    .ss-city-leader-card { padding: 14px; grid-template-columns: 32px 36px minmax(0, 1fr) 58px; }
    .ss-city-avatar { width: 36px; height: 36px; }
    .ss-city-player h3 { font-size: 13px; }
    .ss-city-districts strong { font-size: 23px; }
}
@media (max-width: 400px) {
    .ss-city-leader:not(.ss-city-leader--featured) .ss-city-leader-card { grid-template-columns: 32px minmax(0, 1fr) 54px; }
    .ss-city-leader:not(.ss-city-leader--featured) .ss-city-avatar { display: none; }
    .ss-city-leader--featured .ss-city-leader-card { grid-template-columns: 48px minmax(0, 1fr); padding: 19px; gap: 17px 13px; }
    .ss-city-leader--featured .ss-city-avatar { width: 48px; height: 48px; font-size: 23px; }
    .ss-city-leader--featured h3 { font-size: 22px; }
    .ss-city-footprint { grid-template-columns: 1fr; }
    .ss-city-footprint .ss-city-open { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    a.ss-city-leader-card { transition: none; }
}
