@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: dark;
    --bg: #070707;
    --bg-soft: #101010;
    --panel: rgba(16, 16, 16, 0.88);
    --panel-strong: rgba(22, 22, 22, 0.96);
    --line: rgba(255, 255, 255, 0.12);
    --line-gold: rgba(212, 175, 55, 0.36);
    --gold: #d4af37;
    --gold-2: #f0d28a;
    --red: #b82018;
    --red-soft: rgba(184, 32, 24, 0.18);
    --green: #79c753;
    --blue: #2788d8;
    --cyan: #43b7d7;
    --purple: #9958ce;
    --amber: #d69326;
    --text: #f5f5f5;
    --muted: #a8a8a8;
    --faint: #666;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    --radius: 8px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body.game-shell {
    position: relative;
    isolation: isolate;
    background: #050505;
}

body.game-shell::before,
body.game-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.game-shell::before {
    z-index: -2;
    background: url("../img/login-arkaplan.png") center center / cover no-repeat;
}

body.game-shell::after {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 2, 2, 0.36), rgba(2, 2, 2, 0.68)),
        radial-gradient(circle at 50% 24%, transparent 0 24%, rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0.68) 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.app-frame {
    width: min(1480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
}

.sidebar,
.topbar,
.game-card,
.page-hero,
.bottom-nav,
.login-card,
.login-art {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(10, 10, 10, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.sidebar {
    position: sticky;
    top: 14px;
    height: calc(100vh - 28px);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

.brand-mark {
    min-height: 136px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--gold-2);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

.brand-mark img {
    width: min(168px, 82%);
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.22));
}

.brand-crown {
    color: var(--gold);
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

.brand-mark strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1;
}

.brand-mark em {
    color: #b98b2d;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 0;
}

.side-menu {
    padding: 10px 8px 4px;
}

.side-menu a {
    min-height: 48px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #ddd;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
}

.side-menu a span,
.bottom-nav span,
.metric-icon,
.item-symbol {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.22);
}

.side-menu a span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: block;
    fill: currentColor;
    shape-rendering: geometricPrecision;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.24));
}

.sidebar-groups {
    padding: 4px 8px 12px;
    display: grid;
    gap: 12px;
}

.side-group {
    display: grid;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.side-group h3 {
    margin: 0 0 4px;
    padding: 0 12px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.side-group a,
.side-logout {
    min-height: 42px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #d8d8d8;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.side-group a span,
.side-logout span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.side-group a b,
.side-logout b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.side-group a:hover,
.side-group a.active,
.side-logout:hover {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.22);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.02));
}

.side-logout {
    width: 100%;
    font: inherit;
}

.side-menu a b {
    font-size: 13px;
    font-weight: 600;
}

.side-menu a small {
    color: var(--gold);
    font-size: 11px;
}

.side-menu a:hover,
.side-menu a.active {
    background: linear-gradient(90deg, rgba(184, 32, 24, 0.6), rgba(184, 32, 24, 0.12));
    border-color: rgba(184, 32, 24, 0.65);
}

.sidebar-promo {
    flex: 0 0 auto;
    margin: 0 12px 12px;
    padding: 18px 14px;
    min-height: 142px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.86)),
        url("../img/ref-council.png") center / cover;
    display: grid;
    align-content: end;
    gap: 8px;
}

.sidebar-promo span {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

.sidebar-promo strong {
    font-size: 28px;
    color: var(--gold-2);
}

.sidebar-promo a {
    display: inline-flex;
    justify-content: center;
    padding: 11px 14px;
    background: linear-gradient(180deg, #c79737, #7b521b);
    border: 1px solid rgba(240, 210, 138, 0.42);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
    display: none;
}

.main-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    min-height: 86px;
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.player-chip {
    display: grid;
    grid-template-columns: 70px minmax(170px, 1fr);
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.avatar-orb {
    width: 66px;
    aspect-ratio: 1;
    display: block;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)),
        url("../img/ref-style.png") 18% 58% / 360px auto;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.player-chip strong,
.profile-mini strong {
    display: block;
    font-size: 18px;
}

.player-chip em,
.profile-mini span {
    display: block;
    margin-top: 4px;
    color: var(--gold-2);
    font-style: normal;
    font-size: 13px;
}

.player-chip i {
    width: 220px;
    height: 7px;
    display: block;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.player-chip i span,
.progress-track span,
.mini-progress span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #b57a24, var(--gold-2));
    border-radius: inherit;
}

.resource-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-pill,
.icon-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 7px;
    text-decoration: none;
}

.resource-pill span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.resource-pill strong {
    white-space: nowrap;
}

.resource-pill button,
.icon-button {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.icon-button {
    position: relative;
    font-size: 26px;
}

.icon-button small {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    font-size: 11px;
}

.game-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
}

.page-hero {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius);
    padding: 44px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(90deg, rgba(6, 6, 6, 0.88), rgba(6, 6, 6, 0.38)),
        var(--hero-art, url("../img/ref-dashboard.png")) center / cover;
}

.page-hero.small-hero {
    min-height: 260px;
}

.page-hero h1 {
    max-width: 720px;
    margin: 8px 0 10px;
    color: #fff;
    font-size: 38px;
    line-height: 1.05;
    text-transform: uppercase;
}

.page-hero p {
    max-width: 620px;
    margin: 0;
    color: #e2e2e2;
    line-height: 1.6;
}

.eyebrow,
.card-title-row h2,
.section-card h2 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow {
    font-weight: 800;
    font-size: 13px;
}

.event-timer,
.locked-badge {
    min-width: 260px;
    padding: 18px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.72);
    text-align: center;
}

.event-timer span,
.locked-badge span {
    display: block;
    color: #d8d8d8;
    font-size: 12px;
    text-transform: uppercase;
}

.event-timer strong,
.locked-badge strong {
    display: block;
    margin-top: 8px;
    color: var(--gold-2);
    font-size: 28px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-6 {
    grid-column: span 6;
}

.span-7 {
    grid-column: span 7;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

.content-grid > .span-8,
.content-grid > .span-4,
.content-grid > aside.span-4 {
    display: grid;
    gap: 14px;
    align-content: start;
}

.game-card {
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.card-title-row h2,
.section-card h2 {
    margin: 0;
    font-size: 18px;
}

.muted {
    color: var(--muted);
    line-height: 1.55;
}

.metrics-grid,
.quick-grid,
.shop-grid,
.district-grid {
    display: grid;
    gap: 12px;
}

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

.metric-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.25);
}

.metric-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 7px;
    background: rgba(212, 175, 55, 0.09);
    font-size: 32px;
    line-height: 1;
}

.metric-card strong {
    display: block;
    font-size: 20px;
}

.metric-card span:last-child {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

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

.quick-action {
    min-height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 14px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.quick-action span {
    color: var(--gold);
    font-size: 48px;
    line-height: 1;
}

.quick-action strong {
    font-size: 12px;
    text-transform: uppercase;
}

.mission-list,
.item-list,
.battle-report-list {
    display: grid;
    gap: 10px;
}

.mission-row,
.list-item,
.report-row {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.23);
}

.mission-row {
    grid-template-columns: 24px 1fr auto;
}

.mission-check {
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.mission-check.done {
    border-color: rgba(121, 199, 83, 0.7);
    background: radial-gradient(circle, var(--green), transparent 62%);
}

.mission-row strong,
.list-item strong,
.report-row strong {
    display: block;
    font-size: 14px;
}

.mini-progress {
    height: 5px;
    margin-top: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.district-map {
    position: relative;
    min-height: 400px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76)),
        url("../img/ref-conflict.png") center / cover;
}

.district-node {
    position: absolute;
    width: 150px;
    padding: 12px;
    text-align: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.78);
    box-shadow: 0 0 32px color-mix(in srgb, currentColor 36%, transparent);
}

.district-node strong,
.district-card strong {
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
}

.district-node span,
.district-card span {
    display: block;
    margin-top: 4px;
    color: #dedede;
    font-size: 12px;
}

.district-node.red { color: #ff493f; left: 44%; top: 39%; }
.district-node.green { color: #64c55b; left: 31%; top: 16%; }
.district-node.blue { color: #3794e8; right: 16%; top: 23%; }
.district-node.cyan { color: #43b7d7; right: 19%; bottom: 12%; }
.district-node.amber { color: #d69326; left: 12%; top: 42%; }
.district-node.purple { color: #a86be4; left: 19%; bottom: 16%; }

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

.district-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.24);
}

.status-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.status-line b {
    color: var(--gold-2);
}

.bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 210px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.bar-item {
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.bar-item i {
    width: 32px;
    height: var(--bar-height);
    display: block;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--bar-color), rgba(255, 255, 255, 0.1));
}

.family-emblem {
    min-height: 230px;
    display: grid;
    place-items: center;
    text-align: center;
}

.crest,
.family-emblem .crest {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 2px solid var(--line-gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 32, 24, 0.28), rgba(0, 0, 0, 0.72));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 74px;
}

.game-btn:disabled,
.quick-action:disabled,
.resource-pill button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.profile-mini {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.profile-mini .avatar-orb {
    width: 56px;
}

.stacked-stats {
    display: grid;
    gap: 10px;
}

.stacked-stats div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.stacked-stats span,
.member-list small {
    color: var(--muted);
}

.member-list {
    display: grid;
    gap: 10px;
}

.member-list div {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
}

.member-list small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.rank-num {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
}

.list-item {
    grid-template-columns: 48px 1fr auto auto;
}

.item-symbol {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(212, 175, 55, 0.08);
    font-size: 32px;
    line-height: 1;
}

.item-main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.item-reward {
    color: var(--gold-2);
    font-weight: 700;
    white-space: nowrap;
}

.game-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    color: #fff;
    border: 1px solid rgba(240, 210, 138, 0.35);
    border-radius: 6px;
    background: linear-gradient(180deg, #c79737, #79501a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.game-btn span {
    font-size: 22px;
    line-height: 1;
}

.game-btn.compact {
    min-height: 36px;
    padding: 0 12px;
}

.game-btn.compact span {
    font-size: 16px;
}

.game-btn.danger {
    background: linear-gradient(180deg, #a8261f, #66120d);
    border-color: rgba(255, 100, 90, 0.4);
}

.game-btn.ghost {
    background: rgba(255, 255, 255, 0.04);
}

.battle-versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.battle-versus strong {
    display: block;
    color: var(--gold-2);
    font-size: 30px;
}

.battle-versus em {
    color: var(--red);
    font-style: normal;
    font-size: 40px;
    font-weight: 800;
}

.unit-grid,
.tax-grid,
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.unit-card,
.tax-row,
.shop-tile {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.24);
}

.unit-card strong,
.shop-tile strong {
    display: block;
    margin-top: 12px;
}

.unit-card span,
.shop-tile span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.tax-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 10px;
}

.tax-row button {
    width: 32px;
    height: 32px;
    color: var(--gold);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.report-row {
    grid-template-columns: 46px 1fr auto auto;
}

.report-row .state {
    color: var(--green);
}

.report-row .state.red {
    color: #ff554b;
}

.report-row .state.blue {
    color: #71bfff;
}

.locked-panel {
    border-color: rgba(184, 32, 24, 0.42);
    background: linear-gradient(180deg, rgba(184, 32, 24, 0.12), rgba(14, 14, 14, 0.92));
}

.progress-track {
    width: 100%;
    height: 8px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.bottom-nav {
    display: none;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    max-width: 360px;
    padding: 14px 16px;
    color: #fff;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: rgba(16, 16, 16, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: rgba(255, 80, 70, 0.6);
}

.city-map-system {
    display: grid;
    gap: 14px;
}

.city-map-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.city-map-toolbar article {
    min-height: 84px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.9));
}

.city-map-toolbar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.city-map-toolbar strong {
    display: block;
    margin-top: 8px;
    color: var(--gold-2);
    font-size: 22px;
}

.city-map-card {
    min-height: 690px;
}

.svg-map-wrap {
    position: relative;
    min-height: 600px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.07), transparent 32%),
        linear-gradient(180deg, rgba(13, 18, 22, 0.95), rgba(4, 4, 5, 0.98));
}

.city-svg {
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: block;
}

.city-road {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 12;
    stroke-linecap: round;
}

.city-river {
    fill: none;
    stroke: rgba(67, 183, 215, 0.18);
    stroke-width: 26;
    stroke-linecap: round;
}

.district-layer {
    cursor: pointer;
}

.district-poly {
    stroke-width: 3;
    stroke-linejoin: round;
    transition: opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.district-layer:hover .district-poly,
.district-poly:hover {
    opacity: 0.92;
    stroke-width: 5;
}

.status-player {
    fill: rgba(85, 190, 86, 0.28);
    stroke: #55be56;
    color: #55be56;
}

.status-ally {
    fill: rgba(39, 136, 216, 0.28);
    stroke: #2788d8;
    color: #2788d8;
}

.status-enemy {
    fill: rgba(184, 32, 24, 0.31);
    stroke: #e0443a;
    color: #e0443a;
}

.status-neutral {
    fill: rgba(148, 148, 148, 0.18);
    stroke: #8a8a8a;
    color: #8a8a8a;
}

.status-war {
    fill: rgba(214, 147, 38, 0.34);
    stroke: #f0a832;
    color: #f0a832;
    animation: warPulse 1.05s ease-in-out infinite;
}

@keyframes warPulse {
    0%, 100% {
        opacity: 0.72;
        filter: drop-shadow(0 0 8px rgba(240, 168, 50, 0.34));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 24px rgba(240, 168, 50, 0.8));
    }
}

.district-map-label {
    pointer-events: none;
}

.district-map-label rect {
    fill: rgba(10, 10, 10, 0.78);
    stroke: rgba(212, 175, 55, 0.42);
}

.district-map-label text {
    fill: #fff;
    font-size: 13px;
    font-weight: 800;
    text-anchor: middle;
    text-transform: uppercase;
}

.district-map-label text:nth-of-type(2),
.district-map-label text:nth-of-type(3) {
    fill: var(--gold-2);
    font-size: 11px;
    font-weight: 600;
}

.attack-arrow {
    fill: none;
    stroke: #ff554b;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 18 13;
    filter: drop-shadow(0 0 12px rgba(255, 85, 75, 0.72));
    animation: attackFlow 0.8s linear infinite;
}

@keyframes attackFlow {
    to {
        stroke-dashoffset: -31;
    }
}

.city-map-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.map-legend {
    display: grid;
    gap: 10px;
}

.map-legend div {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.24);
}

.map-legend i,
.district-table-row .dot {
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 16px currentColor;
}

.district-table-grid {
    display: grid;
    gap: 8px;
}

.district-table-row {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 18px 1.4fr 0.7fr 1fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    color: #fff;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.23);
    cursor: pointer;
}

.district-table-row:hover {
    border-color: var(--line-gold);
}

.district-table-row span {
    color: var(--muted);
    font-size: 12px;
}

.district-table-row .dot.status-player { color: #55be56; }
.district-table-row .dot.status-ally { color: #2788d8; }
.district-table-row .dot.status-enemy { color: #e0443a; }
.district-table-row .dot.status-neutral { color: #8a8a8a; }
.district-table-row .dot.status-war { color: #f0a832; }

.district-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.district-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.district-modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: min(860px, calc(100vh - 36px));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9b6d1e rgba(0, 0, 0, 0.32);
    padding: 22px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.98)),
        url("../img/ref-conflict.png") center / cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.68);
}

.district-modal-panel::-webkit-scrollbar {
    width: 9px;
}

.district-modal-panel::-webkit-scrollbar-thumb {
    border: 2px solid #090909;
    border-radius: 999px;
    background: linear-gradient(180deg, #d6a84f, #70430d);
}

.district-modal-panel > header {
    position: sticky;
    top: -22px;
    z-index: 8;
    margin: -22px -22px 18px;
    padding: 22px 66px 14px 22px;
    border-bottom: 1px solid rgba(214, 168, 79, 0.16);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.99), rgba(12, 12, 12, 0.96));
    backdrop-filter: blur(8px);
}

.district-modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    margin-bottom: -38px;
    z-index: 10;
}

.district-modal-panel header {
    padding-right: 44px;
    margin-bottom: 18px;
}

.district-modal-panel h2 {
    margin: 8px 0;
    color: var(--gold-2);
    font-size: 30px;
    text-transform: uppercase;
}

.district-modal-panel p {
    margin: 0;
    color: var(--muted);
}

.district-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(184, 32, 24, 0.35);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.district-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.district-detail-metric,
.income-breakdown,
.battle-preview,
.district-history {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.38);
}

.district-detail-metric span,
.income-breakdown span,
.battle-preview span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.district-detail-metric strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 15px;
}

.income-breakdown,
.battle-preview,
.district-history {
    margin-top: 12px;
}

.income-breakdown h3,
.battle-preview h3,
.district-history h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 15px;
    text-transform: uppercase;
}

.income-breakdown div,
.battle-preview div:not(.chance-track) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.income-breakdown div:last-child,
.battle-preview div:last-of-type {
    border-bottom: 0;
}

.income-breakdown strong,
.battle-preview strong {
    color: var(--gold-2);
}

.chance-track {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.chance-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.district-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.history-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.history-columns ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-columns li {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.history-columns strong {
    color: var(--gold-2);
    text-transform: uppercase;
    font-size: 12px;
}

.history-columns span {
    color: #ddd;
    line-height: 1.45;
}

.history-columns em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.map-loading {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--gold-2);
}

.map-loading.error {
    color: #ff756e;
    border-color: rgba(255, 85, 75, 0.5);
}

.turkey-strategy {
    display: grid;
    gap: 14px;
}

.strategy-top-nav {
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(28, 28, 28, 0.94), rgba(6, 6, 6, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 45%);
    box-shadow: var(--shadow);
}

.strategy-top-nav a {
    display: grid;
    place-items: center;
    min-height: 42px;
    color: #d6d0c2;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.strategy-top-nav a:hover,
.strategy-top-nav a.active {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.42);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(184, 32, 24, 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(212, 175, 55, 0.12);
}

.turkey-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
}

.turkey-map-card {
    min-height: 690px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(5, 5, 5, 0.96)),
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08), transparent 38%);
}

.turkey-map-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.turkey-title-lockup {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.turkey-title-lockup img {
    width: 150px;
    max-height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.22));
}

.turkey-map-head h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1;
    text-transform: uppercase;
}

.turkey-map-head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.turkey-map-stats {
    min-width: 340px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.turkey-map-stats article {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.32);
}

.turkey-map-stats span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.turkey-map-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--gold-2);
    font-size: 15px;
}

.turkey-map-shell {
    position: relative;
    min-height: clamp(560px, 66vh, 760px);
    height: clamp(560px, 66vh, 760px);
    display: grid;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(2, 3, 4, 0.38), rgba(2, 3, 4, 0.92)),
        radial-gradient(circle at 42% 42%, rgba(212, 175, 55, 0.12), transparent 28%),
        radial-gradient(circle at 78% 50%, rgba(184, 32, 24, 0.10), transparent 30%),
        url("../img/login-arkaplan.png") center / cover,
        linear-gradient(180deg, #081018, #020304);
}

.turkey-map-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, transparent 90%);
}

.turkey-map-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 26% 70%, rgba(255,255,255,.08), transparent 34%),
        radial-gradient(ellipse at 76% 28%, rgba(212,175,55,.08), transparent 40%),
        linear-gradient(90deg, rgba(0,0,0,.65), transparent 48%, rgba(0,0,0,.55));
    filter: blur(.2px);
}

.turkey-map-loading {
    position: absolute;
    inset: 18px;
    z-index: 3;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    font-weight: 800;
    text-transform: uppercase;
}

.turkey-map-loading.error {
    color: #ff756e;
    border-color: rgba(255, 85, 75, 0.55);
}

.turkey-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
}

.geojson-province-layer,
.geojson-war-layer,
.geojson-label-layer {
    position: relative;
}

.turkey-coastline {
    fill: rgba(255, 255, 255, 0.025);
    stroke: rgba(212, 175, 55, 0.2);
    stroke-width: 2;
}

.turkey-route {
    fill: none;
    stroke: rgba(212, 175, 55, 0.18);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 12 16;
}

.turkey-poly {
    stroke-width: 3.4;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill markers;
    cursor: pointer;
    opacity: 0.96;
    transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease, opacity .2s ease, filter .2s ease;
}

.turkey-poly.status-player {
    fill: rgba(50, 210, 113, 0.34);
    stroke: #52ff98;
    color: #52ff98;
    filter: drop-shadow(0 0 8px rgba(82, 255, 152, 0.42));
}

.turkey-poly.status-ally {
    fill: rgba(55, 156, 255, 0.32);
    stroke: #55b7ff;
    color: #55b7ff;
    filter: drop-shadow(0 0 8px rgba(85, 183, 255, 0.42));
}

.turkey-poly.status-enemy {
    fill: rgba(255, 60, 54, 0.34);
    stroke: #ff4e45;
    color: #ff4e45;
    filter: drop-shadow(0 0 8px rgba(255, 78, 69, 0.46));
}

.turkey-poly.status-neutral {
    fill: rgba(138, 145, 150, 0.20);
    stroke: rgba(210, 216, 220, 0.62);
    color: #aeb5ba;
    filter: drop-shadow(0 0 5px rgba(210, 216, 220, 0.18));
}

.turkey-poly.status-war {
    fill: rgba(255, 153, 38, 0.42);
    stroke: #ffb03b;
    color: #ffb03b;
    filter: drop-shadow(0 0 18px rgba(255, 176, 59, 0.78));
}

.turkey-poly:hover,
.turkey-province:hover .turkey-poly,
.turkey-poly.is-selected {
    stroke-width: 6;
    opacity: 1;
    filter: drop-shadow(0 0 24px currentColor);
}

.turkey-poly.is-selected {
    opacity: 1;
    stroke: var(--gold-2);
}

.turkey-label rect {
    fill: rgba(0, 0, 0, 0.78);
    stroke: rgba(212, 175, 55, 0.55);
}

.turkey-label text {
    fill: #fff;
    font-size: 14px;
    font-weight: 900;
    text-anchor: middle;
}

.turkey-label text:nth-of-type(2),
.turkey-label text:nth-of-type(3) {
    fill: var(--gold-2);
    font-size: 11px;
    font-weight: 700;
}

.turkey-label,
.turkey-label:not(.important) {
    display: none;
}

.turkey-label.important {
    opacity: .98;
}

.turkey-attack {
    stroke-width: 4;
}

.turkey-legend {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 14px;
}

.turkey-event-feed {
    display: grid;
    align-content: start;
    max-height: 760px;
    overflow: hidden;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff756e;
    font-size: 11px;
    font-weight: 900;
}

.live-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff554b;
    box-shadow: 0 0 16px #ff554b;
    animation: warPulse 1.1s ease-in-out infinite;
}

.feed-list {
    display: grid;
    gap: 10px;
}

.feed-item {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 13px 13px 13px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.feed-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: currentColor;
}

.feed-item.red { color: #ff554b; }
.feed-item.green { color: #79c753; }
.feed-item.blue { color: #43b7d7; }
.feed-item.purple { color: #a86be4; }

.feed-item span {
    color: currentColor;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-item strong {
    color: #fff;
    line-height: 1.35;
}

.feed-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
}

.selected-city-panel {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-color: rgba(212, 175, 55, 0.28);
    background:
        linear-gradient(180deg, rgba(23, 23, 23, 0.97), rgba(7, 7, 7, 0.97)),
        radial-gradient(circle at 0% 50%, rgba(212, 175, 55, 0.14), transparent 38%);
}

.selected-city-title span,
.selected-city-metrics span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.selected-city-title h2 {
    margin: 5px 0;
    color: var(--gold-2);
    font-size: 26px;
    text-transform: uppercase;
}

.selected-city-title em {
    color: #fff;
    font-style: normal;
}

.selected-city-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.selected-city-metrics article {
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.26);
}

.selected-city-metrics strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 15px;
}

.selected-city-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 9px;
}

.login-stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 18px;
    padding: 18px;
}

