:root {
    color-scheme: dark;
    --bg: #07101b;
    --bg-deep: #040a12;
    --surface: #101c2b;
    --surface-2: #142338;
    --surface-3: #1a2b41;
    --surface-soft: rgba(16, 28, 43, 0.82);
    --line: #263a52;
    --line-bright: #3d5671;
    --text: #f3f7ff;
    --text-soft: #c7d2e2;
    --muted: #8798ad;
    --purple: #b77cff;
    --purple-2: #7b5cff;
    --green: #79df76;
    --lime: #a8ed65;
    --cyan: #55d7ef;
    --blue: #65a7ff;
    --red: #ff706b;
    --pink: #ef79cf;
    --gold: #ffc75e;
    --amber: #f49a55;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --soft-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
    --sidebar-width: 272px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-deep);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: rgba(183, 124, 255, 0.35);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--text);
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.025em;
}

code {
    padding: 0.15em 0.4em;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(4, 10, 18, 0.62);
    color: #d9c2ff;
}

.app-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 83% 6%, rgba(117, 77, 200, 0.16), transparent 28%),
        radial-gradient(circle at 32% 82%, rgba(32, 141, 177, 0.1), transparent 30%),
        linear-gradient(145deg, #07111d 0%, #07101a 43%, #060c15 100%);
}

.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.game-main {
    position: relative;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 24px 26px 42px;
}

.game-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}

.game-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.01em;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.game-button:hover {
    transform: translateY(-2px);
}

.game-button-primary {
    border-color: rgba(205, 164, 255, 0.6);
    background: linear-gradient(135deg, #9e63ef, #6d5cff 62%, #4f78ec);
    color: #fff;
    box-shadow: 0 10px 28px rgba(112, 77, 224, 0.34), inset 0 1px rgba(255, 255, 255, 0.2);
}

.game-button-primary:hover {
    border-color: #e1c7ff;
    box-shadow: 0 15px 34px rgba(112, 77, 224, 0.45), inset 0 1px rgba(255, 255, 255, 0.25);
}

.game-button-secondary,
.game-button-quiet {
    border-color: var(--line-bright);
    background: rgba(18, 32, 49, 0.82);
    color: var(--text-soft);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.game-button-secondary:hover,
.game-button-quiet:hover {
    border-color: rgba(183, 124, 255, 0.65);
    color: #fff;
    background: rgba(31, 40, 67, 0.92);
}

.game-progress {
    position: relative;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(3, 9, 16, 0.68);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.56);
}

.game-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple-2), var(--purple), #e2c0ff);
    box-shadow: 0 0 16px rgba(183, 124, 255, 0.55);
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title-row h2 {
    margin: 5px 0 0;
    font-size: clamp(26px, 2vw, 35px);
    line-height: 1.05;
}

.section-title-row.compact {
    align-items: center;
}

.section-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(14, 25, 39, 0.85);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.section-count.live-count {
    color: #b9ffb3;
}

.section-count.live-count i {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.frontier-mark {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(170, 116, 255, 0.48);
    border-radius: 13px;
    background:
        radial-gradient(circle, rgba(207, 167, 255, 0.34), transparent 36%),
        linear-gradient(145deg, rgba(95, 67, 164, 0.35), rgba(16, 28, 48, 0.92));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 30px rgba(126, 77, 222, 0.18);
}

.frontier-mark::before,
.frontier-mark::after,
.frontier-mark > span::before,
.frontier-mark > span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
    border-radius: 60% 0 60% 0;
    background: linear-gradient(135deg, #ebdcff, #a56df5 55%, #6f74ff);
    box-shadow: 0 0 10px rgba(183, 124, 255, 0.54);
}

.frontier-mark::before {
    width: 5px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.frontier-mark::after {
    width: 5px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(90deg);
}

.frontier-mark > span::before {
    width: 4px;
    height: 24px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.frontier-mark > span::after {
    width: 4px;
    height: 24px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.frontier-mark-large {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 18px;
}

.frontier-mark-large::before,
.frontier-mark-large::after {
    height: 46px;
    width: 7px;
}

.frontier-mark-large > span::before,
.frontier-mark-large > span::after {
    height: 35px;
    width: 6px;
}

/* App navigation */
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 20px 16px 16px;
    border-right: 1px solid rgba(68, 91, 121, 0.44);
    background:
        radial-gradient(circle at 10% 3%, rgba(130, 82, 219, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(12, 21, 34, 0.99), rgba(7, 14, 24, 0.99));
    box-shadow: 22px 0 65px rgba(0, 0, 0, 0.22);
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin-bottom: 18px;
}

.app-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.app-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    letter-spacing: 0.12em;
}

.app-brand-copy small {
    margin-top: -2px;
    color: var(--purple);
    font-size: 10px;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
}

.sidebar-close svg,
.sidebar-signout svg,
.sidebar-toggle svg,
.sidebar-link-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sidebar-world-card {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    padding: 11px;
    border: 1px solid #2a4059;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(121, 80, 196, 0.2), transparent 46%),
        linear-gradient(145deg, #132337, #0e1928);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), var(--soft-shadow);
    transition: border-color 160ms ease, transform 160ms ease;
}

.sidebar-world-card:hover {
    transform: translateY(-1px);
    border-color: rgba(183, 124, 255, 0.62);
}

.world-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(111, 202, 222, 0.38);
    border-radius: 50%;
    background: linear-gradient(145deg, #24334f, #1a1939);
    color: #e6dcff;
    font-weight: 850;
    box-shadow: 0 0 22px rgba(97, 166, 255, 0.14);
}

.world-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-world-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-world-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-world-copy strong {
    overflow: hidden;
    margin-top: 1px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-world-copy em {
    overflow: hidden;
    color: #7d91aa;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.world-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2b3e55 transparent;
}

.sidebar-nav-label {
    margin: 0 8px 8px;
    color: #64768e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.sidebar-link {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #9cacc0;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.sidebar-link:hover {
    transform: translateX(2px);
    border-color: rgba(62, 83, 108, 0.72);
    background: rgba(21, 34, 51, 0.76);
    color: #eef4ff;
}

.sidebar-link.is-active {
    border-color: rgba(132, 103, 218, 0.48);
    background:
        linear-gradient(90deg, rgba(120, 81, 195, 0.26), rgba(41, 57, 84, 0.72)),
        #152135;
    color: #fff;
    box-shadow: inset 3px 0 var(--purple), 0 10px 20px rgba(0, 0, 0, 0.16);
}

.sidebar-link-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(79, 101, 128, 0.45);
    border-radius: 10px;
    background: rgba(5, 12, 21, 0.42);
    color: #7f93ab;
}

.sidebar-link.tone-purple .sidebar-link-icon { color: var(--purple); }
.sidebar-link.tone-blue .sidebar-link-icon { color: var(--blue); }
.sidebar-link.tone-green .sidebar-link-icon { color: var(--green); }
.sidebar-link.tone-red .sidebar-link-icon { color: var(--red); }
.sidebar-link.tone-gold .sidebar-link-icon { color: var(--gold); }
.sidebar-link.tone-pink .sidebar-link-icon { color: var(--pink); }
.sidebar-link.tone-amber .sidebar-link-icon { color: var(--amber); }
.sidebar-link.tone-violet .sidebar-link-icon { color: #c3a1ff; }
.sidebar-link.tone-cyan .sidebar-link-icon { color: var(--cyan); }

.sidebar-link.is-active .sidebar-link-icon {
    border-color: currentColor;
    background: rgba(126, 83, 208, 0.14);
    box-shadow: 0 0 18px rgba(183, 124, 255, 0.14);
}

.sidebar-link-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-link-copy strong {
    font-size: 12px;
    font-weight: 750;
}

.sidebar-link-copy small {
    color: #71839a;
    font-size: 9px;
}

.sidebar-link-arrow {
    color: #51657e;
    font-size: 20px;
}

.sidebar-spacer {
    min-height: 10px;
}

.sidebar-world-pulse {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid rgba(62, 127, 113, 0.38);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(29, 73, 64, 0.35), rgba(13, 29, 39, 0.76));
}

.pulse-rune {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(64, 194, 133, 0.16);
    color: #7ff3ad;
    box-shadow: 0 0 18px rgba(64, 194, 133, 0.15);
}

.sidebar-world-pulse > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-world-pulse small {
    color: #75a99b;
    font-size: 9px;
}

.sidebar-world-pulse strong {
    font-size: 10px;
}

.sidebar-world-pulse i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 11px var(--green);
}

.sidebar-user {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 0;
    border-top: 1px solid rgba(52, 71, 94, 0.48);
}

.sidebar-user > img,
.topbar-user img {
    width: 35px;
    height: 35px;
    border: 1px solid #45607c;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-user-copy strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy small {
    color: var(--muted);
    font-size: 9px;
}

.sidebar-signout {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #71849d;
}

.sidebar-signout:hover {
    background: rgba(255, 112, 107, 0.1);
    color: var(--red);
}

.app-sidebar-backdrop,
.app-topbar {
    display: none;
}

/* Shared page banners */
.game-page-banner {
    position: relative;
    display: flex;
    min-height: 265px;
    align-items: flex-end;
    overflow: hidden;
    padding: 34px 36px;
    border: 1px solid #344b64;
    border-radius: var(--radius-xl);
    background: #122236;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.game-page-banner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%;
    transform: scale(1.03);
    filter: saturate(1.12) brightness(0.8);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 18, 0.95) 0%, rgba(8, 17, 29, 0.78) 36%, rgba(8, 17, 29, 0.15) 72%),
        linear-gradient(0deg, rgba(5, 11, 18, 0.72), transparent 58%);
}

.game-page-banner-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.game-page-banner-copy h1 {
    margin: 6px 0 8px;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 0.98;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.game-page-banner-copy p {
    max-width: 640px;
    margin-bottom: 18px;
    color: #d2dfed;
    font-size: 15px;
}

.banner-stat-cluster {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(126, 161, 195, 0.42);
    border-radius: 15px;
    background: rgba(7, 16, 27, 0.82);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.banner-stat-cluster > span {
    display: flex;
    min-width: 98px;
    min-height: 66px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
    border-left: 1px solid rgba(94, 120, 150, 0.28);
}

.banner-stat-cluster > span:first-child {
    border-left: 0;
}

.banner-stat-cluster small {
    color: #8fa2b8;
    font-size: 9px;
    text-transform: uppercase;
}

.banner-stat-cluster strong {
    overflow: hidden;
    max-width: 150px;
    color: #fff;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-empty-state,
.collection-empty,
.archive-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    padding: 36px;
    border: 1px dashed #38506c;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0, rgba(151, 102, 235, 0.14), transparent 48%),
        rgba(13, 24, 38, 0.72);
    text-align: center;
}

.game-empty-state .empty-rune,
.collection-empty > span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(183, 124, 255, 0.46);
    border-radius: 50%;
    background: rgba(121, 75, 203, 0.14);
    color: var(--purple);
    font-size: 30px;
    box-shadow: 0 0 30px rgba(183, 124, 255, 0.16);
}

.game-empty-state h2,
.collection-empty strong {
    margin: 10px 0 0;
    font-size: 29px;
}

.game-empty-state p,
.collection-empty p {
    max-width: 620px;
    margin: 3px auto 0;
    color: var(--muted);
}

.compact-empty {
    min-height: 220px;
}

/* World overview */
.world-main {
    padding-top: 20px;
}

.world-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 15px;
    padding: 4px 6px;
}

.world-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.world-heading-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border: 2px solid rgba(183, 124, 255, 0.52);
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 0 26px rgba(183, 124, 255, 0.16);
}

.world-heading-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #392958, #17233b);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.world-title-row h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
}

.world-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
}

.world-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.citizen-rank-chip {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 7px 13px;
    border: 1px solid #334a65;
    border-radius: 13px;
    background: linear-gradient(145deg, #142238, #101928);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.citizen-rank-rune {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(183, 124, 255, 0.14);
    color: var(--purple);
}

.citizen-rank-chip > span:last-child {
    display: flex;
    flex-direction: column;
}

.citizen-rank-chip small {
    color: var(--muted);
    font-size: 9px;
}

.citizen-rank-chip strong {
    font-size: 11px;
}

.world-stat-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 14px;
}

.world-stat-card {
    position: relative;
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 13px 15px;
    border: 1px solid #283d55;
    border-radius: 15px;
    background: linear-gradient(145deg, #142237, #0d1826);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), var(--soft-shadow);
}

.world-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -35px auto;
    width: 110px;
    height: 90px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.08;
    filter: blur(18px);
}

.stat-green { color: var(--green); }
.stat-blue { color: var(--blue); }
.stat-lime { color: var(--lime); }
.stat-purple { color: var(--purple); }
.stat-cyan { color: var(--cyan); }
.stat-red { color: var(--red); }

.stat-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 13px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    font-size: 21px;
    box-shadow: 0 0 20px color-mix(in srgb, currentColor 20%, transparent);
}

.stat-sparkline {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 9px;
}

.stat-sparkline i {
    width: 4px;
    border-radius: 3px;
    background: currentColor;
}

.stat-sparkline i:nth-child(1) { height: 9px; }
.stat-sparkline i:nth-child(2) { height: 20px; }
.stat-sparkline i:nth-child(3) { height: 28px; }

.world-stat-card > div {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.world-stat-card small {
    color: #9aabbd;
    font-size: 9px;
    text-transform: uppercase;
}

.world-stat-card strong {
    color: currentColor;
    font-size: 23px;
    line-height: 1.1;
}

.world-stat-card strong em {
    color: var(--text-soft);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
}

.world-stat-card div > span {
    overflow: hidden;
    color: #70849d;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.world-command-center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 12px;
    min-height: 590px;
    margin-bottom: 14px;
}

.world-atlas-panel,
.world-intel-rail,
.world-mechanics,
.season-glance-card {
    border: 1px solid #30465f;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(18, 32, 49, 0.96), rgba(10, 20, 32, 0.96));
    box-shadow: var(--soft-shadow), inset 0 1px rgba(255, 255, 255, 0.05);
}

.world-atlas-panel {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
}

.atlas-panel-head {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(62, 86, 112, 0.54);
    background: rgba(9, 18, 29, 0.74);
}

.atlas-panel-head > div:first-child {
    display: flex;
    flex-direction: column;
}

.atlas-panel-label {
    color: var(--purple);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atlas-panel-head strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.atlas-panel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a8bf;
    font-size: 9px;
}

.atlas-panel-meta span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(71, 96, 124, 0.5);
    border-radius: 999px;
    background: rgba(9, 17, 28, 0.64);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.world-atlas-scene {
    position: relative;
    min-height: 528px;
    flex: 1;
    overflow: hidden;
    background: #102535;
}

.world-atlas-scene > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.03) brightness(1.02);
    transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}

.world-atlas-panel:hover .world-atlas-scene > img {
    transform: scale(1.015);
}

.atlas-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(3, 10, 17, 0.66), transparent 25%),
        radial-gradient(circle at 50% 46%, transparent 54%, rgba(3, 8, 14, 0.36) 100%);
}

.atlas-location {
    position: absolute;
    left: var(--loc-x);
    top: var(--loc-y);
    z-index: 4;
    transform: translate(-50%, -100%);
    color: var(--loc-custom, var(--green));
}

.atlas-location.tone-gold { --loc-custom: var(--gold); }
.atlas-location.tone-ice { --loc-custom: #73d7ff; }
.atlas-location.tone-green { --loc-custom: var(--green); }
.atlas-location.tone-amber { --loc-custom: var(--amber); }
.atlas-location.tone-red { --loc-custom: var(--red); }
.atlas-location.tone-purple { --loc-custom: var(--purple); }
.atlas-location.tone-cyan { --loc-custom: var(--cyan); }
.atlas-location.tone-blue { --loc-custom: var(--blue); }

.atlas-location-pin {
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border: 3px solid #f3fbff;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 22%, transparent), 0 0 18px currentColor;
}

.atlas-location-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 21px;
    transform: translateX(-50%);
    background: linear-gradient(currentColor, transparent);
}

