:root {
    --leaf: #2f7d5f;
    --leaf-dark: #1f5f49;
    --moss: #7aa66a;
    --sky: #7eb6d9;
    --water: #d9edf4;
    --sun: #e6b85f;
    --soil: #87684c;
    --ink: #20352e;
    --muted: #668078;
    --line: rgba(81, 123, 105, 0.18);
    --card: rgba(255, 255, 255, 0.78);
    --card-solid: #ffffff;
    --shadow: 0 22px 60px rgba(74, 112, 97, 0.16);
    --font-family: 'IBM Plex Sans', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: 'IBM Plex Mono', "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(217, 237, 244, 0.92), rgba(235, 244, 225, 0.92)),
        radial-gradient(circle at 12% 8%, rgba(126, 182, 217, 0.28), transparent 26%),
        radial-gradient(circle at 86% 16%, rgba(230, 184, 95, 0.22), transparent 24%);
    color: var(--ink);
    font-family: var(--font-family);
    line-height: 1.65;
}

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

.home-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.home-hero,
.section-block {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-hero {
    min-height: auto;
    padding: 22px 24px 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 248, 238, 0.82)),
        radial-gradient(circle at 75% 22%, rgba(126, 182, 217, 0.18), transparent 30%);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand,
.top-actions,
.hero-buttons,
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-size: 0.98rem;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 12px;
    overflow: hidden;
    background: #183f68;
    box-shadow: 0 8px 18px rgba(24, 63, 104, 0.2);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    background: var(--leaf);
    color: #fff;
    box-shadow: 0 12px 26px rgba(47, 125, 95, 0.24);
}

.secondary-btn,
.ghost-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--leaf-dark);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.module-card:hover {
    transform: translateY(-2px);
}