.login-art {
    min-height: calc(100vh - 36px);
    border-radius: var(--radius);
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.88)),
        url("../img/ref-dashboard.png") center / cover;
}

.login-logo {
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
}

.login-logo span {
    display: block;
    color: var(--gold);
    font-size: 68px;
    line-height: 0.8;
}

.login-logo strong {
    display: block;
    font-size: 58px;
    line-height: 0.92;
}

.login-art p {
    max-width: 520px;
    color: #e6e6e6;
    line-height: 1.65;
}

.login-panel {
    display: grid;
    place-items: center;
}

.login-card {
    width: min(100%, 460px);
    border-radius: var(--radius);
    padding: 30px;
}

.login-card h1 {
    margin: 0 0 8px;
    color: var(--gold-2);
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field span {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
}

.form-field textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.toggle-grid label {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: #e8e8e8;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.form-status {
    min-height: 18px;
    margin: 0;
    color: var(--gold-2);
    font-size: 13px;
}

.form-status.is-error {
    color: #ff8b84;
}

.support-list {
    display: grid;
    gap: 10px;
}

.support-ticket {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.support-ticket strong {
    color: #fff;
}

.support-ticket span,
.support-ticket em,
.rule-list {
    color: var(--muted);
}

.progress-panel {
    display: grid;
    gap: 10px;
}

.progress-panel span {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.progress-panel i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.login-links a {
    color: var(--gold-2);
    text-decoration: none;
}

.login-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.login-benefits div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-align: center;
}

.login-benefits strong {
    display: block;
    color: var(--gold-2);
}

.login-benefits span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1180px) {
    .app-frame {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .brand-mark {
        min-height: 96px;
    }

    .brand-mark strong,
    .brand-mark em,
    .side-menu a b,
    .side-menu a small,
    .sidebar-promo {
        display: none;
    }

    .side-menu a {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0;
    }

    .side-menu a span {
        width: 52px;
        height: 52px;
        font-size: 34px;
    }

    .side-menu .nav-icon {
        width: 36px;
        height: 36px;
    }

    .sidebar-groups {
        display: none;
    }

    .metrics-grid,
    .unit-grid,
    .tax-grid,
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .turkey-command-grid,
    .selected-city-panel {
        grid-template-columns: 1fr;
    }

    .turkey-map-head {
        flex-direction: column;
    }

    .turkey-title-lockup {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .turkey-title-lockup img {
        width: 132px;
    }

    .turkey-map-stats {
        min-width: 0;
    }

    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8 {
        grid-column: span 12;
    }
}

@media (max-width: 780px) {
    body.is-menu-open {
        overflow: hidden;
    }

    body {
        background-attachment: scroll;
    }

    body.game-shell::before {
        background-position: 54% center;
    }

    body.game-shell::after {
        background:
            linear-gradient(180deg, rgba(2, 2, 2, 0.42), rgba(2, 2, 2, 0.72)),
            radial-gradient(circle at 50% 20%, transparent 0 20%, rgba(0, 0, 0, 0.38) 68%, rgba(0, 0, 0, 0.72) 100%);
    }

    .app-frame {
        display: block;
        padding: 10px 10px 96px;
    }

    .sidebar {
        position: fixed;
        top: 8px;
        left: 8px;
        bottom: calc(88px + var(--safe-bottom));
        z-index: 80;
        width: min(360px, calc(100vw - 32px));
        height: auto;
        display: flex;
        transform: translateX(calc(-100% - 18px));
        transition: transform .24s ease;
    }

    body.is-menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scroll {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .brand-mark {
        min-height: 112px;
    }

    .brand-mark em,
    .side-menu a b,
    .side-menu a small {
        display: block;
    }

    .side-menu a {
        grid-template-columns: 46px 1fr auto;
        justify-items: stretch;
        min-height: 50px;
        padding: 0 12px;
    }

    .side-menu a span {
        width: 42px;
        height: 42px;
    }

    .side-menu .nav-icon {
        width: 32px;
        height: 32px;
    }

    .sidebar-groups {
        display: grid;
    }

    .sidebar-promo {
        min-height: 118px;
        display: grid;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: none;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
        backdrop-filter: blur(3px);
    }

    body.is-menu-open .mobile-menu-backdrop {
        display: block;
    }

    .topbar {
        position: static;
        min-height: auto;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .mobile-menu-toggle {
        min-height: 46px;
        width: max-content;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 14px;
        color: var(--gold-2);
        border: 1px solid var(--line-gold);
        border-radius: 7px;
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0.36));
        box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
        font-weight: 800;
        text-transform: uppercase;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
    }

    .mobile-menu-toggle .nav-icon {
        width: 28px;
        height: 28px;
    }

    .player-chip {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .avatar-orb {
        width: 54px;
    }

    .player-chip i {
        width: 100%;
    }

    .resource-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .resource-pill {
        min-width: 0;
        min-height: 46px;
        gap: 6px;
        padding: 0 8px;
    }

    .resource-pill span {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .resource-pill strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .icon-button {
        display: none;
    }

    .page-hero,
    .page-hero.small-hero {
        min-height: 260px;
        padding: 24px;
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-end;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .event-timer,
    .locked-badge {
        width: 100%;
        min-width: 0;
    }

    .content-grid,
    .metrics-grid,
    .quick-grid,
    .district-grid,
    .unit-grid,
    .tax-grid,
    .shop-grid,
    .toggle-grid,
    .turkey-map-stats,
    .selected-city-metrics,
    .city-map-toolbar,
    .district-detail-grid,
    .history-columns,
    .login-stage {
        grid-template-columns: 1fr;
    }

    .span-3,
    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: auto;
    }

    .game-card {
        padding: 16px;
    }

    .strategy-top-nav {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        justify-content: start;
        scrollbar-width: none;
    }

    .strategy-top-nav a {
        padding: 0 14px;
    }

    .turkey-map-head h1 {
        font-size: 28px;
    }

    .page-sehir-haritasi .app-frame {
        padding-left: 6px;
        padding-right: 6px;
    }

    .page-sehir-haritasi .turkey-map-card {
        padding: 8px;
    }

    .page-sehir-haritasi .turkey-map-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .page-sehir-haritasi .turkey-title-lockup {
        gap: 10px;
    }

    .page-sehir-haritasi .turkey-title-lockup img {
        width: 112px;
    }

    .turkey-map-shell,
    .turkey-svg {
        min-height: clamp(420px, 84svh, 680px);
    }

    .turkey-svg {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    .turkey-map-shell {
        height: clamp(420px, 84svh, 680px);
        overflow: hidden;
    }

    .turkey-label:not(.important) {
        display: none;
    }

    .turkey-label text {
        font-size: 42px;
    }

    .turkey-label text:nth-of-type(2),
    .turkey-label text:nth-of-type(3) {
        display: none;
    }

    .turkey-label rect {
        transform-box: fill-box;
        transform-origin: center;
        transform: scale(1.28, 1.08);
    }

    .turkey-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selected-city-actions {
        grid-template-columns: 1fr;
    }

    .district-map {
        min-height: 520px;
    }

    .city-map-card {
        min-height: auto;
    }

    .svg-map-wrap,
    .city-svg {
        min-height: 520px;
    }

    .turkey-map-shell,
    .city-svg.turkey-svg {
        min-height: clamp(360px, 82svh, 620px);
    }

    .city-svg.turkey-svg {
        height: 100%;
    }

    .district-map-label text {
        font-size: 12px;
    }

    .district-table-row {
        grid-template-columns: 16px 1fr;
        align-items: start;
        padding: 12px;
    }

    .district-table-row span:not(.dot) {
        grid-column: 2;
    }

    .district-modal {
        padding: 10px;
        place-items: end center;
    }

    .district-modal-panel {
        max-height: calc(100vh - 20px);
        padding: 18px;
    }

    .district-actions .game-btn {
        width: 100%;
    }

    .district-node {
        position: static;
        width: auto;
        margin: 10px;
    }

    .list-item,
    .report-row {
        grid-template-columns: 42px 1fr;
    }

    .item-reward,
    .list-item .game-btn,
    .report-row .game-btn,
    .report-row .state {
        grid-column: 2;
        justify-self: start;
    }

    .battle-versus {
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: calc(8px + var(--safe-bottom));
        z-index: 50;
        min-height: 72px;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .bottom-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        color: #d8d8d8;
        text-decoration: none;
        border-right: 1px solid var(--line);
    }

    .bottom-nav a:last-child {
        border-right: 0;
    }

    .bottom-nav a.active {
        background: linear-gradient(180deg, rgba(184, 32, 24, 0.62), rgba(184, 32, 24, 0.16));
        color: #fff;
    }

    .bottom-nav span {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        font-size: 34px;
        line-height: 1;
    }

    .bottom-nav .nav-icon {
        width: 34px;
        height: 34px;
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.34));
    }

    .bottom-nav b {
        max-width: 100%;
        overflow: hidden;
        color: inherit;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        font-weight: 600;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: calc(88px + var(--safe-bottom));
        max-width: none;
    }

    .login-stage {
        padding: 10px;
    }

    .login-art {
        min-height: 340px;
        padding: 28px;
    }

    .login-logo span {
        font-size: 48px;
    }

    .login-logo strong {
        font-size: 38px;
    }

    .login-panel {
        place-items: stretch;
    }
}

@media (max-width: 420px) {
    .resource-bar {
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        grid-template-columns: repeat(7, minmax(48px, 1fr));
        overflow-x: auto;
        scrollbar-width: none;
    }

    .bottom-nav a:nth-child(n + 5) {
        display: grid;
    }

    .bottom-nav b {
        font-size: 8px;
    }

    .login-benefits {
        grid-template-columns: 1fr;
    }
}

/* OMERTA targeted gameplay polish: garage, missions, prison, chat, protection */
.page-sehir-haritasi .turkey-map-shell {
    min-height: clamp(720px, 84vh, 980px);
    height: clamp(720px, 84vh, 980px);
    padding-block: clamp(46px, 6vh, 92px);
    place-items: center;
}

.page-sehir-haritasi .turkey-svg {
    width: 100%;
    height: calc(100% - clamp(82px, 10vh, 150px));
    min-height: 500px;
    align-self: center;
    justify-self: center;
}

.garage-active-panel,
.protection-threat-card {
    min-width: min(340px, 100%);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 211, 106, .34);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(0, 0, 0, .72), rgba(58, 14, 9, .62));
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 44px rgba(0, 0, 0, .34);
}

.garage-active-panel > span,
.protection-threat-card > span,
.garage-tuning-card > span,
.protection-overview-grid article > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, .38);
    border-radius: 8px;
    background: radial-gradient(circle at 35% 20%, rgba(255, 226, 142, .22), rgba(92, 55, 11, .18) 42%, rgba(0, 0, 0, .55));
    box-shadow: 0 0 18px rgba(255, 205, 100, .16);
}

.garage-active-panel .nav-icon,
.protection-threat-card .nav-icon,
.garage-tuning-card .nav-icon,
.protection-overview-grid .nav-icon {
    width: 34px;
    height: 34px;
}

.garage-active-panel small,
.protection-threat-card small,
.garage-active-panel em,
.protection-threat-card em {
    display: block;
    color: #d8c9a7;
    font-size: 11px;
    font-style: normal;
}

.garage-active-panel strong,
.protection-threat-card strong {
    display: block;
    margin: 3px 0;
    color: #fff4c8;
    font-size: 20px;
}

.garage-command-grid,
.protection-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 12px;
}

.protection-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.garage-summary-card .card-title-row span {
    color: #ffd36a;
    font-size: 12px;
    font-weight: 900;
}

.garage-stat-grid,
.garage-spec-grid,
.protection-card dl {
    display: grid;
    gap: 8px;
}

.garage-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.garage-stat-grid div,
.garage-spec-grid div,
.protection-card dl div {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    background: rgba(0, 0, 0, .34);
}

.garage-stat-grid small,
.garage-spec-grid span,
.protection-card dt,
.protection-overview-grid small {
    color: #d7c8a8;
    font-size: 10px;
    text-transform: uppercase;
}

.garage-stat-grid strong,
.garage-spec-grid strong,
.protection-card dd,
.protection-overview-grid strong {
    margin: 0;
    color: #fff1bd;
    font-size: 15px;
    font-weight: 900;
}

.garage-tuning-card,
.protection-overview-grid article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.garage-tuning-card h2,
.garage-tuning-card p {
    margin: 0;
}

.garage-tuning-card p {
    margin-top: 6px;
    color: #d8d0c0;
    font-size: 13px;
    line-height: 1.55;
}

.garage-fleet-grid,
.protection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.garage-vehicle-card,
.protection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-top: 2px solid rgba(214, 168, 79, .74);
    background: linear-gradient(160deg, rgba(22, 22, 22, .96), rgba(3, 3, 3, .98));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .32);
}

.garage-vehicle-card.rarity-rare,
.protection-card.risk-medium { border-top-color: #d6a84f; }
.garage-vehicle-card.rarity-epic,
.protection-card.risk-high { border-top-color: #b82018; }
.garage-vehicle-card.rarity-legendary,
.protection-card.risk-critical { border-top-color: #ffd36a; box-shadow: 0 0 22px rgba(255, 211, 106, .12), inset 0 1px rgba(255, 255, 255, .06); }

.garage-vehicle-card.is-active {
    border-color: rgba(255, 211, 106, .48);
    box-shadow: 0 0 28px rgba(255, 211, 106, .13), inset 0 1px rgba(255, 255, 255, .07);
}

.garage-vehicle-card.is-locked {
    opacity: .72;
}

.garage-image-wrap {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 55%, rgba(255, 211, 106, .14), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .44));
}

.garage-image-wrap img {
    width: 92%;
    height: 172px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .72));
    transition: transform .18s ease, filter .18s ease;
}

.garage-vehicle-card:hover .garage-image-wrap img {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .78)) drop-shadow(0 0 14px rgba(255, 211, 106, .14));
}

.garage-image-wrap b,
.garage-image-wrap i,
.garage-image-wrap em {
    position: absolute;
    top: 10px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 211, 106, .34);
    border-radius: 5px;
    background: rgba(0, 0, 0, .58);
    color: #ffe39a;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.garage-image-wrap b { left: 10px; }
.garage-image-wrap i { right: 10px; color: #8ff076; border-color: rgba(143, 240, 118, .35); }
.garage-image-wrap em { left: 10px; right: 10px; top: auto; bottom: 10px; color: #f5d0cc; border-color: rgba(184, 32, 24, .38); text-align: center; }

.garage-vehicle-body,
.protection-card {
    padding: 14px;
}

.garage-vehicle-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.garage-vehicle-body header,
.protection-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.protection-card header {
    grid-template-columns: 54px minmax(0, 1fr);
}

.protection-card header > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, .34);
    border-radius: 8px;
    background: rgba(214, 168, 79, .10);
}

.protection-card header .nav-icon {
    width: 31px;
    height: 31px;
}

.garage-vehicle-body small,
.protection-card small {
    color: #d6a84f;
    font-size: 10px;
    text-transform: uppercase;
}

.garage-vehicle-body h2,
.protection-card h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 18px;
}

.garage-vehicle-body header > strong {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #fff1bd;
    border: 1px solid rgba(255, 211, 106, .32);
    border-radius: 50%;
    background: rgba(214, 168, 79, .10);
}

.garage-spec-grid,
.protection-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.garage-card-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.garage-card-actions .game-btn,
.protection-card .game-btn {
    width: 100%;
}

.protection-card {
    min-height: 360px;
    gap: 13px;
}

.protection-card p {
    margin: 0;
    color: #e0d7c7;
    font-size: 13px;
    line-height: 1.55;
}

.protection-note {
    color: #f2c3bd;
    font-size: 12px;
}

.protection-card .game-btn {
    margin-top: auto;
}

.mission-readable-card {
    min-height: 0;
    color: #f1eadb;
    background: linear-gradient(145deg, rgba(21, 21, 21, .98), rgba(2, 2, 2, .98));
}

.mission-readable-card > p,
.mission-current-brief span,
.mission-current-brief small,
.mission-ready-state {
    color: #ddd3bf;
    font-size: 12px;
    line-height: 1.55;
}

.mission-readable-card h3 {
    color: #fff;
    font-size: 17px;
}

.mission-readable-card header small,
.mission-badges span,
.mission-rewards dt {
    color: #d7c8a8;
}

.mission-current-brief {
    background: rgba(214, 168, 79, .095);
}

.mission-current-brief strong,
.mission-rewards dd {
    color: #fff1bd;
}

.mission-route-btn {
    text-decoration: none;
}

.prison-clock,
.prison-status-grid article,
.prison-active-operation,
.prison-operation-card,
.prison-history {
    background: linear-gradient(145deg, rgba(18, 18, 18, .97), rgba(3, 3, 3, .98));
}

.prison-clock em,
.prison-active-operation p,
.prison-operation-card > p,
.prison-history .list-item span,
.prison-missing {
    color: #e1d6c3;
    font-size: 12px;
    line-height: 1.5;
}

.prison-operation-card small,
.prison-operation-card dt,
.prison-status-grid small {
    color: #d9c9a7;
}

.prison-operation-card h3,
.prison-status-grid strong,
.prison-active-operation h2 {
    color: #fff;
}

.prison-operation-card dd,
.prison-active-operation aside strong {
    color: #fff1bd;
    font-size: 13px;
}

.social-shell {
    border-color: rgba(255, 211, 106, .16);
    background: linear-gradient(145deg, rgba(15, 15, 15, .98), rgba(2, 2, 2, .98));
}

.chat-message {
    border-color: rgba(255, 255, 255, .10);
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .28));
}

.chat-avatar-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.chat-message-body p {
    color: #f0e9dc;
    font-size: 13px;
}

.chat-message-body blockquote.chat-quote {
    color: #ead9b8;
    border-left-color: #ffd36a;
    background: rgba(214, 168, 79, .11);
}

.chat-message-body blockquote.chat-quote span {
    display: block;
    line-height: 1.45;
}

.chat-message-body footer {
    gap: 10px;
    justify-content: flex-start;
    margin-top: 7px;
}

.chat-message-body footer button {
    padding: 5px 8px;
    color: #ffe19b;
    border: 1px solid rgba(255, 211, 106, .24);
    border-radius: 5px;
    background: rgba(214, 168, 79, .06);
    font-size: 10px;
    font-weight: 800;
}

.message-edited {
    color: #b9ae9d;
    font-size: 10px;
    font-style: normal;
}

.reply-preview {
    color: #f5ead4;
    border-color: #ffd36a;
    background: rgba(214, 168, 79, .13);
}

.reply-preview[hidden] {
    display: none !important;
}

.reply-preview p {
    color: #f0e6d3;
    font-size: 12px;
}

.prison-operation-card.is-locked {
    opacity: .86;
}

.prison-operation-card.is-locked .game-btn:disabled,
.protection-card .game-btn:disabled,
.garage-card-actions .game-btn:disabled {
    color: #d8cfbd;
    opacity: .76;
}

.protection-overview-grid article div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.protection-overview-grid small,
.protection-overview-grid strong {
    display: block;
}

@media (max-width: 1180px) {
    .garage-fleet-grid,
    .protection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-sehir-haritasi .turkey-map-shell {
        min-height: 650px;
        height: 650px;
        padding-block: 42px;
    }

    .page-sehir-haritasi .turkey-svg {
        height: calc(100% - 92px);
        min-height: 470px;
    }

    .garage-command-grid,
    .protection-overview-grid,
    .garage-fleet-grid,
    .protection-grid {
        grid-template-columns: 1fr;
    }

    .garage-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .garage-vehicle-card {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .page-sehir-haritasi .turkey-map-shell {
        min-height: 600px;
        height: 600px;
        padding-block: 34px;
    }

    .page-sehir-haritasi .turkey-svg {
        min-height: 430px;
    }

    .garage-image-wrap {
        min-height: 160px;
    }

    .garage-image-wrap img {
        height: 142px;
    }

    .garage-spec-grid,
    .protection-card dl,
    .mission-rewards {
        grid-template-columns: 1fr;
    }
}

/* Phase 2 and 3: prestige, missions, social, prison and family */
.ranking-hero,
.mission-hero,
.social-hero,
.prison-hero,
.family-hero {
    min-height: 270px;
}

.ranking-season-card,
.mission-player-progress,
.social-network-state,
.prison-clock,
.family-hero-emblem {
    width: min(330px, 100%);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 211, 106, .4);
    border-radius: 7px;
    background: rgba(4, 4, 4, .84);
}

.ranking-season-card > small,
.ranking-season-card > strong,
.ranking-season-card > span {
    grid-column: 1 / -1;
}

.ranking-season-card small,
.mission-player-progress small,
.social-network-state small,
.prison-clock small,
.family-hero-emblem small {
    color: var(--gold);
    font-size: 8px;
    text-transform: uppercase;
}

.ranking-season-card strong,
.mission-player-progress strong,
.social-network-state strong,
.prison-clock strong,
.family-hero-emblem strong {
    color: #fff;
    font-size: 16px;
}

.ranking-season-card span,
.mission-player-progress em,
.social-network-state em,
.prison-clock em,
.family-hero-emblem em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
}

.ranking-podium {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .9fr);
    align-items: end;
    gap: 12px;
}

.ranking-podium-card {
    position: relative;
    min-height: 320px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    padding: 22px 16px 16px;
    overflow: visible;
    border: 1px solid rgba(214, 168, 79, .28);
    border-top: 3px solid #9c7840;
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 20%, rgba(214, 168, 79, .18), transparent 36%),
        linear-gradient(160deg, rgba(30, 25, 16, .98), rgba(4, 4, 4, .98));
    text-align: center;
}

.ranking-podium-card.place-1 {
    min-height: 370px;
    border-color: rgba(255, 211, 106, .58);
    border-top-color: #ffd36a;
    box-shadow: 0 0 30px rgba(214, 168, 79, .16);
}

