/* The first paint is paper, never a glimpse of the map behind the welcome. */
html.welcome-pending{background:#d4cfca}
.welcome-pending .app{visibility:hidden}
html:not(.welcome-pending) #forest-welcome{display:none}
#forest-welcome{position:fixed;inset:0;z-index:2147483600;display:block;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#d4cfca;color:#213e5b;isolation:isolate}
#forest-welcome::backdrop{background:#d4cfca}
#forest-welcome .welcome-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:66% bottom;pointer-events:none}
#forest-welcome video{opacity:0;transition:opacity .45s}
#forest-welcome video.is-playing{opacity:1}
#forest-welcome .welcome-wash{position:absolute;inset:0;background:linear-gradient(180deg,#e5e0d9e6 0%,#e5e0d991 24%,#e5e0d900 52%,#d4cfca00 65%,#e5e0d9cf 100%);pointer-events:none}
#forest-welcome .welcome-layout{position:relative;z-index:1;display:flex;flex-direction:column;height:100%;width:min(100%,650px);margin:auto;padding:calc(max(28px,env(safe-area-inset-top)) + 22px) max(28px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));box-sizing:border-box}
#forest-welcome .welcome-kicker{font:600 10px/1.5 system-ui,sans-serif;letter-spacing:.22em;color:#4c6478;margin:0 0 12px}
#forest-welcome h1{font:normal clamp(42px,11vw,76px)/1.05 Georgia,serif;letter-spacing:-.055em;margin:0;color:#213e5b;text-shadow:0 1px 0 #fff6;animation:welcome-title .75s both}
#forest-welcome h1 em{font-weight:normal}
#forest-welcome .welcome-tip{margin-top:25px;max-width:355px;min-height:110px}
#forest-welcome .welcome-tip-label{font:600 10px/1.5 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#66717a;margin:0 0 9px}
#forest-welcome .welcome-tip-text{font:normal clamp(17px,4.7vw,22px)/1.45 Georgia,serif;color:#2e4659;max-width:29ch;text-wrap:pretty;margin:0}
#forest-welcome .welcome-tip.is-entering{animation:welcome-tip .6s both}
#forest-welcome .welcome-footer{margin-top:auto;width:min(100%,380px);padding-top:16px}
#forest-welcome .welcome-progress{display:flex;gap:5px;margin:0 0 16px;height:2px}
#forest-welcome .welcome-progress span{flex:1;background:#213e5b26;overflow:hidden;border-radius:2px}
#forest-welcome .welcome-progress i{display:block;height:100%;background:#365775;transform-origin:left;transform:scaleX(0)}
#forest-welcome .welcome-actions{display:flex;gap:10px}
#forest-welcome button{appearance:none;display:flex;align-items:center;justify-content:center;border:1px solid #29486433;min-height:50px;margin:0;font:600 15px system-ui,sans-serif;letter-spacing:.01em;border-radius:17px;cursor:pointer;touch-action:manipulation}
#forest-welcome [data-welcome-enter]{flex:1;justify-content:space-between;padding:0 22px;background:#254660;color:#fff9ee;box-shadow:0 5px 20px #20384b21}
#forest-welcome [data-welcome-enter] span{font-size:24px;font-weight:400}
#forest-welcome [data-pause]{flex:0 0 50px;padding:0;background:#f3eee4bd;color:#254660;font-size:19px}
#forest-welcome button:focus-visible{outline:3px solid #365775;outline-offset:4px}
#forest-welcome .welcome-author{font:11px/1.6 system-ui,sans-serif;color:#4c5f6e;margin:16px 0 0;text-align:center}
#forest-welcome .welcome-author small{font-size:9px;opacity:.85}
@keyframes welcome-title{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes welcome-tip{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(orientation:landscape){
 #forest-welcome .welcome-art{inset:auto 0 0 auto;width:min(64%,76.667dvh);height:115%;object-fit:cover;object-position:right bottom;mask-image:linear-gradient(90deg,transparent,#000 30%)}
 #forest-welcome .welcome-wash{background:linear-gradient(90deg,#e5e0d9cc,#e5e0d988 35%,transparent 70%)}
 #forest-welcome .welcome-layout{max-width:1100px;width:100%;padding: max(22px,env(safe-area-inset-top)) max(30px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(36px,env(safe-area-inset-left))}
 #forest-welcome h1{font-size:clamp(38px,7vw,68px)}
 #forest-welcome .welcome-tip{margin-top:18px;max-width:43%;min-height:0}
 #forest-welcome .welcome-tip-text{font-size:18px}
 #forest-welcome .welcome-footer{width:40%;max-width:355px}
 #forest-welcome .welcome-author{margin-top:9px;font-size:10px}
}
@media(max-height:430px){#forest-welcome .welcome-kicker{margin-bottom:6px}#forest-welcome .welcome-tip{margin-top:13px}#forest-welcome .welcome-tip-label{display:none}#forest-welcome .welcome-tip-text{font-size:16px}#forest-welcome .welcome-progress{margin-bottom:10px}#forest-welcome .welcome-author small{display:none}}
@media(prefers-reduced-motion:reduce){#forest-welcome *{animation:none!important;transition:none!important}}