.app-install-trigger {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(45, 111, 159, 0.3);
    border-radius: 999px;
    background: rgba(45, 111, 159, 0.1);
    color: #245b86;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-install-trigger:hover,
.app-install-trigger:focus-visible {
    outline: none;
    background: #2d6f9f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(45, 111, 159, 0.2);
    transform: translateY(-1px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
    gap: 28px;
    align-items: start;
    min-height: 340px;
    padding-top: 16px;
}

.eyebrow {
    color: var(--leaf);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-copy h1 {
    max-width: 680px;
    font-size: clamp(2.8rem, 6vw, 6.2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 560px;
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-status {
    width: min(520px, 100%);
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(47, 125, 95, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-status span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-status strong {
    display: block;
    margin: 4px 0;
    color: var(--leaf-dark);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.hero-status p {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-status.is-high {
    border-color: rgba(205, 125, 54, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 241, 218, 0.72));
}

.hero-status.is-high strong {
    color: #b45f28;
}

.hero-status.is-medium {
    border-color: rgba(47, 125, 95, 0.22);
}

.hero-status.is-low strong {
    color: #52746a;
}

.signal-board {
    padding: 18px;
    border: 1px solid rgba(47, 125, 95, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.signal-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.signal-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.signal-card {
    min-height: 104px;
    padding: 15px 16px;
    border-radius: 18px;
    background: var(--card-solid);
    border: 1px solid var(--line);
}

.signal-card span {
    color: var(--muted);
    font-size: 0.78rem;
}

.signal-card strong {
    display: block;
    margin: 6px 0 2px;
    color: var(--leaf-dark);
    font-size: 1.28rem;
}

.signal-card p,
.module-card p,
.roadmap p,
.ai-preview p {
    color: var(--muted);
}

.climate-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--muted);
}

.climate-strip span,
.climate-strip em {
    font-size: 0.76rem;
    font-style: normal;
}

.climate-strip strong {
    color: var(--leaf-dark);
    font-size: 0.95rem;
}

.climate-story-panel {
    position: relative;
    display: block;
    margin: 22px 0 22px;
    padding: 24px 28px 22px;
    border: 1px solid rgba(135, 104, 76, 0.16);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 252, 238, 0.88), rgba(232, 246, 239, 0.82)),
        radial-gradient(circle at 16% 8%, rgba(230, 184, 95, 0.13), transparent 32%);
}

.climate-story-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(230, 184, 95, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(47, 125, 95, 0.06), transparent 60%);
}

.climate-story-copy {
    position: relative;
    z-index: 1;
}

.climate-story-copy {
    min-width: 0;
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
}

.climate-story-kicker {
    margin-bottom: 6px;
    color: #9a7a3d;
    font-family: var(--font-family);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.climate-story-copy h2 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    line-height: 1.16;
}

.climate-story-copy p {
    color: #36564b;
    font-size: 1rem;
    line-height: 1.76;
}

.climate-story-copy p + p {
    margin-top: 8px;
}

.climate-story-copy span {
    display: inline-flex;
    margin-top: 10px;
    color: rgba(102, 128, 120, 0.86);
    font-family: var(--font-family);
    font-size: 0.74rem;
    line-height: 1.45;
}

@media (min-width: 921px) {
    .climate-story-copy {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 34px;
    }

    .climate-story-copy h2,
    .climate-story-kicker,
    .climate-story-copy span {
        grid-column: 1 / -1;
        break-inside: avoid;
    }

    .climate-story-copy p + p {
        margin-top: 0;
    }

    .climate-story-copy p:nth-of-type(4) {
        grid-column: 1 / -1;
    }
}

.section-block {
    margin-top: 22px;
    padding: 28px;
}

.section-block h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.enso-wonders-panel {
    position: relative;
    overflow: hidden;
    margin: 22px 0 26px;
    padding: 24px;
    border: 1px solid rgba(106, 82, 48, 0.2);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 249, 227, 0.9), rgba(228, 243, 237, 0.76)),
        radial-gradient(circle at 16% 10%, rgba(230, 184, 95, 0.18), transparent 34%);
    box-shadow: 0 20px 56px rgba(80, 96, 82, 0.14);
}

.enso-wonders-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(119, 88, 45, 0.12), transparent 30%),
        repeating-linear-gradient(90deg, rgba(80, 115, 98, 0.045) 0, rgba(80, 115, 98, 0.045) 1px, transparent 1px, transparent 90px),
        repeating-linear-gradient(0deg, rgba(80, 115, 98, 0.035) 0, rgba(80, 115, 98, 0.035) 1px, transparent 1px, transparent 80px);
}

.enso-wonders-head,
.enso-wonders-grid {
    position: relative;
    z-index: 1;
}

.enso-wonders-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.enso-wonders-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.enso-wonders-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(185, 147, 77, 0.28);
    border-radius: 999px;
    background: rgba(255, 248, 222, 0.78);
    color: #9a7332;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.enso-wonder-card {
    --wonder-img: none;
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 230, 178, 0.36);
    border-radius: 16px;
    background: #2e4b43;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(62, 76, 60, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.enso-wonder-card::before {
    content: "";
    position: absolute;
    inset: -10px;
    background-image: var(--wonder-img);
    background-size: cover;
    background-position: center;
    filter: blur(0.6px) saturate(1.26) contrast(1.08);
    transform: scale(1.02);
    opacity: 1;
    transition: filter 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.enso-wonder-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 222, 132, 0.26), transparent 24%),
        radial-gradient(circle at 18% 26%, rgba(117, 188, 172, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(14, 21, 18, 0.02), rgba(14, 21, 18, 0.24) 46%, rgba(8, 15, 13, 0.74) 78%, rgba(7, 12, 10, 0.9)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 64%);
}

.enso-wonder-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 230, 178, 0.52);
    box-shadow: 0 22px 52px rgba(62, 76, 60, 0.26);
}

.enso-wonder-card:hover::before {
    filter: blur(0.2px) saturate(1.45) contrast(1.14);
    transform: scale(1.06);
    opacity: 1;
}

.enso-wonder-card span,
.enso-wonder-card strong,
.enso-wonder-card em,
.enso-wonder-card small {
    position: relative;
    z-index: 1;
}