.ranking-podium-card.place-2 { border-top-color: #c5c9cf; }
.ranking-podium-card.place-3 { border-top-color: #b26e36; }

.podium-rank {
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--gold-2);
    font-size: 24px;
    font-weight: 900;
}

.podium-avatar,
.podium-family-emblem {
    width: 112px;
    height: 112px;
}

.place-1 .podium-avatar,
.place-1 .podium-family-emblem {
    width: 138px;
    height: 138px;
}

.podium-family-emblem {
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
}

.podium-family-emblem .nav-icon { width: 68px; height: 68px; }
.ranking-podium-card h2 { margin: 4px 0; font-size: 18px; }
.ranking-podium-card p { margin: 0; color: var(--muted); font-size: 9px; }
.ranking-podium-card small { color: var(--gold); font-size: 8px; text-transform: uppercase; }

.ranking-podium-card dl {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
}

.ranking-podium-card dl div {
    display: grid;
    gap: 3px;
    padding: 8px 4px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.ranking-podium-card dt { color: var(--muted); font-size: 7px; }
.ranking-podium-card dd { margin: 0; color: #f3d98e; font-size: 10px; font-weight: 900; }

.ranking-card-list { display: grid; gap: 7px; }

.ranking-player-card {
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px 48px minmax(180px, 1fr) 72px 100px 120px 76px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, .28);
}

.ranking-player-card:hover { border-color: var(--line-gold); background: rgba(214, 168, 79, .05); }
.ranking-city-count { display: flex; align-items: center; gap: 5px; color: #d8c89f; font-size: 9px; }
.ranking-city-count .nav-icon { width: 20px; height: 20px; color: var(--gold); }
.ranking-movement { font-size: 9px; font-weight: 800; }
.ranking-movement.up { color: var(--green); }
.ranking-movement.down { color: #ff6c63; }
.ranking-movement.same { color: var(--muted); }

.mission-player-progress > span,
.social-network-state > span,
.prison-clock > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid var(--line-gold);
    border-radius: 7px;
}

.mission-player-progress > span .nav-icon,
.social-network-state > span .nav-icon,
.prison-clock > span .nav-icon { width: 36px; height: 36px; }
.mission-player-progress > div,
.social-network-state > div,
.prison-clock > div { display: grid; gap: 4px; }
.mission-player-progress i { height: 6px; overflow: hidden; border-radius: 999px; background: #030303; }
.mission-player-progress i b { display: block; height: 100%; background: linear-gradient(90deg, #8f1710, #ffd36a); }

.mission-type-tabs {
    display: flex;
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(5, 5, 5, .92);
    scrollbar-width: none;
}

.mission-type-tabs::-webkit-scrollbar { display: none; }
.mission-type-tabs a { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 10px 13px; color: #ddd; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: 9px; }
.mission-type-tabs small { min-width: 20px; height: 20px; display: grid; place-items: center; color: var(--gold-2); border-radius: 50%; background: rgba(214, 168, 79, .12); }
.mission-board-section > header { margin-bottom: 10px; }
.mission-board-section h2 { margin: 4px 0; }
.mission-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.mission-chain-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 2px solid #8e826c;
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(0,0,0,.36));
}

.mission-chain-card.rarity-rare { border-top-color: #3e9ddd; }
.mission-chain-card.rarity-epic { border-top-color: #ad5bea; }
.mission-chain-card.rarity-legendary { border-top-color: #ffd36a; box-shadow: inset 0 1px rgba(255,211,106,.12); }
.mission-chain-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mission-giver-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 6px; }
.mission-giver-icon .nav-icon { width: 30px; height: 30px; }
.mission-chain-card header small { color: var(--muted); font-size: 7px; }
.mission-chain-card h3 { margin: 3px 0 0; font-size: 15px; }
.mission-chain-card header > b { color: var(--gold-2); font-size: 7px; }
.mission-chain-card > p { min-height: 45px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.mission-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.mission-badges span { padding: 5px 7px; color: #d9c8a2; border: 1px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.28); font-size: 7px; text-transform: uppercase; }

.mission-step-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mission-step-track > div { display: grid; justify-items: center; gap: 5px; color: #766e62; text-align: center; font-size: 7px; }
.mission-step-track i { width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid #4a443b; border-radius: 50%; background: #080808; font-style: normal; font-weight: 900; }
.mission-step-track .done { color: #91d775; }
.mission-step-track .done i { border-color: #6eb853; background: #25441e; }
.mission-step-track .active { color: #ffe293; }
.mission-step-track .active i { border-color: #ffd36a; box-shadow: 0 0 12px rgba(255,211,106,.28); }
.mission-current-brief { display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(214,168,79,.25); border-radius: 6px; background: rgba(214,168,79,.05); }
.mission-current-brief strong { color: #fff; font-size: 11px; }
.mission-current-brief span,
.mission-current-brief small { color: var(--muted); font-size: 8px; }
.mission-rewards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0; }
.mission-rewards div { display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 4px; }
.mission-rewards dt { color: var(--muted); font-size: 6px; }
.mission-rewards dd { margin: 0; color: #efd793; font-size: 8px; font-weight: 800; }
.mission-chain-actions { display: grid; gap: 7px; margin-top: auto; }
.mission-chain-actions .game-btn { width: 100%; }
.mission-ready-state { color: var(--muted); text-align: center; font-size: 8px; }

.social-shell {
    min-height: 720px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}

.social-sidebar { padding: 10px; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(0,0,0,.28); }
.social-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 9px; }
.social-mode-tabs button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #bdb4a6; border: 1px solid var(--line); border-radius: 5px; background: #080808; font-size: 8px; font-weight: 800; }
.social-mode-tabs button.active { color: #ffe59a; border-color: var(--line-gold); background: rgba(214,168,79,.1); }
.social-mode-tabs .nav-icon { width: 22px; height: 22px; }
.social-channel,
.conversation-list > button { width: 100%; min-height: 64px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; color: #ddd; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: left; }
.social-channel:hover,
.social-channel.active,
.conversation-list > button:hover { border-color: var(--line-gold); background: rgba(214,168,79,.08); }
.social-channel > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 5px; }
.social-channel .nav-icon { width: 27px; height: 27px; }
.social-channel div,
.conversation-list button > span { min-width: 0; display: grid; gap: 3px; }
.social-channel b,
.conversation-list strong { font-size: 10px; }
.social-channel small,
.conversation-list small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #1a1510; }
.conversation-list button > b { min-width: 20px; height: 20px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #a9231b; font-size: 7px; }
.new-conversation-form { display: grid; grid-template-columns: 1fr 38px; gap: 5px; margin-bottom: 8px; }
.new-conversation-form input { min-width: 0; color: #fff; border: 1px solid var(--line); border-radius: 5px; background: #070707; padding: 0 9px; }
.new-conversation-form button { color: #ffe29a; border: 1px solid var(--line-gold); border-radius: 5px; background: rgba(214,168,79,.12); font-size: 20px; }
.social-room { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.reply-preview { display: grid; grid-template-columns: 1fr 36px; gap: 8px; margin: 8px 12px 0; padding: 8px 10px; border-left: 3px solid var(--gold); background: rgba(214,168,79,.07); }
.reply-preview div { display: grid; gap: 2px; }
.reply-preview small { color: var(--muted); font-size: 7px; }
.reply-preview strong { color: var(--gold-2); font-size: 9px; }
.reply-preview p { margin: 0; color: #bcb3a5; font-size: 8px; }
.reply-preview button { color: #ddd; border: 0; background: transparent; font-size: 22px; }
.chat-message-body header button { padding: 0; color: #fff; border: 0; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.chat-message-body blockquote { margin: 6px 0; padding: 7px 9px; color: #a99f91; border-left: 2px solid var(--gold); background: rgba(214,168,79,.05); font-size: 8px; }
.chat-message-body blockquote strong { display: block; margin-bottom: 3px; color: var(--gold-2); }
.chat-message-body footer { display: flex; justify-content: flex-end; }
.chat-message-body footer button { color: #9e9384; border: 0; background: transparent; font-size: 7px; cursor: pointer; }
.player-mini-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.player-mini-modal[hidden] { display: none; }
.player-mini-modal > section { position: relative; width: min(480px,100%); padding: 22px; }
.player-mini-modal > section > button { position: absolute; top: 6px; right: 8px; color: #ddd; border: 0; background: transparent; font-size: 26px; }
.player-profile-head { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 13px; }
.player-profile-avatar { width: 84px; height: 84px; }
.player-profile-head h2 { margin: 3px 0; }
.player-profile-head p { margin: 0; color: var(--muted); }
.player-profile-head small { color: var(--gold); }
.player-mini-modal dl { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 14px 0; }
.player-mini-modal dl div { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.player-mini-modal dt { color: var(--muted); font-size: 7px; }
.player-mini-modal dd { margin: 0; color: #efd793; font-size: 10px; font-weight: 800; }
.player-profile-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }

.prison-clock.is-jailed { border-color: rgba(200,50,40,.54); background: rgba(45,8,6,.82); }
.prison-status-grid,
.family-command-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.prison-status-grid article,
.family-command-summary article { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 9px; min-height: 76px; padding: 11px; }
.prison-status-grid article > span,
.family-command-summary article > span { width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 6px; }
.prison-status-grid .nav-icon,
.family-command-summary .nav-icon { width: 29px; height: 29px; }
.prison-status-grid small,
.family-command-summary small { color: var(--muted); font-size: 7px; }
.prison-status-grid strong,
.family-command-summary strong { color: #fff; font-size: 13px; }
.prison-status-grid article div,
.family-command-summary article div { display: grid; gap: 4px; }
.prison-active-operation { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 12px; border-left: 3px solid var(--gold); }
.prison-active-operation > span { width: 56px; height: 56px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 7px; }
.prison-active-operation .nav-icon { width: 36px; height: 36px; }
.prison-active-operation h2,
.prison-active-operation p { margin: 3px 0; }
.prison-active-operation p { color: var(--muted); font-size: 9px; }
.prison-active-operation aside { display: grid; gap: 7px; text-align: right; }
.prison-active-operation aside strong { color: var(--gold-2); }
.prison-operation-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.prison-operation-card { min-height: 330px; display: flex; flex-direction: column; gap: 11px; border-top: 2px solid var(--green); }
.prison-operation-card.risk-medium { border-top-color: var(--amber); }
.prison-operation-card.risk-high,
.prison-operation-card.risk-critical { border-top-color: #d54236; }
.prison-operation-card.is-locked { opacity: .58; }
.prison-operation-card header { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; }
.prison-operation-card header > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 5px; }
.prison-operation-card header .nav-icon { width: 27px; height: 27px; }
.prison-operation-card h3 { margin: 3px 0 0; font-size: 13px; }
.prison-operation-card small { color: var(--gold); font-size: 7px; }
.prison-operation-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.prison-operation-card dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; margin: 0; }
.prison-operation-card dl div { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; }
.prison-operation-card dt { color: var(--muted); font-size: 6px; }
.prison-operation-card dd { margin: 0; color: #e5d2a4; font-size: 8px; font-weight: 800; }
.prison-missing { color: #e88a82; font-size: 8px; }
.prison-operation-card .game-btn { width: 100%; margin-top: auto; }

.family-hero-emblem > span { width: 58px; height: 58px; display: grid; place-items: center; color: #ffd36a; border: 1px solid var(--line-gold); border-radius: 50%; background: radial-gradient(circle,#631710,#080404 72%); font-family: Georgia,serif; font-size: 28px; }
.family-hero-emblem > div { display: grid; gap: 4px; }
.family-recruit-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 12px; }
.family-create-card { display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.family-create-card > span { color: var(--gold); }
.family-create-card > span .nav-icon { width: 64px; height: 64px; }
.family-create-card h2,
.family-create-card p { margin: 0; }
.family-create-card p { color: var(--muted); font-size: 9px; }
.family-create-card form { width: 100%; display: grid; gap: 7px; }
.family-create-card input,
.family-contribution-form input { min-height: 42px; color: #fff; border: 1px solid var(--line); border-radius: 5px; background: #070707; padding: 0 10px; }
.family-recommendation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.family-recommendation-grid article { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.28); }
.family-recommendation-grid .crest { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 50%; }
.family-recommendation-grid h3,
.family-recommendation-grid p { margin: 0; }
.family-recommendation-grid p { color: var(--muted); font-size: 8px; }
.family-recommendation-grid strong { color: var(--gold-2); font-size: 9px; }
.family-main-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 12px; }
.family-member-board { grid-column: 1 / -1; }
.family-call-list { display: grid; gap: 8px; }
.family-call-list article { display: grid; grid-template-columns: 48px minmax(0,1fr) 120px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.family-call-list article > span { width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 6px; }
.family-call-list .nav-icon { width: 29px; height: 29px; }
.family-call-list h3,
.family-call-list p { margin: 3px 0; }
.family-call-list p { color: var(--muted); font-size: 8px; }
.family-call-list .mini-progress i { display: block; height: 100%; background: linear-gradient(90deg,#8e1710,#ffd36a); }
.family-call-list aside { display: grid; gap: 4px; text-align: right; }
.family-call-list aside span,
.family-call-list aside em { color: var(--muted); font-size: 8px; font-style: normal; }
.family-call-list aside strong { color: var(--gold-2); }
.family-contribution-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.family-contribution-form label { display: grid; gap: 4px; }
.family-contribution-form label span { color: var(--muted); font-size: 7px; }
.family-bonus-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.family-bonus-panel li { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; color: #d2c5ae; font-size: 9px; }
.family-bonus-panel .nav-icon { width: 24px; height: 24px; color: var(--gold); }
.family-member-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.family-member-list article { display: grid; grid-template-columns: 44px minmax(0,1fr) 10px auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.family-member-avatar { width: 42px; height: 42px; }
.family-member-list article div { display: grid; gap: 3px; }
.family-member-list span { color: var(--muted); font-size: 8px; }
.family-member-list i { width: 8px; height: 8px; border-radius: 50%; background: #4a4a4a; }
.family-member-list i.online { background: var(--green); box-shadow: 0 0 8px rgba(121,199,83,.5); }
.family-member-list b { color: var(--gold-2); font-size: 9px; }

@media (max-width: 1180px) {
    .ranking-player-card { grid-template-columns: 40px 46px minmax(150px,1fr) 60px 80px 100px; }
    .ranking-player-card .game-btn { display: none; }
    .prison-operation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
    .ranking-podium { grid-template-columns: 1fr; align-items: stretch; }
    .ranking-podium-card.place-1 { order: -1; min-height: 330px; }
    .ranking-podium-card { min-height: 290px; }
    .ranking-player-card { grid-template-columns: 38px 44px minmax(0,1fr) auto; }
    .ranking-city-count,
    .ranking-movement { grid-column: 3; }
    .ranking-score { grid-column: 4; grid-row: 1 / 3; }
    .mission-card-grid { grid-template-columns: 1fr; }
    .mission-chain-card { min-height: 500px; }
    .social-shell { grid-template-columns: 1fr; min-height: 760px; }
    .social-sidebar { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }
    .player-profile-actions { grid-template-columns: repeat(2,1fr); }
    .prison-status-grid,
    .family-command-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .prison-active-operation { grid-template-columns: 50px minmax(0,1fr); }
    .prison-active-operation aside { grid-column: 1 / -1; text-align: left; }
    .prison-operation-grid { grid-template-columns: 1fr; }
    .family-recruit-layout,
    .family-main-grid { grid-template-columns: 1fr; }
    .family-member-board { grid-column: auto; }
}

@media (max-width: 480px) {
    .ranking-podium-card dl,
    .mission-rewards,
    .player-mini-modal dl { grid-template-columns: repeat(2,1fr); }
    .ranking-player-card { grid-template-columns: 34px 40px minmax(0,1fr); }
    .ranking-score { grid-column: 3; grid-row: auto; text-align: left; }
    .ranking-city-count,
    .ranking-movement { display: none; }
    .mission-step-track { grid-template-columns: repeat(2,1fr); row-gap: 10px; }
    .social-sidebar { max-height: 230px; }
    .chat-message { grid-template-columns: 38px minmax(0,1fr); }
    .chat-avatar { width: 36px; height: 36px; }
    .player-profile-head { grid-template-columns: 70px 1fr; }
    .player-profile-avatar { width: 66px; height: 66px; }
    .prison-status-grid,
    .family-command-summary { grid-template-columns: 1fr; }
    .family-recommendation-grid,
    .family-member-list { grid-template-columns: 1fr; }
    .family-call-list article { grid-template-columns: 42px minmax(0,1fr); }
    .family-call-list aside { grid-column: 2; text-align: left; }
    .family-contribution-form { grid-template-columns: 1fr; }
}

/* OMERTA v2 */
.topbar {
    align-items: stretch;
}

.player-chip {
    align-self: center;
    flex: 0 0 250px;
}

.player-chip > span:last-child {
    min-width: 0;
}

.player-chip strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-bar {
    position: relative;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    gap: 8px;
}

.resource-pill {
    min-width: 0;
    min-height: 54px;
    padding: 7px 10px;
}

.resource-pill .resource-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.resource-pill .resource-icon .nav-icon {
    width: 28px;
    height: 28px;
}

.resource-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.resource-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-copy strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 42px);
    align-items: center;
    justify-content: end;
    gap: 7px;
}

.icon-button .nav-icon {
    width: 27px;
    height: 27px;
}

.metric-icon .nav-icon,
.quick-action .nav-icon,
.game-btn .nav-icon,
.item-symbol .nav-icon,
.laundering-icon .nav-icon,
.ranking-emblem .nav-icon {
    width: 30px;
    height: 30px;
}

.quick-action {
    text-decoration: none;
}

.game-btn > span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}

.game-btn > span .nav-icon {
    width: 22px;
    height: 22px;
}

.turkey-map-card {
    min-height: 590px;
}

.turkey-map-shell {
    min-height: clamp(460px, 56vh, 620px);
    height: clamp(460px, 56vh, 620px);
}

.chat-shell {
    min-height: 680px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}

.chat-channels {
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.chat-channels header {
    display: grid;
    gap: 5px;
    padding: 4px 10px 16px;
}

.chat-channels header span,
.chat-room-head span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-channels header strong {
    font-size: 18px;
}

.chat-channels button {
    width: 100%;
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    padding: 8px 10px;
    color: #ddd;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.chat-channels button > span {
    grid-row: 1 / 3;
    color: var(--gold);
}

.chat-channels button .nav-icon {
    width: 28px;
    height: 28px;
}

.chat-channels button b {
    font-size: 12px;
}

.chat-channels button small {
    color: var(--muted);
    font-size: 9px;
}

.chat-channels button:hover,
.chat-channels button.active {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.28);
    background: linear-gradient(90deg, rgba(184, 32, 24, 0.42), rgba(212, 175, 55, 0.06));
}

.chat-room {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-room-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.chat-room-head > div:first-child {
    display: grid;
    gap: 4px;
}

.chat-role-legend {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.chat-role-legend i,
.chat-message-body header span {
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.role-vip {
    color: #f1d078;
}

.role-moderator {
    color: #61b6ff;
}

.role-admin {
    color: #ff6b62;
}

.role-founder {
    color: #c58aff;
}

.chat-online-label {
    color: var(--green) !important;
}

.chat-list {
    min-height: 0;
    max-height: 590px;
    overflow-y: auto;
    padding: 16px 18px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.chat-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.chat-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    font-weight: 800;
}

.chat-message-body {
    min-width: 0;
}

.chat-message-body header {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.chat-message-body header time {
    margin-left: auto;
    color: var(--faint);
    font-size: 9px;
}

.chat-message-body p {
    margin: 7px 0 0;
    color: #d9d9d9;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.chat-compose {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.chat-compose input {
    min-width: 0;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 14px;
}

.chat-empty,
.empty-state {
    padding: 24px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 6px;
    text-align: center;
}

.ranking-tabs {
    display: flex;
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.9);
}

.ranking-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    color: #ccc;
    border: 1px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.ranking-tabs a.active,
.ranking-tabs a:hover {
    color: #fff;
    border-color: var(--line-gold);
    background: rgba(212, 175, 55, 0.12);
}

.ranking-list {
    display: grid;
    gap: 7px;
}

.ranking-periods {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-left: auto;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.3);
}

.ranking-periods a {
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 5px;
    color: #aaa39a;
    font-size: 0.76rem;
    font-weight: 800;
}

.ranking-periods a:hover,
.ranking-periods a.active {
    color: #171006;
    background: linear-gradient(180deg, #f0ca62, #aa6e16);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 0 16px rgba(212, 175, 55, 0.16);
}

.ranking-row {
    min-height: 64px;
    display: grid;
    grid-template-columns: 46px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 720px) {
    .ranking-board .card-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ranking-periods {
        order: 3;
        width: 100%;
    }

    .ranking-periods a {
        flex: 1;
        padding-inline: 6px;
    }
}

.ranking-row.podium-1 {
    border-color: rgba(240, 210, 138, 0.5);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(255, 255, 255, 0.02));
}

.ranking-position,
.ranking-score {
    color: var(--gold-2);
}

.ranking-emblem {
    color: var(--gold);
}

.ranking-player {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-player span {
    color: var(--muted);
    font-size: 10px;
}

.laundering-businesses,
.operation-history {
    display: grid;
    gap: 9px;
}

.laundering-business {
    display: grid;
    grid-template-columns: 48px minmax(130px, 1fr) minmax(220px, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.laundering-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.07);
}

.laundering-business > div:nth-child(2) {
    display: grid;
    gap: 4px;
}

.laundering-business > div:nth-child(2) span {
    color: var(--muted);
    font-size: 10px;
}

.laundering-business dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0;
}

.laundering-business dl div,
.laundering-rules div {
    display: grid;
    gap: 3px;
}

.laundering-business dt,
.laundering-rules span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.laundering-business dd {
    margin: 0;
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 700;
}

.risk-track {
    grid-column: 2 / -1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.risk-track span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
}

.laundering-rules {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.26);
}

.laundering-rules div {
    grid-template-columns: 1fr auto;
}

.laundering-rules strong {
    font-size: 10px;
}

.operation-history article {
    min-height: 52px;
    display: grid;
    grid-template-columns: 115px minmax(160px, 1fr) repeat(2, minmax(120px, auto)) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.operation-history article > span,
.operation-history time {
    color: var(--muted);
    font-size: 10px;
}

.operation-state {
    color: var(--gold-2) !important;
    font-weight: 800;
    text-transform: uppercase;
}

.operation-state.green {
    color: var(--green) !important;
}

.operation-state.red {
    color: #ff6f67 !important;
}

.operation-state.amber {
    color: var(--amber) !important;
}

.conflict-command {
    padding: 0;
    overflow: hidden;
}

.conflict-command-head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.conflict-command-head h2 {
    margin: 5px 0 0;
}

.conflict-player-power {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.07);
}

.conflict-player-power > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.conflict-player-power .nav-icon {
    width: 30px;
    height: 30px;
}

.conflict-player-power div {
    display: grid;
    gap: 3px;
}

.conflict-player-power small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.conflict-layout {
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.conflict-map-shell {
    position: relative;
    min-height: 570px;
    padding: 28px;
    background:
        radial-gradient(circle at 48% 46%, rgba(184, 32, 24, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(3, 7, 10, 0.75), rgba(2, 3, 4, 0.98)),
        url("../img/login-arkaplan.png") center / cover;
}

.conflict-map-shell svg {
    width: 100%;
    height: 100%;
    display: block;
}

.conflict-province {
    stroke: rgba(255, 255, 255, 0.34);
    stroke-width: 1.15;
    cursor: pointer;
    transition: filter .15s ease, opacity .15s ease, stroke .15s ease;
}

.conflict-province.status-player {
    fill: rgba(47, 137, 74, 0.82);
}

.conflict-province.status-ally {
    fill: rgba(39, 104, 180, 0.78);
}

.conflict-province.status-enemy {
    fill: rgba(164, 35, 29, 0.82);
}

.conflict-province.status-neutral {
    fill: rgba(72, 77, 82, 0.75);
}

.conflict-province.status-war {
    fill: rgba(211, 117, 22, 0.92);
    animation: warPulse 1.25s ease-in-out infinite alternate;
}

.conflict-province:hover,
.conflict-province.is-selected {
    stroke: var(--gold-2);
    stroke-width: 2.4;
    filter: url(#conflictGlow);
}

.conflict-target {
    padding: 20px;
    border-left: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.94);
}

.conflict-target h3 {
    margin: 8px 0 4px;
    font-size: 24px;
}

.conflict-target > p {
    min-height: 38px;
    color: var(--muted);
    line-height: 1.45;
}

.conflict-target-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.conflict-target-stats div {
    min-height: 66px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.conflict-target-stats span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.conflict-target-stats strong {
    color: var(--gold-2);
}

.conflict-chance {
    margin-bottom: 16px;
}

.conflict-target .game-btn {
    width: 100%;
}

.war-formula {
    display: grid;
    gap: 8px;
}

.war-formula > div {
    min-height: 58px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.war-formula > div > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.war-formula .nav-icon {
    width: 28px;
    height: 28px;
}

.war-formula p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.war-formula small {
    color: var(--muted);
}

.business-grid,
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.business-card {
    display: grid;
    gap: 14px;
}

.business-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.07);
}

.business-card-icon .nav-icon {
    width: 34px;
    height: 34px;
}

.business-card > div:nth-child(2) span {
    color: var(--gold);
    font-size: 9px;
    text-transform: uppercase;
}

.business-card h2 {
    margin: 4px 0 0;
}

.business-card dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin: 0;
}

.business-card dl div {
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.business-card dt {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.business-card dd {
    margin: 5px 0 0;
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 700;
}

.notification-list {
    display: grid;
    gap: 8px;
}

.notification-list > a {
    min-height: 70px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
}

.notification-list > a > span {
    color: var(--gold);
}

.notification-list .nav-icon {
    width: 30px;
    height: 30px;
}

.notification-list p {
    margin: 5px 0 0;
    color: var(--muted);
}

.notification-list time,
.announcement-grid time {
    color: var(--faint);
    font-size: 9px;
}

@media (max-width: 1180px) {
    .topbar {
        flex-direction: column;
    }

    .player-chip {
        width: 100%;
        align-self: stretch;
        flex-basis: auto;
    }

    .resource-bar {
        grid-template-columns: repeat(4, minmax(110px, 1fr));
    }

    .conflict-layout {
        grid-template-columns: 1fr;
    }

    .conflict-target {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .business-grid,
    .announcement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .resource-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-pill {
        min-height: 52px;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: start;
    }

    .turkey-map-shell,
    .turkey-svg,
    .page-sehir-haritasi .turkey-map-shell,
    .page-sehir-haritasi .city-svg.turkey-svg {
        min-height: clamp(340px, 60svh, 510px);
        height: clamp(340px, 60svh, 510px);
    }

    .chat-shell {
        min-height: 640px;
        grid-template-columns: 1fr;
    }

    .chat-channels {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 150px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .chat-channels header {
        display: none;
    }

    .chat-list {
        max-height: 440px;
    }

    .chat-role-legend {
        display: none;
    }

    .chat-compose {
        grid-template-columns: 1fr;
    }

    .chat-compose input {
        min-height: 48px;
    }

    .ranking-row {
        grid-template-columns: 38px 40px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
    }

    .laundering-business {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .laundering-business dl,
    .risk-track {
        grid-column: 1 / -1;
    }

    .operation-history article {
        grid-template-columns: 1fr 1fr;
    }

    .operation-history article strong {
        text-align: right;
    }

    .conflict-command-head {
        align-items: stretch;
        flex-direction: column;
    }

    .conflict-map-shell {
        min-height: 390px;
        padding: 8px;
    }

    .conflict-layout {
        min-height: 0;
    }

    .business-grid,
    .announcement-grid {
        grid-template-columns: 1fr;
    }

    .notification-list > a {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .notification-list time {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .resource-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-copy strong {
        font-size: 10px;
    }
}

/* Progression HUD */
.topbar {
    overflow: visible;
}

.resource-bar {
    grid-template-columns: repeat(5, minmax(100px, 1fr)) auto;
    align-content: center;
}

.resource-pill {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(42, 35, 20, 0.7), rgba(5, 5, 5, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(240, 210, 138, 0.15), transparent 42%);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.resource-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.06) 48%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .45s ease;
}

.resource-pill:hover::after {
    transform: translateX(120%);
}

.resource-pill .resource-icon {
    color: var(--gold-2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.28));
}

.resource-level-xp .resource-copy i {
    width: 100%;
    height: 4px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.resource-level-xp .resource-copy i span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #9b681d, #f0d28a);
}

.resource-details {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: min(520px, calc(100vw - 32px));
    padding: 14px;
    color: var(--text);
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(22, 20, 16, 0.98), rgba(4, 4, 4, 0.98)),
        url("../img/login-arkaplan.png") center / cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 28px rgba(212, 175, 55, 0.1);
}

.resource-details[hidden] {
    display: none;
}

.resource-details header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.resource-details header > div {
    display: grid;
    gap: 4px;
}

.resource-details header span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.resource-details header button {
    width: 34px;
    height: 34px;
    color: var(--gold-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 22px;
}

.resource-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
}

.resource-detail-grid article {
    min-height: 58px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.36);
}

.resource-detail-grid article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.resource-detail-grid .nav-icon {
    width: 28px;
    height: 28px;
}

.resource-detail-grid article > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.resource-detail-grid small,
.resource-details footer {
    color: var(--muted);
    font-size: 9px;
}

.resource-detail-grid strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.resource-details footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.feature-lock {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    overflow: hidden;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(3, 3, 3, 0.97));
    box-shadow: var(--shadow);
}

.feature-lock-art {
    min-height: 100%;
    display: grid;
    place-items: center;
    color: var(--gold);
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78)),
        url("../img/login-arkaplan.png") center / cover;
}

.feature-lock-art > span {
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.44);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.72));
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.feature-lock-art .nav-icon {
    width: 88px;
    height: 88px;
}

.feature-lock-copy {
    align-self: center;
    padding: clamp(26px, 5vw, 64px);
}

.feature-lock-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 5vw, 58px);
}

.feature-lock-copy > p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-lock-level {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
}

.feature-lock-level > div {
    display: grid;
    gap: 4px;
}

.feature-lock-level > div:last-child {
    text-align: right;
}

.feature-lock-level span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.feature-lock-level strong {
    color: var(--gold-2);
    font-size: 22px;
}

.feature-lock-level > i {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.feature-lock-level > i span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b1b15, var(--gold));
}

.feature-lock-steps {
    display: grid;
    gap: 8px;
}

.feature-lock-steps article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.feature-lock-steps article > span {
    color: var(--gold);
}

.feature-lock-steps .nav-icon {
    width: 30px;
    height: 30px;
}

.feature-lock-steps p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.feature-lock-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 1180px) {
    .resource-bar {
        grid-template-columns: repeat(5, minmax(100px, 1fr)) auto;
    }
}

@media (max-width: 780px) {
    .resource-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-level-xp {
        grid-column: 1 / -1;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 42px);
    }

    .resource-details {
        position: fixed;
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100svh - 104px);
        overflow-y: auto;
    }

    .feature-lock {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .feature-lock-art {
        min-height: 230px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-lock-art > span {
        width: 120px;
        height: 120px;
    }

    .feature-lock-art .nav-icon {
        width: 68px;
        height: 68px;
    }

    .feature-lock-level {
        grid-template-columns: 1fr;
    }

    .feature-lock-level > div:last-child {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .resource-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Crime gameplay */
.crime-hero {
    align-items: flex-end;
}

.crime-heat-panel {
    width: min(310px, 100%);
    padding: 16px;
    border: 1px solid rgba(184, 32, 24, 0.58);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(63, 13, 10, 0.74), rgba(5, 5, 5, 0.9));
    box-shadow: 0 0 28px rgba(184, 32, 24, 0.18);
}

.crime-heat-panel > span,
.crime-heat-panel small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.crime-heat-panel > strong {
    display: block;
    margin: 7px 0;
    color: #ff746b;
    font-size: 30px;
}

.heat-meter {
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.heat-meter i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--amber), #ff4036);
    box-shadow: 0 0 14px rgba(255, 64, 54, 0.46);
}

.crime-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.crime-overview article {
    min-height: 76px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.crime-overview article > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.07);
}

.crime-overview .nav-icon {
    width: 30px;
    height: 30px;
}

.crime-overview article > div {
    display: grid;
    gap: 4px;
}

.crime-overview small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.crime-tabs {
    display: flex;
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 6, 6, 0.92);
}

.crime-tabs a {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #ddd;
    border: 1px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.crime-tabs a:hover {
    color: #fff;
    border-color: var(--line-gold);
    background: rgba(212, 175, 55, 0.1);
}

.crime-tabs small {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
}

.crime-category {
    scroll-margin-top: 110px;
}

.crime-category > header {
    margin-bottom: 12px;
}

.crime-category h2 {
    margin: 5px 0;
    font-size: 24px;
}

.crime-category header p {
    margin: 0;
    color: var(--muted);
}

.crime-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.crime-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    overflow: hidden;
    border-top: 2px solid var(--green);
}

.crime-card.risk-medium {
    border-top-color: var(--amber);
}

.crime-card.risk-high {
    border-top-color: #df6044;
}

.crime-card.risk-critical {
    border-top-color: #ff3328;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 70, 60, 0.22);
}

.crime-card.is-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
}

.crime-card > header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.crime-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0.5)),
        radial-gradient(circle, rgba(240, 210, 138, 0.12), transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(212, 175, 55, 0.1);
}

.crime-icon .nav-icon {
    width: 32px;
    height: 32px;
}

.crime-card h3 {
    margin: 4px 0 0;
    font-size: 16px;
}

.risk-badge {
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.risk-medium .risk-badge {
    color: var(--amber);
}

.risk-high .risk-badge,
.risk-critical .risk-badge {
    color: #ff746b;
}

.crime-level {
    color: var(--gold-2);
    font-size: 10px;
}

.crime-card > p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.crime-chance {
    display: grid;
    gap: 7px;
}

.crime-chance > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.crime-chance span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.crime-chance strong {
    color: var(--gold-2);
}

.crime-chance > i {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.crime-chance > i span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #8c1b15, var(--amber), var(--green));
}

.crime-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.crime-stats div {
    min-height: 48px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.24);
}

.crime-stats dt {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.crime-stats dd {
    margin: 0;
    color: #eee;
    font-size: 10px;
    font-weight: 700;
}

.crime-lock-note {
    position: relative;
    z-index: 1;
    padding: 9px;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.74);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.crime-action {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
}

.crime-action.is-loading {
    background: linear-gradient(90deg, #5c3c13, #c59132, #5c3c13);
    background-size: 200% 100%;
    animation: actionLoading 1s linear infinite;
}

@keyframes actionLoading {
    to {
        background-position: -200% 0;
    }
}

.crime-history-list {
    display: grid;
    gap: 7px;
}

.crime-history-list article {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.crime-history-list article > span {
    color: var(--gold);
}

.crime-history-list .nav-icon {
    width: 28px;
    height: 28px;
}

.crime-history-list article > div {
    display: grid;
    gap: 3px;
}

.crime-history-list small,
.crime-history-list time {
    color: var(--muted);
    font-size: 9px;
}

.crime-history-list b {
    color: #ff746b;
    text-transform: uppercase;
    font-size: 9px;
}

.crime-history-list .outcome-success b {
    color: var(--green);
}

.game-result-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.game-result-modal[hidden] {
    display: none;
}

.game-result-panel {
    width: min(480px, 100%);
    padding: 28px;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(29, 24, 15, 0.97), rgba(4, 4, 4, 0.99)),
        url("../img/login-arkaplan.png") center / cover;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.82), 0 0 42px rgba(212, 175, 55, 0.13);
    text-align: center;
    animation: resultReveal .28s ease both;
}

@keyframes resultReveal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
}

.game-result-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.72));
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.18);
}

.is-failure .game-result-icon {
    color: #ff5a51;
    border-color: rgba(255, 75, 65, 0.5);
    box-shadow: 0 0 32px rgba(255, 75, 65, 0.18);
}

.game-result-icon .nav-icon {
    width: 50px;
    height: 50px;
}

.game-result-panel h2 {
    margin: 7px 0;
    font-size: 30px;
}

.game-result-panel > p {
    color: var(--muted);
    line-height: 1.55;
}

.game-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 18px 0;
}

.game-result-stats div {
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.game-result-stats span {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.game-result-stats strong {
    color: var(--gold-2);
}

.game-result-panel .game-btn {
    width: 100%;
}

body.has-result-modal {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .crime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .crime-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crime-grid {
        grid-template-columns: 1fr;
    }

    .crime-history-list article {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .crime-history-list b,
    .crime-history-list time {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .crime-overview {
        grid-template-columns: 1fr;
    }

    .game-result-stats {
        grid-template-columns: 1fr;
    }
}

/* Dynamic black market */
.market-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.market-status-grid article {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
}

.market-status-grid article > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: radial-gradient(circle at 50% 30%, rgba(240, 202, 98, 0.2), rgba(0, 0, 0, 0.48));
}

.market-status-grid .nav-icon {
    width: 30px;
    height: 30px;
}

.market-status-grid article > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.market-status-grid small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.market-status-grid strong {
    color: var(--gold-2);
    font-size: 1.05rem;
}

.black-market-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 12px;
    align-items: start;
}

.market-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.market-item {
    position: relative;
    overflow: hidden;
    padding: 14px;
}

.market-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #7b7368;
    box-shadow: 0 0 14px currentColor;
}

.market-item.rarity-rare::before {
    background: #4d91cf;
}

.market-item.rarity-epic::before {
    background: #a661d1;
}

.market-item.rarity-legendary::before {
    background: #e3a53e;
}

.market-item.is-locked {
    opacity: 0.64;
}

.market-item > header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.market-item-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0.72));
}

.market-item-icon .nav-icon {
    width: 34px;
    height: 34px;
}

.market-item header small {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
}

.market-item h2 {
    margin: 4px 0 0;
    font-size: 1.05rem;
}

.market-item header > em {
    padding: 5px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.price-up {
    color: #ff766e;
    background: rgba(181, 38, 31, 0.13);
}

.price-down {
    color: #8bd66a;
    background: rgba(86, 151, 52, 0.13);
}

.market-item dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 13px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--line);
}

.market-item dl > div {
    min-height: 54px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(8, 8, 8, 0.95);
}

.market-item dt {
    color: var(--muted);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.market-item dd {
    margin: 0;
    color: #e8dfd2;
    font-weight: 800;
}

.market-bonuses {
    min-height: 31px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.market-bonuses span {
    padding: 5px 7px;
    color: #d3c4a8;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.05);
    font-size: 0.68rem;
}

.market-item .game-btn {
    width: 100%;
}

.market-inventory {
    position: sticky;
    top: 96px;
    padding: 14px;
}

.market-inventory [data-market-inventory] {
    display: grid;
    gap: 7px;
}

.market-inventory article {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
}

.market-inventory article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.market-inventory article .nav-icon {
    width: 29px;
    height: 29px;
}

.market-inventory article > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.market-inventory article strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-inventory article small {
    color: var(--muted);
    font-size: 0.6rem;
}

.market-inventory article > b {
    color: var(--gold-2);
}

.market-warning {
    margin: 12px 0 0;
    padding-top: 12px;
    color: #9e958a;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    line-height: 1.55;
}

.market-result {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

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

.market-result > div {
    position: relative;
    width: min(430px, 100%);
    padding: 28px;
    text-align: center;
}

.market-result > div > button {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    color: var(--muted);
    border: 0;
    background: transparent;
    font-size: 1.5rem;
}

.market-result [data-market-result-icon] {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.7));
}

.market-result [data-market-result-icon] .nav-icon {
    width: 46px;
    height: 46px;
}

.market-result h2 {
    margin: 5px 0 9px;
}

.market-result p {
    color: var(--muted);
    line-height: 1.55;
}

.market-result > div > div {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.market-result.is-seized [data-market-result-icon],
.market-result.is-seized h2 {
    color: #ff6f66;
    border-color: rgba(181, 38, 31, 0.55);
}

@media (max-width: 1180px) {
    .black-market-layout {
        grid-template-columns: 1fr;
    }

    .market-inventory {
        position: static;
    }
}

@media (max-width: 780px) {
    .market-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-catalog {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .market-status-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .market-status-grid article {
        min-height: 70px;
        padding: 9px;
    }

    .market-status-grid article > span {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .market-status-grid .nav-icon {
        width: 26px;
        height: 26px;
    }

    .market-item > header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .market-item header > em {
        grid-column: 2;
        justify-self: start;
    }
}

/* Focused HUD, crime card alignment and premium sidebar icons */
.topbar {
    height: 84px;
    min-height: 84px;
    padding: 9px 10px;
    gap: 10px;
}

.topbar .player-chip {
    flex: 0 1 230px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
}

.topbar .avatar-orb {
    width: 52px;
}

.topbar .player-chip strong {
    font-size: 15px;
}

.topbar .player-chip em {
    margin-top: 2px;
    font-size: 11px;
}

.topbar .player-chip i {
    width: 100%;
    height: 5px;
    margin-top: 6px;
}

.topbar .resource-bar {
    grid-template-columns: repeat(5, minmax(88px, 1fr)) auto;
    gap: 6px;
}

.topbar .resource-pill {
    min-height: 50px;
    padding: 5px 7px;
    gap: 6px;
}

.topbar .resource-pill .resource-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

.topbar .resource-pill .resource-icon .nav-icon {
    width: 25px;
    height: 25px;
}

.topbar .resource-copy small {
    font-size: 7px;
}

.topbar .resource-copy strong {
    font-size: 10px;
}

.topbar .topbar-actions {
    grid-template-columns: repeat(2, 38px);
    gap: 5px;
}

.topbar .icon-button {
    width: 38px;
    height: 38px;
}

.sidebar-scroll .side-menu a > span,
.sidebar-scroll .side-group a > span,
.sidebar-scroll .side-logout > span {
    position: relative;
    overflow: hidden;
    color: #ffd36a;
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 6px;
    background:
        radial-gradient(circle at 38% 24%, rgba(255, 230, 142, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(122, 75, 18, 0.28), rgba(7, 7, 7, 0.68));
    box-shadow:
        inset 0 1px rgba(255, 240, 166, 0.12),
        inset 0 -8px 18px rgba(0, 0, 0, 0.2);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sidebar-scroll .premium-nav-icon {
    fill: none;
    filter:
        drop-shadow(0 1px 0 rgba(255, 240, 166, 0.24))
        drop-shadow(0 3px 4px rgba(122, 75, 18, 0.46));
}

.sidebar-scroll a:hover > span,
.sidebar-scroll a.active > span,
.sidebar-scroll .side-logout:hover > span {
    border-color: rgba(255, 211, 106, 0.55);
    box-shadow:
        inset 0 1px rgba(255, 240, 166, 0.2),
        0 0 16px rgba(255, 205, 100, 0.3);
    transform: scale(1.04);
}

.sidebar-scroll a.active .premium-nav-icon {
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 220, 0.42))
        drop-shadow(0 0 7px rgba(255, 205, 100, 0.55));
}

.crime-card {
    display: flex;
    flex-direction: column;
    align-content: initial;
    height: 100%;
}

.crime-card-actions {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.crime-card-actions .crime-action {
    margin-top: 0;
}

@media (max-width: 1180px) and (min-width: 781px) {
    .topbar {
        height: auto;
        min-height: 132px;
        padding: 10px;
        gap: 8px;
    }

    .topbar .player-chip {
        flex-basis: auto;
    }

    .topbar .resource-bar {
        grid-template-columns: repeat(5, minmax(82px, 1fr)) auto;
    }
}

@media (max-width: 780px) {
    .topbar {
        position: sticky;
        top: max(8px, env(safe-area-inset-top));
        height: 148px;
        min-height: 148px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: 52px 64px;
        grid-template-areas:
            "menu player"
            "resources resources";
        align-items: center;
        gap: 8px;
        padding: 8px;
    }

    .topbar .mobile-menu-toggle {
        grid-area: menu;
        min-height: 44px;
        height: 44px;
        padding: 0 11px;
    }

    .topbar .mobile-menu-toggle span {
        width: 26px;
        height: 26px;
    }

    .topbar .mobile-menu-toggle .nav-icon {
        width: 23px;
        height: 23px;
    }

    .topbar .player-chip {
        grid-area: player;
        width: 100%;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
    }

    .topbar .avatar-orb {
        width: 42px;
    }

    .topbar .player-chip strong {
        font-size: 13px;
    }

    .topbar .player-chip em {
        font-size: 9px;
    }

    .topbar .resource-bar {
        grid-area: resources;
        width: 100%;
        height: 54px;
        min-height: 54px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 1px 3px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .topbar .resource-bar::-webkit-scrollbar {
        display: none;
    }

    .topbar .resource-pill {
        flex: 0 0 92px;
        min-height: 52px;
        scroll-snap-align: start;
    }

    .topbar .resource-level-xp {
        flex-basis: 112px;
    }

    .topbar .topbar-actions {
        flex: 0 0 auto;
        display: flex;
        grid-column: auto;
    }

    .topbar .icon-button {
        display: inline-flex;
    }

    .topbar .resource-details {
        top: max(8px, env(safe-area-inset-top));
    }
}

@media (max-width: 390px) {
    .topbar {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .topbar .mobile-menu-toggle {
        width: 78px;
        padding: 0 8px;
        gap: 5px;
        font-size: 10px;
    }

    .topbar .resource-pill {
        flex-basis: 88px;
    }

    .topbar .resource-level-xp {
        flex-basis: 108px;
    }
}

/* Phase 1: progression, command dashboard and city operations */
.district-modal-panel > .district-modal-close {
    position: sticky;
    top: 0;
    z-index: 10;
    display: block;
    margin: 0 0 -38px auto;
}

.game-avatar.has-frame {
    z-index: 1;
}

.game-avatar.has-frame .avatar-frame,
.frame-card-composite .avatar-frame {
    inset: -17%;
    width: 134%;
    height: 134%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    -webkit-mask: radial-gradient(circle at center, transparent 0 47%, #000 52%);
    mask: radial-gradient(circle at center, transparent 0 47%, #000 52%);
    filter:
        drop-shadow(0 0 4px rgba(255, 211, 106, 0.72))
        drop-shadow(0 3px 7px rgba(0, 0, 0, 0.72));
}

.game-avatar.has-frame::after {
    content: "";
    position: absolute;
    inset: -8%;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 211, 106, 0.42);
    border-radius: inherit;
    box-shadow: 0 0 14px rgba(255, 205, 100, 0.22);
}

.dashboard-command-hero {
    min-height: 270px;
}

.dashboard-alert-rail {
    width: min(330px, 100%);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(214, 168, 79, 0.42);
    border-radius: 7px;
    background: rgba(5, 5, 5, 0.84);
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.1), 0 16px 35px rgba(0, 0, 0, 0.44);
}

.dashboard-alert-rail > span,
.operation-desk-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.38);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(122, 75, 18, 0.38), rgba(0, 0, 0, 0.72));
}

.dashboard-alert-rail .nav-icon,
.operation-desk-icon .nav-icon {
    width: 36px;
    height: 36px;
}

.dashboard-alert-rail div {
    display: grid;
    gap: 4px;
}

.dashboard-alert-rail small,
.dashboard-alert-rail em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
}

.dashboard-alert-rail strong {
    color: #fff;
    font-size: 15px;
}

.dashboard-identity {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(280px, 1fr) minmax(460px, 1.4fr);
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    overflow: visible;
}

.dashboard-identity-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.dashboard-avatar {
    width: 68px;
    height: 68px;
}

.dashboard-identity h2 {
    margin: 3px 0;
    color: #fff;
    font-size: 20px;
}

.dashboard-identity p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-identity p b {
    margin-left: 6px;
    color: var(--gold-2);
}

.dashboard-xp-block {
    display: grid;
    gap: 8px;
}

.dashboard-xp-block header,
.dashboard-xp-block footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 9px;
}

.dashboard-xp-block header strong {
    color: #fff;
    font-size: 14px;
}

.dashboard-xp-block header b,
.dashboard-xp-block footer b {
    color: var(--gold-2);
}

.dashboard-xp-track {
    height: 9px;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-radius: 999px;
    background: #030303;
}

.dashboard-xp-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #79120d, #d6a84f 68%, #fff0a6);
    box-shadow: 0 0 13px rgba(255, 205, 100, 0.36);
}

.dashboard-status-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.dashboard-status-chips > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 6px;
    padding: 8px;
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.34);
}

.dashboard-status-chips .nav-icon {
    width: 27px;
    height: 27px;
    grid-row: 1 / 3;
    color: #ffd36a;
}

.dashboard-status-chips b {
    min-width: 0;
    overflow: hidden;
    color: #f7df9a;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-status-chips b i {
    font-style: normal;
}

.dashboard-status-chips small {
    color: var(--muted);
    font-size: 7px;
    text-transform: uppercase;
}

.dashboard-buff-card {
    min-height: 116px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 14px;
}

.dashboard-buff-card > div {
    display: grid;
    gap: 4px;
}

.dashboard-buff-card small {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.dashboard-buff-card strong {
    color: #fff;
    font-size: 16px;
}

.dashboard-buff-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 3px 0 0;
    padding: 0;
    color: #c9bdab;
    list-style: none;
    font-size: 9px;
}

.dashboard-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 12px;
}

.dashboard-operation-desk,
.dashboard-events-panel {
    grid-column: 1 / -1;
}

.dashboard-operation-desk .card-title-row > div,
.dashboard-economy-panel .card-title-row > div,
.dashboard-events-panel .card-title-row > div {
    min-width: 0;
}

.dashboard-operation-desk .card-title-row p {
    margin: 4px 0 0;
}

.operation-desk-list,
.dashboard-event-list {
    display: grid;
    gap: 8px;
}

.operation-desk-list > article {
    min-height: 78px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 145px 100px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.operation-desk-list > article.risk-high,
.operation-desk-list > article.risk-critical {
    border-left-color: #cf3d30;
}

.operation-desk-list article > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.operation-desk-list small,
.operation-desk-list em {
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
}

.operation-desk-list strong {
    color: #fff;
    font-size: 13px;
}

.operation-desk-state {
    text-align: right;
}

.operation-desk-state b {
    color: var(--gold-2);
    font-size: 13px;
}

.dashboard-empty-operation {
    min-height: 105px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px dashed rgba(214, 168, 79, 0.32);
    border-radius: 7px;
    background: rgba(214, 168, 79, 0.035);
}

.dashboard-empty-operation > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
}

.dashboard-empty-operation .nav-icon {
    width: 34px;
    height: 34px;
}

.dashboard-empty-operation p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-mission-board .mission-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.dashboard-mission-board .mission-row small {
    display: block;
    margin-top: 5px;
    color: #9f947f;
    font-size: 8px;
}

.family-command-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.family-command-head .crest {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.45);
    border-radius: 50%;
    background: radial-gradient(circle, #57130e, #080403 72%);
    font-family: Georgia, serif;
    font-size: 27px;
}

.family-command-head > div {
    display: grid;
    gap: 4px;
}

.family-command-head strong {
    color: #fff;
    font-size: 15px;
}

.family-command-head small {
    color: var(--muted);
    font-size: 9px;
}

.family-command-head > b {
    color: var(--green);
    font-size: 9px;
}

.family-command-stats,
.economy-command-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 13px 0;
}

.family-command-stats > div,
.economy-command-list > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.28);
}

.family-command-stats dt,
.economy-command-list dt {
    color: var(--muted);
    font-size: 8px;
}

.family-command-stats dd,
.economy-command-list dd {
    margin: 0;
    color: #ead9af;
    font-size: 9px;
    font-weight: 800;
}

.economy-command-list dd.negative {
    color: #ff756e;
}

.family-bonus-list {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.family-bonus-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #c8bda8;
    font-size: 9px;
}

.family-bonus-list .nav-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.family-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 22px 10px;
    text-align: center;
}

.family-empty-state > span {
    color: var(--gold);
}

.family-empty-state .nav-icon {
    width: 54px;
    height: 54px;
}

.family-empty-state h3,
.family-empty-state p {
    margin: 0;
}

.family-empty-state p {
    color: var(--muted);
    font-size: 10px;
}

.family-empty-state > div {
    display: flex;
    gap: 7px;
}

.economy-command-total {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(95, 181, 74, 0.28);
    border-radius: 7px;
    background: linear-gradient(120deg, rgba(54, 121, 42, 0.14), rgba(0, 0, 0, 0.3));
}

.economy-command-total span,
.economy-command-total small {
    color: var(--muted);
    font-size: 8px;
}

.economy-command-total strong {
    color: #8be167;
    font-size: 26px;
}

.dashboard-event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-event-list article {
    min-height: 142px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(214, 168, 79, 0.07), rgba(0, 0, 0, 0.36));
}

.dashboard-event-list article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.32);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.34);
}

.dashboard-event-list .nav-icon {
    width: 29px;
    height: 29px;
}

.dashboard-event-list article > div {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 3px;
}

.dashboard-event-list small,
.dashboard-event-list p,
.dashboard-event-list em {
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
}

.dashboard-event-list strong {
    color: #fff;
    font-size: 12px;
}

.dashboard-event-list p {
    margin: 3px 0 0;
    line-height: 1.45;
}

.dashboard-event-list aside {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.dashboard-event-list aside b {
    color: var(--gold-2);
    font-size: 10px;
}

.crime-operation-strip {
    display: grid;
    grid-template-columns: minmax(180px, .6fr) minmax(320px, 1fr) minmax(260px, .8fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}

.crime-operation-strip > div:first-child {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.crime-operation-strip > div:first-child > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 6px;
}

.crime-operation-strip > div:first-child .nav-icon {
    width: 29px;
    height: 29px;
}

.crime-operation-strip small,
.crime-operation-strip p {
    color: var(--muted);
    font-size: 8px;
}

.crime-operation-strip strong {
    display: block;
    color: #fff;
    font-size: 12px;
}

.crime-operation-strip p {
    margin: 0;
    line-height: 1.45;
}

.crime-phase-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.crime-phase-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c9bdab;
    font-size: 8px;
}

.crime-phase-legend i {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #241400;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe68f, #a96a16);
    font-style: normal;
    font-weight: 900;
}

.crime-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.crime-requirements > span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    color: #d36b63;
    border: 1px solid rgba(211, 107, 99, 0.3);
    border-radius: 4px;
    background: rgba(92, 14, 10, 0.14);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.crime-requirements > span.met {
    color: #95d979;
    border-color: rgba(121, 199, 83, 0.28);
    background: rgba(42, 91, 32, 0.12);
}

.crime-requirements .nav-icon {
    width: 17px;
    height: 17px;
}

.crime-lock-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 9px;
    border: 1px solid rgba(207, 61, 48, 0.3);
    border-radius: 5px;
    background: rgba(91, 13, 9, 0.16);
}

.crime-lock-note strong,
.crime-lock-note span {
    grid-column: 1;
}

.crime-lock-note strong {
    color: #ff8f87;
    font-size: 8px;
    text-transform: uppercase;
}

.crime-lock-note span {
    color: #bbaea0;
    font-size: 8px;
}

.crime-lock-note a {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--gold-2);
    font-size: 8px;
}

.crime-planner {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 7px;
}

.crime-planner label {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.crime-planner label > span {
    color: var(--muted);
    font-size: 7px;
    text-transform: uppercase;
}

.crime-planner select,
.crime-planner input[type="number"] {
    width: 100%;
    min-height: 38px;
    color: #f2e2bc;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 5px;
    background: #080808;
    padding: 0 9px;
}

.crime-planner .crime-check {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.28);
}

.crime-check input {
    accent-color: var(--gold);
}

.crime-check span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.crime-check .nav-icon {
    width: 19px;
    height: 19px;
    color: var(--gold);
}

.crime-active-plan {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(214, 168, 79, 0.32);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(214, 168, 79, 0.1), rgba(0, 0, 0, 0.35));
}

.crime-active-plan > header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.crime-active-plan > header > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    border-radius: 5px;
}

.crime-active-plan header .nav-icon {
    width: 23px;
    height: 23px;
}

.crime-active-plan header div {
    display: grid;
    gap: 2px;
}

.crime-active-plan header small {
    color: var(--muted);
    font-size: 7px;
}

.crime-active-plan header strong {
    color: #fff;
    font-size: 10px;
}

.crime-active-plan header > b {
    color: #8fe26d;
    font-size: 11px;
}

.crime-operation-timeline {
    display: grid;
    grid-template-columns: 18px 1fr 18px 1fr 18px 1fr;
    align-items: center;
    gap: 4px;
}

.crime-operation-timeline i {
    width: 14px;
    height: 14px;
    border: 2px solid #574d3e;
    border-radius: 50%;
    background: #080808;
}

.crime-operation-timeline i.done {
    border-color: #8ccf6c;
    background: #427331;
}

.crime-operation-timeline i.active {
    border-color: #ffd36a;
    box-shadow: 0 0 9px rgba(255, 211, 106, 0.4);
}

.crime-operation-timeline span {
    color: #b9ad9b;
    font-size: 7px;
}

.crime-operation-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

.page-sehir-haritasi .turkey-map-shell {
    min-height: clamp(620px, 74vh, 860px);
    height: clamp(620px, 74vh, 860px);
    padding-block: clamp(24px, 4vh, 54px);
    background-position: center 62%;
}

.page-sehir-haritasi .turkey-svg {
    width: 100%;
    height: 100%;
}

.city-action-tree {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.city-action-tree > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.city-action-tree > header span {
    color: var(--gold);
    font-size: 8px;
    text-transform: uppercase;
}

.city-action-tree > header h3,
.city-action-tree > header p {
    margin: 3px 0 0;
}

.city-action-tree > header p {
    max-width: 400px;
    color: var(--muted);
    font-size: 9px;
}

.city-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.city-action-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 242px;
    padding: 11px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--green);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.34));
}

