/* The living world (assets/js/world.js): the drawn landscape shared by the landing page and Build your plan.
   world.js draws it and switches things on; this file says how they arrive and move. */
.w-svg{display:block;width:100%;height:100%}
/* Trees, houses and the rest grow up from the ground when they are switched on */
.w-item{opacity:0;transform:scale(.2);transform-box:fill-box;transform-origin:50% 100%;transition:opacity .45s ease,transform .7s cubic-bezier(.3,1.5,.5,1);transition-delay:var(--wd,0ms)}
.w-item.on{opacity:1;transform:scale(var(--grow,1))}
/* Something wanted that the plan does not have in place yet: there, but faint */
.w-item.on.ghost{opacity:.42}
.w-float,.w-cloud{transform-origin:50% 50%}
.w-glow{opacity:calc(.12 + var(--glow,0)*.5);transition:opacity .8s}
.w-smoke{opacity:.8}
html.mwp-motion .w-item.on .w-smoke{animation:w-smoke 5s ease-in-out infinite}
@keyframes w-smoke{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:.9;transform:translateY(-3px)}}
.w-beam{opacity:.3}
.w-ring,.w-pulse{opacity:0;transform-box:fill-box;transform-origin:50% 50%}
.w-pulse{opacity:.5}
.w-label text{font:700 14px/1 var(--mwp-body,system-ui,sans-serif);fill:#00236f}
.w-label-dark text{font-weight:600;font-size:12.5px;fill:#fff}
html.mwp-motion .w-float.on .w-bob{animation:w-bob 6s ease-in-out infinite}
html.mwp-motion .w-cloud.on .w-bob{animation:w-drift 14s ease-in-out infinite alternate}
html.mwp-motion .w-beam{animation:w-beam 3.2s ease-in-out infinite}
html.mwp-motion .w-pulse{animation:w-ring 2.2s ease-out infinite}
html.mwp-motion .w-svg.is-there .w-ring{animation:w-ring 2.4s ease-out infinite}
@keyframes w-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes w-drift{from{transform:translateX(-14px)}to{transform:translateX(16px)}}
@keyframes w-beam{0%,100%{opacity:.14}50%{opacity:.42}}
@keyframes w-ring{0%{opacity:.75;transform:scale(1)}100%{opacity:0;transform:scale(2.6)}}
@media(prefers-reduced-motion:reduce){.w-item,.w-glow{transition:none}}

/* ---- Build your plan: the same world, drawn from the saved plan ---- */
.world-panel{position:relative;isolation:isolate;height:360px;margin:14px 0 16px;border-radius:22px;overflow:hidden;background:#0c1650;color:#fff;box-shadow:0 26px 50px -34px #00123acc}
.world-panel[hidden]{display:none}
.world-scene{position:absolute;inset:0;z-index:-2}
.world-panel::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#060d33e0 0%,#060d33a6 26%,#060d3300 56%);pointer-events:none}
.world-caption{position:absolute;left:26px;top:22px;max-width:min(400px,46%)}
.world-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:5px 11px 5px 9px;border:1px solid #ffffff40;border-radius:999px;background:#ffffff14;font:600 12px/1.3 var(--mwp-body)}
.world-eyebrow i{width:7px;height:7px;border-radius:50%;background:#5fd3bd;box-shadow:0 0 0 4px #5fd3bd33}
.world-caption strong{display:block;margin:12px 0 6px;font:800 clamp(21px,2.1vw,28px)/1.12 var(--mwp-heading);letter-spacing:-.03em;color:#fff}
.world-caption p{margin:0;font-size:14px;line-height:1.5;color:#d8e0f6}
.world-key{position:absolute;left:26px;bottom:20px;display:flex;flex-wrap:wrap;gap:8px;max-width:min(430px,42%);margin:0;padding:0;list-style:none}
.world-key button{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:5px 12px 5px 9px;border:1px solid #ffffff38;border-radius:999px;background:#060d33a8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font:600 12.5px/1.2 var(--mwp-body);cursor:pointer;transition:background-color .2s,border-color .2s,transform .2s}
.world-key button:hover{background:#060d33e6;border-color:#fff9;transform:translateY(-1px)}
.world-key button:focus-visible{outline:3px solid #c9c3ff;outline-offset:2px}
.world-key i{flex:none;width:10px;height:10px;border-radius:50%}
.world-key b{font-weight:700;font-variant-numeric:tabular-nums}
.world-key .is-empty{opacity:.62}
.wk-trees i{background:#5fd3bd}.wk-home i{background:#fdfcf8;border-radius:2px}.wk-tent i{background:#f0937f}.wk-barn i{background:#2fb89e;border-radius:3px}.wk-clouds i{background:#8189c4}.wk-wishes i{background:#f4c56e}
/* Once the picture has scrolled away it follows along in the corner, so a figure typed lower down still shows up in it */
.world-scene.is-mini{position:fixed;inset:auto 18px 18px auto;z-index:45;width:300px;height:172px;border-radius:16px;overflow:hidden;box-shadow:0 22px 44px -18px #00123ae6,0 0 0 1px #ffffff2e;cursor:pointer;animation:world-mini .35s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes world-mini{from{opacity:0;transform:translateY(14px) scale(.94)}}
.world-mini-close{display:none}
.world-scene.is-mini+.world-mini-close{display:inline-flex;align-items:center;justify-content:center;position:fixed;right:10px;bottom:178px;z-index:46;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:#fdfcf8;color:#00236f;font:700 15px/1 var(--mwp-body);box-shadow:0 6px 14px -6px #000a;cursor:pointer}
@media(max-width:760px){
  .world-panel{height:auto;padding:186px 0 0;border-radius:18px}
  .world-scene{inset:0 0 auto 0;height:200px}
  .world-panel::before{background:linear-gradient(180deg,#0c165000 120px,#0c1650 196px)}
  .world-caption{position:static;max-width:none;padding:0 16px}
  .world-caption strong{font-size:21px;margin-top:0}
  .world-eyebrow{display:none}
  .world-key{position:static;max-width:none;padding:14px 16px 16px;gap:6px}
  .world-key button{font-size:12px;padding:5px 10px 5px 8px}
}