.enso-wonder-card .wonder-year {
    width: fit-content;
    margin-bottom: auto;
    padding: 0.2rem 0.46rem;
    border: 1px solid rgba(255, 235, 187, 0.34);
    border-radius: 999px;
    background: rgba(37, 43, 34, 0.38);
    color: #ffe8b7;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.enso-wonder-card strong {
    margin-top: 46px;
    color: #fff9e8;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.08;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.enso-wonder-card em {
    min-height: 4.3em;
    margin-top: 8px;
    color: rgba(255, 250, 232, 0.9);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
}

.enso-wonder-card small {
    width: fit-content;
    margin-top: 8px;
    padding: 0.18rem 0.44rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 248, 224, 0.86);
    font-size: 0.62rem;
    font-weight: 800;
}

.wonder-monsoon {
    --wonder-img: url("assets/enso_wonders/lost_monsoon.png");
}

.wonder-chimbote {
    --wonder-img: url("assets/enso_wonders/chimbote_empty_nets.png");
}

.wonder-galapagos {
    --wonder-img: url("assets/enso_wonders/galapagos_warm_sea.png");
}

.wonder-sumatra {
    --wonder-img: url("assets/enso_wonders/sumatra_second_haze.png");
}

.wonder-rift {
    --wonder-img: url("assets/enso_wonders/east_africa_rift_rain.png");
}

.wonder-sugar {
    --wonder-img: url("assets/enso_wonders/sugar_storm.png");
}

.wonder-borneo {
    --wonder-img: url("assets/enso_wonders/borneo_peat_fire.png");
}

.enso-wonder-modal[hidden] {
    display: none;
}

.enso-wonder-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
}

.enso-wonder-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 30, 26, 0.5);
    backdrop-filter: blur(12px);
}

.enso-wonder-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 238, 193, 0.28);
    border-radius: 26px;
    background: rgba(255, 252, 238, 0.94);
    box-shadow: 0 30px 90px rgba(28, 42, 36, 0.35);
}

.wonder-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 245, 215, 0.42);
    border-radius: 999px;
    background: rgba(25, 39, 34, 0.5);
    color: #fff7df;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.wonder-modal-art {
    min-height: 560px;
    background-image: var(--modal-img);
    background-size: cover;
    background-position: center;
    filter: saturate(0.92);
}

.wonder-modal-art::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background:
        radial-gradient(circle at 40% 34%, rgba(255, 245, 216, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(20, 28, 24, 0.04), rgba(20, 28, 24, 0.4)),
        linear-gradient(90deg, transparent 40%, rgba(255, 252, 238, 0.22));
}

.wonder-modal-copy {
    min-width: 0;
    overflow-y: auto;
    padding: 34px 34px 30px;
}

.wonder-modal-year {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(185, 147, 77, 0.28);
    border-radius: 999px;
    background: rgba(185, 147, 77, 0.1);
    color: #9a7332;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
}

.wonder-modal-copy h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.wonder-modal-place {
    margin: 12px 0 20px;
    color: #668078;
    font-size: 0.92rem;
    font-weight: 800;
}

.wonder-modal-story {
    display: grid;
    gap: 13px;
    color: #36564b;
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
    font-size: 1.06rem;
    line-height: 1.85;
}

.wonder-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.wonder-modal-tags span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(47, 125, 95, 0.1);
    color: #2f7d5f;
    font-size: 0.78rem;
    font-weight: 800;
}

.module-grid {
    display: grid;
    gap: 14px;
}

.module-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
}