.city-action-card.risk-medium {
    border-top-color: var(--amber);
}

.city-action-card.risk-high,
.city-action-card.risk-critical {
    border-top-color: #d14438;
}

.city-action-card.is-locked {
    opacity: .62;
}

.city-action-card header {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    color: var(--gold-2);
    font-size: 7px;
    text-transform: uppercase;
}

.city-action-card h4 {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

.city-action-card p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.45;
}

.city-action-card dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 0;
}

.city-action-card dl div {
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.city-action-card dt {
    color: var(--muted);
    font-size: 6px;
    text-transform: uppercase;
}

.city-action-card dd {
    margin: 0;
    color: #ead9af;
    font-size: 8px;
    font-weight: 800;
}

.city-action-missing,
.city-action-ready {
    min-height: 30px;
    padding: 6px;
    border-radius: 4px;
    font-size: 7px;
}

.city-action-missing {
    color: #e29a93;
    border: 1px solid rgba(207, 61, 48, 0.28);
    background: rgba(91, 13, 9, 0.12);
}

.city-action-ready {
    color: #94d779;
    border: 1px solid rgba(121, 199, 83, 0.24);
    background: rgba(42, 91, 32, 0.1);
}

.city-action-card .game-btn {
    width: 100%;
    margin-top: auto;
}

.city-active-operation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(214, 168, 79, 0.36);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(214, 168, 79, 0.1), rgba(0, 0, 0, 0.35));
}

