.world-hub {--world-ink:#f5f6ed;--world-muted:#bac7bf;max-width:1040px;margin-inline:auto;color:var(--world-ink)}
.world-heading {display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:12px}
.world-heading p {color:#bed99e;font-size:11px;font-weight:850;letter-spacing:.055em}
.world-heading h1 {font-size:clamp(26px,5vw,52px);line-height:1.1;letter-spacing:-.075em}
.world-counter {display:inline-flex;align-items:center;gap:7px;align-self:center;padding:6px 10px;border:1px solid #565743;border-radius:7px;background:#2d3028;color:#ffe19a;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.world-counter svg {width:18px;height:18px}
.world-stage {position:relative;overflow:hidden;width:100%;aspect-ratio:900/510;border:1px solid #5a786c;border-radius:13px;background:#86c5b4;isolation:isolate}
.world-stage:focus-visible {outline:3px solid #d6f4a1;outline-offset:4px}
#worldMap {display:block;width:100%;height:100%;cursor:crosshair;touch-action:manipulation}
.world-portal {fill:#faf6d466;stroke:#f0db9e;stroke-width:2.5;stroke-dasharray:5 4}
.portal-pitch {fill:#ffd6949c}
.portal-harmony {fill:#ffc2a497}
.portal-rhythm {fill:#b9f2dfab}
.world-portal.is-near {fill:#ffed99;stroke:#fff6b9;stroke-width:4;stroke-dasharray:none}
#worldTarget {fill:#fff7b9aa;stroke:#8c6638;stroke-width:2}
.world-note-bob {animation:note-bob 1.55s ease-in-out infinite alternate}
.world-note:nth-of-type(2) .world-note-bob {animation-delay:-.43s}
.world-note:nth-of-type(3) .world-note-bob {animation-delay:-.81s}
@keyframes note-bob {to {transform:translateY(-5px)}}
.world-stage[data-found="3"] {box-shadow:0 0 0 2px #bfd47e,0 0 24px #bad97d60}
.world-stage[data-found="3"] .world-portal {stroke:#fff4a0;stroke-dasharray:none}
.world-sign {position:absolute;translate:-50% -50%;border:1px solid #304f45;border-radius:5px;padding:3px 8px;min-width:44px;min-height:32px;background:#26463d;color:#fff4ce;font-size:clamp(10px,2vw,14px);font-weight:950;line-height:1;white-space:nowrap;box-shadow:0 3px #213a34aa}
.world-sign:hover,.world-sign.is-near {background:#fff1b6;color:#37432e}
.world-sign.is-locked {background:#444d46;border-color:#7f8b7e;color:#e5e4d3}
.world-sign.is-locked:hover,.world-sign.is-locked.is-near {background:#596057;color:#fff2d3}
.world-sign small {display:block;margin-top:3px;font-size:9px;font-weight:600;color:#d5c69c}
.world-lock {display:inline-block;width:12px;height:14px;margin-right:4px;vertical-align:-2px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.world-console {min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:8px 13px;margin-top:9px;padding:8px 10px;border:1px solid #343f3c;border-radius:9px;background:#1b2424}
.world-message {display:grid;gap:4px;min-width:0}
#worldStatus {font-size:clamp(12px,1.5vw,16px);font-weight:850;color:#f5f5df}
#worldControls {font-size:11px;color:var(--world-muted)}
.world-touch {display:none}
.world-enter {flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:5px 11px;border-radius:6px;background:#c7f3a0;color:#223b29;font-size:13px;font-weight:950}
.world-enter:hover {background:#d9ffb7}
@media (max-width:560px) {
  .world-stage {aspect-ratio:544/460;border-radius:8px}
  .world-sign {min-height:31px;padding-inline:5px}
  .world-console {min-height:60px;padding:6px 7px}
  .world-enter {font-size:11px;padding-inline:6px}
  .world-heading {margin-bottom:8px}
}
@media (pointer:coarse) {
  .world-touch {display:inline}
  .world-desktop {display:none}
  .world-sign {min-height:38px}
}
@media (prefers-reduced-motion:reduce) {
  .world-note-bob {animation:none}
}

.world-return {align-self:center;padding:9px 10px;border:1px solid #556d61;border-radius:7px;color:#e9edd5;font-weight:800;white-space:nowrap}
.world-return:hover {background:#304538}
.world-hub:not([data-area="plaza"]) {
  --district-sky:#96c6d1;--district-hills:#739d8e;--district-floor:#93ad70;--district-river:#688e7c;
  --district-wall:#e0a878;--district-roof:#a85144;--district-roof-alt:#416b64;
}
.world-hub[data-area="harmony"] {
  --district-sky:#ecb998;--district-hills:#af8379;--district-floor:#b59c78;--district-river:#997862;
  --district-wall:#e7b788;--district-roof:#a6544d;--district-roof-alt:#745775;
}
.world-hub[data-area="rhythm"] {
  --district-sky:#92cfd5;--district-hills:#70a7a3;--district-floor:#86ac85;--district-river:#50a0b1;
  --district-wall:#e4bb83;--district-roof:#3f7c79;--district-roof-alt:#466b8a;
}
.district-sky {fill:var(--district-sky)}
.district-sun {fill:#fce4aa;opacity:.9}
.district-hills {fill:var(--district-hills)}
.district-floor {fill:var(--district-floor);stroke:#587560;stroke-width:4}
.district-river {fill:none;stroke:var(--district-river);stroke-width:42;opacity:.65}
.district-current {fill:none;stroke:#ceebe2;stroke-width:2;opacity:.36;stroke-linecap:round}
.district-tree ellipse {fill:#4a6957;opacity:.42}
.district-tree path:first-of-type {fill:#74563d}
.district-tree path:last-of-type {fill:#537962;stroke:#486452;stroke-width:1.5;stroke-linejoin:round}
.world-hub[data-area="harmony"] .district-tree path:last-of-type {fill:#887358;stroke:#725745}
.district-path,.district-path-stitch {fill:none;stroke-linecap:round;stroke-linejoin:round}
.district-path {stroke:#e0c597;stroke-width:34}
.district-path-stitch {stroke:#8c7658;stroke-width:2;stroke-dasharray:3 12;opacity:.75}
.district-building {stroke:#53483c;stroke-width:2.6;stroke-linejoin:round}
.district-shadow {fill:#526c51;opacity:.5;stroke:none}
.district-wall {fill:var(--district-wall)}
.district-roof {fill:var(--district-roof)}
.district-building[data-roof="1"] .district-roof {fill:var(--district-roof-alt)}
.district-building[data-roof="2"] .district-roof {fill:#817049}
.district-door {fill:#3c4c43}
.district-window {fill:#fbe4a6}
.district-emblem {color:#f6e5b2;stroke:none}
.district-arch {fill:#536e58;stroke:#e8dba7;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.world-hub:not([data-area="plaza"]) .world-portal {rx:25px;ry:8px;fill:#d8be89;stroke:#927854;stroke-width:2}
.world-hub:not([data-area="plaza"]) .world-portal.is-near {fill:#fff19a;stroke:#fff4ae;stroke-width:3}
.world-hub:not([data-area="plaza"]) .world-sign {max-width:18%;font-size:clamp(10px,1.65vw,13px);line-height:1.13;white-space:normal;text-wrap:balance}
.world-hub:not([data-area="plaza"]) .world-stage {background:var(--district-sky)}
@media (max-width:560px) {
  .world-hub:not([data-area="plaza"]) .world-stage {aspect-ratio:720/450}
  .world-hub:not([data-area="plaza"]) .world-sign {min-height:36px;font-size:10px;padding:2px 3px;max-width:23%}
  .world-return {font-size:11px}
}