.atlas-location-card {
    display: flex;
    min-width: 145px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, currentColor 62%, #34475e);
    border-radius: 11px;
    background: rgba(6, 13, 21, 0.88);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 3px 0 currentColor;
    backdrop-filter: blur(8px);
    transition: transform 160ms ease, border-color 160ms ease;
}

.atlas-location:hover .atlas-location-card {
    transform: translateY(-3px) scale(1.025);
    border-color: currentColor;
}

.atlas-location-card > b {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 16%, transparent);
    color: currentColor;
    font-size: 15px;
}

.atlas-location-card > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.atlas-location-card strong {
    overflow: hidden;
    max-width: 140px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlas-location-card small {
    overflow: hidden;
    max-width: 140px;
    color: #96a8b9;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlas-status-card {
    position: absolute;
    left: 16px;
    bottom: 15px;
    z-index: 5;
    display: flex;
    max-width: 400px;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid rgba(94, 194, 142, 0.45);
    border-radius: 13px;
    background: rgba(6, 16, 23, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.atlas-status-rune {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(106, 238, 159, 0.46);
    border-radius: 50%;
    background: rgba(62, 173, 111, 0.16);
    color: #82f2a6;
    box-shadow: 0 0 20px rgba(84, 219, 142, 0.18);
}

.atlas-status-card > span:last-child {
    display: flex;
    flex-direction: column;
}

.atlas-status-card small {
    color: #8daca2;
    font-size: 8px;
    text-transform: uppercase;
}

.atlas-status-card strong {
    color: #9ff7a1;
    font-size: 12px;
}

.atlas-status-card em {
    color: #a8b8c6;
    font-size: 8px;
    font-style: normal;
}

.atlas-expand {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 6;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(152, 182, 211, 0.52);
    border-radius: 10px;
    background: rgba(6, 14, 24, 0.82);
    color: #eaf7ff;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.atlas-expand:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.atlas-empty-world {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: flex;
    width: min(420px, 80%);
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(173, 133, 237, 0.5);
    border-radius: 16px;
    background: rgba(5, 12, 20, 0.82);
    text-align: center;
    backdrop-filter: blur(9px);
}

.atlas-empty-world > span {
    color: var(--purple);
    font-size: 32px;
}

.atlas-empty-world small {
    color: var(--muted);
}

.world-intel-rail {
    display: flex;
    overflow: hidden;
    flex-direction: column;
}

.intel-card {
    padding: 14px;
    border-bottom: 1px solid rgba(61, 84, 110, 0.55);
}

.intel-card:last-child {
    border-bottom: 0;
}

.intel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.intel-card-head > span {
    color: #e5eef9;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intel-card-head a {
    color: var(--purple);
    font-size: 9px;
}

.intel-list,
.intel-event-list,
.history-mini-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.intel-faction-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(63, 84, 109, 0.42);
    border-radius: 10px;
    background: rgba(7, 15, 25, 0.46);
    transition: border-color 150ms ease, transform 150ms ease;
}

.intel-faction-row:hover {
    transform: translateX(2px);
    border-color: var(--faction-color);
}

.intel-crest {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--faction-color);
    border-radius: 50% 50% 42% 42%;
    background: color-mix(in srgb, var(--faction-color) 15%, transparent);
    color: var(--faction-color);
    font-size: 10px;
    font-weight: 850;
}

.intel-faction-row > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.intel-faction-row strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-faction-row small {
    color: var(--muted);
    font-size: 8px;
}

.intel-faction-row > b {
    color: var(--faction-color);
    font-size: 10px;
}

.intel-event-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(76, 92, 121, 0.45);
    border-radius: 10px;
    background: rgba(8, 16, 27, 0.58);
}

.intel-event-row.event-tone-1 { border-color: rgba(183, 124, 255, 0.4); }
.intel-event-row.event-tone-2 { border-color: rgba(255, 112, 107, 0.4); }
.intel-event-row.event-tone-3 { border-color: rgba(255, 199, 94, 0.4); }

.intel-event-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: rgba(183, 124, 255, 0.13);
    color: var(--purple);
}

.event-tone-2 .intel-event-icon { background: rgba(255, 112, 107, 0.12); color: var(--red); }
.event-tone-3 .intel-event-icon { background: rgba(255, 199, 94, 0.12); color: var(--gold); }

.intel-event-row > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.intel-event-row strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-event-row small {
    color: var(--muted);
    font-size: 8px;
}

.intel-event-row > b {
    color: #d5e2ef;
    font-size: 9px;
}

.intel-calm {
    display: flex;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px dashed rgba(75, 103, 132, 0.5);
    border-radius: 11px;
    color: #8092a8;
    text-align: center;
}

.intel-calm > span {
    color: var(--blue);
    font-size: 24px;
}

.intel-calm strong {
    color: #ced8e5;
    font-size: 10px;
}

.intel-calm small {
    max-width: 220px;
    font-size: 8px;
}

.history-mini-list a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 2px;
}

.history-mini-list a > i {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 9px rgba(255, 199, 94, 0.5);
}

.history-mini-list a > span {
    display: flex;
    min-width: 0;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
}

.history-mini-list strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-mini-list small {
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.intel-empty {
    margin: 0;
    padding: 14px 5px;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

.world-lower-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
}

.world-mechanics {
    padding: 18px;
}

.section-title-inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.section-title-inline h2 {
    margin: 0;
    font-size: 22px;
}

.mechanic-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 8px;
}

.mechanic-card {
    display: flex;
    min-height: 132px;
    gap: 10px;
    padding: 12px;
    border: 1px solid #30435b;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(27, 42, 61, 0.88), rgba(11, 22, 35, 0.9));
}

.mechanic-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    color: var(--purple);
    background: rgba(183, 124, 255, 0.13);
}

.mechanic-green .mechanic-icon { color: var(--green); background: rgba(121, 223, 118, 0.12); }
.mechanic-purple .mechanic-icon { color: var(--purple); }
.mechanic-blue .mechanic-icon { color: var(--blue); background: rgba(101, 167, 255, 0.12); }
.mechanic-gold .mechanic-icon { color: var(--gold); background: rgba(255, 199, 94, 0.12); }

.mechanic-card > div {
    display: flex;
    flex-direction: column;
}

.mechanic-card strong {
    font-size: 11px;
    text-transform: uppercase;
}

.mechanic-card p {
    margin: 5px 0 8px;
    color: #9baabd;
    font-size: 9px;
    line-height: 1.45;
}

.mechanic-card small {
    margin-top: auto;
    color: #71869e;
    font-size: 8px;
}

.mechanic-arrow {
    align-self: center;
    color: #61748b;
    font-size: 19px;
}

.season-glance-card {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at 85% 12%, rgba(183, 124, 255, 0.28), transparent 38%),
        linear-gradient(145deg, rgba(25, 31, 59, 0.98), rgba(13, 21, 35, 0.98));
}

.season-glance-glow {
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(183, 124, 255, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 60px rgba(183, 124, 255, 0.08), 0 0 50px rgba(183, 124, 255, 0.1);
}

.season-glance-icon {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 35px;
    text-shadow: 0 0 20px rgba(255, 199, 94, 0.3);
}

.season-glance-card h2 {
    position: relative;
    z-index: 1;
    margin: 5px 0 8px;
    font-size: 25px;
    line-height: 1.05;
}

.season-glance-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 11px;
}

.season-glance-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 750;
}

/* Gateway */
.gateway-main {
    padding-top: 22px;
}

.gateway-hero {
    position: relative;
    display: grid;
    min-height: 330px;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    overflow: hidden;
    padding: 42px;
    border: 1px solid #344b68;
    border-radius: 26px;
    background:
        radial-gradient(circle at 75% 30%, rgba(120, 82, 212, 0.24), transparent 32%),
        radial-gradient(circle at 20% 20%, rgba(34, 157, 185, 0.13), transparent 30%),
        linear-gradient(145deg, #101d30, #0b1422 65%, #13142c);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.gateway-stars {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image:
        radial-gradient(circle at 8% 18%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 22% 70%, #a8d9ff 0 1px, transparent 1.5px),
        radial-gradient(circle at 42% 26%, #d9c1ff 0 1px, transparent 1.5px),
        radial-gradient(circle at 65% 80%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 16%, #b7e8ff 0 1px, transparent 1.5px),
        radial-gradient(circle at 93% 64%, #e5cbff 0 1px, transparent 1.5px);
    background-size: 180px 150px, 240px 190px, 210px 175px, 260px 220px, 170px 140px, 230px 180px;
}

.gateway-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.gateway-copy h1 {
    max-width: 780px;
    margin: 8px 0 13px;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.98;
}

.gateway-copy > p {
    max-width: 690px;
    color: #b7c5d6;
    font-size: 15px;
}

.gateway-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(100, 132, 166, 0.45);
    border-radius: 999px;
    background: rgba(7, 14, 24, 0.64);
}

.gateway-user-chip img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.gateway-user-chip span {
    display: flex;
    flex-direction: column;
}

.gateway-user-chip small {
    color: var(--muted);
    font-size: 8px;
}

.gateway-user-chip strong {
    font-size: 11px;
}

.gateway-orbit {
    position: relative;
    z-index: 2;
    display: grid;
    width: 300px;
    height: 300px;
    place-self: center;
    place-items: center;
}

.gateway-core {
    z-index: 3;
    width: 88px;
    height: 88px;
    border-radius: 25px;
    transform: rotate(3deg);
    box-shadow: 0 0 70px rgba(137, 81, 232, 0.4), 0 0 120px rgba(62, 177, 213, 0.13);
}

.gateway-orbit .orbit {
    position: absolute;
    border: 1px solid rgba(173, 130, 238, 0.3);
    border-radius: 50%;
}

.orbit-one { inset: 52px; transform: rotate(20deg) scaleY(0.55); }
.orbit-two { inset: 24px; transform: rotate(-34deg) scaleY(0.65); }
.orbit-three { inset: 0; transform: rotate(62deg) scaleY(0.74); }

.orbit-node {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid #e7f5ff;
    border-radius: 50%;
    box-shadow: 0 0 20px currentColor;
}

.node-one { left: 28px; top: 85px; color: var(--cyan); background: var(--cyan); }
.node-two { right: 40px; top: 45px; color: var(--purple); background: var(--purple); }
.node-three { right: 65px; bottom: 26px; color: var(--green); background: var(--green); }

.gateway-worlds {
    margin-top: 28px;
}

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

.world-portal-card {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border: 1px solid #344d68;
    border-radius: 22px;
    background: #122335;
    box-shadow: var(--soft-shadow);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.world-portal-card:hover {
    transform: translateY(-7px);
    border-color: var(--portal-accent, var(--purple));
    box-shadow: 0 24px 55px color-mix(in srgb, var(--portal-accent, var(--purple)) 18%, rgba(0, 0, 0, 0.3));
}

.portal-tone-1 { --portal-accent: var(--green); }
.portal-tone-2 { --portal-accent: var(--purple); }
.portal-tone-3 { --portal-accent: var(--blue); }
.portal-tone-4 { --portal-accent: var(--gold); }
.portal-tone-5 { --portal-accent: var(--red); }

.portal-atlas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.82);
    transition: transform 700ms ease;
}

.world-portal-card:hover .portal-atlas {
    transform: scale(1.05);
}

.portal-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5, 11, 19, 0.98) 0%, rgba(5, 11, 19, 0.72) 40%, transparent 75%),
        linear-gradient(120deg, color-mix(in srgb, var(--portal-accent) 24%, transparent), transparent 50%);
}

.portal-status {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(143, 171, 199, 0.42);
    border-radius: 999px;
    background: rgba(5, 13, 22, 0.76);
    color: #b8c9d9;
    font-size: 9px;
    backdrop-filter: blur(8px);
}

.portal-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #79889a;
}

.portal-status i.online {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.portal-world-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border: 2px solid var(--portal-accent);
    border-radius: 17px;
    background: rgba(10, 18, 30, 0.88);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    box-shadow: 0 0 28px color-mix(in srgb, var(--portal-accent) 28%, transparent);
}