.city-active-operation > div,
.city-active-operation aside {
    display: grid;
    gap: 4px;
}

.city-active-operation span,
.city-active-operation small {
    color: var(--muted);
    font-size: 8px;
}

.city-active-operation strong {
    color: #fff;
    font-size: 13px;
}

.city-active-operation aside {
    min-width: 140px;
    text-align: right;
}

.city-active-operation aside b {
    color: var(--gold-2);
    font-size: 12px;
}

@media (max-width: 1180px) {
    .dashboard-identity {
        grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr);
    }

    .dashboard-status-chips {
        grid-column: 1 / -1;
    }

    .dashboard-event-list,
    .city-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .dashboard-command-hero {
        align-items: end;
    }

    .dashboard-alert-rail {
        width: 100%;
    }

    .dashboard-identity {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .dashboard-status-chips {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dashboard-status-chips::-webkit-scrollbar {
        display: none;
    }

    .dashboard-status-chips > span {
        min-width: 118px;
    }

    .dashboard-command-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-operation-desk,
    .dashboard-events-panel {
        grid-column: auto;
    }

    .operation-desk-list > article {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .operation-desk-icon {
        width: 46px;
        height: 46px;
    }

    .operation-desk-icon .nav-icon {
        width: 30px;
        height: 30px;
    }

    .operation-desk-state,
    .operation-desk-list article > .game-btn {
        grid-column: 2;
        text-align: left;
    }

    .dashboard-empty-operation {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .dashboard-empty-operation > .game-btn {
        grid-column: 1 / -1;
    }

    .dashboard-event-list {
        grid-template-columns: 1fr;
    }

    .crime-operation-strip {
        grid-template-columns: 1fr;
    }

    .crime-planner {
        grid-template-columns: 1fr 82px;
    }

    .crime-operation-actions {
        grid-template-columns: 1fr;
    }

    .page-sehir-haritasi .turkey-map-shell {
        min-height: 540px;
        height: 540px;
        padding-block: 30px;
    }

    .city-action-grid {
        grid-template-columns: 1fr;
    }

    .city-action-card {
        min-height: 0;
    }

    .city-action-tree > header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .dashboard-identity-main {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .dashboard-avatar {
        width: 54px;
        height: 54px;
    }

    .dashboard-xp-block header,
    .dashboard-xp-block footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-progression .energy-command-card,
    .dashboard-progression .dashboard-buff-card {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .dashboard-event-list article {
        min-height: 128px;
    }

    .family-command-stats,
    .economy-command-list {
        grid-template-columns: 1fr;
    }

    .crime-phase-legend {
        grid-template-columns: 1fr;
    }

    .crime-operation-timeline {
        grid-template-columns: 16px 1fr;
    }

    .crime-operation-timeline i,
    .crime-operation-timeline span {
        grid-column: auto;
    }

    .city-active-operation {
        grid-template-columns: 1fr;
    }

    .city-active-operation aside {
        min-width: 0;
        text-align: left;
    }
}

/* HUD v3 */
.topbar {
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) 112px;
    align-items: center;
    height: 78px;
    min-height: 78px;
    padding: 8px;
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(21, 20, 17, 0.97), rgba(5, 5, 5, 0.97)),
        radial-gradient(circle at 50% 0, rgba(214, 168, 79, 0.08), transparent 55%);
    border-color: rgba(214, 168, 79, 0.25);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 240, 166, 0.07);
}

.topbar .player-chip {
    width: 100%;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    padding: 4px 6px;
    border-right: 1px solid rgba(214, 168, 79, 0.14);
}

.topbar .avatar-orb {
    width: 46px;
}

.topbar .player-chip strong {
    font-size: 14px;
}

.topbar .player-chip em {
    font-size: 10px;
}

.topbar .resource-bar {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.topbar .resource-pill {
    min-width: 0;
    min-height: 48px;
    padding: 5px 6px;
    gap: 6px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(50, 41, 20, 0.55), rgba(5, 5, 5, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(255, 211, 106, 0.12), transparent 42%);
}

.topbar .resource-pill .resource-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.topbar .resource-pill .resource-icon .nav-icon {
    width: 23px;
    height: 23px;
}

.topbar .resource-copy small {
    font-size: 7px;
    line-height: 1;
}

.topbar .resource-copy strong {
    font-size: 10px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.topbar .resource-copy strong > span {
    display: inline;
    width: auto;
    height: auto;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.topbar .resource-level-xp .resource-copy i {
    height: 3px;
}

.topbar .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    align-items: center;
    justify-content: end;
    gap: 5px;
}

.topbar .icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-color: rgba(214, 168, 79, 0.25);
    background: linear-gradient(180deg, rgba(214, 168, 79, 0.12), rgba(0, 0, 0, 0.48));
}

.topbar .icon-button .nav-icon {
    width: 23px;
    height: 23px;
}

.topbar .resource-details {
    top: calc(100% + 8px);
}

.bottom-nav a > span {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 6px;
    color: #ffd36a;
    background:
        radial-gradient(circle at 38% 24%, rgba(255, 230, 142, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(122, 75, 18, 0.32), rgba(5, 5, 5, 0.74));
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.12), 0 3px 10px rgba(0, 0, 0, 0.36);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bottom-nav .premium-nav-icon {
    width: 29px;
    height: 29px;
    fill: none;
    filter: drop-shadow(0 1px 0 rgba(255, 240, 166, 0.22)) drop-shadow(0 2px 4px rgba(122, 75, 18, 0.48));
}

.bottom-nav a:hover > span,
.bottom-nav a.active > span {
    border-color: rgba(255, 211, 106, 0.62);
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.2), 0 0 16px rgba(255, 205, 100, 0.32);
    transform: translateY(-2px);
}

.bottom-nav a.active .premium-nav-icon {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 220, 0.42)) drop-shadow(0 0 7px rgba(255, 205, 100, 0.58));
}

@media (max-width: 1100px) and (min-width: 781px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-areas:
            "player actions"
            "resources resources";
        height: 126px;
        min-height: 126px;
    }

    .topbar .player-chip {
        grid-area: player;
        border-right: 0;
    }

    .topbar .resource-bar {
        grid-area: resources;
    }

    .topbar .topbar-actions {
        grid-area: actions;
    }
}

@media (max-width: 780px) {
    .topbar {
        grid-template-columns: 72px minmax(0, 1fr) 110px;
        grid-template-rows: 48px 56px;
        grid-template-areas:
            "menu player actions"
            "resources resources resources";
        height: 126px;
        min-height: 126px;
        gap: 6px;
        padding: 7px;
    }

    .topbar .mobile-menu-toggle {
        grid-area: menu;
        width: 72px;
        height: 42px;
        min-height: 42px;
        padding: 0 7px;
        gap: 4px;
        font-size: 9px;
    }

    .topbar .mobile-menu-toggle span {
        width: 23px;
        height: 23px;
    }

    .topbar .mobile-menu-toggle .nav-icon {
        width: 21px;
        height: 21px;
    }

    .topbar .player-chip {
        grid-area: player;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 7px;
        padding: 2px 4px;
        border-right: 0;
    }

    .topbar .avatar-orb {
        width: 36px;
    }

    .topbar .player-chip strong {
        font-size: 12px;
    }

    .topbar .player-chip em {
        font-size: 8px;
    }

    .topbar .player-chip i {
        height: 4px;
        margin-top: 4px;
    }

    .topbar .topbar-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: repeat(3, 32px);
        gap: 4px;
    }

    .topbar .icon-button {
        display: inline-flex;
        width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .topbar .resource-bar {
        grid-area: resources;
        width: 100%;
        height: 54px;
        min-height: 54px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        overflow: visible;
        padding: 0;
    }

    .topbar .resource-pill,
    .topbar .resource-level-xp {
        grid-column: auto;
        min-width: 0;
        min-height: 52px;
        width: auto;
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
        gap: 3px;
        padding: 4px;
    }

    .topbar .resource-pill .resource-icon {
        width: 24px;
        height: 32px;
        flex-basis: 24px;
        border: 0;
        background: transparent;
    }

    .topbar .resource-pill .resource-icon .nav-icon {
        width: 22px;
        height: 22px;
    }

    .topbar .resource-copy {
        gap: 1px;
    }

    .topbar .resource-copy small {
        font-size: 6px;
    }

    .topbar .resource-copy strong {
        font-size: 8px;
    }

    .topbar .resource-details {
        top: max(8px, env(safe-area-inset-top));
    }

    .bottom-nav {
        min-height: 76px;
        padding: 4px;
        gap: 2px;
        background: linear-gradient(180deg, rgba(18, 17, 14, 0.98), rgba(4, 4, 4, 0.98));
        border-color: rgba(214, 168, 79, 0.3);
    }

    .bottom-nav a {
        border-right: 0;
        border-radius: 5px;
    }

    .bottom-nav a.active {
        background: linear-gradient(180deg, rgba(184, 32, 24, 0.48), rgba(82, 12, 9, 0.28));
    }

    .bottom-nav a > span {
        width: 38px;
        height: 38px;
    }

    .bottom-nav .premium-nav-icon {
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 390px) {
    .topbar {
        grid-template-columns: 64px minmax(0, 1fr) 98px;
    }

    .topbar .mobile-menu-toggle {
        width: 64px;
    }

    .topbar .topbar-actions {
        grid-template-columns: repeat(3, 30px);
    }

    .topbar .icon-button {
        width: 30px;
        height: 30px;
        min-height: 30px;
    }

    .topbar .resource-pill,
    .topbar .resource-level-xp {
        grid-template-columns: 21px minmax(0, 1fr);
        padding: 3px;
    }

    .topbar .resource-pill .resource-icon {
        width: 21px;
    }

    .topbar .resource-pill .resource-icon .nav-icon {
        width: 20px;
        height: 20px;
    }

    .topbar .resource-copy strong {
        font-size: 7px;
    }
}

/* Premium market */
.premium-market-hero {
    min-height: 280px;
}

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

.premium-wallet > div {
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 3px 9px;
    padding: 10px;
    border: 1px solid rgba(214, 168, 79, 0.38);
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.82);
}

.premium-wallet > div > span {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffd36a;
}

.premium-wallet .nav-icon {
    width: 32px;
    height: 32px;
}

.premium-wallet small {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 8px;
}

.premium-wallet strong {
    color: var(--gold-2);
}

.premium-filter {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(3, 3, 3, 0.78);
    scrollbar-width: none;
}

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

.premium-filter button {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 0 14px;
    color: #bcb3a8;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.premium-filter button:hover,
.premium-filter button.active {
    color: #1b1205;
    border-color: rgba(255, 225, 145, 0.55);
    background: linear-gradient(180deg, #f1cf72, #a76b16);
}

.premium-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.premium-package {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow: hidden;
    padding: 16px;
    border-color: rgba(214, 168, 79, 0.25);
}

.premium-package::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 4%, rgba(255, 211, 106, 0.13), transparent 28%),
        linear-gradient(135deg, transparent 55%, rgba(214, 168, 79, 0.04));
}

.premium-package.is-featured {
    border-color: rgba(255, 211, 106, 0.68);
    box-shadow: var(--shadow), 0 0 24px rgba(214, 168, 79, 0.15);
}

.premium-package.type-energy {
    border-top: 2px solid #d6a84f;
}

.premium-package.type-vip,
.premium-package.type-prestige {
    border-top: 2px solid #a56ad7;
}

.premium-package.type-diamond {
    border-top: 2px solid #4fc9e9;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: #211404;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffe296, #b87a1d);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.premium-package > header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-right: 54px;
}

.premium-package-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.42);
    border-radius: 7px;
    background:
        radial-gradient(circle at 42% 25%, rgba(255, 240, 166, 0.3), transparent 35%),
        linear-gradient(145deg, rgba(122, 75, 18, 0.48), rgba(4, 4, 4, 0.92));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 0 20px rgba(214, 168, 79, 0.14);
}

.premium-package-icon .nav-icon {
    width: 48px;
    height: 48px;
    fill: none;
}

.premium-package header small {
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.premium-package h2 {
    margin: 5px 0 0;
    font-size: 19px;
}

.premium-package > p {
    position: relative;
    z-index: 1;
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.premium-package ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-package li {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #d9cfbf;
    border: 1px solid rgba(214, 168, 79, 0.12);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.24);
    font-size: 11px;
}

.premium-package li > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.premium-package li .nav-icon {
    width: 20px;
    height: 20px;
}

.premium-package > footer {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(214, 168, 79, 0.16);
}

.premium-package > footer > div {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
}

.premium-package footer small {
    color: var(--muted);
}

.premium-package footer strong {
    color: var(--gold-2);
    font-size: 20px;
}

.premium-package .game-btn {
    width: 100%;
}

.premium-history {
    margin-top: 12px;
}

.premium-history-list {
    display: grid;
    gap: 7px;
}

.premium-history-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
}

.premium-history-list article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.premium-history-list article > div {
    display: grid;
    gap: 4px;
}

.premium-history-list small {
    color: var(--muted);
}

.premium-history-list article > b {
    color: #8ed46e;
    text-transform: uppercase;
    font-size: 9px;
}

.premium-result {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

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

.premium-result > div {
    position: relative;
    width: min(420px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.premium-result > div > button {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    color: var(--muted);
    border: 0;
    background: transparent;
    font-size: 24px;
}

.premium-result > div > span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.48);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 168, 79, 0.22), rgba(0, 0, 0, 0.75));
}

.premium-result .nav-icon {
    width: 50px;
    height: 50px;
}

.premium-result p {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .premium-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .premium-market-hero {
        min-height: 320px;
    }

    .premium-wallet {
        width: 100%;
    }

    .premium-package-grid {
        grid-template-columns: 1fr;
    }

    .premium-package {
        min-height: 0;
    }
}

