/* Skai Line identity — paper, ink, electric blue and a living green accent. */
:root{--skai-paper:#f4f2e9;--skai-ink:#102623;--skai-blue:#375bf4;--skai-lime:#dfff70}
#welcome.brand-welcome{background:var(--skai-paper)!important;color:var(--skai-ink);border:0;max-width:none;max-height:none;width:100%;height:100%;inset:0;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain}
#welcome.brand-welcome::backdrop{background:var(--skai-paper)}
#welcome.brand-welcome .welcome-wrap{display:block;box-sizing:border-box;max-width:1600px;min-height:100%;padding:30px clamp(24px,5vw,80px) 22px;margin:auto}
#welcome.brand-welcome .welcome-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:26px;border-bottom:1px solid #10262326}
#welcome.brand-welcome .welcome-brand{display:flex;align-items:center;gap:24px;margin:0;font-size:inherit}
#welcome.brand-welcome .welcome-brand img{width:228px;height:auto;display:block}
#welcome.brand-welcome .welcome-brand small{display:block;margin:0;padding-left:24px;border-left:1px solid #10262340;font-size:10px;line-height:1.5;font-weight:700;letter-spacing:1.5px;color:#53605a}
#welcome.brand-welcome .welcome-sound{position:static;margin:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#welcome.brand-welcome .welcome-sound button{border:1px solid #10262338;background:transparent;color:var(--skai-ink);border-radius:6px;min-height:44px;padding:10px 14px;font-size:12px}
#welcome.brand-welcome .welcome-hero{display:grid;grid-template-columns:1fr 1.12fr;gap:3%;align-items:center;min-height:0;padding:58px 0 48px}
#welcome.brand-welcome .welcome-copy{max-width:none;width:100%;min-width:0}
#welcome.brand-welcome .welcome-kicker{font-size:11px;font-weight:750;letter-spacing:1.8px;color:#46574e;line-height:1.4}
#welcome.brand-welcome h1{font:650 clamp(54px,6.4vw,100px)/.98 Arial,sans-serif;letter-spacing:-.065em;margin:26px 0 26px;color:var(--skai-ink)}
#welcome.brand-welcome h1 em{font-style:normal;color:var(--skai-blue)}
#welcome.brand-welcome .welcome-lead{font-size:clamp(16px,1.5vw,20px);line-height:1.5;color:#4e6058;margin:0 0 26px;max-width:400px}
#welcome.brand-welcome .welcome-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#welcome.brand-welcome .start-primary{display:flex;align-items:center;justify-content:space-between;gap:30px;min-width:235px;min-height:56px;padding:16px 20px;background:var(--skai-blue);color:white;border:0;border-radius:6px;box-shadow:none;font-size:17px;font-weight:650;text-align:left}
#welcome.brand-welcome .start-primary:hover{background:#2346d7}
#welcome.brand-welcome .start-primary>span{font-size:24px;line-height:1}
#welcome.brand-welcome .start-secondary{min-height:44px;padding:10px 12px;border:1px solid #10262338;border-radius:6px;background:transparent;color:var(--skai-ink);font-size:13px;text-decoration:none}
#welcome.brand-welcome .start-secondary:hover{background:#e9e9dc}
#welcome.brand-welcome .welcome-small{font-size:12px;line-height:1.5;color:#52605a;margin:12px 0 14px;max-width:450px}
#welcome.brand-welcome .welcome-links{display:flex;gap:26px;flex-wrap:wrap}
#welcome.brand-welcome :is(.demo-entry,.story-entry){display:inline-flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:0;font-size:13px;font-weight:650;color:var(--skai-ink);text-decoration:none;border-bottom:1px solid #10262350}
#welcome.brand-welcome :is(.demo-entry,.story-entry):hover{color:#2346d7;border-color:#375bf4}
#welcome.brand-welcome .welcome-actions .guest-signin{color:#2346d7;border-color:#375bf4;min-height:44px;display:inline-flex;align-items:center}
#welcome.brand-welcome .welcome-visual{margin:0;position:relative;min-width:0;align-self:center}
#welcome.brand-welcome .visual-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.5px;font-weight:700;color:#52605a;padding:0 8px}
#welcome.brand-welcome .story-city-art{display:block;width:100%;height:auto;max-height:570px;object-fit:contain}
#welcome.brand-welcome .welcome-visual figcaption{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:14px 8px 0;border-top:1px solid #10262326;font-size:11px;color:#5e6962}
#welcome.brand-welcome .welcome-visual figcaption strong{font-size:13px;max-width:160px;color:var(--skai-ink);font-weight:650}
#welcome.brand-welcome .welcome-visual figcaption span{max-width:180px;text-align:right;line-height:1.5}
#welcome.brand-welcome .welcome-story{display:grid;grid-template-columns:.8fr 1.2fr;gap:7%;padding:44px 0;margin:0;border-top:1px solid #10262340;scroll-margin-top:20px}
#welcome.brand-welcome .story-heading h2{font-size:clamp(27px,3vw,42px);line-height:1.08;letter-spacing:-1.5px;font-weight:550;margin:20px 0;color:var(--skai-ink)}
#welcome.brand-welcome .story-heading p{font-size:15px;line-height:1.6;color:#53605a;max-width:330px}
#welcome.brand-welcome .story-reader{min-width:0}
#welcome.brand-welcome .story-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-bottom:1px solid #10262338}
#welcome.brand-welcome .story-tabs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:72px;padding:12px 10px;background:transparent;color:#52605a;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:13px;text-align:left}
#welcome.brand-welcome .story-tabs button span{font-size:11px}
#welcome.brand-welcome .story-tabs button[aria-selected=true]{border-bottom-color:var(--skai-blue);color:#2346d7;background:#375bf408;font-weight:700}
#welcome.brand-welcome .story-panel h3{font-size:27px;letter-spacing:-.7px;font-weight:600;margin:28px 0 14px;color:var(--skai-ink)}
#welcome.brand-welcome .story-text{font-size:16px;line-height:1.65;color:#40544a;margin:0}
#welcome.brand-welcome .story-chain{display:flex;flex-wrap:wrap;gap:8px 0;list-style:none;padding:0;margin:22px 0;font-size:12px;font-weight:700;color:var(--skai-ink)}
#welcome.brand-welcome .story-chain li+li:before{content:'→';padding:0 12px;color:#375bf4}
#welcome.brand-welcome .pip-intro{display:flex;align-items:center;gap:13px;margin:22px 0;background:#e8ebdd;border-radius:6px;padding:14px}
#welcome.brand-welcome .pip-avatar{flex:none;width:44px;height:44px;display:block}
#welcome.brand-welcome .pip-avatar svg{width:100%;height:100%}
#welcome.brand-welcome .pip-intro p{font-size:13px;line-height:1.5;color:#40544a;margin:0}
#welcome.brand-welcome .pip-intro b{color:var(--skai-ink);font-weight:700}
#welcome.brand-welcome .story-lesson{font-size:14px;color:#26392d;border-left:3px solid #6b8529;padding-left:12px;line-height:1.5;margin:20px 0}
#welcome.brand-welcome .story-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #10262326;padding-top:10px}
#welcome.brand-welcome .story-count{color:#52605a;font-size:12px}
#welcome.brand-welcome .story-next{min-height:44px;border:0;border-radius:5px;background:var(--skai-ink);color:#f4f2e9;padding:10px 16px;display:flex;gap:20px;align-items:center;font-size:13px}
#welcome.brand-welcome .welcome-guide{border-top:1px solid #10262340;padding:22px 0 34px}
#welcome.brand-welcome :is(.welcome-how,.welcome-levels){border:0;border-bottom:1px solid #10262326;border-radius:0;padding:0;margin:0;background:transparent}
#welcome.brand-welcome :is(.welcome-how,.welcome-levels) summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;line-height:1.4;cursor:pointer;font-size:17px;font-weight:600;color:var(--skai-ink);list-style:none}
#welcome.brand-welcome summary::-webkit-details-marker{display:none}
#welcome.brand-welcome summary>span{font-size:24px;font-weight:400}
#welcome.brand-welcome details[open] summary>span{transform:rotate(45deg)}
#welcome.brand-welcome .welcome-how ol{font-size:15px;line-height:1.7;color:#40544a;max-width:760px}
#welcome.brand-welcome .welcome-how a{color:#2346d7;font-size:14px;display:inline-flex;align-items:center;min-height:44px;margin-bottom:14px}
#welcome.brand-welcome .welcome-level-grid{gap:20px;padding:10px 0 22px}
#welcome.brand-welcome .welcome-level-grid article{border:0;border-left:2px solid #375bf4;padding:4px 18px;background:transparent;border-radius:0}
#welcome.brand-welcome .welcome-level-grid small{color:#2346d7;font-size:11px;font-weight:700}
#welcome.brand-welcome .welcome-level-grid h3{color:var(--skai-ink);font-size:17px;margin:12px 0}
#welcome.brand-welcome .welcome-level-grid p{color:#52605a;font-size:13px;line-height:1.6}
#welcome.brand-welcome .beta-welcome{background:transparent;color:#52605a;border:0;padding:8px 0;margin:0 0 14px;font-size:13px;line-height:1.5;max-width:800px}
#welcome.brand-welcome .beta-welcome input{accent-color:#375bf4;min-width:20px;min-height:20px}
#welcome.brand-welcome .welcome-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #10262326;padding-top:20px;font-size:10px;color:#52605a;letter-spacing:1.3px}
#welcome.brand-welcome .welcome-footer b{color:var(--skai-ink)}
#welcome.brand-welcome :is(button,a,summary,[role=tabpanel]):focus-visible{outline:3px solid #375bf4;outline-offset:4px}
#welcome.brand-welcome :is(.welcome-session-notice,.welcome-missing-city){max-width:100%;overflow-wrap:anywhere}
/* Keep the established city-first positions; refine only the visual surfaces. */
body.living-world header{background:#f4f2e9f7;border-top:0;border-bottom:1px solid #10262330;border-radius:10px;box-shadow:0 4px 18px #10262312}
body.living-world .brand{color:#102623}
body.living-world .brand img{display:block;width:146px;height:auto}
body.living-world .headline-stats strong{color:#102623}
body.living-world .headline-stats span{color:#52605a}
body.living-world header .city-name{color:#40544a}
body.living-world header .pill{background:#e4e9dd;color:#40544a}
body.living-world #help{background:#102623;color:#f4f2e9;border:0;border-radius:7px}
body.living-world header #save-status{color:#345d42;border-radius:6px}
body.living-world header #save-status[data-status=pending]{color:#2346d7}
body.living-world header #save-status[data-status=error]{color:#a13b20}
body.living-world .rail{background:#102623f5;border:1px solid #ffffff26;border-radius:12px;padding:5px;gap:3px;box-shadow:0 5px 20px #10262324}
body.living-world .rail-btn{border-radius:7px;color:#f4f2e9}
body.living-world .rail-btn small{text-transform:none;letter-spacing:0;font-weight:600}
body.living-world .rail-btn.active,body.living-world .rail-btn[aria-expanded=true]{background:#375bf4;color:#fff;box-shadow:none}
body.living-world .rail-btn:hover{background:#304740;color:white}
body.living-world footer{background:#102623f5;border-radius:10px;border:1px solid #ffffff26}
body.living-world #next-month{background:#375bf4!important;color:white!important;border-radius:6px;font-weight:650}
body.living-world .map-actions{background:#102623f5;border-radius:8px;border:1px solid #ffffff26}
body.living-world .map-actions button{border-radius:6px}
#site-plan,#journey-cue,#city-mix,#session-feedback,#public-city-panel,#founding-guide{border-radius:8px!important}
body.living-world #side-panel,body.living-world .build-tray,#plot-builder,#area-builder,#living-panel,#more-tools,#city-advisor{background:#f4f2e9;border-color:#10262338;border-radius:10px}
body.living-world .build-item{border-radius:6px}
body.living-world .build-tray{border-top:3px solid #375bf4}
#connection-screen{background:#102623;color:#f4f2e9}
#connection-screen .loading-logo{width:220px;height:auto;display:block;margin:0 auto 28px}
@media(max-width:1100px){
 #welcome.brand-welcome .welcome-brand small{display:none}
 #welcome.brand-welcome .welcome-hero{gap:2%;padding-top:40px}
 #welcome.brand-welcome .welcome-actions{align-items:flex-start}
 #welcome.brand-welcome .welcome-story{gap:5%;grid-template-columns:.75fr 1.25fr}
}
@media(max-width:800px){
 #welcome.brand-welcome .welcome-wrap{padding:20px 24px}
 #welcome.brand-welcome .welcome-top{padding-bottom:18px;gap:12px}
 #welcome.brand-welcome .welcome-brand img{width:172px}
 #welcome.brand-welcome .welcome-sound{gap:5px}
 #welcome.brand-welcome .welcome-sound button{padding:8px 10px;font-size:11px}
 #welcome.brand-welcome .welcome-hero{grid-template-columns:1fr;gap:34px;padding:36px 0}
 #welcome.brand-welcome h1{font-size:clamp(56px,10vw,78px);letter-spacing:-.06em;margin:20px 0}
 #welcome.brand-welcome .welcome-lead{font-size:17px;max-width:420px}
 #welcome.brand-welcome .welcome-visual{max-width:560px;width:100%;justify-self:center}
 #welcome.brand-welcome .story-city-art{max-height:430px}
 #welcome.brand-welcome .welcome-story{grid-template-columns:1fr;gap:18px;padding:30px 0}
 #welcome.brand-welcome .story-heading h2{font-size:34px}
 #welcome.brand-welcome .story-heading p{max-width:none}
 #welcome.brand-welcome .story-panel h3{font-size:26px}
 #welcome.brand-welcome .story-text{font-size:16px}
 #welcome.brand-welcome .welcome-level-grid{grid-template-columns:1fr 1fr}
 body.living-world .brand img{width:114px}
 body.living-world .rail{gap:2px;padding:4px}
 body.living-world header #save-status{background:#f4f2e9;box-shadow:0 2px 8px #1026231a;padding:4px 7px}
}
@media(max-width:460px){
 #welcome.brand-welcome .welcome-wrap{padding:18px 20px}
 #welcome.brand-welcome .welcome-top{align-items:flex-start}
 #welcome.brand-welcome .welcome-brand img{width:155px;margin-top:6px}
 #welcome.brand-welcome .welcome-sound{flex-direction:column;align-items:stretch}
 #welcome.brand-welcome .welcome-hero{padding-top:27px;gap:28px}
 #welcome.brand-welcome h1{font-size:58px}
 #welcome.brand-welcome .welcome-actions{display:grid;grid-template-columns:1fr}
 #welcome.brand-welcome .start-primary{min-width:0;width:100%}
 #welcome.brand-welcome .start-secondary{width:100%}
 #welcome.brand-welcome .welcome-lead{font-size:16px;margin-bottom:23px}
 #welcome.brand-welcome .welcome-links{gap:13px;justify-content:space-between}
 #welcome.brand-welcome :is(.demo-entry,.story-entry){font-size:12px;gap:6px}
 #welcome.brand-welcome .story-tabs button{font-size:12px;padding:10px 6px;gap:8px}
 #welcome.brand-welcome .welcome-footer{flex-direction:column;gap:10px}
 #welcome.brand-welcome .welcome-level-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#welcome.brand-welcome *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#welcome.brand-welcome .welcome-actions{flex-direction:row;justify-content:flex-start}

#welcome.brand-welcome .story-chain li{color:#102623;font-size:13px;line-height:1.5;margin:0}

#welcome.brand-welcome .welcome-how li{color:#40544a;font-size:15px;line-height:1.7}

#welcome.brand-welcome .welcome-levels{display:block}

body.living-world .build-tray .tray-heading,body.living-world .build-tray .tray-heading :is(b,span){color:#40544a}
body.living-world .rail-btn.active:hover,body.living-world .rail-btn[aria-expanded=true]:hover{background:#2847d8;color:white}