.portal-world-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 63px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.portal-copy small {
    color: var(--portal-accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-copy strong {
    overflow: hidden;
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-copy em {
    color: #9fb0c1;
    font-size: 11px;
    font-style: normal;
}

.portal-enter {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(111, 137, 163, 0.34);
    color: #dce9f7;
    font-size: 11px;
    font-weight: 750;
}

.portal-enter b {
    color: var(--portal-accent);
    font-size: 18px;
}

.gateway-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.gateway-guide article {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid #2e435b;
    border-radius: 15px;
    background: rgba(14, 25, 39, 0.8);
}

.gateway-guide article > span {
    color: var(--purple);
    font-size: 19px;
    font-weight: 850;
}

.gateway-guide strong {
    font-size: 11px;
    text-transform: uppercase;
}

.gateway-guide p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.game-error-state,
.gateway-empty-state {
    margin-top: 24px;
}

.diagnostic-box {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.diagnostic-box span {
    padding: 6px 9px;
    border: 1px solid #3d4f63;
    border-radius: 8px;
    background: rgba(4, 10, 17, 0.48);
    color: #a9b9ca;
    font-size: 10px;
}

/* Territories */
.territory-banner > img {
    object-position: 50% 58%;
}

.territory-overview-strip,
.profile-stat-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin: 15px 0 26px;
}

.mini-hud {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #2c425c;
    border-radius: 14px;
    background: linear-gradient(145deg, #142339, #0c1827);
    color: var(--purple);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.mini-hud.hud-green { color: var(--green); }
.mini-hud.hud-purple { color: var(--purple); }
.mini-hud.hud-blue { color: var(--blue); }
.mini-hud.hud-gold { color: var(--gold); }

.mini-hud > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, currentColor 13%, transparent);
    font-size: 18px;
}

.mini-hud > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

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

.mini-hud strong {
    overflow: hidden;
    color: currentColor;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.territory-section {
    padding-top: 4px;
}

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

.territory-adventure-card {
    overflow: hidden;
    border: 1px solid #304760;
    border-radius: 19px;
    background: linear-gradient(145deg, #14243a, #0b1725);
    box-shadow: var(--soft-shadow);
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.territory-adventure-card:hover {
    transform: translateY(-5px);
    border-color: var(--territory-color);
    box-shadow: 0 20px 42px color-mix(in srgb, var(--territory-color) 15%, rgba(0, 0, 0, 0.25));
}

.territory-card-art {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid rgba(70, 96, 124, 0.5);
}

.territory-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(8, 16, 27, 0.72), transparent 48%),
        linear-gradient(120deg, color-mix(in srgb, var(--territory-color) 20%, transparent), transparent 55%);
}

.territory-card-art img {
    width: 160%;
    height: 160%;
    transform: translate(calc(var(--terrain-x) * -0.35), calc(var(--terrain-y) * -0.35));
    object-fit: cover;
    filter: saturate(1.15) brightness(0.95);
}

.terrain-tone-2 .territory-card-art img { filter: hue-rotate(18deg) saturate(1.12) brightness(0.95); }
.terrain-tone-3 .territory-card-art img { filter: hue-rotate(45deg) saturate(1.06) brightness(0.92); }
.terrain-tone-4 .territory-card-art img { filter: hue-rotate(-22deg) saturate(1.2) brightness(0.94); }
.terrain-tone-5 .territory-card-art img { filter: hue-rotate(95deg) saturate(1.12) brightness(0.9); }
.terrain-tone-6 .territory-card-art img { filter: hue-rotate(-55deg) saturate(1.16) brightness(0.94); }

.territory-card-level,
.territory-card-faction {
    position: absolute;
    z-index: 2;
    top: 11px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(210, 230, 246, 0.38);
    border-radius: 999px;
    background: rgba(5, 13, 22, 0.75);
    color: #e9f4ff;
    font-size: 9px;
    backdrop-filter: blur(8px);
}

.territory-card-level { left: 11px; }
.territory-card-faction { right: 11px; gap: 6px; }
.territory-card-faction i { width: 7px; height: 7px; border-radius: 50%; background: var(--territory-color); box-shadow: 0 0 10px var(--territory-color); }

.territory-card-body {
    padding: 15px;
}

.territory-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.territory-stage-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--territory-color);
    border-radius: 14px;
    background: color-mix(in srgb, var(--territory-color) 14%, transparent);
    color: var(--territory-color);
    font-size: 22px;
    box-shadow: 0 0 22px color-mix(in srgb, var(--territory-color) 18%, transparent);
}

.territory-card-title > div {
    min-width: 0;
}

.territory-card-title small {
    color: var(--territory-color);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.territory-card-title h3 {
    overflow: hidden;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.territory-card-title p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.territory-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.territory-card-stats > span {
    display: flex;
    flex-direction: column;
    padding: 9px 10px;
    border: 1px solid rgba(64, 87, 112, 0.45);
    border-radius: 10px;
    background: rgba(5, 13, 22, 0.34);
}

.territory-card-stats small,
.territory-progress-head span,
.territory-progress > small {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.territory-card-stats strong {
    color: #eaf3fb;
    font-size: 14px;
}

.territory-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.territory-progress-head b {
    color: var(--territory-color);
    font-size: 9px;
}

.territory-progress .game-progress i {
    background: linear-gradient(90deg, color-mix(in srgb, var(--territory-color) 70%, #254564), var(--territory-color));
    box-shadow: 0 0 14px color-mix(in srgb, var(--territory-color) 45%, transparent);
}

.territory-progress > small {
    display: block;
    margin-top: 5px;
    text-transform: none;
}

/* Factions */
.faction-banner > img {
    object-position: 78% 52%;
    filter: saturate(1.2) brightness(0.72) hue-rotate(-10deg);
}

.banner-swords {
    position: absolute;
    right: 24%;
    top: 44%;
    z-index: 1;
    width: 180px;
    height: 180px;
    transform: translate(50%, -50%);
    opacity: 0.26;
}

.banner-swords i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 180px;
    border: 2px solid #ffd8a3;
    border-radius: 60% 60% 20% 20%;
    background: linear-gradient(#f7f0dd, #9c7d59 72%, #332822 72%);
    box-shadow: 0 0 24px rgba(255, 199, 94, 0.24);
}

.banner-swords i:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.banner-swords i:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.faction-podium-section,
.faction-roster-section,
.active-events-section,
.event-archive-section,
.season-standings-section,
.season-archive-section,
.profile-achievement-section,
.profile-quests-section {
    margin-top: 28px;
}

.faction-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 15px;
    max-width: 1160px;
    margin: 0 auto;
}

.faction-podium-card {
    position: relative;
    overflow: hidden;
    min-height: 228px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--faction-color) 62%, #32475f);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--faction-color) 24%, transparent), transparent 45%),
        linear-gradient(145deg, #17283e, #0d1928);
    box-shadow: 0 20px 45px color-mix(in srgb, var(--faction-color) 10%, rgba(0, 0, 0, 0.24));
    text-align: center;
}

.podium-rank-1 {
    min-height: 270px;
    transform: translateY(-12px);
}

.podium-banner {
    position: relative;
    display: grid;
    width: 82px;
    height: 100px;
    margin: 0 auto 10px;
    place-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    background: linear-gradient(145deg, color-mix(in srgb, var(--faction-color) 72%, #fff), color-mix(in srgb, var(--faction-color) 58%, #111a28));
    color: #fff;
    box-shadow: 0 0 30px color-mix(in srgb, var(--faction-color) 30%, transparent);
}

.podium-rank {
    position: absolute;
    left: 7px;
    top: 7px;
    font-size: 10px;
    font-weight: 850;
}

.podium-crest {
    font-size: 33px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.podium-copy small {
    color: var(--faction-color);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.podium-copy h3 {
    margin: 4px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.podium-copy > strong {
    color: var(--faction-color);
    font-size: 21px;
}

.podium-copy > strong em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
}

.podium-foot {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(73, 98, 126, 0.42);
    color: #96a8bc;
    font-size: 9px;
}

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

.faction-banner-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--faction-color) 42%, #30465f);
    border-radius: 19px;
    background: linear-gradient(145deg, #14243a, #0c1726);
    box-shadow: var(--soft-shadow);
    transition: transform 180ms ease, border-color 180ms ease;
}

.faction-banner-card:hover {
    transform: translateY(-4px);
    border-color: var(--faction-color);
}

.faction-banner-side {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--faction-color) 55%, #182234), color-mix(in srgb, var(--faction-color) 20%, #0a1523));
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.faction-banner-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.18));
}

.faction-card-rank {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 850;
}

.faction-card-crest {
    position: relative;
    z-index: 1;
    display: grid;
    width: 56px;
    height: 64px;
    margin-top: 27px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-radius: 50% 50% 40% 40%;
    color: #fff;
    font-size: 27px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
}

.faction-banner-side i {
    position: relative;
    z-index: 1;
    width: 2px;
    height: 65px;
    margin-top: 16px;
    background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
}

.faction-card-main {
    min-width: 0;
    padding: 18px;
}

.faction-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.faction-card-heading small {
    color: var(--faction-color);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.faction-card-heading h3 {
    margin: 2px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
}

.faction-control-badge {
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--faction-color) 52%, #465a70);
    border-radius: 999px;
    color: var(--faction-color);
    font-size: 8px;
    white-space: nowrap;
}

.faction-power-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 14px 0;
}

.faction-power-line > div {
    display: flex;
    flex-direction: column;
    padding: 9px;
    border: 1px solid rgba(64, 88, 114, 0.44);
    border-radius: 10px;
    background: rgba(6, 14, 23, 0.34);
}

.faction-power-line span,
.faction-share span,
.faction-card-footer small {
    color: var(--muted);
    font-size: 8px;
}

.faction-power-line strong {
    color: #ecf5ff;
    font-size: 14px;
}

.faction-share > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.faction-share b {
    color: var(--faction-color);
    font-size: 9px;
}

.faction-share .game-progress i {
    background: linear-gradient(90deg, color-mix(in srgb, var(--faction-color) 65%, #24394f), var(--faction-color));
    box-shadow: 0 0 14px color-mix(in srgb, var(--faction-color) 40%, transparent);
}

.faction-card-footer {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(68, 93, 119, 0.44);
}

.faction-card-footer > span {
    display: flex;
    flex-direction: column;
}

.faction-card-footer strong {
    font-size: 10px;
}

/* Chronicle */
.chronicle-banner > img {
    object-position: 46% 57%;
    filter: saturate(0.95) sepia(0.08) brightness(0.68);
}

.chronicle-book {
    position: absolute;
    right: 17%;
    top: 50%;
    z-index: 1;
    width: 230px;
    height: 150px;
    transform: translate(50%, -50%) rotate(-5deg);
    opacity: 0.38;
}

.chronicle-book::before,
.chronicle-book::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 50%;
    height: 130px;
    border: 3px solid #f2d9a5;
    background: linear-gradient(145deg, #d2b17a, #806044);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.chronicle-book::before { left: 0; border-radius: 12px 2px 2px 12px; transform: skewY(7deg); }
.chronicle-book::after { right: 0; border-radius: 2px 12px 12px 2px; transform: skewY(-7deg); }

.chronicle-book span {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    width: 4px;
    height: 148px;
    background: #5e412e;
}

.chronicle-featured {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 340px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #3a526c;
    border-radius: 22px;
    background: linear-gradient(145deg, #17283c, #0c1827);
    box-shadow: var(--shadow);
}

.chronicle-featured-art {
    position: relative;
    overflow: hidden;
}

.chronicle-featured-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, #142338), linear-gradient(0deg, rgba(6, 12, 20, 0.45), transparent 50%);
}

.chronicle-featured-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) sepia(0.08);
}

.featured-rune {
    position: absolute;
    left: 28px;
    bottom: 25px;
    z-index: 2;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: rgba(11, 20, 31, 0.84);
    color: var(--gold);
    font-size: 30px;
    box-shadow: 0 0 30px rgba(255, 199, 94, 0.24);
}

.chronicle-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.chronicle-featured-copy > small {
    margin-top: 8px;
    color: #8fa2b8;
    font-size: 10px;
}

.chronicle-featured-copy h2 {
    margin: 7px 0 12px;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
}

.chronicle-featured-copy p {
    color: #b5c2d2;
    font-size: 14px;
}

.chronicle-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.chronicle-featured-tags span {
    padding: 5px 9px;
    border: 1px solid #3b5068;
    border-radius: 999px;
    background: rgba(7, 15, 24, 0.5);
    color: #98aabd;
    font-size: 9px;
}

.chronicle-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 18px;
    margin-top: 28px;
}

.chronicle-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chronicle-timeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(var(--purple), rgba(65, 89, 116, 0.4), transparent);
}

.chronicle-story-entry {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
}

.chronicle-story-marker {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.chronicle-story-marker span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 2px solid var(--story-color, var(--purple));
    border-radius: 50%;
    background: #111f31;
    color: var(--story-color, var(--purple));
    box-shadow: 0 0 20px color-mix(in srgb, var(--story-color, var(--purple)) 22%, transparent);
}

.story-tone-1 { --story-color: var(--gold); }
.story-tone-2 { --story-color: var(--green); }
.story-tone-3 { --story-color: var(--blue); }
.story-tone-4 { --story-color: var(--red); }
.story-tone-5 { --story-color: var(--purple); }

.chronicle-story-card {
    padding: 17px 18px;
    border: 1px solid #30465f;
    border-radius: 16px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--story-color) 8%, transparent), transparent 32%),
        linear-gradient(145deg, #142438, #0d1928);
    box-shadow: inset 3px 0 var(--story-color), var(--soft-shadow);
}

.chronicle-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #8294aa;
    font-size: 8px;
    text-transform: uppercase;
}

.chronicle-story-meta span + span::before {
    content: "-";
    margin-right: 6px;
    color: #53667e;
}

.chronicle-story-card h3 {
    margin: 6px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.chronicle-story-card p {
    margin-bottom: 6px;
    color: #a6b4c4;
    font-size: 11px;
}

.chronicle-citizen {
    color: var(--story-color);
    font-size: 9px;
}

.landmark-gallery {
    min-width: 0;
}

.landmark-card-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.landmark-card {
    overflow: hidden;
    border: 1px solid #30465f;
    border-radius: 16px;
    background: linear-gradient(145deg, #14243a, #0c1725);
    box-shadow: var(--soft-shadow);
}

.landmark-art {
    position: relative;
    height: 112px;
    overflow: hidden;
}

.landmark-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #142338, transparent 65%), linear-gradient(120deg, color-mix(in srgb, var(--landmark-color) 22%, transparent), transparent 60%);
}

.landmark-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.landmark-art span {
    position: absolute;
    left: 14px;
    bottom: 10px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--landmark-color);
    border-radius: 12px;
    background: rgba(5, 13, 22, 0.78);
    color: var(--landmark-color);
}

.landmark-tone-1 { --landmark-color: var(--gold); }
.landmark-tone-2 { --landmark-color: var(--purple); }
.landmark-tone-3 { --landmark-color: var(--green); }
.landmark-tone-4 { --landmark-color: var(--blue); }

.landmark-card > div:last-child {
    padding: 13px 14px 15px;
}

.landmark-card small {
    color: var(--landmark-color);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.landmark-card h3 {
    margin: 3px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.landmark-card p {
    margin-bottom: 7px;
    color: #98a8ba;
    font-size: 9px;
}

.landmark-card em {
    color: #71849a;
    font-size: 8px;
    font-style: normal;
}

.landmark-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border: 1px dashed #3a4e66;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.landmark-empty > span {
    color: var(--gold);
    font-size: 32px;
}

.landmark-empty strong {
    color: var(--text-soft);
}

.landmark-empty p {
    font-size: 10px;
}

/* Events */
.events-banner > img {
    object-position: 74% 55%;
    filter: saturate(1.3) brightness(0.7) hue-rotate(-8deg);
}

.events-beacon {
    position: absolute;
    right: 20%;
    top: 50%;
    z-index: 1;
    display: grid;
    width: 150px;
    height: 150px;
    transform: translate(50%, -50%);
    place-items: center;
    border: 1px solid rgba(255, 112, 107, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 112, 107, 0.2), transparent 62%);
    color: var(--red);
    font-size: 48px;
    box-shadow: 0 0 60px rgba(255, 112, 107, 0.14);
}

.events-beacon i {
    position: absolute;
    inset: -24px;
    border: 1px solid rgba(255, 112, 107, 0.2);
    border-radius: 50%;
}

.events-beacon i:last-child {
    inset: -54px;
    opacity: 0.5;
}

.event-calm-card {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 30px;
    border: 1px solid #30465f;
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(101, 167, 255, 0.16), transparent 35%),
        linear-gradient(145deg, #12233a, #0b1726);
}

.calm-moon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border: 1px solid rgba(101, 167, 255, 0.48);
    border-radius: 50%;
    background: rgba(101, 167, 255, 0.12);
    color: var(--blue);
    font-size: 50px;
    box-shadow: 0 0 44px rgba(101, 167, 255, 0.18);
}

.event-calm-card h2 {
    margin: 5px 0 6px;
    font-size: 34px;
}

.event-calm-card p {
    max-width: 600px;
    color: var(--muted);
}

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

.live-event-card {
    --event-color: var(--red);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--event-color) 56%, #30465f);
    border-radius: 20px;
    background: linear-gradient(145deg, #15253a, #0c1726);
    box-shadow: 0 20px 45px color-mix(in srgb, var(--event-color) 10%, rgba(0, 0, 0, 0.28));
    transition: transform 180ms ease, border-color 180ms ease;
}

.live-event-card:hover {
    transform: translateY(-5px);
    border-color: var(--event-color);
}

.event-theme-purple { --event-color: var(--purple); }
.event-theme-blue { --event-color: var(--blue); }
.event-theme-green { --event-color: var(--green); }
.event-theme-gold { --event-color: var(--gold); }
.event-theme-cyan { --event-color: var(--cyan); }
.event-theme-red { --event-color: var(--red); }

.event-card-art {
    position: relative;
    height: 165px;
    overflow: hidden;
}

.event-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #142438 0%, transparent 65%),
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--event-color) 30%, transparent), transparent 50%);
}

.event-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.25) brightness(0.88);
}

.event-rune {
    position: absolute;
    left: 15px;
    bottom: 13px;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 2px solid var(--event-color);
    border-radius: 15px;
    background: rgba(7, 14, 24, 0.82);
    color: var(--event-color);
    font-size: 24px;
    box-shadow: 0 0 24px color-mix(in srgb, var(--event-color) 25%, transparent);
}

.event-live-label {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--event-color) 62%, #fff);
    border-radius: 999px;
    background: rgba(6, 13, 22, 0.78);
    color: var(--event-color);
    font-size: 9px;
    font-weight: 800;
}

.event-live-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--event-color);
    box-shadow: 0 0 10px var(--event-color);
}

.event-card-body {
    padding: 16px;
}

.event-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--event-color);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-card-body h3 {
    margin: 6px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.event-card-body > p {
    min-height: 48px;
    color: #a3b1c1;
    font-size: 10px;
}

.event-card-foot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.event-card-foot > span {
    display: flex;
    flex-direction: column;
    padding: 9px;
    border: 1px solid rgba(66, 90, 116, 0.45);
    border-radius: 10px;
    background: rgba(6, 14, 23, 0.35);
}

.event-card-foot small {
    color: var(--muted);
    font-size: 8px;
}

.event-card-foot strong {
    font-size: 10px;
}

.event-magnitude {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.event-magnitude > div {
    display: flex;
    gap: 4px;
}

.event-magnitude i {
    width: 15px;
    height: 5px;
    border-radius: 999px;
    background: #25384d;
}

.event-magnitude i.filled {
    background: var(--event-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--event-color) 55%, transparent);
}

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

.archived-event-card {
    --event-color: var(--blue);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #2e435b;
    border-radius: 14px;
    background: linear-gradient(145deg, #122136, #0b1725);
}

.archive-event-rune {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--event-color);
    border-radius: 12px;
    background: color-mix(in srgb, var(--event-color) 12%, transparent);
    color: var(--event-color);
}

.archived-event-card small {
    color: #788aa0;
    font-size: 8px;
}

.archived-event-card h3 {
    margin: 2px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.archived-event-card p {
    overflow: hidden;
    margin: 0;
    color: #9aa9ba;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-magnitude {
    color: var(--event-color);
    font-size: 9px;
    font-weight: 750;
}

/* Season */
.season-royal-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: 48px;
    border: 1px solid #4a4c75;
    border-radius: 25px;
    background: #19203b;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.season-royal-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 54%;
    filter: saturate(1.15) brightness(0.72) hue-rotate(18deg);
}

.season-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 12, 24, 0.96), rgba(19, 19, 46, 0.8) 45%, rgba(26, 18, 53, 0.22)),
        linear-gradient(0deg, rgba(7, 11, 22, 0.7), transparent 60%);
}