/* OMERTA command HUD, dashboard progression and mobile hub */
.page-hero,
.page-hero.small-hero {
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(3, 3, 3, 0.94) 0%, rgba(3, 3, 3, 0.68) 43%, rgba(3, 3, 3, 0.18) 76%, rgba(3, 3, 3, 0.44) 100%),
        var(--hero-art, url("../img/page-hero/eksik-varsa-kullan.png")) center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(214, 168, 79, 0.22), inset 0 -80px 100px rgba(0, 0, 0, 0.38);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 213, 111, 0.035), transparent 36%, rgba(0, 0, 0, 0.3));
}

.topbar {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) 116px;
    height: 88px;
    min-height: 88px;
    padding: 9px 10px;
    border-color: rgba(214, 168, 79, 0.36);
    background:
        linear-gradient(180deg, rgba(23, 21, 17, 0.985), rgba(4, 4, 4, 0.985)),
        radial-gradient(circle at 48% -40%, rgba(255, 211, 106, 0.16), transparent 54%);
}

.topbar .resource-bar {
    gap: 7px;
}

.topbar .resource-pill {
    position: relative;
    min-height: 58px;
    padding: 7px 28px 7px 8px;
    border-color: rgba(214, 168, 79, 0.32);
    background:
        linear-gradient(180deg, rgba(61, 48, 20, 0.52), rgba(7, 7, 7, 0.92)),
        radial-gradient(circle at 20% 10%, rgba(255, 225, 145, 0.13), transparent 45%);
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.1), 0 6px 15px rgba(0, 0, 0, 0.28);
}

.topbar .resource-pill:hover {
    border-color: rgba(255, 211, 106, 0.58);
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.14), 0 0 18px rgba(214, 168, 79, 0.12);
}

.topbar .resource-pill .resource-icon {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
    color: #ffd36a;
}

.topbar .resource-pill .resource-icon .nav-icon {
    width: 27px;
    height: 27px;
    filter: drop-shadow(0 2px 5px rgba(214, 168, 79, 0.42));
}

.topbar .resource-copy small {
    color: #a99e8e;
    font-size: 8px;
}

.topbar .resource-copy strong {
    color: #f8d77d;
    font-size: 11px;
    overflow: visible;
    text-overflow: clip;
}

.resource-add {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 20px;
    height: 28px;
    display: grid;
    place-items: center;
    translate: 0 -50%;
    color: #ffd36a;
    border: 1px solid rgba(214, 168, 79, 0.42);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(0, 0, 0, 0.52));
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.resource-add:hover {
    color: #fff1b0;
    border-color: #ffd36a;
    box-shadow: 0 0 12px rgba(255, 205, 100, 0.3);
}

.resource-level-xp {
    padding-right: 8px !important;
}

.dashboard-progression {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.level-command-card,
.energy-command-card {
    min-height: 116px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-color: rgba(214, 168, 79, 0.35);
    background:
        linear-gradient(110deg, rgba(40, 31, 14, 0.42), rgba(7, 7, 7, 0.94) 48%),
        radial-gradient(circle at 10% 30%, rgba(214, 168, 79, 0.14), transparent 34%);
}

.progression-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.38);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(122, 75, 18, 0.42), rgba(0, 0, 0, 0.78));
    box-shadow: inset 0 1px rgba(255, 240, 166, 0.13), 0 0 18px rgba(214, 168, 79, 0.1);
}

.progression-icon .nav-icon {
    width: 38px;
    height: 38px;
}

.progression-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.progression-main header,
.progression-main footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.progression-main header > div {
    display: grid;
    gap: 3px;
}

.progression-main small,
.progression-main footer {
    color: var(--muted);
    font-size: 9px;
}

.progression-main header strong {
    color: #fff;
    font-size: 17px;
}

.progression-main header > b,
.progression-main footer em,
.progression-main footer b {
    color: var(--gold-2);
    font-style: normal;
    font-size: 10px;
}

.level-command-progress,
.energy-command-progress {
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 999px;
    background: #050505;
}

.level-command-progress span,
.energy-command-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b150f, #d6a84f 72%, #ffe9a3);
    box-shadow: 0 0 12px rgba(255, 205, 100, 0.34);
    transition: width .35s ease;
}

.energy-command-progress span {
    background: linear-gradient(90deg, #8f4f08, #f1bd3d 60%, #fff0a6);
}

.energy-command-card .game-btn {
    min-width: 132px;
}

.dashboard-regions {
    overflow: hidden;
}

.legacy-dashboard-districts {
    display: none !important;
}

.dashboard-regions .card-title-row > div {
    min-width: 0;
}

.dashboard-regions .card-title-row p {
    margin: 4px 0 0;
}

.dashboard-region-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-region-card {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-top: 2px solid #d6a84f;
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(3, 3, 3, 0.14), rgba(3, 3, 3, 0.96) 50%),
        var(--region-art) center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.dashboard-region-card.risk-high {
    border-top-color: #c9542f;
}

.dashboard-region-card.risk-critical {
    border-top-color: #e02d24;
}

.dashboard-region-card.is-locked {
    filter: saturate(.35);
}

.dashboard-region-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 230, 142, 0.05), transparent 40%);
}

.dashboard-region-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-region-card header,
.dashboard-region-card ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.dashboard-region-card header span,
.dashboard-region-card header b {
    padding: 4px 6px;
    color: #f0c65a;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.74);
    font-size: 8px;
    text-transform: uppercase;
}

.dashboard-region-card > div {
    margin-top: auto;
}

.dashboard-region-card h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 16px;
}

.dashboard-region-card p {
    min-height: 50px;
    margin: 0;
    color: #c7c0b5;
    font-size: 10px;
    line-height: 1.45;
}

.dashboard-region-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-region-card li {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.dashboard-region-card li span {
    color: #8f877c;
    font-size: 7px;
    text-transform: uppercase;
}

.dashboard-region-card li strong {
    color: #e7d7b0;
    font-size: 9px;
}

.dashboard-region-card .game-btn {
    width: 100%;
    margin-top: auto;
}

.region-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(7px);
}

.region-entry-modal[hidden] {
    display: none;
}

.region-entry-modal > section {
    position: relative;
    width: min(430px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.region-entry-modal > section > button {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 36px;
    height: 36px;
    color: #c3b9a8;
    border: 0;
    background: transparent;
    font-size: 25px;
}

.region-modal-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 168, 79, 0.23), rgba(0, 0, 0, 0.78));
}

.region-modal-icon .nav-icon {
    width: 44px;
    height: 44px;
}

.region-entry-modal p {
    color: var(--muted);
}

.region-entry-modal [data-region-modal-links] {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.mobile-hub {
    display: none;
}

.level-up-flash::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 220;
    pointer-events: none;
    animation: level-up-screen 1.6s ease both;
}

@keyframes level-up-screen {
    0%, 100% { opacity: 0; box-shadow: inset 0 0 0 rgba(255, 211, 106, 0); }
    35% { opacity: 1; box-shadow: inset 0 0 160px rgba(255, 211, 106, 0.34); }
}

@media (max-width: 1280px) {
    .dashboard-region-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) and (min-width: 781px) {
    .topbar {
        height: 136px;
        min-height: 136px;
    }
}

@media (max-width: 780px) {
    body.is-mobile-hub-open {
        overflow: hidden;
    }

    .topbar {
        grid-template-columns: 62px minmax(0, 1fr) 106px;
        grid-template-rows: 48px 66px;
        height: 134px;
        min-height: 134px;
        padding: 7px;
    }

    .topbar .mobile-menu-toggle {
        width: 58px;
        padding: 0;
    }

    .topbar .mobile-menu-toggle b {
        display: none;
    }

    .topbar .resource-bar {
        height: 64px;
        min-height: 64px;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .topbar .resource-bar::-webkit-scrollbar {
        display: none;
    }

    .topbar .resource-pill,
    .topbar .resource-level-xp {
        width: 105px;
        min-width: 105px;
        min-height: 60px;
        grid-template-columns: 29px minmax(0, 1fr);
        scroll-snap-align: start;
        padding: 6px 25px 6px 5px;
    }

    .topbar .resource-level-xp {
        width: 125px;
        min-width: 125px;
        padding-right: 6px !important;
    }

    .topbar .resource-pill .resource-icon {
        width: 29px;
        height: 38px;
    }

    .topbar .resource-copy small {
        display: block;
        font-size: 7px;
    }

    .topbar .resource-copy strong {
        font-size: 10px;
    }

    .resource-add {
        width: 18px;
        height: 28px;
        right: 4px;
    }

    .dashboard-progression {
        grid-template-columns: 1fr;
    }

    .dashboard-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-command-nav {
        left: 6px;
        right: 6px;
        bottom: calc(6px + var(--safe-bottom));
        min-height: 76px;
        grid-template-columns: 1fr 1fr 82px 1fr 1fr;
        overflow: visible;
        padding: 4px 5px;
    }

    .mobile-command-nav > a {
        min-width: 0;
    }

    .mobile-command-nav > a > span {
        width: 38px;
        height: 38px;
    }

    .mobile-command-nav > a:nth-of-type(n + 1) {
        display: grid;
    }

    .mobile-hub-trigger {
        position: relative;
        top: -17px;
        width: 70px;
        height: 70px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        justify-self: center;
        color: #fff1b0;
        border: 2px solid #d6a84f;
        border-radius: 50%;
        background:
            radial-gradient(circle at 38% 25%, rgba(255, 232, 152, 0.3), transparent 35%),
            linear-gradient(145deg, #6f160f, #180706 62%, #020202);
        box-shadow: inset 0 1px rgba(255, 240, 166, 0.24), 0 0 0 5px rgba(3, 3, 3, 0.92), 0 0 25px rgba(214, 168, 79, 0.34);
    }

    .mobile-hub-trigger span {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
    }

    .mobile-hub-trigger .nav-icon {
        width: 31px;
        height: 31px;
    }

    .mobile-hub-trigger b {
        color: #f6dc91;
        font-size: 8px;
        text-transform: uppercase;
    }

    .mobile-hub {
        position: fixed;
        inset: 0;
        z-index: 170;
        display: grid;
        place-items: center;
        padding: 18px 14px calc(98px + var(--safe-bottom));
    }

    .mobile-hub[hidden] {
        display: none;
    }

    .mobile-hub-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.64);
        backdrop-filter: blur(7px);
    }

    .mobile-hub-panel {
        position: relative;
        width: min(430px, 100%);
        max-height: min(680px, calc(100dvh - 120px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
        border: 1px solid rgba(255, 211, 106, 0.68);
        border-radius: 8px;
        background:
            linear-gradient(160deg, rgba(39, 32, 20, 0.99), rgba(9, 9, 8, 0.99) 48%),
            radial-gradient(circle at 50% 0, rgba(214, 168, 79, 0.24), transparent 48%);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 240, 166, 0.2), 0 0 28px rgba(214, 168, 79, 0.12);
        animation: mobile-hub-in .22s ease both;
    }

    .mobile-hub-panel > header {
        min-height: 66px;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 38px;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(214, 168, 79, 0.19);
    }

    .mobile-hub-panel header > div {
        display: grid;
        gap: 4px;
    }

    .mobile-hub-avatar {
        width: 44px;
        height: 44px;
    }

    .mobile-hub-panel header small {
        color: var(--gold);
        font-size: 8px;
    }

    .mobile-hub-panel header strong {
        color: #fff;
        font-size: 17px;
    }

    .mobile-hub-panel header > button {
        width: 38px;
        height: 38px;
        color: #e9d6a3;
        border: 1px solid rgba(214, 168, 79, 0.26);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.45);
        font-size: 24px;
    }

    .mobile-hub-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow-y: auto;
        padding: 12px;
        scrollbar-width: thin;
        scrollbar-color: #8a621f transparent;
    }

    .mobile-hub-grid a {
        min-height: 92px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 8px;
        padding: 8px 5px;
        color: #f0e8d9;
        border: 1px solid rgba(214, 168, 79, 0.3);
        border-radius: 7px;
        background: linear-gradient(145deg, rgba(214, 168, 79, 0.13), rgba(0, 0, 0, 0.5));
        text-align: center;
        text-decoration: none;
    }

    .mobile-hub-grid a.active {
        color: #fff;
        border-color: rgba(255, 211, 106, 0.62);
        background: linear-gradient(145deg, rgba(143, 24, 18, 0.7), rgba(38, 7, 5, 0.72));
        box-shadow: 0 0 16px rgba(184, 32, 24, 0.22);
    }

    .mobile-hub-grid a > span {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        color: #ffd36a;
        border: 1px solid rgba(255, 211, 106, 0.28);
        border-radius: 7px;
        background: linear-gradient(145deg, rgba(122, 75, 18, 0.34), rgba(0, 0, 0, 0.62));
    }

    .mobile-hub-grid .nav-icon {
        width: 32px;
        height: 32px;
    }

    .mobile-hub-grid b {
        max-width: 100%;
        color: inherit;
        font-size: 9px;
        line-height: 1.25;
    }

    @keyframes mobile-hub-in {
        from { opacity: 0; transform: translateY(18px) scale(.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}

@media (max-width: 520px) {
    .page-hero,
    .page-hero.small-hero {
        min-height: 230px;
        padding: 22px 18px;
        background-position: 62% center;
    }

    .page-hero h1 {
        font-size: 27px;
    }

    .level-command-card,
    .energy-command-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .progression-icon {
        width: 48px;
        height: 48px;
    }

    .progression-icon .nav-icon {
        width: 31px;
        height: 31px;
    }

    .progression-main header strong {
        font-size: 14px;
    }

    .progression-main header > b {
        font-size: 8px;
    }

    .progression-main footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .energy-command-card .game-btn {
        width: 100%;
        min-width: 0;
    }

    .dashboard-region-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-region-card {
        min-height: 265px;
    }

    .dashboard-regions .card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .region-entry-modal [data-region-modal-links] {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 781px) {
    .mobile-command-nav,
    .mobile-hub {
        display: none !important;
    }
}

/* Avatar and VIP frame system */
.game-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: visible;
    border-radius: 50%;
    isolation: isolate;
}

.game-avatar .avatar-image,
.game-avatar .avatar-frame,
.frame-card-composite .avatar-image,
.frame-card-composite .avatar-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.game-avatar .avatar-image,
.frame-card-composite .avatar-image {
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
}

.game-avatar .avatar-frame,
.frame-card-composite .avatar-frame {
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

.game-avatar .avatar-frame[hidden],
[data-preview-frame][hidden] {
    display: none !important;
}

.game-avatar.avatar-orb {
    background: #080808;
}

.profile-avatar-large {
    width: 82px !important;
}

.game-avatar.avatar-orb .avatar-image {
    border: 1px solid rgba(255, 211, 106, 0.52);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.avatar-role-badge {
    position: absolute;
    right: -5px;
    bottom: -3px;
    z-index: 3;
    padding: 3px 5px;
    color: #fff4c5;
    border: 1px solid rgba(255, 211, 106, 0.68);
    border-radius: 4px;
    background: linear-gradient(180deg, #8e1c15, #380806);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    font-size: 6px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.member-list div {
    grid-template-columns: 32px 36px minmax(0, 1fr) auto;
}

.member-avatar {
    width: 34px;
    height: 34px;
}

.avatar-selection-hero {
    min-height: 290px;
}

.avatar-hero-preview {
    min-width: 310px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 211, 106, 0.34);
    border-radius: 7px;
    background: rgba(3, 3, 3, 0.78);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(5px);
}

.avatar-preview-large {
    width: 106px;
    height: 106px;
}

.avatar-hero-preview > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.avatar-hero-preview small,
.avatar-live-copy small {
    color: var(--gold);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.avatar-hero-preview strong {
    color: #fff;
    font-size: 16px;
}

.avatar-hero-preview span {
    color: var(--muted);
    font-size: 10px;
}

.avatar-studio {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.avatar-live-panel {
    position: sticky;
    top: 112px;
    display: grid;
    justify-items: stretch;
    gap: 15px;
}

.avatar-live-stage {
    min-height: 270px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 42%, rgba(214, 168, 79, 0.18), transparent 44%),
        linear-gradient(145deg, #17130c, #030303 70%);
}

.avatar-preview-xl {
    width: min(225px, 76%);
    aspect-ratio: 1;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.58));
}

.avatar-live-copy {
    display: grid;
    gap: 5px;
    text-align: center;
}

.avatar-live-copy strong {
    color: #fff;
    font-size: 18px;
}

.avatar-live-copy span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.avatar-access-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.avatar-access-summary > span {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: #cfc5b5;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 7px;
}

.avatar-access-summary .nav-icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.avatar-catalog {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.avatar-section .card-title-row > div {
    min-width: 0;
}

.avatar-section .card-title-row p {
    margin: 4px 0 0;
}

.avatar-count {
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    border-radius: 5px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.avatar-option {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 9px;
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 7px;
    background: linear-gradient(155deg, rgba(214, 168, 79, 0.07), rgba(2, 2, 2, 0.72));
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.avatar-option:hover {
    border-color: rgba(255, 211, 106, 0.54);
    box-shadow: 0 0 18px rgba(255, 205, 100, 0.12);
    transform: translateY(-2px);
}

.avatar-option.selected {
    border-color: #ffd36a;
    box-shadow: inset 0 0 0 1px rgba(255, 211, 106, 0.24), 0 0 20px rgba(255, 205, 100, 0.18);
}

.avatar-option.locked {
    filter: saturate(.5);
}

.avatar-option-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 211, 106, 0.2);
    border-radius: 6px;
    background: #070707;
    cursor: pointer;
}

.avatar-option-preview > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.avatar-option > div {
    min-height: 48px;
    display: grid;
    align-content: start;
    gap: 4px;
}

.avatar-option > div strong {
    color: #fff;
    font-size: 11px;
}

.avatar-option > div small {
    overflow: hidden;
    color: var(--muted);
    display: -webkit-box;
    font-size: 8px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.avatar-option .game-btn {
    width: 100%;
    margin-top: auto;
}

.avatar-premium-badge,
.avatar-staff-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    padding: 4px 6px;
    color: #211404;
    border: 1px solid rgba(255, 241, 176, 0.68);
    border-radius: 4px;
    background: linear-gradient(180deg, #ffe596, #b7781c);
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
}

.avatar-staff-badge {
    color: #fff1c2;
    border-color: rgba(255, 211, 106, 0.48);
    background: linear-gradient(180deg, #a72018, #420806);
}

.avatar-lock {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffd36a;
    background: rgba(0, 0, 0, 0.62);
}

.avatar-lock .nav-icon {
    width: 38px;
    height: 38px;
}

.frame-card-composite {
    position: absolute;
    inset: 8%;
    display: block;
}

.frame-option .avatar-option-preview {
    background:
        radial-gradient(circle, rgba(214, 168, 79, 0.15), transparent 56%),
        #060606;
}

.ranking-emblem.game-avatar {
    width: 46px;
    height: 46px;
    overflow: visible;
}

.chat-avatar.game-avatar {
    overflow: visible;
    padding: 0;
}

.character-hero-identity {
    min-width: 290px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.32);
    border-radius: 7px;
    background: rgba(2, 2, 2, 0.78);
}

.character-avatar {
    width: 106px;
    height: 106px;
}

.character-hero-identity > div {
    display: grid;
    gap: 5px;
}

.character-hero-identity small,
.character-hero-identity span {
    color: var(--gold);
    font-size: 9px;
}

.character-hero-identity strong {
    color: #fff;
    font-size: 18px;
}

.profile-identity-card {
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
}

.avatar-profile-stage {
    width: 100%;
    min-height: 300px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 7px;
    background: radial-gradient(circle, rgba(214, 168, 79, 0.17), transparent 52%), #050505;
}

.avatar-profile-main {
    width: min(260px, 80%);
    aspect-ratio: 1;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 15px;
}

.profile-stat-grid > div {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-stat-grid span {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.profile-stat-grid strong {
    color: var(--gold-2);
    font-size: 17px;
}

@media (max-width: 780px) {
    .character-hero-identity {
        width: 100%;
        min-width: 0;
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .character-avatar {
        width: 76px;
        height: 76px;
    }

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

@media (max-width: 1180px) {
    .avatar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .avatar-selection-hero {
        align-items: flex-end;
        flex-direction: column;
    }

    .avatar-hero-preview {
        width: 100%;
        min-width: 0;
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .avatar-preview-large {
        width: 78px;
        height: 78px;
    }

    .avatar-studio {
        grid-template-columns: 1fr;
    }

    .avatar-live-panel {
        position: relative;
        top: 0;
    }

    .avatar-live-stage {
        min-height: 220px;
    }

    .avatar-preview-xl {
        width: 180px;
    }

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

@media (max-width: 390px) {
    .avatar-option {
        padding: 7px;
    }

    .avatar-option > div strong {
        font-size: 10px;
    }

    .avatar-option .game-btn {
        padding-inline: 5px;
        font-size: 8px;
    }
}

/* Final targeted overrides for the requested map stage sizing. */
body.page-sehir-haritasi .turkey-map-shell {
    min-height: clamp(720px, 84vh, 980px);
    height: clamp(720px, 84vh, 980px);
    padding-block: clamp(46px, 6vh, 92px);
}

body.page-sehir-haritasi .turkey-svg {
    width: 100%;
    height: calc(100% - clamp(82px, 10vh, 150px));
    min-height: 500px;
}

@media (max-width: 780px) {
    body.page-sehir-haritasi .turkey-map-shell {
        min-height: 650px;
        height: 650px;
        padding-block: 42px;
    }

    body.page-sehir-haritasi .turkey-svg {
        height: calc(100% - 92px);
        min-height: 470px;
    }
}

@media (max-width: 430px) {
    body.page-sehir-haritasi .turkey-map-shell {
        min-height: 600px;
        height: 600px;
        padding-block: 34px;
    }

    body.page-sehir-haritasi .turkey-svg {
        min-height: 430px;
    }
}

/* Hard override: city map must be a full-screen command stage, not a narrow card. */
body.page-sehir-haritasi .app-frame {
    width: 100%;
    max-width: none;
}

body.page-sehir-haritasi .turkey-command-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.page-sehir-haritasi .turkey-map-card {
    position: relative;
    min-height: calc(100svh - 128px);
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 211, 106, 0.26);
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 34%, rgba(214, 168, 79, 0.15), transparent 35%),
        radial-gradient(circle at 74% 54%, rgba(184, 32, 24, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(4, 4, 4, 0.88), rgba(0, 0, 0, 0.98));
}

body.page-sehir-haritasi .turkey-map-head {
    position: absolute;
    z-index: 7;
    top: 16px;
    left: 16px;
    right: 16px;
    align-items: center;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.86), rgba(0, 0, 0, 0.58));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
}

body.page-sehir-haritasi .turkey-title-lockup {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
}

body.page-sehir-haritasi .turkey-title-lockup img {
    width: 86px;
    max-height: 56px;
}

body.page-sehir-haritasi .turkey-map-head h1 {
    margin: 4px 0;
    font-size: clamp(20px, 2.4vw, 34px);
}

body.page-sehir-haritasi .turkey-map-head p {
    max-width: 780px;
    font-size: 12px;
}

body.page-sehir-haritasi .turkey-map-stats {
    min-width: min(420px, 38vw);
}

body.page-sehir-haritasi .turkey-map-shell {
    min-height: calc(100svh - 128px);
    height: calc(100svh - 128px);
    padding: 0;
    border: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(2, 3, 4, 0.25), rgba(2, 3, 4, 0.94)),
        radial-gradient(circle at 46% 42%, rgba(255, 211, 106, 0.13), transparent 33%),
        radial-gradient(circle at 78% 52%, rgba(184, 32, 24, 0.13), transparent 34%),
        url("../img/login-arkaplan.png") center / cover,
        #020304;
}

body.page-sehir-haritasi .turkey-svg {
    width: min(100%, 1740px);
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
}

body.page-sehir-haritasi .turkey-map-loading {
    inset: 100px 18px 72px;
}

body.page-sehir-haritasi .turkey-legend {
    position: absolute;
    z-index: 8;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 211, 106, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

body.page-sehir-haritasi .turkey-event-feed {
    margin-top: 0;
}

body.page-sehir-haritasi .turkey-event-feed .feed-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 9px;
}

.city-control-command {
    display: grid;
    gap: 14px;
    border-color: rgba(255, 211, 106, 0.24);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 211, 106, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.city-control-command .card-title-row span {
    color: #d8c9a7;
    font-size: 11px;
    font-weight: 800;
}

.city-control-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.city-control-grid article {
    min-height: 174px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 13px;
    border: 1px solid rgba(255, 211, 106, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
}

.city-control-grid article > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.30);
    border-radius: 8px;
    background: rgba(214, 168, 79, 0.10);
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.10);
}

.city-control-grid .nav-icon {
    width: 30px;
    height: 30px;
}

.city-control-grid strong {
    color: #fff1bd;
    font-size: 14px;
}

.city-control-grid p {
    margin: 0;
    color: #e3d8c5;
    font-size: 12px;
    line-height: 1.55;
}

.protection-command-board {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr) minmax(220px, 0.7fr);
    gap: 14px;
    align-items: stretch;
    border-color: rgba(255, 211, 106, 0.24);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 211, 106, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(19, 19, 19, 0.96), rgba(3, 3, 3, 0.98));
}

.protection-command-copy h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 22px;
}

.protection-command-copy p,
.protection-loop span,
.protection-active-doctrine span {
    color: #e0d6c4;
    font-size: 12px;
    line-height: 1.55;
}

.protection-loop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.protection-loop article,
.protection-active-doctrine {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.34);
}

.protection-loop b {
    color: #ffd36a;
    font-size: 20px;
}

.protection-loop strong,
.protection-active-doctrine strong {
    color: #fff1bd;
    font-size: 14px;
}

.protection-active-doctrine small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.protection-system-tags,
.protection-preview-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.protection-system-tags span,
.protection-preview-systems span {
    padding: 5px 7px;
    color: #ffdf8a;
    border: 1px solid rgba(255, 211, 106, 0.20);
    border-radius: 999px;
    background: rgba(214, 168, 79, 0.09);
    font-size: 10px;
    font-weight: 800;
}

.protection-note.is-ready {
    color: #a8f2a0;
}

.protection-actions {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8px;
    margin-top: auto;
}

.protection-card .protection-actions .game-btn {
    margin-top: 0;
}

.protection-preview-modal[hidden] {
    display: none;
}

.protection-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.protection-preview-panel {
    position: relative;
    width: min(720px, 100%);
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 211, 106, 0.12), transparent 36%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(2, 2, 2, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.64);
}

.protection-preview-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.protection-preview-panel p {
    margin: 0;
    color: #e2d8c6;
    line-height: 1.6;
}

.protection-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.protection-preview-stats article {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.35);
}

.protection-preview-stats span {
    display: block;
    color: #d7c8a8;
    font-size: 10px;
    text-transform: uppercase;
}

.protection-preview-stats strong {
    color: #fff1bd;
    font-size: 15px;
}

@media (max-width: 1180px) {
    .city-control-grid,
    .protection-loop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .protection-command-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    body.page-sehir-haritasi .app-frame {
        padding-left: 0;
        padding-right: 0;
    }

    body.page-sehir-haritasi .game-main {
        gap: 10px;
    }

    body.page-sehir-haritasi .turkey-strategy {
        margin-inline: 0;
    }

    body.page-sehir-haritasi .strategy-top-nav,
    body.page-sehir-haritasi .selected-city-panel,
    body.page-sehir-haritasi .city-control-command,
    body.page-sehir-haritasi .turkey-event-feed {
        margin-inline: 8px;
    }

    body.page-sehir-haritasi .turkey-map-card {
        min-height: calc(100svh - 88px);
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    body.page-sehir-haritasi .turkey-map-head {
        top: 10px;
        left: 10px;
        right: 10px;
        display: grid;
        gap: 8px;
        padding: 9px;
    }

    body.page-sehir-haritasi .turkey-title-lockup {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px;
    }

    body.page-sehir-haritasi .turkey-title-lockup img {
        width: 54px;
        max-height: 38px;
    }

    body.page-sehir-haritasi .turkey-map-head p {
        display: none;
    }

    body.page-sehir-haritasi .turkey-map-head h1 {
        font-size: 20px;
    }

    body.page-sehir-haritasi .turkey-map-stats {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-sehir-haritasi .turkey-map-stats article {
        padding: 8px;
    }

    body.page-sehir-haritasi .turkey-map-stats span {
        font-size: 8px;
    }

    body.page-sehir-haritasi .turkey-map-stats strong {
        font-size: 11px;
    }

    body.page-sehir-haritasi .turkey-map-shell {
        min-height: calc(100svh - 88px);
        height: calc(100svh - 88px);
    }

    body.page-sehir-haritasi .turkey-svg {
        width: 100%;
        height: 100%;
    }

    body.page-sehir-haritasi .turkey-legend {
        left: 10px;
        right: 10px;
        bottom: 10px;
        grid-template-columns: repeat(5, minmax(64px, 1fr));
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.page-sehir-haritasi .turkey-legend::-webkit-scrollbar {
        display: none;
    }

    .city-control-grid,
    .protection-grid,
    .protection-overview-grid,
    .protection-preview-stats {
        grid-template-columns: 1fr;
    }

    .protection-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    body.page-sehir-haritasi .turkey-map-card,
    body.page-sehir-haritasi .turkey-map-shell {
        min-height: calc(100svh - 72px);
        height: calc(100svh - 72px);
    }

    body.page-sehir-haritasi .turkey-map-head {
        left: 8px;
        right: 8px;
    }

    body.page-sehir-haritasi .turkey-map-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Immersive map mode requested for sehir-haritasi only. */
body.page-sehir-haritasi .sidebar {
    display: none;
}

body.page-sehir-haritasi .app-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-inline: 0;
}

body.page-sehir-haritasi .game-main {
    width: 100%;
    padding-inline: 14px;
}

body.page-sehir-haritasi .turkey-map-card,
body.page-sehir-haritasi .turkey-map-shell {
    min-height: 100svh !important;
    height: 100svh !important;
}

body.page-sehir-haritasi .city-svg.turkey-svg {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

@media (max-width: 780px) {
    body.page-sehir-haritasi .app-frame,
    body.page-sehir-haritasi .game-main {
        padding-inline: 0;
    }

    body.page-sehir-haritasi .turkey-map-card,
    body.page-sehir-haritasi .turkey-map-shell {
        min-height: 100svh !important;
        height: 100svh !important;
    }
}

/* OMERTA economy/social/settings/event overhaul. */
.business-command-grid,
.income-overview-grid,
.income-type-grid,
.settings-card-grid,
.event-summary-grid,
.player-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.business-market-grid,
.event-center-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.business-economy-card,
.income-main-vault,
.income-type-card,
.event-summary-grid > article,
.player-profile-stats > article {
    min-height: 112px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-color: rgba(255, 211, 106, 0.18);
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 211, 106, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.business-economy-card > span,
.income-main-vault > span,
.income-type-card > span,
.settings-action-card > span,
.event-summary-grid > article > span,
.event-operation-card header > span,
.player-profile-stats > article > span,
.settings-warning-card > span,
.event-vault-card > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.32);
    border-radius: 9px;
    background:
        radial-gradient(circle, rgba(255, 211, 106, 0.18), rgba(214, 168, 79, 0.08) 58%, rgba(0, 0, 0, 0.34));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 211, 106, 0.10);
}

.business-economy-card .nav-icon,
.income-main-vault .nav-icon,
.income-type-card .nav-icon,
.settings-action-card .nav-icon,
.event-summary-grid .nav-icon,
.event-operation-card .nav-icon,
.player-profile-stats .nav-icon,
.settings-warning-card .nav-icon,
.event-vault-card .nav-icon {
    width: 32px;
    height: 32px;
}

.business-economy-card small,
.income-main-vault small,
.income-type-card small,
.event-summary-grid small,
.player-profile-stats small,
.settings-action-card small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.business-economy-card strong,
.income-main-vault strong,
.income-type-card strong,
.event-summary-grid strong,
.player-profile-stats strong {
    display: block;
    margin: 4px 0;
    color: #fff1bd;
    font-size: 19px;
}

.business-economy-card em,
.income-main-vault em,
.income-type-card em,
.event-summary-grid em {
    color: #d9cfbd;
    font-size: 11px;
    font-style: normal;
    line-height: 1.45;
}

.business-auto-system,
.business-laundering-panel,
.settings-preference-panel,
.settings-danger-zone {
    display: grid;
    gap: 14px;
    border-color: rgba(255, 211, 106, 0.22);
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 211, 106, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.business-auto-system {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
}

.business-auto-system h2,
.business-laundering-panel h2,
.settings-danger-zone h2 {
    margin: 5px 0;
    color: #fff;
    font-size: 22px;
}

.business-auto-system p,
.business-laundering-panel p,
.settings-danger-zone p,
.settings-action-card p,
.event-operation-card p,
.event-vault-card p {
    margin: 0;
    color: #e3d8c5;
    font-size: 13px;
    line-height: 1.6;
}

.business-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.business-flow article {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.34);
}

.business-flow b {
    color: #ffd36a;
    font-size: 19px;
}

.business-flow strong,
.business-network-card h2,
.event-operation-card h2,
.settings-action-card h2 {
    color: #fff;
}

.business-flow span {
    color: #d9cfbd;
    font-size: 12px;
    line-height: 1.45;
}

.business-laundering-panel {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.1fr) auto;
    align-items: center;
}

.business-laundering-panel.is-locked {
    border-color: rgba(184, 32, 24, 0.34);
    background:
        radial-gradient(circle at 12% 12%, rgba(184, 32, 24, 0.14), transparent 35%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.business-laundering-panel dl,
.business-network-card dl,
.income-best-body dl,
.event-operation-card dl,
.player-profile-side dl,
.player-profile-main dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.business-laundering-panel dl div,
.business-network-card dl div,
.income-best-body dl div,
.event-operation-card dl div,
.player-profile-side dl div,
.player-profile-main dl div {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.33);
}

.business-laundering-panel dt,
.business-network-card dt,
.income-best-body dt,
.event-operation-card dt,
.player-profile-side dt,
.player-profile-main dt {
    color: #d7c8a8;
    font-size: 10px;
    text-transform: uppercase;
}

.business-laundering-panel dd,
.business-network-card dd,
.income-best-body dd,
.event-operation-card dd,
.player-profile-side dd,
.player-profile-main dd {
    margin: 4px 0 0;
    color: #fff1bd;
    font-size: 14px;
    font-weight: 900;
}

.business-network-card,
.event-operation-card,
.settings-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 430px;
    border-color: rgba(255, 211, 106, 0.16);
    background:
        radial-gradient(circle at 22% 12%, rgba(255, 211, 106, 0.10), transparent 35%),
        linear-gradient(155deg, rgba(18, 18, 18, 0.97), rgba(2, 2, 2, 0.98));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.business-network-card:hover,
.event-operation-card:hover,
.settings-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 211, 106, 0.34);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 211, 106, 0.10);
}

