:root {
    --bg: #07131c;
    --panel: rgba(6, 22, 25, 0.72);
    --panel-strong: rgba(7, 28, 27, 0.88);
    --line: rgba(140, 255, 77, 0.28);
    --line-soft: rgba(173, 239, 255, 0.16);
    --green: #8eea27;
    --green-hot: #b6ff35;
    --gold: #f5c84b;
    --aqua: #57d7ff;
    --text: #f3fbf6;
    --muted: #bed0cb;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #163852 0%, var(--bg) 52%, #02070a 100%);
    color: var(--text);
    overflow-x: hidden;
}

button {
    font: inherit;
    color: inherit;
}

.game-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(6, 17, 23, 0.35), #051014 78%);
}

.hero-stage {
    position: relative;
    min-height: 980px;
    overflow: hidden;
    border-bottom: 1px solid rgba(153, 255, 94, 0.24);
}

.world-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.04) contrast(1.02);
}

.vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 12, 17, 0.72), rgba(3, 12, 17, 0.16) 38%, rgba(3, 12, 17, 0.62)),
        linear-gradient(180deg, rgba(3, 10, 14, 0.56), rgba(3, 10, 14, 0.08) 44%, rgba(3, 10, 14, 0.58));
    pointer-events: none;
}

.glass {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.topbar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(460px, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 24px;
    padding: 16px 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--green-hot);
    border-radius: 14px;
    background: rgba(142, 234, 39, 0.14);
    border: 1px solid rgba(142, 234, 39, 0.26);
}

.brand strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.mode-tabs {
    display: flex;
    justify-content: center;
    min-width: 0;
    border-radius: 24px;
    padding: 6px;
    background: rgba(5, 18, 27, 0.72);
    border: 1px solid rgba(173, 239, 255, 0.17);
}

.mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #e7f4ee;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.mode-tab svg { width: 21px; height: 21px; }

.mode-tab.active {
    color: var(--green-hot);
    background: linear-gradient(180deg, rgba(142, 234, 39, 0.2), rgba(142, 234, 39, 0.06));
    box-shadow: inset 0 -2px 0 var(--green-hot), 0 16px 34px rgba(108, 255, 0, 0.13);
}

.player-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(5, 17, 26, 0.68);
    border: 1px solid rgba(173, 239, 255, 0.14);
}

.avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--green);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(142, 234, 39, 0.44), rgba(16, 54, 29, 0.95));
}

.player-card strong, .player-card small { display: block; }
.player-card small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.xp-bar {
    display: block;
    height: 5px;
    margin-top: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.xp-bar span {
    display: block;
    width: 34%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold));
}

.wallet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

.headline-panel {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: 38px 0 0 36px;
}

.headline-panel h1 {
    margin: 0;
    color: white;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 0.94;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.headline-panel h1 span {
    color: var(--green);
}

.headline-panel p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #f3fbf6;
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.28;
    font-weight: 650;
}

.left-stack, .right-stack {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 14px;
}

.left-stack {
    left: 34px;
    top: 436px;
    width: min(320px, calc(100vw - 68px));
}

.right-stack {
    right: 28px;
    top: 282px;
    width: min(380px, calc(100vw - 56px));
}

.panel {
    padding: 18px;
    border-radius: 18px;
}