.module-card span {
    color: var(--moss);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

.module-card h3 {
    margin: 8px 0;
    font-size: 1.08rem;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

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

.module-card {
    min-height: 210px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, background 0.2s ease;
}

.module-card.sugar-module-card {
    border-color: rgba(197, 154, 79, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(251, 246, 224, 0.76)),
        radial-gradient(circle at 82% 18%, rgba(229, 187, 91, 0.18), transparent 36%);
}

.module-card.sugar-module-card span,
.module-card.sugar-module-card strong {
    color: #a57620;
}

.module-card.palm-module-card {
    border-color: rgba(60, 143, 123, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(236, 247, 241, 0.78)),
        radial-gradient(circle at 82% 18%, rgba(60, 143, 123, 0.16), transparent 36%);
}

.module-card.palm-module-card span,
.module-card.palm-module-card strong {
    color: #2f7f66;
}

.module-card.weather-cloud-module-card {
    border-color: rgba(62, 137, 170, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(231, 244, 248, 0.8)),
        radial-gradient(circle at 82% 18%, rgba(62, 137, 170, 0.17), transparent 38%);
}

.module-card.weather-cloud-module-card span,
.module-card.weather-cloud-module-card strong {
    color: #276f88;
}

.module-card.resources-module-card {
    border-color: rgba(78, 125, 144, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(236, 246, 241, 0.78)),
        radial-gradient(circle at 82% 18%, rgba(180, 106, 44, 0.15), transparent 36%);
}

.module-card.resources-module-card span,
.module-card.resources-module-card strong {
    color: #2b7287;
}

.module-card.trade-flow-module-card {
    border-color: rgba(78, 125, 144, 0.32);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 244, 240, 0.78)),
        radial-gradient(circle at 84% 16%, rgba(90, 159, 183, 0.18), transparent 38%);
}

.module-card.trade-flow-module-card span,
.module-card.trade-flow-module-card strong {
    color: #2b7287;
}

.module-card strong {
    margin-top: auto;
    color: var(--leaf);
}

.home-weather-observer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(231, 244, 238, 0.8)),
        radial-gradient(circle at 88% 12%, rgba(126, 182, 217, 0.2), transparent 34%);
}

.home-weather-observer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(126, 182, 217, 0.08), transparent 36%, rgba(230, 184, 95, 0.06));
}

.home-weather-head,
.home-weather-content {
    position: relative;
    z-index: 1;
}

.home-weather-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.home-weather-head > div > p:last-child {
    max-width: 700px;
    margin-top: 10px;
    color: var(--muted);
}

.home-weather-head .primary-btn { flex: 0 0 auto; }
.home-weather-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.32fr);
    gap: 14px;
}

.home-weather-figure,
.home-weather-region-panel {
    overflow: hidden;
    border: 1px solid rgba(81, 123, 105, 0.16);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.7);
}

.home-weather-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #071b2a;
}

.home-weather-media video,
.home-weather-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-weather-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(239, 248, 245, 0.9);
    background: radial-gradient(circle at center, rgba(12, 37, 51, 0.34), rgba(7, 27, 42, 0.68));
    font-size: 0.82rem;
    font-weight: 700;
}

.home-weather-loading[hidden] { display: none; }
.home-weather-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.home-weather-badges span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(224, 240, 236, 0.24);
    border-radius: 999px;
    color: #eff8f5;
    background: rgba(8, 30, 43, 0.62);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.home-weather-caption {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 17px 18px;
}

.home-weather-current > span,
.home-weather-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
}

.home-weather-current > strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 1.2rem;
}

.home-weather-current > small { color: var(--muted); font-size: 0.72rem; }
.home-weather-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-weather-metrics p {
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}

.home-weather-metrics strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--leaf-dark);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-weather-region-panel { display: flex; flex-direction: column; padding: 15px; }
.home-weather-panel-label {
    margin: 2px 2px 10px;
    color: var(--leaf);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-weather-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.home-weather-tab {
    min-height: 78px;
    padding: 10px;
    border: 1px solid rgba(81, 123, 105, 0.11);
    border-radius: 15px;
    color: var(--muted);
    background: rgba(242, 248, 240, 0.7);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.home-weather-tab:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.88); }
.home-weather-tab.is-active {
    border-color: rgba(47, 125, 95, 0.3);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(74, 112, 97, 0.12);
}

.home-weather-tab > span {
    display: block;
    color: var(--moss);
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-weight: 700;
}

.home-weather-tab > strong { display: block; margin: 2px 0 0; font-size: 0.88rem; }
.home-weather-tab > small { display: block; overflow: hidden; font-size: 0.63rem; text-overflow: ellipsis; white-space: nowrap; }
.home-weather-tab:focus-visible { outline: 3px solid rgba(47, 125, 95, 0.2); outline-offset: 2px; }
.home-weather-source {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding: 13px 3px 2px;
    color: var(--muted);
}