.business-network-card header,
.event-operation-card header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.business-network-card header > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.32);
    border-radius: 9px;
    background: rgba(214, 168, 79, 0.10);
}

.business-network-card header b,
.event-operation-card header b {
    padding: 6px 8px;
    color: #241604;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe39a, #b7791c);
    font-size: 9px;
    font-weight: 900;
}

.business-network-card p {
    margin: 0;
    color: #e3d8c5;
    font-size: 13px;
    line-height: 1.55;
}

.business-card-progress,
.event-progress span,
.player-xp-line i,
.settings-security-score i {
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.business-card-progress span,
.event-progress b,
.player-xp-line b,
.settings-security-score b {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7e130d, #d6a84f, #ffe39a);
}

.business-card-actions,
.event-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.income-dashboard-grid,
.settings-identity-grid,
.player-profile-grid,
.event-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 14px;
}

.income-chart-card,
.income-best-card,
.income-history-card {
    border-color: rgba(255, 211, 106, 0.18);
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.income-bars {
    display: grid;
    gap: 10px;
}

.income-bars > div,
.income-history-list article {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(140px, 1.2fr) auto;
    align-items: center;
    gap: 10px;
}

.income-bars span,
.income-history-list strong {
    color: #fff;
    font-weight: 900;
}

.income-bars i {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.income-bars b {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7e130d, #d6a84f);
}

.income-bars strong,
.income-history-list em {
    color: #fff1bd;
    font-style: normal;
    font-weight: 900;
}

.income-best-body {
    display: grid;
    gap: 12px;
}

.income-best-body > span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 12px;
    background: rgba(214, 168, 79, 0.10);
}

.income-history-list {
    display: grid;
    gap: 8px;
}

.income-history-list article {
    grid-template-columns: 42px minmax(0, 1fr) auto auto auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.30);
}

.income-history-list article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border-radius: 8px;
    background: rgba(214, 168, 79, 0.10);
}

.income-history-list small,
.income-history-list time {
    color: #d7c8a8;
    font-size: 11px;
}

.mission-readable-card {
    border-color: rgba(255, 211, 106, 0.18) !important;
}

.mission-readable-card p,
.mission-current-brief span,
.mission-current-brief small,
.mission-ready-state {
    color: #f1eadb !important;
}

.mission-badges span,
.mission-rewards div,
.mission-current-brief {
    border-color: rgba(255, 211, 106, 0.18);
    background: rgba(0, 0, 0, 0.42);
}

.mission-chain-card h3,
.mission-current-brief strong,
.mission-rewards dd {
    color: #fff1bd !important;
}

.chat-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.chat-message footer a,
.chat-message footer button {
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    color: #ffdf8a;
    border: 1px solid rgba(255, 211, 106, 0.18);
    border-radius: 6px;
    background: rgba(214, 168, 79, 0.08);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}

.player-mini-modal .player-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-security-score,
.player-profile-avatar-card {
    min-width: 260px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.24);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.58);
}

.settings-security-score > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 12px;
    background: rgba(214, 168, 79, 0.12);
}

.settings-security-score small,
.settings-profile-card small,
.settings-warning-card small {
    color: #d6a84f;
    font-size: 10px;
    text-transform: uppercase;
}

.settings-security-score strong {
    display: block;
    color: #fff1bd;
    font-size: 22px;
}

.settings-profile-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.settings-avatar {
    width: 100px;
    height: 100px;
}

.settings-profile-card h2,
.settings-warning-card h2,
.event-vault-card h2,
.player-profile-main h2,
.player-profile-side h2 {
    margin: 4px 0;
    color: #fff;
}

.settings-profile-card p,
.settings-warning-card p {
    color: #e2d8c6;
}

.settings-profile-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.settings-profile-card dl div {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.30);
}

.settings-profile-card dt {
    color: #d7c8a8;
    font-size: 9px;
    text-transform: uppercase;
}

.settings-profile-card dd {
    margin: 4px 0 0;
    color: #fff1bd;
    font-weight: 900;
}

.settings-warning-card,
.event-vault-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.settings-action-card {
    min-height: 230px;
    color: inherit;
    text-decoration: none;
}

.settings-action-card b {
    margin-top: auto;
    color: #ffdf8a;
    font-size: 12px;
}

.settings-toggle-list {
    display: grid;
    gap: 10px;
}

.settings-toggle-list label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0 54px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.settings-toggle-list strong {
    color: #fff;
}

.settings-toggle-list small,
.settings-save-note {
    color: #d8cfbe;
    font-size: 12px;
}

.settings-toggle-list input {
    opacity: 0;
}

.settings-toggle-list i {
    position: relative;
    width: 52px;
    height: 28px;
    border: 1px solid rgba(255, 211, 106, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.settings-toggle-list i::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d7c8a8;
    transition: transform 0.18s ease, background 0.18s ease;
}

.settings-toggle-list input:checked + i {
    background: rgba(214, 168, 79, 0.22);
}

.settings-toggle-list input:checked + i::after {
    transform: translateX(23px);
    background: #ffd36a;
}

.settings-danger-zone {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.event-operation-card {
    min-height: 390px;
}

.event-progress {
    display: grid;
    gap: 6px;
}

.event-progress em {
    color: #d8cfbe;
    font-size: 11px;
    font-style: normal;
}

.event-operation-card.risk-high,
.event-operation-card.risk-critical {
    border-color: rgba(184, 32, 24, 0.38);
}

.player-profile-main,
.player-profile-side {
    border-color: rgba(255, 211, 106, 0.20);
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(3, 3, 3, 0.98));
}

.player-profile-identity {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.profile-main-avatar {
    width: 112px;
    height: 112px;
}

.profile-page-avatar {
    width: 86px;
    height: 86px;
}

.player-xp-line {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.player-xp-line span,
.player-xp-line em {
    color: #d8cfbe;
    font-size: 12px;
    font-style: normal;
}

.player-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 1180px) {
    .business-command-grid,
    .income-overview-grid,
    .income-type-grid,
    .settings-card-grid,
    .event-summary-grid,
    .player-profile-stats,
    .business-market-grid,
    .event-center-grid,
    .business-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .business-auto-system,
    .business-laundering-panel,
    .income-dashboard-grid,
    .settings-identity-grid,
    .player-profile-grid,
    .event-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .business-command-grid,
    .income-overview-grid,
    .income-type-grid,
    .settings-card-grid,
    .event-summary-grid,
    .player-profile-stats,
    .business-market-grid,
    .event-center-grid,
    .business-flow,
    .business-laundering-panel dl,
    .business-network-card dl,
    .event-operation-card dl,
    .settings-profile-card dl,
    .income-best-body dl {
        grid-template-columns: 1fr;
    }

    .business-card-actions,
    .event-card-actions,
    .settings-danger-zone {
        grid-template-columns: 1fr;
    }

    .income-history-list article,
    .income-bars > div {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .settings-profile-card,
    .player-profile-identity {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .settings-avatar,
    .profile-main-avatar {
        width: 82px;
        height: 82px;
    }

    .chat-head-actions {
        justify-content: flex-start;
    }

    .business-network-card,
    .event-operation-card,
    .settings-action-card {
        min-height: 0;
    }
}

/* 2026-06-26 responsive readability polish. Keep this block at the end. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* City map: cancel the temporary immersive fullscreen mode and return it to the normal game layout. */
@media (min-width: 781px) {
    body.page-sehir-haritasi .sidebar {
        display: flex;
    }

    body.page-sehir-haritasi .app-frame {
        width: min(1480px, 100%);
        display: grid;
        grid-template-columns: 238px minmax(0, 1fr);
        gap: 16px;
        padding: 14px;
    }

    body.page-sehir-haritasi .game-main {
        width: auto;
        padding-inline: 0;
    }
}

body.page-sehir-haritasi .turkey-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

body.page-sehir-haritasi .turkey-map-card {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 16px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(214, 168, 79, 0.22);
}

body.page-sehir-haritasi .turkey-map-head {
    position: relative;
    inset: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.18);
    border-radius: 8px;
    background: rgba(4, 4, 4, 0.76);
}

body.page-sehir-haritasi .turkey-title-lockup {
    min-width: 0;
}

body.page-sehir-haritasi .turkey-map-head h1 {
    font-size: clamp(24px, 2.4vw, 36px);
}

body.page-sehir-haritasi .turkey-map-head p {
    max-width: 720px;
    color: #dfd3bf;
    font-size: 13px;
}

body.page-sehir-haritasi .turkey-map-shell {
    height: clamp(520px, 58vh, 720px) !important;
    min-height: 520px !important;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 10px;
}

body.page-sehir-haritasi .city-svg.turkey-svg,
body.page-sehir-haritasi .turkey-svg {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block;
}

body.page-sehir-haritasi .turkey-legend {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: 12px;
}

body.page-sehir-haritasi .turkey-event-feed {
    max-height: none;
}

body.page-sehir-haritasi .turkey-event-feed .feed-list {
    max-height: 260px;
    overflow-y: auto;
}

/* Message center: compact composer, clearer cards and mobile-safe layout. */
.social-shell.game-card {
    min-height: min(720px, calc(100svh - 210px));
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.social-sidebar {
    min-width: 0;
}

.social-room {
    min-width: 0;
}

.chat-room-head {
    gap: 10px;
    padding: 12px;
}

.chat-list {
    min-height: 360px;
    max-height: min(58vh, 640px);
    overflow-y: auto;
    padding: 12px;
}

.chat-message {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.chat-message-body {
    min-width: 0;
}

.chat-message-body header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
}

.chat-message-body header button {
    color: #fff5d5;
    text-decoration: none;
}

.chat-message-body header button:hover {
    color: #ffd36a;
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.30);
}

.chat-message-body p {
    margin: 8px 0 0;
    color: #f5ead6;
    font-size: 13px;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.chat-quote,
.chat-message-body blockquote.chat-quote {
    border-left: 3px solid #ffd36a;
    border-radius: 7px;
    background: rgba(214, 168, 79, 0.13);
    color: #fff0c8;
}

.chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-compose input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
}

.chat-compose .game-btn {
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

/* Mission center readability. */
.mission-type-tabs a {
    color: #f5ead6;
    font-size: 11px;
}

.mission-board-section h2,
.mission-chain-card h3 {
    color: #fff4d3;
}

.mission-chain-card {
    min-height: 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 211, 106, 0.10), transparent 35%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.97), rgba(3, 3, 3, 0.98));
}

.mission-chain-card > p {
    min-height: 0;
    color: #f1e5d1 !important;
    font-size: 13px;
    line-height: 1.6;
}

.mission-badges span {
    color: #ffe9ad;
    font-size: 10px;
    font-weight: 900;
}

.mission-step-track > div {
    color: #d7c8a8;
    font-size: 10px;
}

.mission-current-brief strong,
.mission-current-brief span,
.mission-current-brief small,
.mission-ready-state,
.mission-rewards dt,
.mission-rewards dd {
    color: #f4ead8 !important;
}

.mission-rewards dt {
    color: #d6a84f !important;
    font-size: 10px;
}

.mission-rewards dd {
    font-size: 12px;
}

/* Profile, support and ticket pages. */
.profile-overview-hero,
.support-hero {
    --hero-art: url("../img/page-hero/profilim.png");
}

.support-hero {
    --hero-art: url("../img/page-hero/destek-olustur.png");
}

.profile-hero-badge,
.support-hero-card {
    width: min(360px, 100%);
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 211, 106, 0.34);
    border-radius: 9px;
    background: rgba(4, 4, 4, 0.78);
}

.support-hero-card > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 10px;
    background: rgba(214, 168, 79, 0.12);
}

.profile-hero-badge small,
.support-hero-card small,
.profile-security-panel dt,
.support-category-card small,
.support-ticket-card small,
.ticket-message-list time {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-hero-badge strong,
.support-hero-card strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.profile-hero-badge em,
.support-hero-card em,
.profile-security-panel p {
    color: #e5dbc8;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.profile-dashboard-grid,
.support-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 14px;
}

.profile-identity-panel,
.profile-security-panel,
.support-form-card,
.ticket-board-card,
.ticket-detail-card {
    border-color: rgba(255, 211, 106, 0.22);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 211, 106, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.97), rgba(3, 3, 3, 0.98));
}

.profile-identity-main {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.profile-identity-main h2 {
    margin: 4px 0;
    color: #fff;
    font-size: 28px;
}

.profile-identity-main p {
    margin: 0;
    color: #e1d6c3;
}

.profile-stat-grid,
.profile-progress-grid {
    display: grid;
    gap: 12px;
}

.profile-stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-stat-grid > article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 92px;
}