.panel h2, .ecosystem h2, .metaverse-card h2 {
    margin: 0 0 13px;
    color: var(--green-hot);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.panel h3 {
    margin: 11px 0 7px;
    color: var(--aqua);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.metric-row, .market-row {
    display: grid;
    align-items: center;
    min-height: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-row {
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
}

.metric-row:first-of-type, .market-row:first-of-type { border-top: 0; }
.metric-row svg { color: var(--green); width: 22px; height: 22px; }
.metric-row span, .market-row span { color: white; font-weight: 700; }
.metric-row strong { color: var(--green); font-weight: 850; }

.market-row {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.market-row em {
    color: var(--green);
    font-style: normal;
    font-weight: 800;
}

.inventory-pills,
.product-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.product-pills {
    grid-template-columns: 1fr;
}

.inventory-pill,
.product-pill {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-height: 48px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(173, 239, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
}

.product-pill {
    min-height: 42px;
    border-color: rgba(87, 215, 255, 0.14);
    background: rgba(87, 215, 255, 0.055);
}

.inventory-pill.stocked,
.product-pill.stocked {
    border-color: rgba(142, 234, 39, 0.28);
    background: rgba(142, 234, 39, 0.08);
}

.inventory-pill svg,
.product-pill svg {
    grid-row: 1 / span 2;
    width: 18px;
    height: 18px;
    color: var(--green);
}

.product-pill svg {
    color: var(--aqua);
}

.inventory-pill span,
.product-pill span {
    overflow: hidden;
    color: white;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.inventory-pill strong,
.product-pill strong {
    color: var(--gold);
    font-size: 11px;
    line-height: 1;
}

.facility-strip {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
}

.facility-chip {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 36px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(173, 239, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.facility-chip.online {
    border-color: rgba(142, 234, 39, 0.34);
    background: rgba(142, 234, 39, 0.09);
}

.facility-chip svg {
    width: 18px;
    height: 18px;
    color: var(--aqua);
}

.facility-chip.online svg {
    color: var(--green);
}

.facility-chip span {
    overflow: hidden;
    color: white;
    font-size: 10px;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.facility-chip strong {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.facility-chip.online strong {
    color: var(--green);
}

.delivery-list,
.processing-list {
    display: grid;
    gap: 8px;
}

.delivery-order,
.processing-item {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid rgba(173, 239, 255, 0.12);
    background: rgba(5, 24, 28, 0.68);
}

.processing-item.ready,
.delivery-order.ready {
    border-color: rgba(142, 234, 39, 0.42);
    background: linear-gradient(180deg, rgba(142, 234, 39, 0.12), rgba(5, 24, 28, 0.68));
}

.premium-order.ready {
    border-color: rgba(87, 215, 255, 0.38);
    background: linear-gradient(180deg, rgba(87, 215, 255, 0.11), rgba(5, 24, 28, 0.68));
}

.delivery-order.shipped {
    border-color: rgba(245, 200, 75, 0.36);
    background: linear-gradient(180deg, rgba(245, 200, 75, 0.11), rgba(5, 24, 28, 0.68));
}

.delivery-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.delivery-top b {
    color: var(--green);
}

.delivery-order > strong,
.processing-item > strong {
    color: white;
    font-size: 13px;
    line-height: 1.1;
}

.delivery-order small,
.delivery-order em,
.processing-item small,
.processing-item em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.25;
}

.delivery-order em,
.processing-item em {
    color: var(--gold);
    font-weight: 900;
}

.delivery-order button,
.processing-item button {
    min-height: 32px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #80df23, #358b16);
    color: white;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.processing-item button:disabled,
.delivery-order button:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.09);
}

.wide-action, .metaverse-card button {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #80df23, #358b16);
    box-shadow: 0 16px 28px rgba(69, 210, 21, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
    color: white;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.ecosystem {
    position: absolute;
    z-index: 4;
    top: 136px;
    right: 28px;
    width: min(460px, calc(100vw - 56px));
    padding: 18px 20px;
    border-radius: 20px;
}

.ecosystem h2 { text-align: center; }

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.ecosystem-grid button {
    display: grid;
    gap: 7px;
    place-items: center;
    min-height: 70px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #e9f5ef;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.ecosystem-grid svg { color: var(--green); width: 26px; height: 26px; }

.callout {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 15px;
}

.ai-callout {
    top: 278px;
    left: 37%;
    max-width: 320px;
}

.callout svg {
    flex: 0 0 auto;
    color: var(--green-hot);
}

.callout strong, .callout span { display: block; }
.callout strong { color: var(--green); text-transform: uppercase; font-size: 13px; }
.callout span { color: white; font-size: 13px; line-height: 1.35; }

.farm-board-overlay {
    position: absolute;
    z-index: 5;
    top: 424px;
    left: 50%;
    width: min(610px, calc(100vw - 760px));
    min-width: 560px;
    padding: 14px;
    border-radius: 20px;
}

.play-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.play-header span {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.play-header h2 {
    margin: 3px 0 0;
    color: white;
    font-size: 19px;
    line-height: 1;
}

.play-header strong {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(142, 234, 39, 0.13);
    border: 1px solid rgba(142, 234, 39, 0.28);
    color: var(--green-hot);
    font-size: 12px;
    text-transform: uppercase;
}

.play-meters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.board-tools {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    margin-bottom: 10px;
}

.board-tools button {
    display: grid;
    gap: 4px;
    place-items: center;
    min-height: 46px;
    border: 1px solid rgba(173, 239, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.board-tools button.active {
    border-color: rgba(142, 234, 39, 0.5);
    background: rgba(142, 234, 39, 0.16);
    color: var(--green-hot);
}

.board-tools button.end-day {
    border-color: rgba(245, 200, 75, 0.34);
    background: linear-gradient(180deg, rgba(245, 200, 75, 0.18), rgba(255, 255, 255, 0.055));
}

.board-tools button:disabled {
    opacity: 0.43;
    cursor: not-allowed;
    transform: none;
}

.board-tools svg {
    width: 19px;
    height: 19px;
    color: var(--green);
}

.board-tools small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.board-tools button.active small,
.board-tools button.end-day small {
    color: var(--gold);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.tile {
    position: relative;
    display: grid;
    gap: 3px;
    align-content: center;
    min-height: 68px;
    padding: 8px;
    border: 1px solid rgba(173, 239, 255, 0.13);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(11, 44, 37, 0.86), rgba(8, 28, 30, 0.82));
    color: white;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.tile:hover {
    border-color: rgba(142, 234, 39, 0.38);
    transform: translateY(-1px);
}

.tile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tile svg {
    width: 20px;
    height: 20px;
    color: var(--green);
}

.tile-slot {
    position: absolute;
    top: 6px;
    right: 7px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 950;
}

.tile strong {
    overflow: hidden;
    color: white;
    font-size: 11px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile em {
    display: block;
    height: 5px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

.tile-field.status-ready {
    border-color: rgba(245, 200, 75, 0.42);
    background: linear-gradient(180deg, rgba(83, 64, 19, 0.75), rgba(12, 39, 29, 0.86));
}

.tile-energy {
    background: linear-gradient(180deg, rgba(32, 51, 21, 0.86), rgba(7, 31, 32, 0.84));
}

.tile-irrigation {
    background: linear-gradient(180deg, rgba(20, 61, 72, 0.84), rgba(8, 32, 38, 0.84));
}

.tile-storage, .tile-market, .tile-guild, .tile-carbon {
    background: linear-gradient(180deg, rgba(23, 45, 47, 0.86), rgba(8, 28, 30, 0.84));
}

.board-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.board-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-status-metrics {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.board-status b {
    flex: 0 0 auto;
    color: var(--green);
}

.farm-board-overlay[data-weather-tone="gold"] .play-header strong:first-child,
.farm-board-overlay[data-weather-tone="gold"] .board-status b:first-child {
    border-color: rgba(245, 200, 75, 0.34);
    color: var(--gold);
}

.farm-board-overlay[data-weather-tone="aqua"] .play-header strong:first-child,
.farm-board-overlay[data-weather-tone="aqua"] .board-status b:first-child {
    border-color: rgba(76, 222, 255, 0.34);
    color: var(--aqua);
}

.hotspot {
    position: absolute;
    z-index: 6;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(189, 255, 89, 0.55);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 255, 53, 0.48), rgba(41, 255, 141, 0.08) 58%, rgba(41, 255, 141, 0));
    box-shadow: 0 0 32px rgba(142, 234, 39, 0.52);
    cursor: pointer;
    animation: pulse 2.4s infinite;
}

.hotspot-farm { left: 45%; top: 52%; }
.hotspot-energy { left: 68%; top: 36%; }
.hotspot-harvest { left: 52%; top: 68%; }
.hotspot-market { left: 72%; top: 57%; }

@keyframes pulse {
    0%, 100% { transform: scale(0.94); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

.registry-list, .bridge-list {
    display: grid;
    gap: 9px;
}

.registry-item, .bridge-item {
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.registry-item strong, .bridge-item strong {
    display: block;
    color: white;
    font-size: 14px;
}

.registry-item span, .bridge-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.metaverse-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
}

.metaverse-card p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.bottom-dock {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 38px;
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    width: min(760px, calc(100vw - 40px));
    transform: translateX(-50%);
    border-radius: 24px;
    padding: 9px;
}

.bottom-dock button {
    display: grid;
    gap: 7px;
    place-items: center;
    min-height: 70px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.bottom-dock button:first-child { border-left: 0; }
.bottom-dock svg { width: 25px; height: 25px; color: var(--green); }
.bottom-dock button:hover, .ecosystem-grid button:hover { background: rgba(142, 234, 39, 0.11); }

.command-band {
    display: grid;
    grid-template-columns: minmax(210px, 260px) 1fr minmax(260px, 360px);
    gap: 18px;
    align-items: stretch;
    padding: 18px 24px 28px;
}

.season, .mode-brief {
    padding: 18px;
    border-radius: 18px;
}

.season span, .mode-brief span {
    display: block;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.season strong {
    display: block;
    margin-top: 4px;
    color: white;
    font-size: 30px;
    line-height: 1;
}

.season small, .mode-brief p {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
}

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

.resource-grid article {
    display: grid;
    gap: 7px;
    align-content: center;
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(9, 29, 34, 0.72);
    border: 1px solid rgba(173, 239, 255, 0.13);
}

.resource-grid svg { color: var(--green); }
.resource-grid span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.resource-grid strong { color: white; font-size: 24px; }

.strategy-board {
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(300px, 0.82fr) minmax(360px, 1fr);
    gap: 18px;
    align-items: start;
    padding: 0 24px 34px;
}

.strategy-board > article, .world-board > article, .lab-board > article {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
}

.board-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.board-header span {
    display: block;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.board-header h2 {
    margin: 4px 0 0;
    color: white;
    font-size: 20px;
    line-height: 1.08;
}

.board-header > strong {
    flex: 0 0 auto;
    min-width: 62px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(142, 234, 39, 0.12);
    border: 1px solid rgba(142, 234, 39, 0.28);
    color: var(--green-hot);
    font-size: 13px;
    text-align: center;
}

.mission-list, .badge-list, .operation-list, .reward-list {
    display: grid;
    gap: 10px;
}

.mission-item {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.mission-item.complete {
    border-color: rgba(142, 234, 39, 0.36);
    background: linear-gradient(180deg, rgba(142, 234, 39, 0.13), rgba(255, 255, 255, 0.04));
}

.mission-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mission-line strong {
    color: white;
    font-size: 14px;
}

.mission-line span {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.mission-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.38;
}

.mission-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.mission-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold));
    box-shadow: 0 0 20px rgba(142, 234, 39, 0.35);
}

.badge-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-item svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.badge-item strong, .reward-item strong {
    display: block;
    color: white;
    font-size: 13px;
}

.badge-item span, .reward-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.economy-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.economy-item {
    min-height: 98px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.economy-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.economy-item strong {
    display: block;
    margin-top: 8px;
    color: white;
    font-size: 21px;
    line-height: 1;
}

.economy-item em {
    display: block;
    margin-top: 7px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.economy-item.green em { color: var(--green); }
.economy-item.aqua em { color: var(--aqua); }
.economy-item.gold em { color: var(--gold); }

.operation-button {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 28px;
    gap: 12px;
    align-items: center;
    min-height: 86px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(173, 239, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    text-align: left;
}

.operation-button:hover {
    border-color: rgba(142, 234, 39, 0.34);
    background: rgba(142, 234, 39, 0.1);
}

.operation-button svg {
    width: 30px;
    height: 30px;
    color: var(--green);
}

.operation-button span, .operation-button strong, .operation-button small {
    display: block;
    min-width: 0;
}

.operation-button strong {
    color: white;
    font-size: 14px;
}

.operation-button small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.operation-button em {
    color: var(--gold);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

.operation-button b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(87, 215, 255, 0.12);
    border: 1px solid rgba(87, 215, 255, 0.25);
    color: var(--aqua);
    font-size: 12px;
}

.reward-list {
    margin-top: 14px;
}

.reward-item, .reward-empty {
    padding: 11px 12px;
    border-radius: 13px;
    background: rgba(245, 200, 75, 0.09);
    border: 1px solid rgba(245, 200, 75, 0.2);
}

.reward-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

body.is-busy [data-action] {
    cursor: wait;
}

.world-board {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
    padding: 0 24px 42px;
}

.region-list, .contract-list, .leaderboard-list {
    display: grid;
    gap: 10px;
}

.region-item {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.region-item.unlocked {
    border-color: rgba(87, 215, 255, 0.32);
    background: linear-gradient(180deg, rgba(87, 215, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.region-head, .contract-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.region-head strong {
    color: white;
    font-size: 15px;
}

.region-head span, .contract-top b {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.region-item p, .contract-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.38;
}

.contract-item {
    display: grid;
    gap: 8px;
    padding: 13px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.contract-item.ready {
    border-color: rgba(142, 234, 39, 0.38);
    background: linear-gradient(180deg, rgba(142, 234, 39, 0.12), rgba(255, 255, 255, 0.045));
}

.contract-item.claimed {
    border-color: rgba(245, 200, 75, 0.34);
    background: linear-gradient(180deg, rgba(245, 200, 75, 0.11), rgba(255, 255, 255, 0.04));
}

.contract-top span {
    color: var(--aqua);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.contract-item > strong {
    color: white;
    font-size: 15px;
}

.contract-item small, .contract-item em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.contract-item em {
    color: var(--gold);
    font-style: normal;
    font-weight: 900;
}

.contract-item button {
    min-height: 38px;
    margin-top: 2px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #80df23, #358b16);
    color: white;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.contract-item button:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.09);
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-item.you {
    border-color: rgba(142, 234, 39, 0.36);
    background: rgba(142, 234, 39, 0.1);
}

.leaderboard-item b {
    color: var(--gold);
    font-size: 15px;
}

.leaderboard-item span, .leaderboard-item strong, .leaderboard-item small {
    display: block;
    min-width: 0;
}

.leaderboard-item strong {
    color: white;
    font-size: 13px;
}

.leaderboard-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.28;
}

.leaderboard-item em {
    color: var(--green);
    font-size: 13px;
    font-style: normal;
    font-weight: 950;
}

.lab-board {
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
    gap: 18px;
    align-items: start;
    padding: 0 24px 44px;
}

.upgrade-list, .event-list {
    display: grid;
    gap: 10px;
}

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

.upgrade-item, .event-item {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 13px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.upgrade-item.maxed, .event-item.managed {
    border-color: rgba(245, 200, 75, 0.32);
    background: linear-gradient(180deg, rgba(245, 200, 75, 0.1), rgba(255, 255, 255, 0.04));
}

.upgrade-top, .event-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.upgrade-top span, .event-top span {
    color: var(--aqua);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.upgrade-top b, .event-top b {
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
}

.upgrade-item > strong, .event-item > strong {
    color: white;
    font-size: 15px;
}

.upgrade-item p, .event-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.38;
}

.event-item em {
    color: var(--gold);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.upgrade-item button, .event-item button {
    min-height: 38px;
    margin-top: 2px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #80df23, #358b16);
    color: white;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.upgrade-item button:disabled, .event-item button:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.09);
}

body.is-busy [data-upgrade-id], body.is-busy [data-event-id], body.is-busy [data-contract-id] {
    cursor: wait;
}

.toast {
    position: fixed;
    z-index: 20;
    right: 22px;
    bottom: 22px;
    max-width: min(420px, calc(100vw - 44px));
    padding: 14px 16px;
    border-radius: 15px;
    background: rgba(7, 28, 27, 0.94);
    border: 1px solid rgba(142, 234, 39, 0.36);
    box-shadow: var(--shadow);
    color: white;
    transform: translateY(120%);
    opacity: 0;
    transition: 180ms ease;
}

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

@media (max-width: 1120px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .mode-tabs {
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .ecosystem, .right-stack {
        right: 16px;
    }

    .headline-panel {
        margin-left: 22px;
    }

    .farm-board-overlay {
        min-width: 0;
        width: min(560px, calc(100vw - 40px));
    }

    .strategy-board {
        grid-template-columns: 1fr 1fr;
    }

    .operations-board {
        grid-column: 1 / -1;
    }

    .world-board {
        grid-template-columns: 1fr 1fr;
    }

    .leaderboard-board {
        grid-column: 1 / -1;
    }

    .lab-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-stage {
        min-height: 1120px;
    }

    .world-art {
        height: 590px;
        object-position: 57% top;
    }

    .headline-panel {
        margin-top: 24px;
        max-width: calc(100vw - 44px);
    }

    .ecosystem, .left-stack, .right-stack, .bottom-dock {
        position: relative;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: calc(100vw - 32px);
        transform: none;
        margin: 16px auto 0;
    }

    .ecosystem {
        margin-top: 78px;
    }

    .ai-callout, .hotspot {
        display: none;
    }

    .farm-board-overlay {
        position: relative;
        inset: auto;
        left: auto;
        top: auto;
        width: calc(100vw - 32px);
        transform: none;
        margin: 16px auto 0;
    }

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

    .bottom-dock {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 22px;
    }

    .command-band {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .strategy-board {
        grid-template-columns: 1fr;
        padding: 0 16px 28px;
    }

    .world-board {
        grid-template-columns: 1fr;
        padding: 0 16px 34px;
    }

    .lab-board {
        grid-template-columns: 1fr;
        padding: 0 16px 34px;
    }

    .upgrade-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 540px) {
    .brand strong {
        font-size: 24px;
    }

    .mode-tab {
        min-width: 136px;
    }

    .player-card {
        grid-template-columns: 44px 1fr;
    }

    .wallet {
        grid-column: 2;
        justify-self: start;
    }

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

    .economy-list {
        grid-template-columns: 1fr;
    }

    .operation-button {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .operation-button em, .operation-button b {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

    .board-tools {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .board-tools button {
        min-height: 44px;
        font-size: 9px;
    }

    .board-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-status span {
        white-space: normal;
    }

    .board-status-metrics {
        justify-content: flex-start;
    }

    .leaderboard-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .leaderboard-item em {
        grid-column: 2;
        justify-self: start;
    }
}
