/* v1.6 mobile app shell: a real viewport, not a long document. */
#compactHud{display:none}.lit-window{opacity:var(--window-opacity,0)}
#projectDialog{width:min(94vw,780px);max-width:780px;max-height:92dvh;border:0;border-radius:24px;background:#faf7ec;color:#284b43;padding:20px;overflow:auto}#projectDialog::backdrop{background:#173a45bb;backdrop-filter:blur(6px)}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head button{width:44px;height:44px;border:0;border-radius:50%;background:#e4eadc}.sheet-head h2{margin:5px 0;font-size:24px}.sheet-head small{font-size:10px;letter-spacing:2px}
#projectDialog>p{font-size:13px;line-height:1.5;color:#61756b}#projectChoices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.project-choice{display:flex;flex-direction:column;align-items:stretch;gap:6px;border:1px solid #d7dfcf;background:#f2f2e5;border-radius:17px;padding:12px;text-align:left;color:#2c5046;min-width:0}.project-choice.need-2{background:#e3f1dd;border:2px solid #529775}.project-choice.need-1{background:#fbefcc;border-color:#d6b566}.project-choice small{font-size:12px;min-height:30px;line-height:1.3}.project-choice em{font-size:11px;font-style:normal;font-weight:700}.project-choice:disabled{opacity:.5}.project-art{height:100px}.project-art svg{height:100%;width:100%}
#goalsHub{color:#284b43;padding:18px;max-width:800px;margin:auto}#goalsHub[hidden]{display:none!important}#goalsHub header{display:block;padding:0;border:0}#goalsHub h2{font-size:26px;margin:6px 0}#goalsHub header p{font-size:14px;line-height:1.5}.goal-group{background:#fffaf0;border:1px solid #dbe2d0;border-radius:18px;margin:12px 0;overflow:hidden}.goal-group summary{padding:17px;font-weight:800;cursor:pointer}.goal-group-content{padding:0 12px 12px}.goal-group-content>section,.goal-group-content>div{box-shadow:none!important;margin:0!important;max-width:100%!important}
/* Night light is on silhouettes, never on the whole neighbourhood parent. */
.city .map .map-world .neighbourhood{filter:none!important}
.city .map .map-world .plot.occupied svg{filter:drop-shadow(1px 0 0 rgba(255,211,115,var(--window-opacity,0))) drop-shadow(-1px 0 0 rgba(255,211,115,var(--window-opacity,0))) drop-shadow(0 1px 0 rgba(255,211,115,var(--window-opacity,0))) drop-shadow(0 0 8px rgba(255,190,90,var(--window-opacity,0)))!important}
.city .map{background:linear-gradient(rgba(21,39,72,var(--night-opacity,0)),rgba(44,72,83,var(--night-opacity,0))),#bdd7b8!important}
@media(max-width:700px){
 html,body{height:100%;overflow:hidden!important;overscroll-behavior:none}body{--hud-height:100px;--nav-height:64px}.app{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}.app>header,.desktop-game-toolbar,.game-mobile-status,.resource-bar{display:none!important}
 #compactHud{display:block;position:fixed;inset:0 0 auto;z-index:300;height:calc(var(--hud-height) + env(safe-area-inset-top));padding:calc(5px + env(safe-area-inset-top)) 10px 7px;background:#faf8eef5;box-shadow:0 2px 12px #244f3820;backdrop-filter:blur(16px)}
 .hud-world{display:flex;justify-content:space-between;align-items:center;height:36px}.hud-world button{border:0;background:none;color:#28594d;font-weight:800;font-size:14px;min-height:36px}.hud-world #cloudOpen{width:40px;background:#e5eedf;border-radius:12px;font-size:21px}
 #hudValues{display:flex;align-content:center;justify-content:space-between;gap:4px;flex-wrap:wrap;padding-top:5px}#hudValues span{display:flex;gap:4px;align-items:center;justify-content:center;background:#e9eedf;border-radius:8px;padding:4px 6px;min-width:50px;font-size:12px;flex:1}#hudValues span i{font-style:normal}html[data-world="craft"] body{--hud-height:124px}
 .game-mobile-nav{height:calc(var(--nav-height) + env(safe-area-inset-bottom))!important;padding:5px 6px calc(5px + env(safe-area-inset-bottom))!important;inset:auto 0 0!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;border-radius:0!important;z-index:300!important}.game-mobile-nav button{font-size:11px!important;min-height:48px!important;padding:5px!important}.game-mobile-nav .nav-icon{font-size:22px!important}
 body[data-mobile-tab="city"] .city.card{display:flex!important;flex-direction:column;position:fixed!important;inset:calc(var(--hud-height) + env(safe-area-inset-top)) 0 calc(var(--nav-height) + env(safe-area-inset-bottom))!important;width:100vw!important;height:auto!important;max-height:none!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-shadow:none!important}
 body[data-mobile-tab="city"] .city.card>.panel-heading,body[data-mobile-tab="city"] .city.card>.city-note,body[data-mobile-tab="city"] .city.card>.map-hint,.mobile-jump-to-build,.world-toolbar,.city.card>.city-actions{display:none!important}
 body[data-mobile-tab="city"] .city.card>.map{order:0;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
 body[data-mobile-tab="city"] .city.card>.map-tools{order:1;flex:0 0 52px!important;display:flex!important;justify-content:center;gap:6px;margin:0!important;padding:4px 8px!important;background:#faf8ee;overflow-x:auto;white-space:nowrap}
 .map-tools>button{display:none!important}.map-tools #zoomIn,.map-tools #zoomOut,.map-tools #mapCenter,.map-tools #towerShortcut,.map-tools #worldChallenge,.map-tools .guide-v14-help{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px!important;height:44px!important;padding:6px 10px!important;font-size:13px!important}.daynight-indicator{display:none!important}
 body[data-mobile-tab="goals"] .app{display:none!important}#goalsHub{position:fixed;inset:calc(var(--hud-height) + env(safe-area-inset-top)) 0 calc(var(--nav-height) + env(safe-area-inset-bottom));overflow-y:auto;padding:16px;overscroll-behavior:contain;width:100%;max-width:none}
 #goalsHub .city-dashboard,#goalsHub .next-goal,#goalsHub .craft-quests,#goalsHub .craft-economy,#goalsHub .city-progression,#goalsHub .districts-panel,#goalsHub .save-line{display:block!important;width:100%!important;position:static!important}#goalsHub .city-dashboard{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}#goalsHub .city-dashboard .goal{grid-column:1/-1}#goalsHub .city-dashboard>.need{grid-column:1/-1}
 #projectDialog{padding:14px;width:96vw;max-height:94dvh}#projectChoices{grid-template-columns:1fr 1fr}.sheet-head h2{font-size:20px}.project-choice{padding:10px}.project-art{height:88px}
 body[data-mobile-tab="build"] #builder{position:fixed!important;inset:calc(var(--hud-height) + env(safe-area-inset-top)) 0 calc(var(--nav-height) + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;width:100%!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;z-index:100;background:#faf6e8}
 body[data-mobile-tab="build"] #builder .scene{flex:1!important;min-height:0!important;height:0!important;max-height:none!important}body[data-mobile-tab="build"] #builder .scene canvas{width:100%!important;height:100%!important;object-fit:contain}body[data-mobile-tab="build"] #builder .panel-heading{padding:6px 12px!important}body[data-mobile-tab="build"] #builder .swing-option,body[data-mobile-tab="build"] #builder .tempo,body[data-mobile-tab="build"] #builder #hint{display:none!important}
 html[data-world="craft"] dialog.craft-dialog[data-state="building"][open]{inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}
 html[data-world="craft"] .craft-dialog[data-state="building"] .craft-content{display:flex;flex-direction:column;overflow:hidden}html[data-world="craft"] .craft-dialog[data-state="building"] .craft-view{flex:1;min-height:0;display:flex;flex-direction:column}html[data-world="craft"] .craft-dialog[data-state="building"] #craftScene{height:0!important;min-height:0;flex:1;max-height:none!important}html[data-world="craft"] .craft-dialog[data-state="building"] #craftHeading{margin:4px;font-size:18px}
}