.profile-stat-grid > article > span,
.support-category-card > span,
.ticket-icon,
.ticket-message-list article > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.30);
    border-radius: 8px;
    background: rgba(214, 168, 79, 0.12);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.08);
}

.profile-stat-grid small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-stat-grid strong {
    display: block;
    margin-top: 3px;
    color: #fff4d3;
    font-size: 18px;
}

.profile-progress-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-security-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-security-panel dl div {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
}

.profile-security-panel dd {
    margin: 4px 0 0;
    color: #fff4d3;
    font-weight: 900;
}

.support-form-compact {
    gap: 12px;
}

.support-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-form-compact input,
.support-form-compact select,
.support-form-compact textarea {
    min-height: 44px;
    color: #fff;
    border-color: rgba(255, 211, 106, 0.18);
    background: rgba(0, 0, 0, 0.46);
}

.support-form-compact textarea {
    min-height: 132px;
    line-height: 1.5;
}

.support-category-stack,
.support-ticket-grid,
.ticket-message-list {
    display: grid;
    gap: 10px;
}

.support-category-card,
.support-ticket-card,
.ticket-message-list article {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.32);
}

.support-category-card {
    grid-template-columns: 50px minmax(0, 1fr);
}

.support-category-card strong,
.support-ticket-card strong,
.ticket-message-list strong {
    color: #fff5d5;
}

.support-ticket-card {
    color: inherit;
    text-decoration: none;
}

.support-ticket-card:hover,
.support-ticket-card.active {
    border-color: rgba(255, 211, 106, 0.42);
    background: rgba(214, 168, 79, 0.08);
}

.support-ticket-card em,
.ticket-message-list p {
    color: #e3d8c5;
    font-size: 12px;
    font-style: normal;
    line-height: 1.55;
}

.support-ticket-card b,
.ticket-status {
    padding: 6px 8px;
    color: #231606;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe39a, #b7791c);
    font-size: 10px;
    font-weight: 900;
}

.support-ticket-card.status-closed b,
.ticket-status.status-closed {
    color: #e7dfd0;
    background: rgba(255, 255, 255, 0.10);
}

.support-ticket-card.status-answered b,
.ticket-status.status-answered {
    color: #071707;
    background: linear-gradient(180deg, #9ef098, #4b9f42);
}

.support-empty-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
}

.support-empty-state > span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.34);
    border-radius: 14px;
    background: rgba(214, 168, 79, 0.13);
}

.support-empty-state strong {
    color: #fff5d5;
    font-size: 22px;
}

.support-empty-state p,
.support-alert {
    color: #eadfcd;
}

.support-alert.is-error {
    color: #ffb6ad;
}

.ticket-message-list article {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
}

@media (max-width: 1180px) {
    body.page-sehir-haritasi .turkey-map-head,
    .profile-dashboard-grid,
    .support-create-grid {
        grid-template-columns: 1fr;
    }

    .profile-stat-grid,
    .profile-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    body.page-sehir-haritasi .app-frame {
        display: block;
        padding: 10px 10px 96px;
    }

    body.page-sehir-haritasi .game-main {
        width: auto;
        padding-inline: 0;
    }

    body.page-sehir-haritasi .strategy-top-nav,
    body.page-sehir-haritasi .selected-city-panel,
    body.page-sehir-haritasi .city-control-command,
    body.page-sehir-haritasi .turkey-event-feed {
        margin-inline: 0;
    }

    body.page-sehir-haritasi .turkey-map-card {
        padding: 10px;
        border-radius: 9px;
    }

    body.page-sehir-haritasi .turkey-map-head {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    body.page-sehir-haritasi .turkey-title-lockup {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px;
    }

    body.page-sehir-haritasi .turkey-title-lockup img {
        width: 54px;
        max-height: 42px;
    }

    body.page-sehir-haritasi .turkey-map-head p {
        display: block;
        font-size: 12px;
    }

    body.page-sehir-haritasi .turkey-map-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    body.page-sehir-haritasi .turkey-map-stats article {
        padding: 8px;
    }

    body.page-sehir-haritasi .turkey-map-shell {
        height: clamp(360px, 52svh, 520px) !important;
        min-height: 360px !important;
        padding: 8px;
    }

    body.page-sehir-haritasi .turkey-legend {
        display: grid;
        grid-template-columns: repeat(5, minmax(92px, 1fr));
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.page-sehir-haritasi .turkey-legend::-webkit-scrollbar {
        display: none;
    }

    .social-shell.game-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .social-sidebar {
        max-height: 260px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .chat-list {
        min-height: 330px;
        max-height: 52svh;
        padding: 10px;
    }

    .chat-compose {
        grid-template-columns: 1fr;
        padding: 9px;
    }

    .chat-compose .game-btn {
        width: 100%;
    }

    .chat-room-head {
        align-items: flex-start;
    }

    .mission-card-grid,
    .mission-rewards,
    .mission-step-track,
    .profile-stat-grid,
    .profile-progress-grid,
    .profile-security-panel dl,
    .support-form-row {
        grid-template-columns: 1fr;
    }

    .mission-chain-card > header,
    .profile-identity-main {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .profile-main-avatar {
        width: 74px;
        height: 74px;
    }

    .profile-identity-main h2 {
        font-size: 22px;
    }

    .support-ticket-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .support-ticket-card b {
        width: max-content;
        grid-column: 2;
    }
}

@media (max-width: 430px) {
    body.page-sehir-haritasi .turkey-map-shell {
        height: 350px !important;
        min-height: 350px !important;
    }

    body.page-sehir-haritasi .turkey-map-head h1 {
        font-size: 22px;
    }

    body.page-sehir-haritasi .turkey-map-stats strong {
        font-size: 10px;
    }

    .chat-message {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .chat-avatar-button,
    .chat-avatar {
        width: 38px;
        height: 38px;
    }

    .profile-hero-badge,
    .support-hero-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 10px;
    }

    .profile-stat-grid > article {
        min-height: 82px;
    }
}

/* OMERTA extended page panels: security, announcements, elections, economy, council and city systems. */
.security-hero,
.password-hero,
.notification-hero,
.announcement-hero,
.rules-hero,
.election-hero,
.economy-hero,
.intercity-war-hero,
.city-management-hero,
.council-hero {
    min-height: 250px;
}

.security-score-card {
    width: min(360px, 100%);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 211, 106, 0.34);
    border-radius: 9px;
    background: rgba(4, 4, 4, 0.78);
}

.security-score-card > span,
.omerta-info-card > span,
.candidate-card header > span,
.economy-stat-card > span,
.war-front-card header > span,
.city-action-card > span,
.proposal-list article > span,
.announcement-icon,
.rule-code-card header > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.32);
    border-radius: 10px;
    background:
        radial-gradient(circle at 32% 20%, rgba(255, 239, 173, 0.22), transparent 38%),
        linear-gradient(145deg, rgba(214, 168, 79, 0.18), rgba(0, 0, 0, 0.44));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 20px rgba(255, 211, 106, 0.10);
}

.security-score-card .nav-icon,
.omerta-info-card .nav-icon,
.candidate-card .nav-icon,
.economy-stat-card .nav-icon,
.war-front-card .nav-icon,
.city-action-card .nav-icon,
.proposal-list .nav-icon,
.announcement-icon .nav-icon,
.rule-code-card .nav-icon {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 9px rgba(255, 211, 106, 0.22));
}

.security-score-card small,
.omerta-info-card small,
.candidate-card small,
.economy-stat-card small,
.war-front-card small,
.city-action-card small,
.proposal-list small,
.announcement-card small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.security-score-card strong,
.omerta-info-card h2,
.candidate-card h2,
.economy-stat-card h2,
.war-front-card h2,
.city-action-card h2,
.proposal-list h3,
.announcement-card h2,
.rule-code-card h2 {
    margin: 4px 0;
    color: #fff4d3;
}

.security-score-card i,
.password-strength-box i,
.economy-stat-card i,
.economy-bar-list i,
.election-progress i,
.proposal-list i {
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.security-score-card b,
.password-strength-box b,
.economy-stat-card b,
.economy-bar-list b,
.election-progress b,
.proposal-list i b {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7d120d, #d6a84f, #ffe39a);
}

.omerta-panel-grid,
.economy-grid,
.city-management-grid,
.candidate-grid,
.war-front-grid,
.rules-grid {
    display: grid;
    gap: 14px;
}

.omerta-panel-grid,
.economy-grid,
.city-management-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-grid,
.war-front-grid,
.rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.omerta-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 14px;
}

.omerta-info-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.omerta-info-card,
.security-command-card,
.security-session-card,
.password-form-card,
.password-advice-card,
.notification-center-card,
.announcement-card,
.rule-code-card,
.candidate-card,
.economy-stat-card,
.economy-chart-card,
.economy-action-card,
.war-front-card,
.city-level-card,
.city-action-card,
.council-proposal-board,
.council-tax-card,
.council-members-card,
.council-history-card {
    border-color: rgba(255, 211, 106, 0.20);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 211, 106, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.97), rgba(3, 3, 3, 0.98));
}

.omerta-info-card p,
.security-check-list small,
.security-session-list small,
.candidate-card p,
.economy-stat-card p,
.economy-bar-list small,
.war-front-card p,
.city-level-card p,
.city-action-card p,
.proposal-list p,
.announcement-card p,
.rule-code-card li,
.policy-list small {
    color: #e6dbc9;
    font-size: 13px;
    line-height: 1.55;
}

.security-check-list,
.security-session-list,
.policy-list,
.economy-bar-list,
.proposal-list,
.city-action-stack {
    display: grid;
    gap: 10px;
}

.security-check-list article,
.security-session-list article,
.policy-list article,
.economy-bar-list article,
.city-action-card,
.proposal-list article {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.32);
}

.security-check-list article > span,
.security-session-list article > span,
.policy-list article > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 8px;
    background: rgba(214, 168, 79, 0.12);
}

.security-check-list strong,
.security-session-list strong,
.policy-list strong,
.economy-bar-list strong,
.announcement-card strong {
    display: block;
    color: #fff4d3;
}

.policy-list small,
.security-check-list small,
.security-session-list small,
.economy-bar-list small {
    display: block;
    margin-top: 3px;
}

.security-session-list b,
.policy-list b,
.status-badge {
    width: max-content;
    padding: 6px 8px;
    color: #251804;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe39a, #b7791c);
    font-size: 10px;
    font-weight: 900;
}

.status-badge.is-live {
    color: #071707;
    background: linear-gradient(180deg, #a5f09a, #4a9b3e);
}

.password-strength-box {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid rgba(255, 211, 106, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.34);
}

.password-strength-box small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.password-strength-box strong {
    color: #fff4d3;
}

.notification-list.upgraded > a {
    border-color: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at 3% 20%, rgba(255, 211, 106, 0.08), transparent 26%),
        rgba(0, 0, 0, 0.34);
}

.notification-list.upgraded > a.is-unread {
    border-color: rgba(255, 211, 106, 0.38);
    box-shadow: inset 3px 0 rgba(255, 211, 106, 0.72), 0 0 22px rgba(255, 211, 106, 0.06);
}

.notification-list.upgraded small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
}

.notification-list.upgraded strong {
    color: #fff5d5;
}

.upgraded-announcements .support-empty-state {
    grid-column: 1 / -1;
}

.announcement-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
}

.announcement-card.is-important {
    border-color: rgba(255, 211, 106, 0.44);
    box-shadow: 0 0 26px rgba(255, 211, 106, 0.08);
}

.announcement-card time {
    display: block;
    margin-top: 10px;
    color: #d7c8a8;
    font-size: 11px;
}

.rule-code-card {
    display: grid;
    gap: 12px;
}

.rule-code-card header,
.candidate-card header,
.war-front-card header {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.rule-code-card ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.candidate-card,
.war-front-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.candidate-card.is-leading,
.war-front-card.risk-critical {
    border-color: rgba(184, 32, 24, 0.44);
}

.candidate-card header b,
.war-front-card header b {
    color: #fff4d3;
    font-size: 16px;
}

.candidate-card dl,
.war-front-card dl,
.city-level-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.candidate-card dl div,
.war-front-card dl div,
.city-level-card dl div {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.30);
}

.candidate-card dt,
.war-front-card dt,
.city-level-card dt {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.candidate-card dd,
.war-front-card dd,
.city-level-card dd {
    margin: 4px 0 0;
    color: #fff4d3;
    font-weight: 900;
}

.candidate-card .game-btn,
.war-front-card .game-btn {
    margin-top: auto;
}

.economy-stat-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.economy-bar-list article {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto;
}

.economy-bar-list em {
    color: #fff4d3;
    font-style: normal;
    font-weight: 900;
}

.war-front-card.risk-high {
    border-color: rgba(214, 168, 79, 0.34);
}

.war-front-card.risk-medium {
    border-color: rgba(62, 157, 221, 0.30);
}

.city-action-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.city-level-card dl {
    margin-top: 12px;
}

.proposal-list article {
    grid-template-columns: 58px minmax(0, 1fr) 120px;
    align-items: start;
}

.proposal-list aside {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.proposal-list aside strong {
    color: #fff4d3;
    font-size: 18px;
}

.proposal-list aside em {
    color: #d7c8a8;
    font-size: 11px;
    font-style: normal;
}

.diplomacy-relation-list,
.intel-target-grid {
    display: grid;
    gap: 12px;
}

.intel-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diplomacy-relation-list article,
.intel-target-grid article {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 211, 106, 0.08), transparent 34%),
        rgba(0, 0, 0, 0.34);
}

.diplomacy-relation-list article {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
}

.diplomacy-relation-list article.risk-high,
.intel-target-grid article.risk-high {
    border-color: rgba(184, 32, 24, 0.34);
}

.diplomacy-relation-list article.risk-low,
.intel-target-grid article.risk-low {
    border-color: rgba(121, 199, 83, 0.26);
}

.diplomacy-relation-list article > span,
.intel-target-grid header > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffd36a;
    border: 1px solid rgba(255, 211, 106, 0.30);
    border-radius: 10px;
    background: rgba(214, 168, 79, 0.12);
}

.diplomacy-relation-list small,
.intel-target-grid small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.diplomacy-relation-list h3,
.intel-target-grid h2 {
    margin: 4px 0;
    color: #fff4d3;
}

.diplomacy-relation-list p,
.intel-target-grid p {
    color: #e6dbc9;
    font-size: 13px;
    line-height: 1.55;
}

.diplomacy-relation-list i {
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.diplomacy-relation-list i b {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7d120d, #d6a84f, #ffe39a);
}

.intel-target-grid header {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.intel-target-grid header b {
    color: #fff4d3;
    font-size: 16px;
}

.intel-target-grid dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.intel-target-grid dl div {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.30);
}

.intel-target-grid dt {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.intel-target-grid dd {
    margin: 4px 0 0;
    color: #fff4d3;
    font-weight: 900;
}

.upgraded-member-list div {
    border-color: rgba(255, 211, 106, 0.12);
}

.business-network-card,
.family-call-board,
.family-bonus-panel,
.family-member-board,
.conflict-command {
    border-color: rgba(255, 211, 106, 0.20);
}

.business-network-card p,
.family-call-board p,
.family-bonus-panel li,
.conflict-target > p,
.war-formula small {
    color: #e7dccb;
}

@media (max-width: 1180px) {
    .omerta-panel-grid,
    .economy-grid,
    .city-management-grid,
    .candidate-grid,
    .war-front-grid,
    .rules-grid,
    .omerta-two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .omerta-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .game-main,
    .topbar,
    .page-hero,
    .game-card,
    .bottom-nav {
        max-width: 100%;
        box-sizing: border-box;
    }

    .game-main {
        min-width: 0;
        overflow-x: hidden;
    }

    .page-hero h1 {
        max-width: 100%;
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.05;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .page-hero p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .page-hero > div {
        width: 100%;
        min-width: 0;
    }

    .page-hero > aside {
        align-self: stretch;
    }

    .security-score-card,
    .support-hero-card {
        width: 100%;
    }

    .omerta-panel-grid,
    .economy-grid,
    .city-management-grid,
    .candidate-grid,
    .war-front-grid,
    .rules-grid,
    .intel-target-grid,
    .candidate-card dl,
    .war-front-card dl,
    .city-level-card dl,
    .intel-target-grid dl {
        grid-template-columns: 1fr;
    }

    .security-check-list article,
    .security-session-list article,
    .policy-list article,
    .economy-bar-list article,
    .proposal-list article,
    .city-action-card,
    .diplomacy-relation-list article {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .security-check-list .game-btn,
    .proposal-list aside,
    .city-action-card .game-btn,
    .policy-list b,
    .security-session-list b,
    .economy-bar-list em {
        grid-column: 2;
        justify-self: start;
    }

    .rule-code-card header,
    .candidate-card header,
    .war-front-card header,
    .intel-target-grid header {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .candidate-card header b,
    .war-front-card header b,
    .intel-target-grid header b {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 430px) {
    .security-score-card,
    .profile-hero-badge,
    .support-hero-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .security-score-card > span,
    .omerta-info-card > span,
    .candidate-card header > span,
    .economy-stat-card > span,
    .war-front-card header > span,
    .city-action-card > span,
    .proposal-list article > span,
    .announcement-icon,
    .rule-code-card header > span {
        width: 48px;
        height: 48px;
    }
}

/* Intercity war center */
.intercity-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.intercity-summary-grid .game-stat-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-color: rgba(255, 211, 106, 0.22);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 211, 106, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(16, 16, 16, 0.98), rgba(2, 2, 2, 0.98));
}

.intercity-summary-grid .game-stat-card > span,
.intercity-advisor-list article > span,
.timeline-card > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 211, 106, 0.30);
    border-radius: 10px;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 239, 173, 0.24), transparent 42%),
        linear-gradient(145deg, rgba(214, 168, 79, 0.20), rgba(0, 0, 0, 0.42));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 211, 106, 0.12);
}

.intercity-summary-grid .nav-icon,
.intercity-advisor-list .nav-icon,
.timeline-card .nav-icon {
    width: 31px;
    height: 31px;
    filter: drop-shadow(0 0 10px rgba(255, 211, 106, 0.28));
}

.intercity-summary-grid small,
.intercity-selected-stats small,
.intercity-cost-grid small,
.intercity-action-footer small,
.intercity-active-user-plan small {
    display: block;
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.intercity-summary-grid strong,
.intercity-selected-stats strong,
.intercity-cost-grid strong,
.intercity-action-footer strong,
.intercity-active-user-plan strong {
    display: block;
    color: #fff4d3;
}

.intercity-summary-grid em,
.intercity-action-footer em,
.intercity-active-user-plan span {
    color: #d8cbb6;
    font-style: normal;
    font-size: 12px;
}

.intercity-command-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
    gap: 14px;
    margin-bottom: 14px;
}

.intercity-prep-panel,
.intercity-advisor-card,
.intercity-front-card,
.timeline-card {
    border-color: rgba(255, 211, 106, 0.22);
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 211, 106, 0.10), transparent 32%),
        linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(2, 2, 2, 0.99));
}

.intercity-brief {
    max-width: 860px;
    color: #e9dfcd;
    line-height: 1.6;
}

.intercity-selected-stats,
.intercity-cost-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.intercity-selected-stats > div,
.intercity-cost-grid > div {
    min-height: 72px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.35);
}

.intercity-power-meter,
.intercity-card-meter {
    position: relative;
    min-height: 22px;
    margin: 8px 0 14px;
    display: grid;
    align-items: center;
}

.intercity-power-meter::before,
.intercity-card-meter i {
    content: "";
    height: 10px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(126, 23, 17, 0.58), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.intercity-power-meter > span,
.intercity-card-meter b {
    position: absolute;
    left: 0;
    top: 6px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7d120d, #d6a84f, #ffe39a);
    box-shadow: 0 0 16px rgba(255, 211, 106, 0.26);
}

.intercity-power-meter > b {
    margin-top: 16px;
    color: #cdbf9f;
    font-size: 11px;
    text-transform: uppercase;
}

.intercity-stage-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 14px;
}

.intercity-stage-flow article {
    min-height: 88px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0.78;
}

.intercity-stage-flow article.active {
    opacity: 1;
    border-color: rgba(255, 211, 106, 0.46);
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.10);
}

.intercity-stage-flow b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #1c1203;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe39a, #b7791c);
}

.intercity-stage-flow strong {
    display: block;
    color: #fff4d3;
}

.intercity-stage-flow small {
    display: block;
    margin-top: 4px;
    color: #d8cbb6;
    line-height: 1.4;
}

.intercity-type-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.intercity-type-card {
    min-height: 156px;
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 12px;
    color: #e9dfcd;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.intercity-type-card:hover,
.intercity-type-card.active {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 106, 0.48);
    box-shadow: 0 0 24px rgba(255, 211, 106, 0.13);
}

.intercity-type-card > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 9px;
    background: rgba(214, 168, 79, 0.12);
}

.intercity-type-card .nav-icon {
    width: 29px;
    height: 29px;
}

.intercity-type-card strong {
    color: #fff4d3;
    line-height: 1.15;
}

.intercity-type-card small {
    color: #dacdb8;
    font-size: 12px;
    line-height: 1.45;
}

.intercity-type-card em {
    color: #d6a84f;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.intercity-action-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.16);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.32);
}

.intercity-advisor-list {
    display: grid;
    gap: 10px;
}

.intercity-advisor-list article {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.33);
}

.intercity-advisor-list strong {
    display: block;
    color: #fff4d3;
}

.intercity-advisor-list small {
    display: block;
    margin-top: 4px;
    color: #d8cbb6;
    line-height: 1.45;
}

.intercity-active-user-plan {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(126, 23, 17, 0.25), rgba(0, 0, 0, 0.36));
}

.intercity-front-grid {
    margin-bottom: 14px;
}

.intercity-front-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.intercity-front-card:hover,
.intercity-front-card.active {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 106, 0.52);
    box-shadow: 0 0 28px rgba(255, 211, 106, 0.12);
}

.intercity-front-card.is-own-family {
    opacity: 0.72;
}

.intercity-card-meter {
    margin-top: 10px;
}

.intercity-card-meter i {
    position: relative;
    height: 8px;
}

.intercity-card-meter b {
    top: 0;
    height: 8px;
}

.intercity-card-meter span {
    display: block;
    margin-top: 7px;
    color: #d8cbb6;
    font-size: 11px;
}

.intercity-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.status-badge.is-cooldown {
    color: #fff4d3;
    background: linear-gradient(180deg, #8f1d15, #41100d);
}

.status-badge.is-owned {
    color: #081908;
    background: linear-gradient(180deg, #a5f09a, #4a9b3e);
}

.intercity-live-grid {
    align-items: start;
}

.intercity-timeline {
    display: grid;
    gap: 10px;
}

.timeline-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
}

.timeline-card small {
    color: #d6a84f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-card strong {
    display: block;
    margin: 3px 0;
    color: #fff4d3;
}

.timeline-card p {
    margin: 0;
    color: #e2d6c3;
    font-size: 13px;
    line-height: 1.45;
}

.timeline-card aside {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.timeline-card aside b {
    color: #ffd36a;
    white-space: nowrap;
}

.intercity-empty {
    grid-column: 1 / -1;
    min-height: 220px;
}

@media (max-width: 1280px) {
    .intercity-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .intercity-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intercity-command-layout,
    .intercity-live-grid {
        grid-template-columns: 1fr;
    }

    .intercity-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .intercity-war-hero {
        min-height: 210px;
    }

    .intercity-summary-grid,
    .intercity-selected-stats,
    .intercity-cost-grid,
    .intercity-stage-flow,
    .intercity-type-grid {
        grid-template-columns: 1fr;
    }

    .intercity-action-footer,
    .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-card aside {
        justify-items: stretch;
    }

    .intercity-front-card header {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .intercity-front-card header b {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