.home-weather-source span { color: var(--leaf-dark); font-size: 0.68rem; font-weight: 700; }
.home-weather-source small { font-size: 0.64rem; line-height: 1.5; }

.ai-preview,
.roadmap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ai-preview p,
.roadmap p {
    max-width: 820px;
    margin-top: 10px;
}

.roadmap .author-contact {
    margin-top: 14px;
    color: rgba(102, 128, 120, 0.72);
    font-size: 0.82rem;
    letter-spacing: 0;
}

body.pwa-install-open {
    overflow: hidden;
}

.pwa-install-modal[hidden] {
    display: none;
}

.pwa-install-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 35, 52, 0.64);
    backdrop-filter: blur(10px);
}

.pwa-install-dialog {
    position: relative;
    z-index: 1;
    width: min(670px, 100%);
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(57, 95, 123, 0.18);
    border-radius: 24px;
    background: #f6f9fb;
    box-shadow: 0 30px 90px rgba(15, 35, 52, 0.3);
}

.pwa-install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    border: 1px solid rgba(57, 95, 123, 0.2);
    border-radius: 50%;
    background: #fff;
    color: #20313f;
    cursor: pointer;
    font-size: 1.45rem;
    place-items: center;
}

.pwa-install-qr {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.pwa-install-qr img {
    width: 210px;
    height: 210px;
    display: block;
    padding: 8px;
    border: 1px solid rgba(57, 95, 123, 0.16);
    border-radius: 16px;
    background: #fff;
}

.pwa-install-qr span {
    color: #697b88;
    font-size: 0.76rem;
    font-weight: 700;
}

.pwa-install-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 28px;
}

.pwa-install-brand img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(24, 63, 104, 0.2);
}

.pwa-install-brand p {
    margin: 0 0 3px;
    color: #2d6f9f;
    font-size: 0.7rem;
    font-weight: 800;
}

.pwa-install-brand h2 {
    margin: 0;
    color: #183f68;
    font-size: 1.45rem;
    line-height: 1.2;
}

.pwa-install-lead {
    margin: 18px 0;
    color: #697b88;
    font-size: 0.9rem;
    line-height: 1.7;
}

.pwa-install-platforms {
    display: grid;
    gap: 8px;
}

.pwa-install-platforms p {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    color: #20313f;
    font-size: 0.82rem;
}

.pwa-install-platforms strong {
    color: #2d6f9f;
}

.pwa-install-platforms span {
    color: #697b88;
}

.pwa-install-mobile-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 16px;
    border-radius: 10px;
    background: #183f68;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 920px) {
    .home-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .top-nav,
    .hero-grid,
    .ai-preview,
    .roadmap {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 30px;
    }

    .climate-story-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .top-actions,
    .hero-buttons {
        flex-wrap: wrap;
    }

    .enso-wonders-head,
    .enso-wonder-dialog {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wonder-modal-art {
        min-height: 260px;
    }

    .signal-list,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .home-weather-head { align-items: flex-start; flex-direction: column; }
    .home-weather-content { grid-template-columns: 1fr; }
    .home-weather-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
    .home-weather-observer { padding: 18px; }
    .home-weather-head { gap: 16px; }
    .home-weather-head .primary-btn { width: 100%; }
    .home-weather-figure,
    .home-weather-region-panel { border-radius: 18px; }
    .home-weather-badges { top: 8px; right: 8px; }
    .home-weather-badges span { min-height: 24px; padding: 0 7px; font-size: 0.56rem; }
    .home-weather-caption { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
    .home-weather-metrics p:first-child { padding-left: 0; border-left: 0; }
    .home-weather-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-weather-tab { min-height: 72px; }

    .enso-wonders-panel {
        padding: 18px;
    }

    .enso-wonders-grid {
        grid-template-columns: 1fr;
    }

    .enso-wonder-card {
        min-height: 230px;
    }

    .enso-wonder-dialog {
        max-height: calc(100vh - 28px);
        border-radius: 22px;
    }

    .wonder-modal-copy {
        padding: 24px 20px 24px;
    }

    .pwa-install-dialog {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .pwa-install-qr img {
        width: 170px;
        height: 170px;
    }
}