.season-crown {
    position: absolute;
    right: 16%;
    top: 45%;
    z-index: 1;
    display: grid;
    width: 180px;
    height: 180px;
    transform: translate(50%, -50%);
    place-items: center;
    border: 1px solid rgba(255, 199, 94, 0.36);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 199, 94, 0.22), transparent 65%);
    color: var(--gold);
    font-size: 82px;
    text-shadow: 0 0 38px rgba(255, 199, 94, 0.4);
}

.season-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.season-hero-copy h1 {
    margin: 8px 0 13px;
    font-size: clamp(46px, 5vw, 76px);
    line-height: 0.98;
}

.season-hero-copy p {
    max-width: 670px;
    color: #c0cce0;
    font-size: 14px;
}

.season-date-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: #d8e0ee;
    font-size: 10px;
}

.season-date-line i {
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
}

.season-countdown-orb {
    position: absolute;
    right: 30px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    width: 115px;
    height: 115px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 199, 94, 0.72);
    border-radius: 50%;
    background: rgba(10, 13, 28, 0.82);
    box-shadow: 0 0 35px rgba(255, 199, 94, 0.18), inset 0 0 24px rgba(255, 199, 94, 0.08);
}

.season-countdown-orb small,
.season-countdown-orb span {
    color: #a8a9bc;
    font-size: 8px;
    text-transform: uppercase;
}

.season-countdown-orb strong {
    color: var(--gold);
    font-size: 38px;
    line-height: 1;
}

.season-hero-progress {
    position: absolute;
    left: 48px;
    right: 180px;
    bottom: 28px;
    z-index: 2;
    max-width: 620px;
}

.season-hero-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: #aeb9c9;
    font-size: 9px;
    text-transform: uppercase;
}

.season-hero-progress b {
    color: var(--gold);
}

.season-hero-progress .game-progress {
    height: 9px;
}

.season-hero-progress .game-progress i {
    background: linear-gradient(90deg, var(--purple), var(--gold));
}

.season-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    max-width: 1050px;
    margin: 0 auto 20px;
}

.season-podium-card {
    position: relative;
    display: flex;
    min-height: 215px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--faction-color) 60%, #384b64);
    border-radius: 20px 20px 12px 12px;
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--faction-color) 26%, transparent), transparent 48%),
        linear-gradient(145deg, #17263c, #0c1726);
    box-shadow: 0 20px 42px color-mix(in srgb, var(--faction-color) 10%, rgba(0, 0, 0, 0.26));
    text-align: center;
}

.season-rank-1 {
    min-height: 255px;
    transform: translateY(-10px);
}

.season-medal {
    color: var(--faction-color);
    font-size: 42px;
    text-shadow: 0 0 24px color-mix(in srgb, var(--faction-color) 38%, transparent);
}

.season-podium-rank {
    position: absolute;
    right: 12px;
    top: 10px;
    color: var(--faction-color);
    font-size: 11px;
    font-weight: 850;
}

.season-podium-card h3 {
    margin: 7px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.season-podium-card > strong {
    color: var(--faction-color);
    font-size: 24px;
}

.season-podium-card > small {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.season-leaderboard {
    overflow: hidden;
    border: 1px solid #30465f;
    border-radius: 18px;
    background: linear-gradient(145deg, #132238, #0c1726);
    box-shadow: var(--soft-shadow);
}

.season-leader-row {
    display: grid;
    grid-template-columns: 42px 40px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-top: 1px solid rgba(62, 84, 109, 0.45);
}

.season-leader-row:first-child {
    border-top: 0;
}

.leader-rank {
    color: #72849a;
    font-size: 11px;
    font-weight: 850;
}

.leader-crest {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--faction-color);
    border-radius: 50%;
    background: color-mix(in srgb, var(--faction-color) 12%, transparent);
    color: var(--faction-color);
}

.leader-copy {
    display: grid;
    grid-template-columns: 150px minmax(120px, 1fr);
    align-items: center;
    gap: 12px;
}

.leader-copy strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-copy .game-progress i {
    background: linear-gradient(90deg, color-mix(in srgb, var(--faction-color) 58%, #2a3c52), var(--faction-color));
}

.season-leader-row > b {
    color: var(--faction-color);
    font-size: 12px;
    text-align: right;
}

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

.season-history-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--winner-color) 40%, #30465f);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--winner-color) 22%, transparent), transparent 42%),
        linear-gradient(145deg, #14243a, #0c1726);
    box-shadow: var(--soft-shadow);
}

.history-season-number {
    display: inline-flex;
    min-width: 44px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--winner-color);
    border-radius: 9px;
    color: var(--winner-color);
    font-size: 11px;
    font-weight: 850;
}

.history-season-status {
    float: right;
    color: #8799ad;
    font-size: 9px;
    text-transform: uppercase;
}

.season-history-card h3 {
    margin: 14px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.season-history-card > p {
    color: var(--muted);
    font-size: 9px;
}

.history-winner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(67, 90, 116, 0.45);
}

.history-winner > span {
    color: var(--winner-color);
    font-size: 25px;
}

.history-winner > div {
    display: flex;
    flex-direction: column;
}

.history-winner small {
    color: var(--muted);
    font-size: 8px;
}

.history-winner strong {
    font-size: 11px;
}

/* Profile */
.profile-unborn-state {
    position: relative;
    display: flex;
    min-height: 620px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 1px solid #344b66;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.profile-unborn-state > img,
.profile-hero-atlas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.65);
}

.profile-unborn-overlay,
.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(67, 48, 112, 0.15), rgba(5, 11, 19, 0.92) 72%);
}

.profile-unborn-state > *:not(img):not(.profile-unborn-overlay) {
    position: relative;
    z-index: 2;
}

.profile-unborn-rune {
    display: grid;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    place-items: center;
    border: 2px solid var(--purple);
    border-radius: 50%;
    background: rgba(83, 55, 136, 0.25);
    color: var(--purple);
    font-size: 45px;
    box-shadow: 0 0 55px rgba(183, 124, 255, 0.25);
}

.profile-unborn-state h1 {
    max-width: 760px;
    margin: 8px 0;
    font-size: clamp(42px, 5vw, 68px);
}

.profile-unborn-state p {
    max-width: 650px;
    color: #acbacb;
}

.profile-character-hero {
    position: relative;
    display: grid;
    min-height: 310px;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid #3b506b;
    border-radius: 24px;
    background: #15253a;
    box-shadow: var(--shadow);
}

.profile-hero-atlas {
    object-position: 68% 56%;
    filter: saturate(1.1) brightness(0.68) hue-rotate(5deg);
}

.profile-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 13, 23, 0.94), rgba(13, 23, 38, 0.78) 48%, rgba(15, 19, 40, 0.36)),
        linear-gradient(0deg, rgba(5, 11, 19, 0.66), transparent 60%);
}

.profile-avatar-frame,
.profile-identity,
.profile-power-display {
    position: relative;
    z-index: 2;
}

.profile-avatar-frame {
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
}

.profile-avatar-frame > img {
    width: 130px;
    height: 130px;
    border: 5px solid #101c2b;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.profile-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--purple) var(--ring-progress), rgba(69, 85, 110, 0.35) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    filter: drop-shadow(0 0 12px rgba(183, 124, 255, 0.34));
}

.profile-level-rune {
    position: absolute;
    right: 4px;
    bottom: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid #e7d6ff;
    border-radius: 50%;
    background: linear-gradient(145deg, #9d63ef, #6151c9);
    box-shadow: 0 0 20px rgba(183, 124, 255, 0.45);
}

.profile-identity h1 {
    margin: 7px 0 2px;
    font-size: clamp(43px, 4.5vw, 68px);
    line-height: 1;
}

.profile-identity > p {
    color: #b2c0d0;
    font-size: 14px;
}

.profile-identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.profile-identity-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(83, 111, 141, 0.55);
    border-radius: 999px;
    background: rgba(6, 14, 24, 0.48);
    color: #9caec0;
    font-size: 9px;
}

.profile-power-display {
    display: flex;
    min-width: 170px;
    flex-direction: column;
    align-items: flex-end;
    padding: 17px 19px;
    border: 1px solid rgba(183, 124, 255, 0.48);
    border-radius: 15px;
    background: rgba(14, 17, 39, 0.66);
    box-shadow: 0 0 34px rgba(183, 124, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.profile-power-display strong {
    color: var(--purple);
    font-size: 38px;
    line-height: 1.05;
}

.profile-power-display span {
    color: #b8c2d2;
    font-size: 10px;
}

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

.profile-stat {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #2d435b;
    border-radius: 14px;
    background: linear-gradient(145deg, #14233a, #0c1726);
    color: var(--purple);
}

.profile-stat.stat-green { color: var(--green); }
.profile-stat.stat-blue { color: var(--blue); }
.profile-stat.stat-purple { color: var(--purple); }
.profile-stat.stat-gold { color: var(--gold); }
.profile-stat.stat-cyan { color: var(--cyan); }

.profile-stat > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.profile-stat > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.profile-stat small {
    color: var(--muted);
    font-size: 8px;
}

.profile-stat strong {
    color: currentColor;
    font-size: 17px;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.profile-achievement-section {
    margin-top: 0;
}

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

.achievement-token {
    --rarity-color: #8799ad;
    position: relative;
    overflow: hidden;
    min-height: 225px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--rarity-color) 50%, #30455d);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--rarity-color) 20%, transparent), transparent 42%),
        linear-gradient(145deg, #14243a, #0c1726);
    box-shadow: var(--soft-shadow);
}

.achievement-token.rarity-common { --rarity-color: #93a3b4; }
.achievement-token.rarity-uncommon { --rarity-color: var(--green); }
.achievement-token.rarity-rare { --rarity-color: var(--blue); }
.achievement-token.rarity-epic { --rarity-color: var(--purple); }
.achievement-token.rarity-legendary { --rarity-color: var(--gold); }

.achievement-token-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid var(--rarity-color);
    border-radius: 15px;
    background: color-mix(in srgb, var(--rarity-color) 13%, transparent);
    color: var(--rarity-color);
    font-size: 25px;
    box-shadow: 0 0 24px color-mix(in srgb, var(--rarity-color) 20%, transparent);
}

.achievement-rarity {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--rarity-color) 50%, #344960);
    border-radius: 999px;
    color: var(--rarity-color);
    font-size: 8px;
    text-transform: uppercase;
}

.achievement-token h3 {
    margin: 16px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.achievement-token p {
    color: #9cabbc;
    font-size: 9px;
}

.achievement-token > small {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: #71849a;
    font-size: 8px;
}

.profile-title-section {
    min-width: 0;
}

.title-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-ribbon {
    --title-color: var(--purple);
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--title-color) 44%, #30465f);
    border-radius: 14px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--title-color) 11%, transparent), transparent 42%),
        linear-gradient(145deg, #14243a, #0c1726);
}

.title-tone-1 { --title-color: var(--purple); }
.title-tone-2 { --title-color: var(--blue); }
.title-tone-3 { --title-color: var(--green); }
.title-tone-4 { --title-color: var(--gold); }

.title-ribbon-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--title-color);
    border-radius: 12px;
    color: var(--title-color);
    background: color-mix(in srgb, var(--title-color) 12%, transparent);
}

.title-ribbon small {
    color: var(--title-color);
    font-size: 8px;
    text-transform: uppercase;
}

.title-ribbon strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.title-ribbon p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.title-ribbon > b {
    position: absolute;
    right: 9px;
    top: 9px;
    color: var(--title-color);
    font-size: 7px;
    text-transform: uppercase;
}

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

.quest-journal-card {
    --quest-color: var(--blue);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--quest-color) 46%, #30465f);
    border-radius: 17px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--quest-color) 9%, transparent), transparent 38%),
        linear-gradient(145deg, #14243a, #0c1726);
}

.quest-tone-1 { --quest-color: var(--blue); }
.quest-tone-2 { --quest-color: var(--purple); }
.quest-tone-3 { --quest-color: var(--green); }
.quest-tone-4 { --quest-color: var(--gold); }
.quest-journal-card.is-complete { --quest-color: var(--green); }

.quest-rune {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid var(--quest-color);
    border-radius: 15px;
    background: color-mix(in srgb, var(--quest-color) 13%, transparent);
    color: var(--quest-color);
    font-size: 22px;
}

.quest-journal-head {
    display: flex;
    justify-content: space-between;
    color: var(--quest-color);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.quest-journal-copy h3 {
    margin: 5px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.quest-journal-copy p {
    color: #9cabbc;
    font-size: 9px;
}

.quest-journal-copy .game-progress i {
    background: linear-gradient(90deg, color-mix(in srgb, var(--quest-color) 60%, #263c54), var(--quest-color));
}

.quest-journal-copy > small {
    display: block;
    margin-top: 7px;
    color: var(--quest-color);
    font-size: 8px;
}

.collection-empty {
    min-height: 220px;
}

.collection-empty.wide {
    min-height: 190px;
}

/* Map */
.map-main {
    padding-bottom: 24px;
}

.map-game-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 13px;
    padding: 6px 4px;
}

.map-game-header h1 {
    margin: 4px 0 2px;
    font-size: clamp(34px, 3vw, 48px);
}

.map-game-header p {
    margin: 0;
    color: var(--muted);
}

.map-header-stats {
    display: flex;
    overflow: hidden;
    border: 1px solid #30465f;
    border-radius: 13px;
    background: rgba(13, 24, 38, 0.82);
}

.map-header-stats > span {
    display: flex;
    min-width: 82px;
    flex-direction: column;
    padding: 8px 12px;
    border-left: 1px solid rgba(67, 91, 118, 0.46);
}

.map-header-stats > span:first-child { border-left: 0; }
.map-header-stats small { color: var(--muted); font-size: 8px; }
.map-header-stats strong { font-size: 14px; }

.map-toolbar {
    display: flex;
    gap: 6px;
}

.map-tool {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #38506c;
    border-radius: 10px;
    background: linear-gradient(145deg, #17283d, #0e1a29);
    color: #e1ebf6;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.map-tool:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.map-tool-reset {
    min-width: 88px;
    color: #aab9ca;
    font-size: 10px;
}

.frontier-map-shell {
    display: grid;
    min-height: calc(100vh - 132px);
    grid-template-columns: minmax(0, 1fr) 340px;
    overflow: hidden;
    border: 1px solid #36506a;
    border-radius: 22px;
    background: #0d1927;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.06);
}

.frontier-map-stage {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #30465f;
    background: #102739;
}

.map-stage-atlas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.05) brightness(0.68) blur(1px);
}

.map-stage-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(9, 28, 39, 0.35), rgba(5, 13, 22, 0.64)), radial-gradient(circle at 50% 45%, transparent, rgba(5, 12, 19, 0.4));
}

.map-stage-instruction {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 4;
    display: grid;
    grid-template-columns: 34px auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(120, 160, 190, 0.4);
    border-radius: 11px;
    background: rgba(6, 14, 23, 0.72);
    backdrop-filter: blur(8px);
}

.map-stage-instruction > span {
    grid-row: 1 / 3;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(183, 124, 255, 0.13);
    color: var(--purple);
}

.map-stage-instruction strong { font-size: 9px; text-transform: uppercase; }
.map-stage-instruction small { color: var(--muted); font-size: 8px; }

