/* Juniper Lane — a single floating control layer over the living world. */
:root{
 --ink:#173f40;--muted:#587475;--paper:#f7f6ee;--glass:rgba(247,248,239,.91);
 --glass-strong:#fcfbf4;--line:rgba(29,80,76,.14);--accent:#237d79;--accent-light:#deeee5;
 --mint:#91c49b;--peach:#df9a63;--violet:#9180b7;--danger:#ba5660;--phone-bg:#edf2e9;
 --shadow:0 8px 32px #133d3820,inset 0 1px 0 #ffffffe6;
 --menu-fill:#f9f9ef;--menu-border:#ffffffc7;--menu-shadow:0 9px 30px #143c3c2e;
}
:root[data-theme=dark]{
 --ink:#edf5e9;--muted:#a6bfb9;--paper:#182e32;--glass:rgba(22,45,49,.94);
 --glass-strong:#1b3439;--line:rgba(174,217,201,.18);--accent:#91d1be;--accent-light:#2b4d4e;
 --mint:#9cd4a7;--peach:#f0b77c;--violet:#c1aae8;--danger:#f1a0a2;--phone-bg:#142e33;
 --shadow:0 10px 32px #041b2255,inset 0 1px 0 #d8f8e726;
 --menu-fill:#1d393d;--menu-border:#a4cfbb36;--menu-shadow:0 12px 35px #00151966;
}
.glass{border-color:var(--menu-border);backdrop-filter:blur(20px) saturate(1.12);-webkit-backdrop-filter:blur(20px) saturate(1.12)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.hero-button,.primary-button{background:var(--accent);color:var(--paper);border-radius:13px;font-size:13px;font-weight:700;box-shadow:0 3px 0 #113d3e30}
:root[data-theme=dark] .hero-button,:root[data-theme=dark] .primary-button{color:#153a39}
.hero-button :where(svg,.kinora-image-icon){width:19px;height:19px}
.world-topbar{top:17px;left:18px;padding:8px 13px 8px 7px;border-radius:17px;gap:13px}
.mini-brand>strong{letter-spacing:1px;font-size:12px}.mini-brand>span{font-size:7px;letter-spacing:2px}.mini-brand{min-width:93px}
.wallet{color:var(--ink);font-weight:700}.audience :where(svg,.kinora-image-icon){color:var(--peach)}.top-divider{height:21px}
.goal-chip{font-size:10px;color:var(--ink)}.goal-chip :where(svg,.kinora-image-icon){color:var(--accent)}
.world-clock{border-radius:17px}.camera-controls{border-radius:13px;opacity:.94}
.life-dock{border-radius:23px 23px 13px 23px;width:292px;padding:11px;grid-template-columns:58px 1fr 34px}
.avatar{width:58px;height:68px;border-radius:18px}.avatar img{border-radius:17px}.avatar>span{color:#184b40}
.character-summary strong{font-size:14px}.character-summary>span:first-child{letter-spacing:1.3px;font-size:6px}.needs-grid{gap:9px}
.need{min-height:31px}.need-track{height:4px}.need :where(svg,.kinora-image-icon){color:var(--muted)}
.action-dock{left:328px;bottom:18px;width:300px}.activity-panel{border-radius:17px;padding:11px 14px;box-shadow:var(--shadow)}
.activity-copy strong{font-size:11px}.activity-copy small{font-size:9px;line-height:1.45}.activity-track{height:3px;margin-top:10px}
.time-dock{bottom:18px;right:18px;border-radius:15px}.time-dock button.active{background:var(--accent);color:var(--paper)}
.controls-hint{opacity:.75;font-size:9px;bottom:77px}.world-anchor{position:absolute;z-index:13;display:flex;align-items:center;gap:6px;background:var(--menu-fill);border:1px solid var(--menu-border);border-radius:22px;padding:8px 11px;box-shadow:var(--menu-shadow);font-size:10px;font-weight:700;transform:translate(-50%,-100%)}
.world-anchor:after{content:'';position:absolute;left:calc(50% - 4px);bottom:-5px;transform:rotate(45deg);width:9px;height:9px;background:var(--menu-fill)}.world-anchor :where(svg,.kinora-image-icon){width:16px;height:16px;color:var(--accent)}
/* Menus reveal the actual rendered city. No full-screen blur or gameplay HUD beneath. */
body:has(#title-screen:not([hidden])) :is(.world-topbar,.world-clock,.camera-controls,.life-dock,.action-dock,.time-dock,.controls-hint,#story-beacon,#first-job-beacon),
body:has(#welcome:not([hidden])) :is(.world-topbar,.world-clock,.camera-controls,.life-dock,.action-dock,.time-dock,.controls-hint,#story-beacon,#first-job-beacon),
body:has(#pause-menu:not([hidden])) :is(.world-topbar,.world-clock,.camera-controls,.life-dock,.action-dock,.time-dock,.controls-hint,#story-beacon,#first-job-beacon){visibility:hidden;pointer-events:none}
.title-shade{background:linear-gradient(90deg,#f0f2e9ed 0%,#f0f2e9e8 16%,#f0f2e9b0 25%,#f0f2e912 42%,transparent 52%)}
:root[data-theme=dark] .title-shade{background:linear-gradient(90deg,#122c35f2 0%,#122c35e5 16%,#122c35b0 25%,#122c3512 43%,transparent 55%)}
.title-content{left:clamp(28px,4.2vw,82px);top:50%;width:310px;transform:translateY(-50%);color:var(--ink)}
.title-seal{display:flex;align-items:center;gap:11px;margin-bottom:23px;color:var(--accent)}.title-seal span{font-size:8px;letter-spacing:2.5px;font-weight:800}.title-seal :where(svg,.kinora-image-icon){width:17px;height:17px}.title-seal :where(svg,.kinora-image-icon):last-child{width:14px;height:14px}
.title-content h1{line-height:.91;margin:0}.title-content h1>span{font-family:Georgia,'Times New Roman',serif;font-size:74px;font-weight:400;letter-spacing:-4px;color:var(--ink);margin:0;line-height:.88}
.title-star{font-family:system-ui;font-size:29px;display:inline-block;color:var(--peach);vertical-align:top;margin:8px 0 0 7px}
.title-content h1>strong{font-size:17px;letter-spacing:6.8px;color:var(--accent);font-weight:750;margin:24px 0 0;text-shadow:none;line-height:1.2}
.title-tagline{font-size:15px;line-height:1.65;color:var(--muted);letter-spacing:0;margin:24px 0 0}
.title-actions{width:280px;margin-top:27px;gap:5px}.title-actions .hero-button{color:#f5faf0;background:#246f6c;box-shadow:0 3px 0 #154b48,0 8px 20px #194b4720;padding:15px 17px;font-size:13px;border:1px solid #ffffff28}
.title-actions .hero-button>span{display:flex;flex-direction:column;gap:4px;align-items:flex-start}.title-actions .hero-button small{font-size:7px;letter-spacing:1.7px;color:#c4e9cf}
.title-link{padding:12px 4px;color:var(--ink);font-size:12px;border-bottom:1px solid var(--line);border-radius:0}.title-link>:where(svg,.kinora-image-icon){width:15px;height:15px;opacity:.7}.title-link:hover{background:var(--accent-light)}
.title-actions:has(#continue-game[hidden]) #new-household{background:#246f6c;color:#f5faf0;border-radius:13px;padding:17px;box-shadow:0 3px 0 #154b48;margin-bottom:7px;font-weight:700}
.title-save{display:flex;align-items:flex-start;gap:8px;margin-top:18px;max-width:282px}.save-indicator{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0;margin-top:5px;box-shadow:0 0 0 3px var(--accent-light)}.title-save small{font-size:9px;line-height:1.7;color:var(--muted)}
.title-location{position:absolute;right:28px;top:25px;display:grid;grid-template-columns:7px 1fr;gap:5px 9px;padding:12px 15px;background:var(--glass);border:1px solid var(--menu-border);border-radius:15px;color:var(--ink);box-shadow:var(--shadow)}.title-location>span:not(.location-dot){font-size:8px;letter-spacing:1.8px;font-weight:800}.location-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;margin-top:2px}.title-location small{font-size:9px;color:var(--muted);grid-column:2}
.title-corner{left:clamp(28px,4.2vw,82px);bottom:22px;right:28px;color:var(--muted);font-size:7px;letter-spacing:1.5px}.title-corner span:last-child{background:var(--glass);padding:6px 9px;border-radius:9px}
.pause-wrap,.welcome-wrap{display:block;background:linear-gradient(90deg,#13393822,transparent 64%);backdrop-filter:none;-webkit-backdrop-filter:none}
.pause-card{position:absolute;left:26px;top:26px;bottom:26px;max-height:calc(100vh - 52px);overflow:auto;width:345px;padding:28px;border-radius:23px;display:flex;flex-direction:column;box-shadow:0 16px 65px #123b3940}
.pause-cap{display:flex;align-items:center;gap:9px;margin-bottom:28px;color:var(--accent)}.pause-cap span{font-size:8px;letter-spacing:1.7px;font-weight:800}.pause-cap :where(svg,.kinora-image-icon){width:17px;height:17px}
.pause-card h2{font-family:Georgia,serif;font-size:35px;font-weight:400;letter-spacing:-1.2px;margin:0 0 8px}.pause-card p{font-size:11px;line-height:1.8;margin:0;color:var(--muted)}
.pause-card .hero-button{margin:26px 0 16px;padding:15px}.menu-row{font-size:12px;padding:17px 0;gap:11px}.menu-row:hover{color:var(--accent);background:var(--accent-light)}
.pause-footer{margin-top:auto;padding-top:28px;display:flex;gap:8px;align-items:flex-start}.pause-footer small{font-size:9px;color:var(--muted);line-height:1.7;flex:1}.pause-footer kbd{font:9px system-ui;padding:3px 5px;border:1px solid var(--line);border-radius:5px;margin-top:2px}
.welcome-card{position:absolute;left:26px;top:26px;bottom:26px;width:363px;max-height:calc(100vh - 52px);padding:28px;border-radius:23px;box-shadow:0 16px 65px #123b3940}.welcome-card h2{font-family:Georgia,serif;font-weight:400;font-size:34px}.welcome-card p{font-size:11px}.welcome-card label{font-size:10px}.welcome-card .hero-button{margin-top:23px}
#drawer[data-surface=settings],#drawer[data-surface=stories]{left:392px;right:auto;top:26px;bottom:26px;transform:none;width:382px;max-height:none;border-radius:23px;background:var(--glass-strong);box-shadow:0 16px 65px #123b3940;animation:slide-rail .2s ease-out}
#drawer[data-surface=settings] #drawer-body,#drawer[data-surface=stories] #drawer-body{max-height:calc(100vh - 145px);padding:12px 23px 30px}.drawer-header{padding:17px 21px 11px}.drawer-header h2{font-size:23px;letter-spacing:-.7px}.drawer-header .eyebrow{font-size:7px}.settings-row{font-size:11px;padding:14px 0}.settings-row select{font-size:10px}
@keyframes slide-rail{from{opacity:0;translate:-8px 0}to{opacity:1;translate:0 0}}
/* Keep focus scrolling inside the phone and menus. Offscreen world labels must
   never move the page itself or uncover the document behind the game. */
html,body{overflow:clip;overscroll-behavior:none}
#game{position:fixed;inset:0;overflow:clip;isolation:isolate}
/* Context petals are separate controls, anchored to a world object. */
#context-menu.radial{width:570px;height:365px;max-height:none;overflow:visible;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;pointer-events:none;animation:context-reveal .14s ease-out}
.radial:before{content:'';position:absolute;inset:28px 0 28px;border-radius:50%;background:radial-gradient(ellipse,#173b3f33,transparent 70%);pointer-events:none}
.radial .context-heading{position:absolute;left:209px;top:104px;width:152px;min-height:86px;text-align:center;padding:14px 12px 12px;border:1px solid var(--menu-border);border-radius:28px;background:var(--menu-fill);box-shadow:var(--menu-shadow);pointer-events:auto}
.radial .context-heading small{display:block;font-size:7px;letter-spacing:1.1px;color:var(--muted)}.radial .context-heading>strong{display:block;font-size:12px;line-height:1.4;margin-top:6px}.radial .context-close{position:absolute;top:-17px;left:calc(50% - 13px);right:auto;width:26px;height:26px;border-radius:50%;background:var(--menu-fill);box-shadow:0 2px 8px #123b3925;color:var(--muted);font-size:18px;border:1px solid var(--menu-border)}
.radial .context-person{justify-content:center;flex-wrap:wrap;gap:4px;font-size:8px;margin-top:7px}.radial .context-person>span:first-child{width:100%;font-size:8px}.radial .relationship-dot{width:32px}
.radial .context-actions{position:absolute;inset:0;pointer-events:none}.radial .action-option{position:absolute;width:185px;min-height:58px;margin:0;border-radius:22px;background:var(--menu-fill);border:1px solid var(--menu-border);box-shadow:var(--menu-shadow);padding:10px 12px;gap:9px;pointer-events:auto;transition:transform .12s,background .12s,box-shadow .12s;align-items:center}
.radial .action-option:nth-child(1){left:24px;top:42px}.radial .action-option:nth-child(2){right:24px;top:42px}.radial .action-option:nth-child(3){left:0;top:125px}.radial .action-option:nth-child(4){right:0;top:125px}.radial .action-option:nth-child(5){left:24px;top:208px}.radial .action-option:nth-child(6){right:24px;top:208px}
.radial .action-option:hover:not(:disabled){transform:translateY(-3px);background:var(--accent-light);box-shadow:0 12px 25px #123b3938}.radial .action-option:disabled{opacity:.76}.radial .action-option:disabled strong{color:var(--muted)}.radial .action-option strong{font-size:10px;line-height:1.4}.radial .action-option small{font-size:8px;line-height:1.35;max-height:22px;overflow:hidden}.radial .action-icon{height:28px;width:28px;border-radius:10px;background:var(--accent-light)}.radial .action-icon :where(svg,.kinora-image-icon){width:16px;height:16px}
.radial .context-categories{position:absolute;top:286px;left:0;right:0;display:flex;justify-content:center;flex-wrap:wrap;max-height:65px;overflow:auto;gap:5px;margin:0;pointer-events:auto;border:0;background:none;padding:0 10px}
.radial .context-categories button{background:var(--menu-fill);border:1px solid var(--menu-border);box-shadow:0 4px 13px #123b391a;border-radius:16px;padding:7px 10px;font-size:9px;color:var(--ink)}.radial .context-categories button.active{background:var(--accent);color:var(--paper)}
.radial .context-footer{position:absolute;left:213px;top:205px;width:144px;display:flex;flex-direction:column;gap:4px;border:0;padding:0;margin:0;background:none;pointer-events:auto}.radial .context-footer button{border-radius:14px;font-size:8px;padding:6px 9px;gap:5px;background:var(--menu-fill);box-shadow:0 3px 12px #123b3920;border:1px solid var(--menu-border)}.radial .context-footer :where(svg,.kinora-image-icon){width:12px;height:12px}
.radial #more-interactions{position:absolute;top:348px;left:50%;transform:translateX(-50%);background:var(--menu-fill);padding:6px 12px;border-radius:14px;pointer-events:auto;white-space:nowrap;font-size:9px}
@keyframes context-reveal{from{opacity:0;scale:.96}to{opacity:1;scale:1}}
#context-menu.event-context{width:330px;background:var(--glass-strong);border-radius:22px;padding:18px;box-shadow:var(--menu-shadow);border:1px solid var(--menu-border)}
.conversation-card{position:absolute;z-index:25;width:330px;background:var(--menu-fill);color:var(--ink);border:1px solid var(--menu-border);border-radius:20px 20px 20px 5px;box-shadow:var(--menu-shadow);padding:17px;pointer-events:auto}.conversation-speaker{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:750;color:var(--accent)}.conversation-speaker :where(svg,.kinora-image-icon){width:16px;height:16px}.conversation-card p{font-size:12px;line-height:1.7;margin:10px 0 13px}.conversation-card .conversation-prompt{font-size:9px;color:var(--muted);margin:0 0 9px}.conversation-choices{display:grid;gap:6px}.conversation-choices button{text-align:left;background:var(--accent-light);padding:10px 11px;border-radius:12px;font-size:10px;line-height:1.4}.conversation-choices button small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.conversation-choices button:hover{background:var(--accent);color:var(--paper)}.conversation-choices button:hover small{color:inherit}.conversation-turn{font-size:8px;color:var(--muted);margin-left:auto}
#route-marker{position:absolute;z-index:10;width:32px;height:32px;border-radius:50%;border:2px solid #f8fff1;background:#267a7455;transform:translate(-50%,-50%) scaleY(.6);display:grid;place-items:center;pointer-events:none;box-shadow:0 0 0 5px #a7ddbb22;color:#f8fff1}#route-marker :where(svg,.kinora-image-icon){width:16px;height:16px;transform:scaleY(1.4)}
.actor-label .speech-bubble{max-width:205px;font-size:10px;padding:9px 12px;border-radius:15px 15px 15px 5px;background:var(--menu-fill);color:var(--ink);box-shadow:0 5px 15px #143b3a22}.actor-label .name-tag{font-size:8px;background:#173e42c9;border:1px solid #ffffff44;padding:3px 7px;border-radius:8px;color:#f0f7ed}.actor-label.player .name-tag{background:#226d68e0}.actor-label .thought{background:var(--menu-fill);color:var(--accent);border:1px solid var(--menu-border);box-shadow:var(--menu-shadow)}
#drawer{border-color:#173c42;background:var(--phone-bg);border-width:6px;width:316px;border-radius:34px;right:23px;bottom:83px;box-shadow:0 18px 50px #0c2c3250,0 0 0 1px #ffffff55 inset}.device-camera{background:#173c42;width:76px;height:16px}.device-top{height:26px}.device-home{height:4px;width:78px;opacity:.65}.phone-apps{gap:16px 9px}.phone-wallpaper{background:radial-gradient(ellipse at 5% 0%,#e7bb8199,transparent 70%),linear-gradient(135deg,#bed9ba,#9ac7c7);border-radius:19px}.phone-wallpaper h3{font-size:25px}.phone-app{font-size:8px}.app-icon{width:49px;height:49px;border-radius:15px;box-shadow:inset 0 1px 0 #ffffff88,0 3px 6px #123b391a}.phone-app :where(svg,.kinora-image-icon){width:23px;height:23px}.phone-dock{background:var(--line);padding:8px;margin-top:20px}.phone-option{background:var(--paper);border:1px solid var(--line);box-shadow:none}.phone-option strong{font-size:11px}.phone-option small{font-size:9px}.phone-contact button{background:var(--accent-light);color:var(--accent)}
:root[data-theme=dark] .phone-wallpaper{background:radial-gradient(ellipse at 5% 0%,#8d674f88,transparent 70%),linear-gradient(135deg,#36564c,#274e5b)}
#drawer[data-surface=monitor]{width:410px;border:7px solid #203e43;border-radius:19px;right:24px;bottom:91px;background:var(--paper);box-shadow:0 18px 55px #123b3959}#drawer[data-surface=monitor] .drawer-header{background:var(--accent-light)}.panel-tabs button.active{background:var(--accent);color:var(--paper)}.action-option{border-radius:13px;background:var(--accent-light)}
#drawer[data-surface=build]{left:328px;right:186px;bottom:18px;max-height:285px;border-radius:20px 20px 13px 13px;border:1px solid var(--menu-border);background:var(--glass);box-shadow:var(--menu-shadow)}#drawer[data-surface=build] .drawer-header{padding:13px 18px 0}#drawer[data-surface=build] #drawer-body{max-height:229px;padding:4px 18px 16px}.build-card{min-width:137px;max-width:137px;border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:12px}.build-card:hover:not(:disabled){border-color:var(--accent)}.build-card .item-thumb{background:var(--accent-light);border-radius:11px}.build-card small{line-height:1.5}.renovation-offer h3{font-family:Georgia,serif;font-weight:400;font-size:23px}.renovation-offer button{width:175px}body:has(#drawer[data-surface=build]:not([hidden])) .action-dock{visibility:hidden}
#drawer[data-surface=recipe]{right:24px;bottom:88px;width:270px;border-radius:19px;background:var(--glass-strong);border:1px solid var(--menu-border)}.recipe-preview{height:auto;min-height:44px;border-radius:12px;background:var(--accent-light);margin:0 0 14px}.recipe-preview .food-icon{font-size:9px;color:var(--muted);text-align:center;line-height:1.5;max-width:135px}.recipe-preview button{width:29px;height:29px}.recipe-description h3{font-family:Georgia,serif;font-size:27px;font-weight:400;letter-spacing:-.6px}.recipe-facts{gap:5px;flex-wrap:wrap}
#loading{background:radial-gradient(ellipse at 60% 20%,#dbe4cc,transparent 65%),#eef0e5;color:#244e4d}#loading h2{font-family:Georgia,serif;font-weight:400;font-size:33px}.loading-emblem{background:#266f6b;color:#f3f5dc;border-radius:22px;box-shadow:0 6px 0 #174d4b}.loading-track{background:#bcd6c8}.loading-track>span{background:#377d70}#error{background:var(--glass-strong);color:var(--ink);border-radius:23px;box-shadow:var(--menu-shadow);max-width:420px;padding:31px}#error h2{font-family:Georgia,serif;font-weight:400;font-size:29px;line-height:1.2}#error p{font-size:12px;line-height:1.7;color:var(--muted)}#error .hero-button{margin:22px 0 15px}
.district-card{border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:13px;margin-bottom:10px}.district-card h3{font-size:14px;margin:0 0 6px}.district-card p{font-size:9px;line-height:1.6;color:var(--muted);margin:0 0 8px}.district-card .phone-option{padding:8px;background:var(--accent-light);border:0;margin:5px 0}.district-card .phone-option :where(svg,.kinora-image-icon){width:15px;height:15px}.district-card .phone-option strong{font-size:10px}.district-card .phone-option small{font-size:8px}.resident-message{border-left:3px solid var(--peach);background:var(--accent-light);padding:11px;border-radius:4px 12px 12px 4px;margin:10px 0}.resident-message strong{font-size:11px}.resident-message p{font-size:10px;line-height:1.6;margin:6px 0}.resident-message small{font-size:8px;color:var(--muted)}
@media(min-width:1500px){.title-content{width:330px}.title-content h1>span{font-size:82px}.title-actions{width:295px}.title-tagline{margin-top:28px}.title-save{max-width:295px}}
@media(max-height:720px) and (min-width:761px){.title-seal{margin-bottom:16px}.title-content h1>span{font-size:61px}.title-content h1>strong{margin-top:18px;font-size:14px}.title-tagline{margin-top:18px;font-size:13px}.title-actions{margin-top:19px;gap:2px}.title-link{padding:10px 3px}.title-save{margin-top:14px}.pause-card{padding:24px}.pause-cap{margin-bottom:19px}.pause-card .hero-button{margin:20px 0 10px}.menu-row{padding:14px 0}.welcome-card{padding:24px}.welcome-card label{margin-top:12px}.welcome-card .hero-button{margin-top:18px}}
@media(max-width:1000px){.action-dock{left:312px;width:260px}.life-dock{width:278px}#drawer[data-surface=build]{left:312px;right:18px;bottom:76px}.title-location{right:18px;top:18px}.title-shade{background:linear-gradient(90deg,#f0f2e9f2,#f0f2e9c9 28%,#f0f2e910 60%,transparent)}:root[data-theme=dark] .title-shade{background:linear-gradient(90deg,#122c35f2,#122c35dd 28%,#122c3510 65%,transparent)}}
@media(max-width:760px){
 .title-content{left:26px;width:270px;top:48%}.title-content h1>span{font-size:65px}.title-content h1>strong{font-size:14px;letter-spacing:6px}.title-seal{margin-bottom:20px}.title-tagline{font-size:13px;margin-top:22px}.title-actions{width:255px;margin-top:22px}.title-location{top:13px;right:13px;padding:9px 11px}.title-location small{display:none}.title-location>span:not(.location-dot){font-size:7px}.title-corner{left:26px;bottom:18px}.title-corner span:last-child{display:none}.title-shade{background:linear-gradient(90deg,#eff2e8f5 0%,#eff2e8de 36%,#eff2e877 66%,#eff2e811)}:root[data-theme=dark] .title-shade{background:linear-gradient(90deg,#122c35f5,#122c35de 36%,#122c3566 66%,#122c3511)}
 .pause-card,.welcome-card{left:14px;top:14px;bottom:14px;max-height:calc(100vh - 28px);width:min(345px,calc(100vw - 28px));padding:25px}.pause-footer{padding-top:23px}
 #drawer[data-surface=settings],#drawer[data-surface=stories]{left:14px;right:14px;top:14px;bottom:14px;width:auto;max-height:none;border-radius:22px}#drawer[data-surface=settings] #drawer-body,#drawer[data-surface=stories] #drawer-body{max-height:calc(100vh - 123px)}body:has(#drawer[data-surface=settings]:not([hidden])) .pause-card,body:has(#drawer[data-surface=stories]:not([hidden])) .pause-card{visibility:hidden}
 .life-dock{left:9px;bottom:10px;width:256px;grid-template-columns:50px 1fr 30px;padding:10px}.avatar{width:50px;height:58px}.character-summary strong{font-size:12px}.needs-grid{gap:7px}.phone-launch{width:30px;height:38px}.action-dock{left:9px;bottom:140px;width:255px}.time-dock{right:10px;bottom:10px}.world-topbar{left:9px;top:9px}.world-clock{right:9px;top:9px}.mini-brand{min-width:76px}.mini-brand>strong{font-size:10px}.mini-brand>span{font-size:6px}.world-topbar .goal-chip{display:none}.world-topbar .audience{display:none}
 #context-menu.radial{width:320px;height:auto;min-height:170px;max-height:calc(100vh - 180px);overflow:auto;pointer-events:auto;background:var(--menu-fill);border:1px solid var(--menu-border);box-shadow:var(--menu-shadow);border-radius:22px;padding:15px}.radial:before{display:none}.radial .context-heading{position:relative;left:auto;top:auto;width:auto;min-height:0;padding:3px 22px 13px;border:0;border-radius:0;box-shadow:none;background:none;text-align:left}.radial .context-heading .context-close{top:0;left:auto;right:0;box-shadow:none}.radial .context-person{justify-content:flex-start}.radial .context-person>span:first-child{width:auto}.radial .context-actions{position:static;display:grid;grid-template-columns:1fr 1fr;gap:7px}.radial .action-option{position:static!important;width:auto;min-height:62px;border-radius:13px;box-shadow:none;border:1px solid var(--line);padding:9px;gap:6px;background:var(--accent-light)}.radial .action-option strong{font-size:9px}.radial .action-option small{font-size:7px}.radial .action-icon{width:20px;background:none}.radial .context-categories{position:static;justify-content:flex-start;padding:11px 0 0;max-height:80px}.radial .context-footer{position:static;width:auto;flex-direction:row;flex-wrap:wrap;padding-top:12px}.radial .context-footer button{font-size:9px;padding:7px;box-shadow:none;background:var(--accent-light)}.radial #more-interactions{position:static;transform:none;padding:9px 0 0;margin:0;font-size:9px}.conversation-card{width:290px;padding:14px}.conversation-card p{font-size:11px}
 #drawer{right:9px;bottom:62px;width:min(314px,calc(100vw - 18px))}#drawer[data-surface=build]{left:9px;right:9px;bottom:140px;width:auto;max-height:270px}#drawer[data-surface=monitor]{right:9px;bottom:63px;width:min(380px,calc(100vw - 18px))}#drawer[data-surface=recipe]{right:9px;bottom:63px;width:250px}.renovation-offer button{width:125px;font-size:10px}.renovation-offer h3{font-size:20px}#build-hint{bottom:290px}
}
:root[data-solid-ui=true] :is(.glass,.title-location,.conversation-card){background:var(--glass-strong);backdrop-filter:none}:root[data-reduce-motion=true] *{animation:none!important;transition:none!important}
.city-map{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;background:#c9dbce;border:1px solid #a7c3b8;border-radius:18px;overflow:hidden}.map-road{position:absolute;background:#f2ecdc}.map-road.horizontal{height:7px;left:0;right:0;top:calc(50% - 3px)}.map-road.vertical{width:7px;top:0;bottom:0;left:calc(50% - 3px)}.map-district{position:relative;z-index:1;min-height:87px;border-radius:12px;background:#4c8a7255;border:1px solid #ffffff66;padding:11px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#204c45}.map-district strong{font-size:10px;line-height:1.4}.map-district span{width:28px;height:28px;background:#f4f6e7c9;display:grid;place-items:center;border-radius:10px}.map-district :where(svg,.kinora-image-icon){width:16px;height:16px}.map-district:nth-of-type(2){background:#ddaf7055}.map-district:nth-of-type(3){background:#9ba1ce66}.map-district:nth-of-type(4){background:#7bad7877}:root[data-theme=dark] .city-map{background:#34594e;border-color:#5e8073}:root[data-theme=dark] .map-road{background:#607466}:root[data-theme=dark] .map-district{color:#e4f3df;border-color:#d9f6e733}:root[data-theme=dark] .map-district span{color:#234b44}
body:has(#loading:not([hidden])) :is(.world-topbar,.world-clock,.camera-controls,.life-dock,.action-dock,.time-dock,.controls-hint){visibility:hidden}
@media(min-width:761px){.radial .action-option{min-height:64px}.radial .action-option strong{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.radial .action-option small{font-size:9px}.radial .context-heading>strong{font-size:13px}.radial .context-categories button{font-size:10px}.radial .context-footer button{font-size:9px}}
#tournament{position:absolute;z-index:27;left:auto;top:auto;right:24px;bottom:91px;margin:0;width:325px;max-height:calc(100vh - 160px);overflow:auto;border:6px solid #1c3b42;border-radius:20px;box-shadow:0 16px 50px #092a3455;background:#14343a}.monitor-bezel{padding:20px;background:radial-gradient(ellipse at top,#3b777644,transparent),#14343a}.monitor-bezel h2{font-size:24px;letter-spacing:-.6px}.monitor-bezel p{font-size:10px;color:#b3d8ce}.monitor-bezel .eyebrow{font-size:7px;color:#b8dbc8}.timing-field{height:43px;margin:19px 0;background:#294b52}.timing-zone{background:#8bcca7}.tournament-stats{font-size:11px}.monitor-bezel .hero-button{background:#aed4aa;color:#183f3b}.monitor-bezel .text-button{font-size:10px;color:#bdd9cf}@media(max-width:760px){#tournament{right:9px;bottom:64px;width:300px;max-width:calc(100vw - 18px)}}
#follow-camera[aria-pressed=true]{background:var(--accent-light);color:var(--accent)}
/* Reset the old sticky footer's bottom constraint: an empty footer must not
   stretch across the category buttons and intercept their pointer events. */
.radial .context-footer{bottom:auto;height:auto;pointer-events:none}
.radial .context-footer button{pointer-events:auto}
.radial .context-footer:empty{display:none}
.city-map:has(.map-district:nth-of-type(5)){grid-template-columns:1fr 1fr 1fr;grid-template-areas:"wilds wilds wilds" "foundry commons market" "foundry lane market";gap:8px;padding:10px}
.city-map:has(.map-district:nth-of-type(5)) .map-district{min-height:86px;padding:10px 4px}
.city-map:has(.map-district:nth-of-type(5)) .district-juniper_lane{grid-area:lane}
.city-map:has(.map-district:nth-of-type(5)) .district-market_row{grid-area:market}
.city-map:has(.map-district:nth-of-type(5)) .district-foundry_quarter{grid-area:foundry}
.city-map:has(.map-district:nth-of-type(5)) .district-juniper_commons{grid-area:commons}
.city-map:has(.map-district:nth-of-type(5)) .map-district:nth-of-type(5){grid-area:wilds;min-height:77px;flex-direction:row;gap:12px;background:radial-gradient(ellipse at 91% 25%,#8bbbc6 0 19%,transparent 20%),linear-gradient(130deg,#7da68b,#a6bf92);border-color:#ffffff99;color:#214c45}
.city-map:has(.map-district:nth-of-type(5)) .map-district strong{font-size:9px}
.city-map:has(.map-district:nth-of-type(5)) .map-district:nth-of-type(5) strong{font-size:11px}
.city-map:has(.map-district:nth-of-type(5)) .map-road.horizontal{top:95px}
.city-map:has(.map-district:nth-of-type(5)) .map-road.vertical{width:calc(33% + 10px);background:transparent;border-left:4px solid #f2ecdc;border-right:4px solid #f2ecdc;left:calc(33% - 3px);top:95px}
:root[data-theme=dark] .city-map:has(.map-district:nth-of-type(5)) .map-road.vertical{border-color:#607466}
:root[data-theme=dark] .city-map:has(.map-district:nth-of-type(5)) .map-district:nth-of-type(5){background:radial-gradient(ellipse at 91% 25%,#467b89 0 19%,transparent 20%),linear-gradient(130deg,#2d5e4a,#557b59);color:#edf5df}

/* The Lane Remembers: a playful title, compact pause rail, honest startup. */
:root{--display-face:'Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif}
.title-content h1>span{font-family:var(--display-face);font-size:80px;font-weight:900;letter-spacing:-5.3px;line-height:.9;transform:rotate(-3deg);transform-origin:left bottom;color:#275c50;text-shadow:0 3px 0 #f8f4de,2px 0 0 #f8f4de,-2px 0 0 #f8f4de,0 6px 0 #1a514421}
.title-star{color:#d98d47;text-shadow:none;transform:rotate(13deg);font-size:31px;margin-left:4px}
.title-content h1>strong{display:inline-block;font-family:var(--display-face);font-size:13px;letter-spacing:4.4px;font-weight:850;line-height:1;padding:9px 11px 9px 15px;border:2px solid #fbf7e9;background:#ebbd75;color:#24584e;border-radius:7px 14px 10px 7px;transform:rotate(-2deg);margin:22px 0 0;box-shadow:0 3px 0 #25574922}
.title-seal{margin-bottom:20px}.title-seal span{letter-spacing:2px;font-size:9px}
.title-tagline{font-size:14px;line-height:1.6;margin-top:20px;font-weight:550;color:#476b61}
.title-actions{margin-top:23px}.title-actions .hero-button{border-radius:14px 14px 14px 5px;background:#286f5e;box-shadow:0 4px 0 #194c40,0 10px 24px #194b4720}
.title-actions .hero-button:hover{background:#35836e;transform:translateY(-1px)}
.title-link{border:0;border-radius:10px;padding:11px 10px;font-weight:650}.title-link>:where(svg,.kinora-image-icon){color:var(--accent);opacity:1}
.title-save{margin-top:15px}.title-save small{font-size:10px}
.title-shade{background:linear-gradient(90deg,#f2f4e7f5 0%,#f2f4e7eb 15%,#f2f4e7b8 25%,#f2f4e728 40%,transparent 53%)}
:root[data-theme=dark] .title-content h1>span{color:#e4f1d4;text-shadow:0 3px 0 #214e45,2px 0 0 #214e45,-2px 0 0 #214e45,0 6px 0 #0a252a55}
:root[data-theme=dark] .title-tagline{color:#bdd5c7}:root[data-theme=dark] .title-content h1>strong{background:#dfb176;color:#234c43;border-color:#295747}
:root[data-theme=dark] .title-actions .hero-button{background:#b2d5ab;color:#163e34;border-color:#dcf0c9;box-shadow:0 4px 0 #6d9577,0 10px 24px #071f2433}
:root[data-theme=dark] .title-actions .hero-button small{color:#315c48}
:root[data-theme=dark] .title-actions .hero-button:hover{background:#c2e3ba}
:root[data-theme=dark] .title-shade{background:linear-gradient(90deg,#142f32f5 0%,#142f32ed 16%,#142f32b8 27%,#142f3228 45%,transparent 58%)}
.pause-card{top:50%;bottom:auto;transform:translateY(-50%);max-height:calc(100vh - 52px);padding:26px;border-radius:25px 25px 25px 8px}
.pause-card h2,.welcome-card h2,#loading h2,#error h2{font-family:var(--display-face);font-weight:800;letter-spacing:-1.4px}
.pause-card h2{font-size:32px}.pause-cap{margin-bottom:23px}.pause-footer{margin-top:23px;padding-top:16px;border-top:1px solid var(--line)}.menu-row{padding:15px 5px;border-radius:9px}
#loading{background:radial-gradient(ellipse at 65% 15%,#d8e9be,transparent 62%),#f0f2e6;color:#27584f}
#loading p{color:#4f7268}#loading h2{font-size:32px}.loading-emblem{font-family:var(--display-face);font-size:52px;font-weight:900;background:#2b735f;color:#f5f4d8}
.loading-track{width:225px;height:5px;background:#bdd4be;border-radius:6px;margin-top:23px}
#loading-progress{width:4%;animation:none;transform:none;background:#367d64;transition:width .25s ease}
#loading-stage{font-size:8px;letter-spacing:1.7px;color:#527366;margin-top:16px;font-weight:750}
:root[data-theme=dark] #loading{background:radial-gradient(ellipse at 65% 15%,#315d48,transparent 65%),#173638;color:#e5f2d5}:root[data-theme=dark] #loading p,:root[data-theme=dark] #loading-stage{color:#bbd8c4}:root[data-theme=dark] .loading-track{background:#315b4f}:root[data-theme=dark] #loading-progress{background:#a8d7a4}
#game:has(#error:not([hidden])){background:radial-gradient(ellipse at 65% 15%,#cae0bc,transparent 65%),#eaf0e2}
:root[data-theme=dark] #game:has(#error:not([hidden])){background:radial-gradient(ellipse at 65% 15%,#355946,transparent 65%),#173438}
body:has(#error:not([hidden])) :is(#world,#labels,.world-topbar,.world-clock,.camera-controls,.life-dock,.action-dock,.time-dock,.controls-hint,#story-beacon,#first-job-beacon,#route-marker,#conversation){visibility:hidden;pointer-events:none}
#error{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(470px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);overflow:auto;padding:30px;border-radius:25px;align-items:stretch;text-align:left;border:1px solid var(--menu-border);box-shadow:0 18px 90px #173c3533}
#error h2{font-size:29px;max-width:350px;margin-top:12px}#error p{font-size:12px;margin:12px 0}#error .hero-button{width:100%;max-width:none;margin:21px 0 10px}#error .secondary-button{width:100%}
#error-stage{font-size:9px;line-height:1.6;color:var(--muted)}.recovery-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.recovery-actions .text-button{font-size:10px;padding:7px 0;text-decoration:underline;text-underline-offset:3px}
.startup-details{width:100%;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin-top:8px}.startup-details summary{cursor:pointer;font-weight:650}.startup-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:9px;line-height:1.6;max-height:190px;overflow:auto;background:var(--accent-light);border-radius:9px;padding:11px;color:var(--ink);user-select:text}
.follow-through{border-left:3px solid var(--accent);background:var(--accent-light)}.follow-through .eyebrow{line-height:1.6}.follow-through.completed{border-left-color:var(--mint);opacity:.88}
@media(min-width:1500px){.title-content h1>span{font-size:88px}}
@media(max-height:720px) and (min-width:761px){.title-content h1>span{font-size:65px}.title-content h1>strong{font-size:11px;margin-top:18px}.title-seal{margin-bottom:15px}.title-tagline{font-size:12px;margin-top:16px}.title-actions{margin-top:18px}.title-link{padding:9px}.title-save{margin-top:12px}.pause-card{padding:23px}.pause-cap{margin-bottom:18px}.pause-card h2{font-size:29px}.pause-footer{margin-top:17px;padding-top:14px}}
@media(max-width:760px){.title-content h1>span{font-size:69px;letter-spacing:-4.6px}.title-content h1>strong{font-size:11px;letter-spacing:4px}.title-tagline{font-size:13px}.title-shade{background:linear-gradient(90deg,#f0f3e8f8,#f0f3e8e6 34%,#f0f3e878 65%,#f0f3e811)}:root[data-theme=dark] .title-shade{background:linear-gradient(90deg,#142f32f8,#142f32e6 34%,#142f3278 65%,#142f3211)}.pause-card{top:50%;bottom:auto;max-height:calc(100vh - 28px)}.pause-footer{margin-top:21px}.title-location{background:var(--glass-strong)}}