.frontier-map-svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.frontier-map-svg:active {
    cursor: grabbing;
}

.map-loading {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7, 17, 27, 0.9);
    text-align: center;
    backdrop-filter: blur(8px);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.map-loading[hidden],
.map-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.map-loading-compass {
    display: grid;
    width: 84px;
    height: 84px;
    margin-bottom: 15px;
    place-items: center;
    border: 2px solid var(--purple);
    border-radius: 50%;
    color: var(--purple);
    font-size: 38px;
    box-shadow: 0 0 35px rgba(183, 124, 255, 0.24);
    animation: mapPulse 1.8s ease-in-out infinite;
}

.map-loading strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.map-loading small { margin-top: 5px; color: var(--muted); }

@keyframes mapPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(183, 124, 255, 0.18); }
    50% { transform: scale(1.06); box-shadow: 0 0 48px rgba(183, 124, 255, 0.34); }
}

.map-region {
    transition: opacity 160ms ease;
}

.map-region-land {
    fill: url(#regionFill);
    stroke: rgba(178, 236, 207, 0.72);
    stroke-width: 2.4;
    stroke-linejoin: round;
    opacity: 0.85;
    transition: fill 160ms ease, opacity 160ms ease;
}

.map-region:hover .map-region-land {
    fill: #4e7650;
    opacity: 0.95;
}

.map-region-label {
    fill: #e7f5ff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.14em;
    paint-order: stroke;
    stroke: rgba(6, 14, 22, 0.92);
    stroke-width: 5px;
    stroke-linejoin: round;
}

.map-road-region {
    fill: none;
    stroke: rgba(198, 241, 235, 0.44);
    stroke-width: 3;
    stroke-dasharray: 9 11;
    stroke-linecap: round;
}

.map-road-local {
    stroke: rgba(255, 239, 177, 0.38);
    stroke-width: 2;
    stroke-dasharray: 5 7;
    stroke-linecap: round;
}

.map-territory {
    cursor: pointer;
    outline: none;
}

.territory-aura {
    transition: opacity 160ms ease, r 160ms ease;
    filter: url(#mapGlow);
}

.territory-node {
    fill: rgba(8, 18, 26, 0.94);
    transition: r 160ms ease, stroke-width 160ms ease, filter 160ms ease;
}

.map-territory:hover .territory-node,
.map-territory:focus .territory-node,
.map-territory.is-selected .territory-node {
    stroke-width: 5;
    filter: url(#mapGlow);
}

.map-territory:hover .territory-aura,
.map-territory.is-selected .territory-aura {
    opacity: 0.34;
}

.territory-event-ring {
    fill: none;
    stroke-width: 3;
    stroke-dasharray: 8 7;
    filter: url(#mapGlow);
    animation: eventRing 5s linear infinite;
}

@keyframes eventRing { to { stroke-dashoffset: -90; } }

.territory-icon {
    fill: #f7fbff;
    font-size: 12px;
    font-weight: 850;
    pointer-events: none;
}

.territory-label {
    fill: #f1f7ff;
    font-size: 13px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(5, 12, 20, 0.95);
    stroke-width: 4px;
    pointer-events: none;
}

.territory-sub-label {
    fill: #a8b8c8;
    font-size: 9px;
    paint-order: stroke;
    stroke: rgba(5, 12, 20, 0.95);
    stroke-width: 3px;
    pointer-events: none;
}

.map-legend {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 13px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(100, 132, 162, 0.38);
    border-radius: 11px;
    background: rgba(6, 14, 23, 0.72);
    backdrop-filter: blur(9px);
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a3b3c3;
    font-size: 8px;
}

.map-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--legend-color, #71849a);
    box-shadow: 0 0 8px var(--legend-color, #71849a);
}

.map-inspector {
    position: relative;
    overflow-y: auto;
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(183, 124, 255, 0.14), transparent 35%),
        linear-gradient(180deg, #132237, #0c1725);
    scrollbar-width: thin;
    scrollbar-color: #344d68 transparent;
}

.map-inspector-empty {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inspector-compass {
    display: grid;
    width: 82px;
    height: 82px;
    margin-bottom: 16px;
    place-items: center;
    border: 2px solid var(--purple);
    border-radius: 50%;
    background: rgba(183, 124, 255, 0.1);
    color: var(--purple);
    font-size: 35px;
    box-shadow: 0 0 32px rgba(183, 124, 255, 0.2);
}

.map-inspector-empty h2,
.map-inspector > h2 {
    margin: 7px 0;
    font-size: 31px;
}

.map-inspector-empty p {
    color: var(--muted);
    font-size: 11px;
}

.inspector-tip {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #334961;
    border-radius: 11px;
    background: rgba(6, 14, 23, 0.35);
    color: #8fa1b4;
    text-align: left;
}

.inspector-tip > span { color: var(--cyan); }
.inspector-tip small { font-size: 8px; }

.inspector-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aab9ca;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.faction-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: 0 0 11px var(--swatch);
}

.inspector-stage {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 6px 9px;
    border: 1px solid rgba(183, 124, 255, 0.42);
    border-radius: 999px;
    background: rgba(183, 124, 255, 0.09);
    color: var(--purple);
    font-size: 9px;
    font-weight: 750;
}

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

.inspector-stat-grid > div {
    display: flex;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border: 1px solid #30465f;
    border-radius: 11px;
    background: rgba(6, 14, 23, 0.38);
}

.inspector-stat-grid span,
.inspector-label {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.inspector-stat-grid strong {
    color: #f1f7ff;
    font-size: 18px;
}

.inspector-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #30465f;
    border-radius: 12px;
    background: rgba(6, 14, 23, 0.32);
}

.inspector-section > strong {
    font-size: 12px;
}

.inspector-section > small {
    color: var(--muted);
    font-size: 8px;
}

.inspector-item {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid rgba(63, 86, 112, 0.45);
    border-radius: 9px;
    background: rgba(12, 24, 38, 0.65);
}

.inspector-item.live {
    border-color: rgba(121, 223, 118, 0.45);
    background: rgba(34, 91, 61, 0.15);
}

.inspector-item strong { font-size: 9px; }
.inspector-item small { color: var(--muted); font-size: 8px; }

/* Landing */
.landing-body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 18%, rgba(93, 73, 189, 0.19), transparent 30%),
        radial-gradient(circle at 8% 68%, rgba(29, 155, 180, 0.11), transparent 30%),
        linear-gradient(145deg, #060d17, #07121e 45%, #050b13);
}

.landing-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image:
        radial-gradient(circle at 15% 20%, #fff 0 1px, transparent 1.4px),
        radial-gradient(circle at 73% 54%, #bcdfff 0 1px, transparent 1.4px),
        radial-gradient(circle at 42% 82%, #e3ccff 0 1px, transparent 1.4px);
    background-size: 190px 160px, 240px 210px, 210px 180px;
}

.landing-aurora {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.16;
}

.landing-aurora-one { right: -120px; top: -150px; width: 620px; height: 620px; background: #7e4fd5; }
.landing-aurora-two { left: -180px; bottom: -210px; width: 600px; height: 600px; background: #1b8cab; }

.landing-header {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 14px 24px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.landing-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    letter-spacing: 0.13em;
}

.landing-brand small {
    color: var(--purple);
    font-size: 11px;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #a9b7c7;
    font-size: 12px;
}

.landing-nav > a:not(.game-button):hover {
    color: #fff;
}

.landing-layout {
    position: relative;
    z-index: 2;
    display: grid;
    max-width: 1800px;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding: 12px 24px 24px;
}

.landing-story-panel {
    padding: 24px 8px 24px 4px;
}

.landing-story-panel h1 {
    margin: 11px 0 16px;
    font-size: clamp(52px, 5.2vw, 78px);
    line-height: 0.98;
}

.landing-lead {
    color: #bdc9d8;
    font-size: 15px;
    line-height: 1.65;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 28px;
}

.landing-feature-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-feature {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.landing-feature:hover {
    transform: translateX(4px);
    border-color: rgba(73, 97, 124, 0.55);
    background: rgba(16, 28, 43, 0.62);
}

.landing-feature-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 13%, transparent);
    font-size: 22px;
    box-shadow: 0 0 20px color-mix(in srgb, currentColor 15%, transparent);
}

.feature-green { color: var(--green); }
.feature-red { color: var(--red); }
.feature-blue { color: var(--blue); }
.feature-gold { color: var(--gold); }

.landing-feature strong {
    color: currentColor;
    font-size: 12px;
    text-transform: uppercase;
}

.landing-feature p {
    margin: 3px 0 0;
    color: #98a7b8;
    font-size: 10px;
}

.landing-world-preview {
    overflow: hidden;
    align-self: start;
    border: 1px solid #3a4f6a;
    border-radius: 22px;
    background: linear-gradient(145deg, #111e30, #0a1421);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.07);
}

.landing-preview-top {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #30455d;
}

.landing-preview-top > div {
    display: flex;
    flex-direction: column;
}

.landing-preview-top small {
    color: var(--purple);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-preview-top strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.preview-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(121, 223, 118, 0.4);
    border-radius: 999px;
    color: #a6eda1;
    font-size: 9px;
}

.preview-online i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.landing-preview-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 11px;
}

.landing-preview-stats article {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid #2b4058;
    border-radius: 11px;
    background: linear-gradient(145deg, #17263a, #0d1826);
}

.landing-preview-stats small {
    color: #9baabd;
    font-size: 8px;
}

.landing-preview-stats strong {
    color: currentColor;
    font-size: 19px;
}

.landing-preview-stats strong em {
    color: #a7b4c3;
    font-size: 8px;
    font-style: normal;
}

.landing-preview-stats span {
    color: #70839a;
    font-size: 7px;
}

.landing-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 9px;
    min-height: 600px;
    padding: 0 11px 11px;
}

.landing-preview-map {
    position: relative;
    overflow: hidden;
    border: 1px solid #344d68;
    border-radius: 15px;
    background: #153248;
}

.landing-preview-map::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(4, 11, 18, 0.52), transparent 27%), radial-gradient(circle at 50% 50%, transparent 58%, rgba(4, 10, 17, 0.32));
}

.landing-preview-map > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) brightness(1.02);
}

.preview-map-title {
    position: absolute;
    left: 16px;
    top: 13px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.58);
}

.preview-map-title strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.preview-map-title small {
    font-size: 8px;
}

.demo-location {
    position: absolute;
    z-index: 3;
    display: grid;
    min-width: 112px;
    grid-template-columns: 10px auto;
    padding: 6px 8px;
    border: 1px solid currentColor;
    border-radius: 9px;
    background: rgba(7, 14, 22, 0.84);
    color: var(--green);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.demo-location i {
    grid-row: 1 / 3;
    width: 7px;
    height: 7px;
    align-self: center;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

.demo-location b { color: #f6fbff; font-size: 8px; }
.demo-location small { color: #8ea1b4; font-size: 7px; }
.demo-location-one { left: 18%; top: 22%; color: var(--gold); }
.demo-location-two { right: 12%; top: 18%; color: var(--cyan); }
.demo-location-three { left: 44%; top: 43%; color: var(--green); }
.demo-location-four { right: 7%; top: 55%; color: var(--red); }
.demo-location-five { left: 52%; bottom: 12%; color: var(--purple); }

.preview-world-state {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(121, 223, 118, 0.45);
    border-radius: 10px;
    background: rgba(6, 14, 22, 0.82);
}

.preview-world-state > b { color: var(--green); }
.preview-world-state > span { display: flex; flex-direction: column; }
.preview-world-state small { color: #8da399; font-size: 7px; }
.preview-world-state strong { color: #9cf09a; font-size: 9px; }

.landing-preview-rail {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.demo-rail-card {
    padding: 11px;
    border: 1px solid #314861;
    border-radius: 13px;
    background: linear-gradient(145deg, #132237, #0b1725);
}

.demo-rail-card > span {
    display: block;
    margin-bottom: 8px;
    color: #d8e4ef;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-rail-card p {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid rgba(60, 83, 108, 0.42);
}

.demo-rail-card p:first-of-type { border-top: 0; }
.demo-rail-card p > i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.demo-rail-card p > b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.demo-rail-card p > strong { font-size: 8px; }
.demo-blue { color: var(--blue); }
.demo-green { color: var(--green); }
.demo-purple { color: var(--purple); }
.demo-red { color: var(--red); }

.demo-events-card {
    flex: 1;
}

.demo-events-card p {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 9px 0;
}

.demo-events-card p > i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(183, 124, 255, 0.12);
    color: var(--purple);
    font-style: normal;
}

.demo-events-card p > small {
    grid-column: 2;
    color: #7e91a7;
    font-size: 7px;
}

.landing-how {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    margin: 10px auto 0;
    padding: 32px 24px 50px;
}

.landing-how-heading {
    text-align: center;
}

.landing-how-heading h2 {
    margin: 6px 0 23px;
    font-size: clamp(34px, 3.5vw, 50px);
}

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

.landing-flow article {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #30465f;
    border-radius: 17px;
    background: linear-gradient(145deg, #14243a, #0c1726);
    color: var(--purple);
    box-shadow: var(--soft-shadow);
}

.landing-flow article.mechanic-green { color: var(--green); }
.landing-flow article.mechanic-purple { color: var(--purple); }
.landing-flow article.mechanic-blue { color: var(--blue); }
.landing-flow article.mechanic-gold { color: var(--gold); }

.landing-flow article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 13%, transparent);
    font-size: 20px;
}

.landing-flow strong {
    margin-top: 14px;
    color: #f0f6ff;
    font-size: 12px;
    text-transform: uppercase;
}

.landing-flow p {
    color: #98a8ba;
    font-size: 10px;
}

.landing-flow > i {
    color: #61758c;
    font-size: 21px;
    font-style: normal;
}

.landing-footer {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(55, 75, 99, 0.48);
    color: #7f91a7;
}

.landing-footer > span:first-child {
    color: #d9c6ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 0.12em;
}

.landing-footer small {
    color: var(--purple);
}

/* Responsive */
@media (max-width: 1500px) {
    :root { --sidebar-width: 252px; }
    .game-main { padding-left: 20px; padding-right: 20px; }
    .sidebar-link-copy small { display: none; }
    .sidebar-link { min-height: 47px; }
    .world-command-center { grid-template-columns: minmax(0, 1fr) 285px; }
    .world-atlas-scene { min-height: 490px; }
    .atlas-location-card { min-width: 126px; padding: 7px 8px; }
    .atlas-location-card strong, .atlas-location-card small { max-width: 115px; }
    .mechanic-card p { font-size: 8px; }
    .landing-layout { grid-template-columns: 330px minmax(0, 1fr); }
    .landing-story-panel h1 { font-size: 60px; }
}

@media (max-width: 1280px) {
    .world-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .world-command-center { grid-template-columns: 1fr; }
    .world-intel-rail { display: grid; grid-template-columns: repeat(3, 1fr); }
    .intel-card { border-right: 1px solid rgba(61, 84, 110, 0.55); border-bottom: 0; }
    .intel-card:last-child { border-right: 0; }
    .world-lower-band { grid-template-columns: 1fr; }
    .season-glance-card { min-height: 210px; }
    .territory-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faction-podium { max-width: none; }
    .chronicle-layout { grid-template-columns: minmax(0, 1fr) 310px; }
    .live-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .achievement-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-layout { grid-template-columns: 1fr; }
    .landing-story-panel { max-width: 850px; }
    .landing-feature-stack { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1060px) {
    :root { --sidebar-width: 0px; }
    .app-sidebar {
        width: min(310px, 88vw);
        transform: translateX(-102%);
        transition: transform 220ms ease;
    }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-close { display: grid; }
    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(2, 7, 12, 0.7);
        backdrop-filter: blur(4px);
    }
    .sidebar-open .app-sidebar-backdrop { display: block; }
    .app-topbar {
        position: sticky;
        left: 0;
        right: 0;
        top: 0;
        z-index: 60;
        display: flex;
        min-height: 64px;
        align-items: center;
        gap: 11px;
        padding: 9px 14px;
        border-bottom: 1px solid #293e56;
        background: rgba(9, 17, 29, 0.9);
        backdrop-filter: blur(14px);
    }
    .sidebar-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid #354c67;
        border-radius: 11px;
        background: #142237;
        color: var(--purple);
    }
    .topbar-context { display: flex; min-width: 0; flex: 1; flex-direction: column; }
    .topbar-context span { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-context small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-user img { width: 36px; height: 36px; }
    .game-main { margin-left: 0; min-height: calc(100vh - 64px); padding: 18px 16px 34px; }
    .banner-stat-cluster { position: relative; right: auto; bottom: auto; z-index: 3; margin-top: 20px; align-self: stretch; }
    .game-page-banner { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .game-page-banner-copy { width: 100%; }
    .game-page-banner-copy p { max-width: 760px; }
    .profile-content-grid { grid-template-columns: 1fr; }
    .frontier-map-shell { grid-template-columns: 1fr; min-height: 900px; }
    .frontier-map-stage { min-height: 620px; border-right: 0; border-bottom: 1px solid #30465f; }
    .map-inspector { min-height: 280px; }
    .map-game-header { grid-template-columns: 1fr auto; }
    .map-header-stats { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }
    .map-header-stats > span { flex: 1; }
}

@media (max-width: 820px) {
    .world-overview-head { align-items: flex-start; flex-direction: column; }
    .world-head-actions { width: 100%; flex-wrap: wrap; }
    .world-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .world-intel-rail { grid-template-columns: 1fr; }
    .intel-card { border-right: 0; border-bottom: 1px solid rgba(61, 84, 110, 0.55); }
    .mechanic-flow { grid-template-columns: repeat(2, 1fr); }
    .mechanic-arrow { display: none; }
    .section-title-inline { align-items: flex-start; flex-direction: column; }
    .gateway-hero { grid-template-columns: 1fr; padding: 30px; }
    .gateway-orbit { display: none; }
    .world-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gateway-guide { grid-template-columns: 1fr; }
    .territory-overview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faction-podium { grid-template-columns: 1fr; align-items: stretch; }
    .podium-rank-1 { transform: none; min-height: 228px; }
    .faction-banner-grid { grid-template-columns: 1fr; }
    .chronicle-featured { grid-template-columns: 1fr; }
    .chronicle-featured-art { min-height: 250px; }
    .chronicle-featured-art::after { background: linear-gradient(0deg, #142338, transparent 65%); }
    .chronicle-layout { grid-template-columns: 1fr; }
    .landmark-card-list { display: grid; grid-template-columns: repeat(2, 1fr); }
    .live-event-grid { grid-template-columns: 1fr; }
    .event-archive-grid { grid-template-columns: 1fr; }
    .season-podium { grid-template-columns: 1fr; align-items: stretch; }
    .season-rank-1 { transform: none; min-height: 215px; }
    .season-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-character-hero { grid-template-columns: 150px minmax(0, 1fr); }
    .profile-power-display { grid-column: 1 / -1; align-items: flex-start; }
    .profile-stat-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quest-journal-grid { grid-template-columns: 1fr; }
    .landing-feature-stack { grid-template-columns: 1fr; }
    .landing-preview-grid { grid-template-columns: 1fr; }
    .landing-preview-map { min-height: 520px; }
    .landing-preview-rail { display: grid; grid-template-columns: repeat(2, 1fr); }
    .landing-flow { grid-template-columns: repeat(2, 1fr); }
    .landing-flow > i { display: none; }
}

@media (max-width: 620px) {
    .game-main { padding-left: 11px; padding-right: 11px; }
    .game-page-banner { min-height: 360px; padding: 24px 20px; }
    .game-page-banner-copy h1 { font-size: 46px; }
    .banner-stat-cluster { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); }
    .banner-stat-cluster > span { min-width: 0; border-top: 1px solid rgba(94, 120, 150, 0.28); }
    .banner-stat-cluster > span:nth-child(odd) { border-left: 0; }
    .world-title-row { align-items: flex-start; }
    .world-title-row h1 { font-size: 33px; }
    .world-stat-strip { grid-template-columns: 1fr; }
    .world-stat-card { min-height: 78px; }
    .atlas-panel-head { align-items: flex-start; flex-direction: column; }
    .atlas-panel-meta { flex-wrap: wrap; }
    .world-atlas-scene { min-height: 470px; }
    .atlas-location-card { min-width: auto; padding: 6px; }
    .atlas-location-card > span { display: none; }
    .atlas-location-card > b { width: 25px; height: 25px; }
    .atlas-status-card { right: 12px; max-width: none; }
    .atlas-status-card em { display: none; }
    .mechanic-flow { grid-template-columns: 1fr; }
    .gateway-hero { min-height: 370px; padding: 24px 20px; }
    .gateway-copy h1 { font-size: 46px; }
    .world-portal-grid { grid-template-columns: 1fr; }
    .territory-overview-strip { grid-template-columns: 1fr; }
    .territory-card-grid { grid-template-columns: 1fr; }
    .faction-banner-card { grid-template-columns: 72px minmax(0, 1fr); }
    .faction-banner-side { min-height: 310px; }
    .faction-power-line { grid-template-columns: 1fr; }
    .landmark-card-list { grid-template-columns: 1fr; }
    .event-calm-card { align-items: flex-start; flex-direction: column; }
    .archived-event-card { grid-template-columns: 44px minmax(0, 1fr); }
    .archive-magnitude { grid-column: 2; }
    .season-royal-hero { min-height: 520px; padding: 30px 22px; }
    .season-crown { right: 28%; top: 18%; width: 110px; height: 110px; font-size: 50px; }
    .season-hero-copy { margin-top: 100px; }
    .season-hero-copy h1 { font-size: 46px; }
    .season-countdown-orb { right: 18px; bottom: 20px; width: 95px; height: 95px; }
    .season-hero-progress { left: 22px; right: 130px; bottom: 28px; }
    .season-history-grid { grid-template-columns: 1fr; }
    .season-leader-row { grid-template-columns: 34px 34px minmax(0, 1fr) auto; padding: 10px; }
    .leader-copy { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
    .profile-character-hero { display: flex; min-height: 520px; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; }
    .profile-identity-tags { justify-content: center; }
    .profile-power-display { align-items: center; }
    .profile-stat-ribbon { grid-template-columns: 1fr; }
    .achievement-collection-grid { grid-template-columns: 1fr; }
    .map-game-header { grid-template-columns: 1fr; }
    .map-header-stats { grid-column: auto; grid-row: auto; }
    .map-toolbar { justify-content: stretch; }
    .map-tool { flex: 1; }
    .frontier-map-stage { min-height: 520px; }
    .map-stage-instruction { display: none; }
    .landing-header { padding: 12px; }
    .landing-brand strong { font-size: 20px; }
    .landing-brand small { font-size: 8px; }
    .landing-brand .frontier-mark { width: 46px; height: 46px; flex-basis: 46px; }
    .landing-nav > a:not(.game-button) { display: none; }
    .landing-nav .game-button { min-height: 40px; padding: 0 12px; font-size: 10px; }
    .landing-layout { padding: 8px 12px 18px; }
    .landing-story-panel h1 { font-size: 47px; }
    .landing-preview-stats { grid-template-columns: repeat(2, 1fr); }
    .landing-preview-grid { min-height: 690px; }
    .landing-preview-map { min-height: 500px; }
    .landing-preview-rail { grid-template-columns: 1fr; }
    .demo-location { min-width: 32px; padding: 5px; }
    .demo-location b, .demo-location small { display: none; }
    .landing-flow { grid-template-columns: 1fr; }
    .landing-footer { flex-wrap: wrap; gap: 8px; }
}

/* ========================================================================== 
   Frontier Chroma World UI + Procedural Atlas
   Keeps the established layout while giving every realm page a brighter,
   storybook-game palette and a shared generated map language.
   ========================================================================== */

:root {
    --bg: #070a18;
    --bg-deep: #03050f;
    --surface: #101b31;
    --surface-2: #162640;
    --surface-3: #1d3150;
    --surface-soft: rgba(14, 25, 44, 0.86);
    --line: #315071;
    --line-bright: #5b7da6;
    --text: #fbfdff;
    --text-soft: #dbe8f8;
    --muted: #98adc6;
    --purple: #ca82ff;
    --purple-2: #765eff;
    --green: #6ef3a2;
    --lime: #c7f45d;
    --cyan: #55e8ff;
    --blue: #6aa8ff;
    --red: #ff7187;
    --pink: #ff74d3;
    --gold: #ffd166;
    --amber: #ff9f5c;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --soft-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.page-world { --page-accent: var(--purple); --page-accent-2: var(--cyan); --page-accent-3: var(--green); }
.page-map { --page-accent: var(--cyan); --page-accent-2: var(--green); --page-accent-3: var(--gold); }
.page-territories { --page-accent: var(--green); --page-accent-2: var(--cyan); --page-accent-3: var(--gold); }
.page-factions { --page-accent: var(--red); --page-accent-2: var(--purple); --page-accent-3: var(--gold); }
.page-chronicle { --page-accent: var(--gold); --page-accent-2: var(--purple); --page-accent-3: var(--cyan); }
.page-events { --page-accent: var(--pink); --page-accent-2: var(--red); --page-accent-3: var(--cyan); }
.page-season { --page-accent: var(--gold); --page-accent-2: var(--purple); --page-accent-3: var(--pink); }
.page-profile { --page-accent: var(--purple); --page-accent-2: var(--cyan); --page-accent-3: var(--pink); }
.page-gateway { --page-accent: var(--cyan); --page-accent-2: var(--purple); --page-accent-3: var(--green); }

.app-body {
    background:
        radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--page-accent, var(--purple)) 24%, transparent), transparent 30%),
        radial-gradient(circle at 18% 75%, color-mix(in srgb, var(--page-accent-2, var(--cyan)) 17%, transparent), transparent 36%),
        radial-gradient(circle at 72% 105%, color-mix(in srgb, var(--page-accent-3, var(--green)) 12%, transparent), transparent 34%),
        linear-gradient(145deg, #090d20 0%, #07101d 42%, #050711 100%);
}

.app-body::before {
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.16) 0 1px, transparent 1.7px),
        linear-gradient(rgba(120, 183, 236, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 183, 236, 0.025) 1px, transparent 1px);
    background-size: 96px 96px, 42px 42px, 42px 42px;
    background-position: 13px 21px, 0 0, 0 0;
}

.game-main::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0 0 0 var(--sidebar-width);
    pointer-events: none;
    background:
        radial-gradient(ellipse at 44% -15%, color-mix(in srgb, var(--page-accent, var(--purple)) 12%, transparent), transparent 42%),
        radial-gradient(ellipse at 96% 48%, color-mix(in srgb, var(--page-accent-2, var(--cyan)) 8%, transparent), transparent 35%);
}

.game-kicker,
.eyebrow {
    color: var(--page-accent, var(--purple));
    text-shadow: 0 0 18px color-mix(in srgb, currentColor 45%, transparent);
}

.game-button-primary {
    border-color: color-mix(in srgb, var(--page-accent, var(--purple)) 75%, #fff 10%);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--page-accent, var(--purple)) 82%, #fff 12%),
        color-mix(in srgb, var(--page-accent-2, var(--blue)) 76%, #4730d9));
    box-shadow:
        0 12px 34px color-mix(in srgb, var(--page-accent, var(--purple)) 36%, transparent),
        inset 0 1px rgba(255, 255, 255, 0.28);
}

.game-button-primary:hover {
    box-shadow:
        0 16px 42px color-mix(in srgb, var(--page-accent, var(--purple)) 48%, transparent),
        inset 0 1px rgba(255, 255, 255, 0.35);
}

/* Navigation becomes a colorful game menu without changing its footprint. */
.app-sidebar {
    border-right-color: rgba(85, 123, 166, 0.62);
    background:
        radial-gradient(circle at 12% 3%, rgba(202, 130, 255, 0.27), transparent 25%),
        radial-gradient(circle at 95% 42%, rgba(85, 232, 255, 0.09), transparent 34%),
        linear-gradient(180deg, rgba(12, 18, 39, 0.99), rgba(6, 12, 25, 0.99));
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.3), inset -1px 0 rgba(111, 173, 226, 0.08);
}

.app-brand-copy strong {
    color: #fff;
    text-shadow: 0 0 20px rgba(202, 130, 255, 0.22);
}

.app-brand-copy small { color: #e3a7ff; }

.frontier-mark {
    border-color: rgba(203, 143, 255, 0.64);
    background:
        radial-gradient(circle, rgba(216, 171, 255, 0.3), transparent 45%),
        linear-gradient(145deg, rgba(112, 83, 216, 0.35), rgba(19, 30, 60, 0.85));
    box-shadow: 0 0 28px rgba(150, 98, 255, 0.22), inset 0 1px rgba(255,255,255,.12);
}

.sidebar-world-card {
    border-color: rgba(86, 126, 170, 0.65);
    background:
        radial-gradient(circle at 100% 0, rgba(202, 130, 255, 0.28), transparent 50%),
        radial-gradient(circle at 0 100%, rgba(85, 232, 255, 0.13), transparent 50%),
        linear-gradient(145deg, #172a47, #101a31);
    box-shadow: inset 0 1px rgba(255,255,255,.1), 0 14px 30px rgba(0,0,0,.27);
}

.world-avatar {
    border-color: rgba(93, 232, 255, 0.68);
    background: linear-gradient(145deg, #274d70, #39236f);
    box-shadow: 0 0 25px rgba(85, 232, 255, 0.22), inset 0 0 18px rgba(202,130,255,.13);
}

.sidebar-nav-label { color: #8ca5c2; }

.sidebar-link {
    color: #aec0d5;
}

.sidebar-link:hover {
    border-color: color-mix(in srgb, currentColor 35%, #456482);
    background:
        linear-gradient(90deg, color-mix(in srgb, currentColor 10%, transparent), rgba(25, 44, 71, 0.86));
    color: #fff;
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.sidebar-link-icon {
    border-color: color-mix(in srgb, currentColor 38%, rgba(79, 101, 128, 0.52));
    background:
        radial-gradient(circle, color-mix(in srgb, currentColor 15%, transparent), transparent 70%),
        rgba(5, 12, 26, 0.62);
    box-shadow: inset 0 1px rgba(255,255,255,.05);
}

.sidebar-link.is-active {
    border-color: color-mix(in srgb, currentColor 65%, #6681a4);
    background:
        radial-gradient(circle at 12% 50%, color-mix(in srgb, currentColor 24%, transparent), transparent 44%),
        linear-gradient(90deg, rgba(51, 42, 103, 0.9), rgba(24, 43, 73, 0.9));
    box-shadow:
        inset 3px 0 currentColor,
        0 10px 24px color-mix(in srgb, currentColor 13%, rgba(0,0,0,.3)),
        inset 0 1px rgba(255,255,255,.08);
}

.sidebar-link.is-active .sidebar-link-icon {
    background: color-mix(in srgb, currentColor 18%, rgba(8, 14, 29, .72));
    box-shadow: 0 0 20px color-mix(in srgb, currentColor 30%, transparent), inset 0 1px rgba(255,255,255,.08);
}

.sidebar-world-pulse {
    border-color: rgba(74, 224, 158, 0.56);
    background:
        radial-gradient(circle at 0 50%, rgba(75, 241, 166, 0.18), transparent 44%),
        linear-gradient(135deg, rgba(24, 76, 69, 0.62), rgba(10, 27, 42, 0.88));
    box-shadow: 0 0 24px rgba(56, 221, 151, 0.09), inset 0 1px rgba(255,255,255,.06);
}

/* Shared game surfaces */
.game-page-banner,
.gateway-hero,
.season-royal-hero,
.profile-character-hero,
.profile-unborn-state {
    border-color: color-mix(in srgb, var(--page-accent, var(--purple)) 43%, #456889);
    box-shadow:
        0 30px 82px rgba(0, 0, 0, 0.43),
        0 0 55px color-mix(in srgb, var(--page-accent, var(--purple)) 10%, transparent),
        inset 0 1px rgba(255, 255, 255, 0.13);
}

.game-page-banner > img,
.season-royal-hero > img,
.profile-hero-atlas,
.profile-unborn-state > img {
    filter: saturate(1.45) contrast(1.05) brightness(0.94);
}

.banner-overlay,
.season-hero-overlay,
.profile-hero-overlay,
.profile-unborn-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 22, 0.91) 0%, rgba(8, 14, 33, 0.68) 39%, rgba(7, 12, 27, 0.08) 74%),
        linear-gradient(0deg, rgba(4, 8, 19, 0.72), transparent 58%),
        radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--page-accent-2, var(--cyan)) 19%, transparent), transparent 28%);
}

.game-page-banner-copy h1,
.gateway-copy h1,
.season-hero-copy h1,
.profile-identity h1 {
    text-shadow:
        0 8px 30px rgba(0, 0, 0, 0.72),
        0 0 30px color-mix(in srgb, var(--page-accent, var(--purple)) 18%, transparent);
}

.banner-stat-cluster {
    border-color: color-mix(in srgb, var(--page-accent, var(--purple)) 35%, #587898);
    background:
        radial-gradient(circle at 80% 0, color-mix(in srgb, var(--page-accent, var(--purple)) 16%, transparent), transparent 50%),
        rgba(8, 15, 32, 0.86);
    box-shadow: 0 20px 50px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.12);
}

.banner-stat-cluster strong { color: #fff; }

.section-title-row h2,
.section-title-inline h2 {
    text-shadow: 0 0 24px color-mix(in srgb, var(--page-accent, var(--purple)) 13%, transparent);
}

.section-count {
    border-color: color-mix(in srgb, var(--page-accent, var(--purple)) 40%, #496886);
    background: color-mix(in srgb, var(--page-accent, var(--purple)) 10%, rgba(9, 18, 35, .86));
    color: color-mix(in srgb, var(--page-accent, var(--purple)) 78%, white);
}

.game-progress {
    background: rgba(4, 10, 23, .72);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.55), 0 0 0 1px rgba(86,118,153,.25);
}

/* World overview HUD */
.world-overview-head {
    border-bottom-color: rgba(83, 119, 158, 0.28);
}

.world-heading-fallback,
.citizen-rank-rune {
    background:
        radial-gradient(circle, color-mix(in srgb, var(--purple) 30%, transparent), transparent 70%),
        linear-gradient(145deg, #263459, #392266);
    border-color: rgba(202, 130, 255, 0.65);
    box-shadow: 0 0 24px rgba(202, 130, 255, 0.2);
}

.citizen-rank-chip {
    border-color: rgba(202, 130, 255, 0.48);
    background:
        radial-gradient(circle at 0 50%, rgba(202,130,255,.15), transparent 50%),
        linear-gradient(145deg, #172743, #11192f);
}

.world-stat-card,
.mini-hud,
.profile-stat,
.landing-preview-stats article {
    border-color: color-mix(in srgb, currentColor 30%, #35516f);
    background:
        linear-gradient(120deg, color-mix(in srgb, currentColor 10%, transparent), transparent 45%),
        radial-gradient(circle at 100% 0, color-mix(in srgb, currentColor 16%, transparent), transparent 55%),
        linear-gradient(145deg, #172943, #0c172b);
    box-shadow:
        0 14px 34px rgba(0,0,0,.3),
        inset 0 1px rgba(255,255,255,.1),
        inset 0 -28px 55px rgba(0,0,0,.08);
}

.world-stat-card::before,
.mini-hud::before,
.profile-stat::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: .7;
}

.world-stat-card,
.mini-hud,
.profile-stat { position: relative; overflow: hidden; }

.world-stat-card:hover,
.mini-hud:hover,
.profile-stat:hover {
    border-color: color-mix(in srgb, currentColor 58%, #fff 5%);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px color-mix(in srgb, currentColor 14%, rgba(0,0,0,.3)), inset 0 1px rgba(255,255,255,.12);
}

.world-stat-card,
.mini-hud,
.profile-stat { transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }

.world-stat-card small,
.mini-hud small,
.profile-stat small { color: #b7c8dc; }

.world-stat-card div > span { color: #88a0ba; }

.stat-icon,
.mini-hud > span,
.profile-stat > span {
    background:
        radial-gradient(circle, color-mix(in srgb, currentColor 28%, transparent), transparent 72%),
        color-mix(in srgb, currentColor 10%, #101a31);
    box-shadow: 0 0 25px color-mix(in srgb, currentColor 28%, transparent), inset 0 1px rgba(255,255,255,.13);
}

.world-atlas-panel,
.world-intel-rail,
.world-mechanics,
.season-glance-card,
.intel-card {
    border-color: color-mix(in srgb, var(--page-accent, var(--purple)) 23%, #456887);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--page-accent, var(--purple)) 11%, transparent), transparent 42%),
        linear-gradient(145deg, rgba(20, 36, 60, 0.98), rgba(8, 17, 33, 0.98));
    box-shadow: 0 18px 44px rgba(0,0,0,.31), inset 0 1px rgba(255,255,255,.08);
}

.atlas-panel-head {
    border-bottom-color: rgba(85, 124, 163, .55);
    background:
        linear-gradient(90deg, rgba(22, 42, 68, .94), rgba(12, 23, 43, .86)),
        rgba(8, 17, 32, .8);
}

.atlas-panel-label { color: #d28cff; text-shadow: 0 0 15px rgba(202,130,255,.35); }

.atlas-panel-meta span {
    border-color: rgba(94, 137, 178, .57);
    background: rgba(8, 17, 34, .78);
    color: #bdd0e4;
}

.world-intel-rail { background: linear-gradient(180deg, rgba(18, 33, 55, .98), rgba(7, 15, 30, .98)); }

.intel-card-head {
    background: linear-gradient(90deg, color-mix(in srgb, var(--page-accent, var(--purple)) 10%, rgba(12,23,43,.9)), rgba(9,18,34,.86));
}

.intel-faction-row,
.intel-event-row,
.history-mini-list li {
    border-color: rgba(68, 101, 136, .56);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--faction-color, var(--page-accent)) 8%, transparent), transparent 54%),
        rgba(9, 18, 35, .64);
}

.intel-faction-row:hover,
.intel-event-row:hover {
    background: color-mix(in srgb, var(--faction-color, var(--page-accent)) 13%, rgba(16,30,52,.88));
    border-color: color-mix(in srgb, var(--faction-color, var(--page-accent)) 45%, #4f6e8d);
}

.mechanic-card {
    border-color: color-mix(in srgb, currentColor 28%, #3c5a78);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, currentColor 15%, transparent), transparent 46%),
        linear-gradient(145deg, #172a45, #0c182d);
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.24);
}

.season-glance-card {
    background:
        radial-gradient(circle at 88% 15%, rgba(202,130,255,.34), transparent 35%),
        radial-gradient(circle at 12% 85%, rgba(255,209,102,.16), transparent 38%),
        linear-gradient(145deg, #25214e, #11162d 68%);
}

/* Gateway / world portals */
.gateway-hero {
    background:
        radial-gradient(circle at 78% 38%, rgba(85, 232, 255, .18), transparent 26%),
        radial-gradient(circle at 70% 42%, rgba(202, 130, 255, .18), transparent 46%),
        linear-gradient(145deg, #17284b, #11152f 58%, #081326);
}

.gateway-stars { opacity: .75; }
.gateway-core { box-shadow: 0 0 80px rgba(202,130,255,.35), 0 0 140px rgba(85,232,255,.13); }

.world-portal-card {
    border-color: color-mix(in srgb, var(--portal-accent) 36%, #3f6182);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--portal-accent) 18%, transparent), transparent 46%),
        linear-gradient(145deg, #172b48, #0c182d);
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08);
}

.world-portal-card:hover {
    border-color: var(--portal-accent);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--portal-accent) 20%, rgba(0,0,0,.38));
}

.portal-atlas { filter: saturate(1.45) contrast(1.04) brightness(.98); }
.portal-shade {
    background:
        linear-gradient(0deg, rgba(5, 11, 25, .94), transparent 58%),
        linear-gradient(110deg, color-mix(in srgb, var(--portal-accent) 19%, transparent), transparent 58%);
}

.gateway-guide article {
    border-color: color-mix(in srgb, var(--page-accent-2) 23%, #385878);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--page-accent-2) 10%, transparent), transparent 50%),
        linear-gradient(145deg, #14263f, #0b172b);
}

/* Territory cards */
.territory-adventure-card {
    border-color: color-mix(in srgb, var(--territory-color) 38%, #3d607f);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--territory-color) 13%, transparent), transparent 43%),
        linear-gradient(145deg, #172c49, #0b172c);
    box-shadow: 0 18px 45px rgba(0,0,0,.31), inset 0 1px rgba(255,255,255,.07);
}

.territory-card-art { border-bottom-color: color-mix(in srgb, var(--territory-color) 30%, #54718c); }

.territory-card-art::after {
    background:
        linear-gradient(0deg, rgba(6, 13, 28, 0.84), transparent 54%),
        radial-gradient(circle at 76% 20%, color-mix(in srgb, var(--territory-color) 28%, transparent), transparent 42%);
}

.territory-card-art img { filter: saturate(1.55) contrast(1.06) brightness(1.03); }

.territory-card-stats > span,
.faction-power-line > div {
    border-color: color-mix(in srgb, var(--territory-color, var(--faction-color, var(--page-accent))) 18%, #405e7d);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--territory-color, var(--faction-color, var(--page-accent))) 8%, transparent), rgba(6,14,29,.62));
}

/* Faction banners */
.faction-podium-card,
.faction-banner-card {
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--faction-color) 24%, transparent), transparent 46%),
        radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--faction-color) 10%, transparent), transparent 44%),
        linear-gradient(145deg, #192d4a, #0b172d);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--faction-color) 14%, rgba(0,0,0,.33)), inset 0 1px rgba(255,255,255,.08);
}

.faction-banner-side {
    background:
        radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--faction-color) 78%, white 10%), transparent 45%),
        linear-gradient(180deg, color-mix(in srgb, var(--faction-color) 70%, #263452), color-mix(in srgb, var(--faction-color) 26%, #08162b));
}

.faction-card-crest,
.podium-banner { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--faction-color) 45%, transparent)); }

/* Chronicle */
.chronicle-book {
    border-color: rgba(255, 209, 102, .56);
    background:
        radial-gradient(circle at 50% 15%, rgba(255,209,102,.22), transparent 42%),
        linear-gradient(145deg, #4a2e54, #1a1b39);
    box-shadow: 0 18px 48px rgba(109,57,100,.31), inset 0 1px rgba(255,255,255,.12);
}

.chronicle-featured,
.chronicle-story-card,
.landmark-card {
    border-color: color-mix(in srgb, var(--landmark-color, var(--page-accent)) 28%, #426383);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--landmark-color, var(--page-accent)) 13%, transparent), transparent 45%),
        linear-gradient(145deg, #192b47, #0b172c);
    box-shadow: 0 18px 42px rgba(0,0,0,.29), inset 0 1px rgba(255,255,255,.07);
}

.chronicle-featured-art img,
.landmark-art img { filter: saturate(1.55) contrast(1.05) brightness(1.02); }

.chronicle-timeline::before {
    background: linear-gradient(var(--gold), var(--purple), var(--cyan));
    box-shadow: 0 0 18px rgba(202,130,255,.25);
}

.chronicle-story-marker span {
    box-shadow: 0 0 25px color-mix(in srgb, currentColor 35%, transparent);
}

/* Events */
.event-calm-card,
.live-event-card,
.archived-event-card {
    border-color: color-mix(in srgb, var(--event-color, var(--page-accent)) 32%, #426583);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--event-color, var(--page-accent)) 18%, transparent), transparent 46%),
        linear-gradient(145deg, #192b48, #0a172d);
    box-shadow: 0 19px 48px color-mix(in srgb, var(--event-color, var(--page-accent)) 10%, rgba(0,0,0,.3)), inset 0 1px rgba(255,255,255,.08);
}

.event-card-art img { filter: saturate(1.6) contrast(1.06) brightness(1.02); }
.event-rune { box-shadow: 0 0 30px color-mix(in srgb, var(--event-color) 38%, transparent); }
.event-magnitude i.filled { box-shadow: 0 0 12px var(--event-color); }

/* Season */
.season-royal-hero {
    background:
        radial-gradient(circle at 72% 28%, rgba(255,209,102,.26), transparent 28%),
        radial-gradient(circle at 84% 40%, rgba(202,130,255,.22), transparent 44%),
        linear-gradient(145deg, #2a234e, #121831 62%, #091426);
}

.season-crown,
.season-countdown-orb {
    border-color: rgba(255, 209, 102, .72);
    background:
        radial-gradient(circle, rgba(255, 225, 142, .28), transparent 58%),
        linear-gradient(145deg, #5d3f74, #252143);
    box-shadow: 0 0 46px rgba(255,209,102,.28), inset 0 1px rgba(255,255,255,.18);
}

.season-podium-card,
.season-leaderboard,
.season-history-card {
    border-color: color-mix(in srgb, var(--page-accent) 27%, #436584);
    background:
        radial-gradient(circle at 100% 0, rgba(255,209,102,.12), transparent 46%),
        radial-gradient(circle at 0 100%, rgba(202,130,255,.1), transparent 44%),
        linear-gradient(145deg, #192b48, #0b172c);
    box-shadow: 0 18px 45px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.07);
}

.season-rank-1 {
    border-color: rgba(255, 209, 102, .7);
    box-shadow: 0 24px 58px rgba(255,209,102,.13), inset 0 1px rgba(255,255,255,.1);
}

/* Profile / collection */
.profile-character-hero {
    background:
        radial-gradient(circle at 22% 48%, rgba(85,232,255,.18), transparent 28%),
        radial-gradient(circle at 74% 24%, rgba(202,130,255,.22), transparent 40%),
        linear-gradient(145deg, #172b4c, #151631 64%, #081426);
}

.profile-avatar-frame > img {
    border-color: color-mix(in srgb, var(--page-accent) 70%, white 10%);
    box-shadow: 0 0 42px color-mix(in srgb, var(--page-accent) 32%, transparent);
}

.profile-avatar-ring {
    border-color: rgba(85,232,255,.5);
    box-shadow: 0 0 42px rgba(85,232,255,.2);
}

.achievement-token,
.title-ribbon,
.quest-journal-card {
    border-color: color-mix(in srgb, var(--rarity-color, var(--title-color, var(--quest-color, var(--page-accent)))) 34%, #416181);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--rarity-color, var(--title-color, var(--quest-color, var(--page-accent)))) 15%, transparent), transparent 46%),
        linear-gradient(145deg, #192c49, #0b172d);
    box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.07);
}

.achievement-token:hover,
.title-ribbon:hover,
.quest-journal-card:hover {
    border-color: var(--rarity-color, var(--title-color, var(--quest-color, var(--page-accent))));
    box-shadow: 0 20px 48px color-mix(in srgb, var(--rarity-color, var(--title-color, var(--quest-color, var(--page-accent)))) 15%, rgba(0,0,0,.3));
}

/* Landing page palette */
.landing-body {
    background:
        radial-gradient(circle at 83% 7%, rgba(202,130,255,.27), transparent 30%),
        radial-gradient(circle at 12% 75%, rgba(85,232,255,.18), transparent 36%),
        radial-gradient(circle at 74% 98%, rgba(110,243,162,.12), transparent 34%),
        linear-gradient(145deg, #080d20, #07101c 44%, #040610);
}

.landing-world-preview,
.landing-feature,
.landing-how,
.landing-flow article {
    border-color: color-mix(in srgb, currentColor 21%, #3c5d7c);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, currentColor 10%, transparent), transparent 48%),
        linear-gradient(145deg, #182c49, #0a172c);
    box-shadow: 0 18px 46px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.08);
}

.landing-preview-map > img { filter: saturate(1.5) contrast(1.05) brightness(1.02); }

/* ========================================================================== 
   Procedural world atlas
   ========================================================================== */

.frontier-map-stage,
.world-atlas-scene.frontier-map-preview {
    background:
        radial-gradient(circle at 50% 42%, rgba(85, 232, 255, .12), transparent 54%),
        linear-gradient(145deg, #124e72, #0b2f55 46%, #08152e);
}

.world-atlas-scene.frontier-map-preview {
    position: relative;
    isolation: isolate;
    min-height: 500px;
    overflow: hidden;
}

.world-atlas-scene.frontier-map-preview .frontier-map-svg {
    z-index: 1;
}

.frontier-map-shell {
    border-color: rgba(76, 133, 171, .72);
    background: #0b1e35;
    box-shadow:
        0 30px 80px rgba(0,0,0,.46),
        0 0 60px rgba(85,232,255,.08),
        inset 0 1px rgba(255,255,255,.12);
}

.frontier-map-stage { border-right-color: rgba(78, 125, 163, .6); }

.map-game-header {
    border-color: rgba(75, 119, 159, .48);
    background:
        radial-gradient(circle at 100% 0, rgba(85,232,255,.13), transparent 44%),
        linear-gradient(145deg, rgba(20,39,66,.96), rgba(8,17,33,.96));
}

.map-header-stats,
.map-tool,
.map-stage-instruction,
.map-legend {
    border-color: rgba(83, 137, 178, .62);
    background:
        radial-gradient(circle at 100% 0, rgba(85,232,255,.1), transparent 50%),
        rgba(7, 17, 35, .82);
    box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
}

.map-tool:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 22px rgba(85,232,255,.2);
}

.map-loading {
    background:
        radial-gradient(circle at 50% 45%, rgba(202,130,255,.2), transparent 30%),
        linear-gradient(145deg, rgba(7,17,36,.95), rgba(5,10,25,.96));
}

.map-loading-compass {
    border-color: var(--cyan);
    color: var(--cyan);
    background: radial-gradient(circle, rgba(85,232,255,.15), transparent 70%);
    box-shadow: 0 0 42px rgba(85,232,255,.3), inset 0 0 24px rgba(202,130,255,.1);
}

.map-mode-preview .map-loading-preview {
    z-index: 9;
}

.map-mode-preview .map-loading-compass {
    width: 66px;
    height: 66px;
    font-size: 30px;
}

.frontier-map-svg {
    overflow: visible;
    filter: saturate(1.08) contrast(1.02);
}

.map-ocean-spark {
    fill: #d7fbff;
    opacity: .5;
    filter: drop-shadow(0 0 5px #55e8ff);
}

.map-continent-shadow {
    fill: rgba(2, 8, 20, .6);
    transform: translateY(14px);
    opacity: .8;
}

.map-continent {
    stroke: rgba(180, 255, 223, .48);
    stroke-width: 5;
    stroke-linejoin: round;
}

.map-coastline {
    fill: none;
    stroke: #8af8da;
    stroke-width: 3;
    stroke-linejoin: round;
    opacity: .7;
    filter: drop-shadow(0 0 7px rgba(92,238,213,.55));
}

.frontier-map-svg .map-region-land {
    fill: var(--region-fill) !important;
    stroke: color-mix(in srgb, var(--biome-accent) 68%, #f0fff5);
    stroke-width: 2.4;
    stroke-linejoin: round;
    opacity: .96;
    filter: drop-shadow(0 4px 5px rgba(2,9,19,.22));
}

.frontier-map-svg .map-region:hover .map-region-land {
    fill: var(--region-fill) !important;
    opacity: 1;
    filter: brightness(1.08) saturate(1.12) drop-shadow(0 7px 9px rgba(2,9,19,.28));
}

.map-region-light {
    fill: none;
    stroke: rgba(255,255,255,.18);
    stroke-width: 10;
    opacity: .5;
    transform: translate(-5px, -6px);
}

.map-region-border {
    fill: none;
    stroke: color-mix(in srgb, var(--biome-accent) 58%, rgba(255,255,255,.55));
    stroke-width: 2;
    stroke-dasharray: 9 8;
    opacity: .74;
}

.map-region-title-bg {
    fill: rgba(7, 16, 34, .86);
    stroke: color-mix(in srgb, var(--biome-accent) 58%, #6282a0);
    stroke-width: 1.5;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.35));
}

.map-region-title-dot { filter: drop-shadow(0 0 7px currentColor); }

.map-region-title-text {
    fill: #f6fbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
}

.map-lake-shore {
    fill: rgba(5, 45, 78, .65);
    stroke: rgba(190, 255, 244, .58);
    stroke-width: 8;
}

.map-lake:not(.map-lake-shore) {
    fill: #4ed6e8;
    stroke: #c5ffff;
    stroke-width: 2;
    opacity: .88;
    filter: drop-shadow(0 0 7px rgba(68,221,240,.48));
}

.map-river-bank {
    fill: none;
    stroke: rgba(14, 75, 106, .75);
    stroke-width: 13;
    stroke-linecap: round;
}

.map-river:not(.map-river-bank) {
    fill: none;
    stroke: #62e7f5;
    stroke-width: 6;
    stroke-linecap: round;
    opacity: .88;
    filter: drop-shadow(0 0 4px rgba(85,232,255,.52));
}

.map-road-local,
.map-road-royal {
    fill: none;
    stroke-linecap: round;
    pointer-events: none;
}

.map-road-local {
    stroke: rgba(255, 241, 176, .78);
    stroke-width: 2.8;
    stroke-dasharray: 8 7;
    filter: drop-shadow(0 0 2px rgba(255,209,102,.32));
}

.map-road-royal {
    stroke: url(#frontier-map-0-road);
    stroke: #ffe59a;
    stroke-width: 4.5;
    stroke-dasharray: 14 10;
    opacity: .9;
    filter: drop-shadow(0 0 5px rgba(255,209,102,.45));
}

.terrain-mountain,
.terrain-tree,
.terrain-crystal { pointer-events: none; }

.mountain-face {
    fill: #4c6680;
    stroke: rgba(25,45,67,.65);
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,.28));
}

.biome-sunreach .mountain-face,
.biome-golden .mountain-face { fill: #8b7252; }
.biome-ember .mountain-face { fill: #784653; }
.biome-mystic .mountain-face { fill: #5a4c88; }

.mountain-snow { fill: #f5fcff; opacity: .94; }
.tree-trunk { fill: #6a4932; }
.tree-crown-back { fill: #1b774a; }
.tree-crown { fill: #42bb5d; stroke: #b8f58d; stroke-width: 1; }
.biome-frost .tree-crown { fill: #57a5a8; stroke: #d8ffff; }
.biome-mystic .tree-crown { fill: #6e58b3; stroke: #d5a6ff; }
.biome-ember .tree-crown { fill: #ba5a45; stroke: #ffc07c; }
.terrain-tree { filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }

.terrain-crystal path {
    fill: #bf83ff;
    stroke: #f1d4ff;
    stroke-width: 1.2;
    filter: drop-shadow(0 0 7px rgba(202,130,255,.66));
}

.terrain-rock { fill: rgba(63,75,91,.65); stroke: rgba(180,205,220,.38); stroke-width: 1; }

.map-territory {
    cursor: pointer;
    outline: none;
}

.settlement-visual {
    transition: opacity 160ms ease;
}

.map-territory:hover .settlement-visual,
.map-territory:focus .settlement-visual,
.map-territory.is-selected .settlement-visual {
    filter: brightness(1.16) saturate(1.16) drop-shadow(0 0 12px color-mix(in srgb, var(--territory-color) 72%, transparent));
}

.settlement-shadow { fill: rgba(2, 8, 17, .52); }
.settlement-ground {
    fill: color-mix(in srgb, var(--territory-color) 18%, #263b42);
    stroke: color-mix(in srgb, var(--territory-color) 72%, #e8ffff);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--territory-color) 35%, transparent));
}

.city-building,
.city-keep,
.forum-hall,
.news-tower {
    fill: #f2d9a3;
    stroke: #6c4d42;
    stroke-width: 1.5;
}

.city-keep { fill: #eee0b7; }
.city-roof,
.forum-roof { stroke: color-mix(in srgb, var(--territory-color) 78%, #fff); stroke-width: 1.2; }
.city-door { fill: #583c35; }
.city-flagpole { stroke: #f6edd7; stroke-width: 2; }
.city-flag { filter: drop-shadow(0 0 5px var(--territory-color)); }

.voice-arena {
    fill: color-mix(in srgb, var(--territory-color) 25%, #25364b);
    stroke: color-mix(in srgb, var(--territory-color) 70%, #fff);
    stroke-width: 3;
}
.voice-arena-inner { fill: rgba(7,15,29,.73); stroke: rgba(238,250,255,.42); stroke-width: 1.5; }
.voice-stage { stroke: rgba(255,255,255,.72); stroke-width: 1.3; }
.voice-wave,
.news-signal { fill: none; stroke: var(--territory-color); stroke-width: 3; stroke-linecap: round; opacity: .75; filter: drop-shadow(0 0 4px var(--territory-color)); }
.voice-wave-outer { opacity: .42; }
.stage-star,
.forum-rune { fill: #fff; font-size: 18px; font-weight: 900; filter: drop-shadow(0 0 6px var(--territory-color)); }

.forum-column { fill: #fff0c9; }
.news-beacon { filter: drop-shadow(0 0 10px var(--territory-color)); }

.territory-landmark-star {
    fill: var(--gold);
    font-size: 22px;
    filter: drop-shadow(0 0 8px var(--gold));
    animation: landmarkTwinkle 2.8s ease-in-out infinite;
}

@keyframes landmarkTwinkle { 0%,100% { opacity: .72; } 50% { opacity: 1; } }

.territory-event-ring {
    fill: none;
    stroke: var(--pink);
    stroke-width: 3;
    stroke-dasharray: 8 7;
    filter: drop-shadow(0 0 6px var(--pink));
}

.territory-label-leader {
    fill: none;
    stroke: color-mix(in srgb, var(--territory-color) 74%, #d9faff);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .85;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--territory-color) 55%, transparent));
    pointer-events: none;
}

.territory-label-card { pointer-events: none; }

.territory-label-bg {
    fill: rgba(5, 12, 27, .91);
    stroke: color-mix(in srgb, var(--territory-color) 62%, #5f7fa1);
    stroke-width: 1.5;
    filter: drop-shadow(0 9px 14px rgba(0,0,0,.48));
}

.territory-channel-icon-bg {
    fill: color-mix(in srgb, var(--territory-color) 20%, #14213a);
    stroke: color-mix(in srgb, var(--territory-color) 70%, #fff);
    stroke-width: 1;
}

.territory-channel-icon {
    fill: #fff;
    font-size: 15px;
    font-weight: 900;
    filter: drop-shadow(0 0 4px var(--territory-color));
}

.territory-name {
    fill: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.territory-meta {
    fill: #b8cbe0;
    font-size: 8.5px;
    font-weight: 600;
}

.map-territory:hover .territory-label-bg,
.map-territory:focus .territory-label-bg,
.map-territory.is-selected .territory-label-bg {
    stroke: var(--territory-color);
    stroke-width: 2.4;
    fill: rgba(8, 18, 39, .97);
    filter: drop-shadow(0 10px 17px rgba(0,0,0,.55)) drop-shadow(0 0 9px color-mix(in srgb, var(--territory-color) 40%, transparent));
}

.map-territory.is-selected .settlement-ground {
    stroke-width: 4;
    filter: drop-shadow(0 0 13px var(--territory-color));
}

.map-empty-land {
    fill: #34865d;
    stroke: #92f6ba;
    stroke-width: 4;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.35));
}
.map-empty-rune { fill: var(--gold); font-size: 66px; filter: drop-shadow(0 0 15px var(--gold)); }
.map-empty-title { fill: #f6fbff; font-size: 15px; font-weight: 900; letter-spacing: .14em; }

.map-legend {
    align-items: center;
    gap: 8px 12px;
    padding: 9px 12px;
}

.map-legend > strong {
    color: #f5fbff;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.map-legend span {
    color: #c0d1e4;
    font-size: 8px;
}

.map-legend span b { color: #fff; }
.map-legend i { width: 9px; height: 9px; }

.atlas-vignette {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(4,10,24,.52), transparent 23%),
        radial-gradient(ellipse at center, transparent 48%, rgba(3,8,20,.3) 100%);
}

.atlas-status-card,
.atlas-expand { z-index: 5; }

.atlas-status-card {
    border-color: rgba(103, 236, 181, .55);
    background:
        radial-gradient(circle at 0 50%, rgba(110,243,162,.16), transparent 45%),
        rgba(6, 15, 30, .84);
    box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 24px rgba(110,243,162,.08), inset 0 1px rgba(255,255,255,.1);
}

.atlas-expand {
    border-color: rgba(85,232,255,.65);
    background: rgba(6,16,34,.84);
    color: var(--cyan);
    box-shadow: 0 0 22px rgba(85,232,255,.14);
}

.map-inspector {
    background:
        radial-gradient(circle at 100% 0, rgba(202,130,255,.18), transparent 34%),
        radial-gradient(circle at 0 55%, rgba(85,232,255,.08), transparent 40%),
        linear-gradient(180deg, #172b49, #0a172c);
}

.inspector-compass {
    border-color: var(--cyan);
    background: radial-gradient(circle, rgba(85,232,255,.16), transparent 72%);
    color: var(--cyan);
    box-shadow: 0 0 38px rgba(85,232,255,.25);
}

.inspector-settlement-hero {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--inspector-color) 48%, #4b6a88);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0 50%, color-mix(in srgb, var(--inspector-color) 20%, transparent), transparent 50%),
        linear-gradient(145deg, #172b48, #0b172d);
    box-shadow: 0 15px 35px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.08);
}

.inspector-channel-rune {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--inspector-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--inspector-color) 17%, rgba(8,16,32,.8));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 24px color-mix(in srgb, var(--inspector-color) 29%, transparent);
}

.inspector-settlement-hero h2 { margin: 2px 0; font-size: 30px; }
.inspector-settlement-hero p { margin: 0; color: #a9bdd3; font-size: 9px; }
.inspector-settlement-hero .inspector-kicker { color: var(--inspector-color); }

.inspector-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.inspector-stat-grid > div {
    display: flex;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 11px;
    border: 1px solid rgba(67,101,136,.54);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(26,46,75,.8), rgba(8,17,33,.72));
}

.inspector-stat-grid span,
.inspector-label { color: #95acc4; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.inspector-stat-grid strong { color: #fff; font-size: 19px; }

.inspector-section {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(67,101,136,.48);
    border-radius: 13px;
    background: rgba(7,15,31,.48);
}

.inspector-control {
    border-color: color-mix(in srgb, var(--inspector-color) 35%, #456481);
    background: linear-gradient(90deg, color-mix(in srgb, var(--inspector-color) 12%, transparent), rgba(7,15,31,.52));
}

.inspector-control > strong { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.inspector-control > small,
.inspector-section > small { color: #93a9c1; font-size: 9px; }

.inspector-item {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(18,35,59,.72);
}

.inspector-item-rune {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,209,102,.14);
    color: var(--gold);
}

.inspector-item.live .inspector-item-rune { background: rgba(255,113,135,.14); color: var(--red); }
.inspector-item > div { display: flex; flex-direction: column; }
.inspector-item strong { font-size: 10px; }
.inspector-item small { color: #93a8bf; font-size: 8px; }

.inspector-discord-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 0 12px;
    border: 1px solid rgba(112, 134, 255, .58);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(88,101,242,.23), rgba(44,55,127,.24));
    color: #dfe3ff;
    font-size: 10px;
    font-weight: 750;
}

.inspector-discord-link:hover {
    border-color: #8996ff;
    box-shadow: 0 0 24px rgba(88,101,242,.18);
}

@media (max-width: 980px) {
    .game-main::before { left: 0; }
}

@media (max-width: 620px) {
    .map-region-title { opacity: .82; }
    .territory-meta { display: none; }
    .map-mode-preview .territory-label-card { opacity: .9; }
    .map-legend { max-height: 74px; overflow: hidden; }
    .inspector-stat-grid { grid-template-columns: 1fr 1fr; }
}
