:root{--ui-paper:#f7f2e9;--ui-ink:#514057;--ui-muted:#978a98;--ui-line:#d9d0d4;--ui-purple:#6650a2;--ui-coral:#df8a6e;--ui-green:#709375}
html,body,#app{width:100%;height:100dvh;max-width:none;margin:0;overflow:hidden;font-family:'Trebuchet MS','Segoe UI',sans-serif;color:var(--ui-ink)}
main{position:fixed;inset:0;display:block;height:100dvh}#world{position:absolute;inset:0;width:100%;height:100%!important;flex:none}#scene{position:absolute;inset:0}.topbar,#sidebar,footer{display:none!important}
.world-top,.village-tools,.world-bottom,.mode-switch,#camera-hint,#minimap,.atlas-button,.bottom-left,#graphics-meter,#labels{display:none!important}#game-ui{position:absolute;inset:0;z-index:5;pointer-events:none}#game-ui>div,#game-ui>button{pointer-events:auto}.ui-icon{height:25px;width:25px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle}button{touch-action:manipulation}#game-ui button{font-family:inherit}#game-ui button:focus-visible{outline:3px solid #c8b0ee;outline-offset:4px}#game-ui button:disabled{opacity:.38;cursor:default}
.hud{position:absolute;top:max(23px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);height:92px;width:516px;display:flex;align-items:flex-start;filter:drop-shadow(0 3px 2px #213e3023);z-index:3}
.hud-cells{display:grid;grid-template-columns:repeat(3,112px);grid-template-rows:37px 37px;gap:2px;padding:9px 4px 9px 12px;margin-left:76px;border-radius:10px;background:#eee8e3dc;box-shadow:inset 0 -3px #d5c9c9}
.hud-cells button{display:flex;align-items:center;justify-content:center;gap:13px;border:1px solid #fff8;background:var(--ui-paper);border-radius:5px;color:var(--ui-ink);padding:4px 13px;min-width:0}.hud-cells b{font-size:13px;font-weight:600;white-space:nowrap;min-width:30px}.hud-cells .ui-icon{width:24px;height:24px}.hud-cells button:hover{background:#fffdf6}
.day-medallion{position:absolute;width:83px;height:77px;background:var(--ui-paper);border:5px solid var(--ui-paper);border-radius:50% 50% 10px 10px;left:8px;top:-12px;box-shadow:0 2px #d7cecf;text-align:center;overflow:hidden}.day-orbit{position:absolute;top:1px;left:1px;right:1px;height:36px;border-radius:40px 40px 0 0;background:conic-gradient(from 270deg,#9b8acb 0deg,#8c79c4 110deg,#6758b2 180deg);display:block}.day-orbit i{display:block;width:10px;height:10px;border-radius:50%;background:#f7f0d5;position:absolute;top:16px;left:17px;box-shadow:3px -2px #8072bc}.day-medallion b{font-size:12px;position:relative;display:block;top:38px}.day-medallion small{font-size:6px;position:absolute;bottom:0;left:0;right:0;letter-spacing:1.2px;color:var(--ui-muted)}
.happiness-medallion{position:absolute;top:-11px;left:425px;width:83px;height:83px;border:6px solid var(--ui-paper);background:var(--ui-paper);border-radius:50%;color:var(--ui-ink);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 2px #d7cecf}.happiness-medallion>span{position:absolute;inset:0;border:0;border-radius:50%;background:conic-gradient(#dc866e var(--happiness,85%),#e0d3cf 0);mask:radial-gradient(transparent 48%,#000 50%)}.happiness-medallion .ui-icon{width:36px;height:36px}.happiness-medallion small{font-size:8px;margin-top:1px}.time-controls{display:flex;position:absolute;left:8px;bottom:-12px;gap:3px}.time-controls button{position:relative;background:var(--ui-paper);border:0;color:var(--ui-ink);height:33px;width:39px;border-radius:5px;box-shadow:0 3px #d7cecf}.time-controls button:first-child{background:#bf927e;color:white}.time-controls .ui-icon{width:20px;height:20px}.time-controls small{font-size:7px;position:absolute;bottom:2px;right:2px}
.island-caption{position:absolute;top:26px;left:28px;pointer-events:none!important;color:#fff8e7;text-shadow:0 1px 7px #24463366}.island-caption>span{display:block;font-family:Georgia,serif;font-size:25px;line-height:1.2}.island-caption small{display:block;letter-spacing:2px;font-size:8px;margin-top:6px;text-transform:uppercase;opacity:.8}.view-tools{position:absolute;right:24px;top:26px;display:flex;gap:6px}.view-tools button{background:#f8f3e9e8;border:0;border-radius:50%;color:var(--ui-ink);width:35px;height:35px;box-shadow:0 2px #d2c8c5}.view-tools .ui-icon{width:19px;height:19px}
.dock{position:absolute;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:flex-end;gap:3px;background:#eee9e1;border:5px solid var(--ui-paper);border-radius:15px 15px 12px 12px;padding:0 5px;box-shadow:0 3px #cec4c7,0 6px 18px #17342915;height:61px;z-index:4}.dock button{position:relative;width:55px;height:51px;border:0;border-radius:6px;background:var(--ui-paper);color:var(--ui-ink);padding:3px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.dock .ui-icon{width:27px;height:27px}.dock small{font-size:7px;letter-spacing:.1px}.dock .build-dock{width:76px;height:76px;border-radius:50% 50% 7px 7px;border:5px solid var(--ui-paper);margin:-25px 1px -1px;background:var(--ui-paper)}.dock .build-dock .ui-icon{width:37px;height:37px}.dock button.selected{background:#e6dce9}.dock button:hover{color:var(--ui-purple)}.dock i{position:absolute;right:8px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--ui-coral);border:2px solid var(--ui-paper)}
.mode-button{position:absolute;left:27px;bottom:27px;background:var(--ui-paper);border:4px solid var(--ui-paper);border-radius:50%;width:56px;height:56px;color:var(--ui-ink);box-shadow:0 3px #cec4c7;display:grid;place-items:center}.mode-button>.ui-icon{width:30px;height:30px}.mode-button small{position:absolute;left:66px;white-space:nowrap;color:white;text-shadow:0 1px 4px #1a4135;font-size:9px}.world-hint{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);color:#f9f5e3c9;font-size:8px;white-space:nowrap;text-shadow:0 1px 2px #1a4039;pointer-events:none!important}.game-sheet{position:absolute;bottom:109px;left:50%;transform:translateX(-50%);width:min(510px,calc(100vw - 40px));max-height:calc(100dvh - 240px);overflow-y:auto;background:var(--ui-paper);border:5px solid #fff9f0;border-radius:19px 17px 16px 17px;padding:19px 23px;box-shadow:0 4px #cec4c7,0 14px 44px #20372c23;color:var(--ui-ink);scrollbar-width:thin;z-index:6}.game-sheet.build{width:min(900px,calc(100vw - 40px));padding-bottom:10px}.game-sheet.place{width:min(500px,calc(100vw - 40px))}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.sheet-heading small{font-size:8px;letter-spacing:1.6px;color:var(--ui-muted);display:block;margin-bottom:5px}.sheet-heading h2{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.1;margin:0;color:var(--ui-ink)}.round-close{border:0;background:#e7dfdf;color:#8b7d8b;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;padding:5px;flex-shrink:0}.round-close .ui-icon{width:17px;height:17px}.sheet-note,.sheet-story{font-size:11px;line-height:1.7;color:#8f8390;margin:11px 0}.sheet-story{color:#7a6e7d;font-size:12px;margin-bottom:17px}.build-catalog{display:flex;gap:5px;overflow-x:auto;padding:0 0 5px;scrollbar-width:thin}.building-tile{border:1px solid transparent;background:transparent;color:var(--ui-ink);border-radius:9px;min-width:108px;flex:1;padding:0 5px 10px;display:flex;flex-direction:column;align-items:center}.building-tile img{width:100px;height:90px;object-fit:contain;transition:transform .15s}.building-tile b{font-weight:600;font-size:10px;white-space:nowrap}.building-tile small{font-size:8px;color:var(--ui-muted);margin-top:5px}.building-tile:hover{background:#ede6e8;border-color:#e3d8e3}.building-tile:hover img{transform:translateY(-4px)}.objective-list{display:flex;flex-direction:column;gap:1px}.objective{display:flex;align-items:center;gap:11px;background:none;color:var(--ui-ink);border:0;border-bottom:1px solid #e1d9dc;padding:12px 0;text-align:left;font-size:11px;width:100%}.objective>span:nth-child(2){flex:1}.objective b{font-size:10px;font-weight:600;color:#9b8d9f;white-space:nowrap}.objective-check{height:20px;width:20px;border:2px solid #c5b9c8;border-radius:50%;display:grid;place-items:center;font-size:13px;flex-shrink:0}.objective.done{color:#80947c}.objective.done .objective-check{background:#8ea486;border-color:#8ea486;color:#fff}.mission-summary{font-size:10px;color:var(--ui-muted);line-height:1.6;margin:16px 0}.action-button{background:var(--ui-purple);color:#fff8f0;border:0;border-radius:8px;width:100%;padding:12px 14px;display:flex;align-items:center;justify-content:center;gap:11px;font-size:12px;box-shadow:0 3px #514180}.action-button .ui-icon{width:20px;height:20px}.text-button{display:block;color:#958497;background:none;border:0;border-bottom:1px solid #d5c8d7;padding:5px 0;font-size:10px;margin:13px auto 0}.people-summary{display:flex;justify-content:space-around;gap:12px;padding:8px 0 18px;border-bottom:1px solid #e1d9dc}.people-summary span{text-align:center}.people-summary .ui-icon{display:block;margin:0 auto 6px;width:30px;height:30px}.people-summary b{font-size:18px;font-weight:400}.people-summary small{display:block;font-size:9px;margin-top:4px;color:var(--ui-muted)}.assignment-list{margin:10px 0}.assignment-row{display:flex;align-items:center;gap:8px;font-size:11px;padding:5px 0;border-bottom:1px solid #e1d9dc}.assignment-row img{width:53px;height:47px;object-fit:contain}.assignment-row>span{flex:1}.assignment-row button{width:28px;height:28px;background:#e9e0e8;border:0;border-radius:5px;color:var(--ui-ink);font-size:18px}.assignment-row b{font-weight:400;min-width:18px;text-align:center}.assignment-row.compact{margin:10px 0 16px;padding:10px 0}.crew-actions{display:flex;gap:5px;margin-top:16px}.crew-actions button{display:flex;align-items:center;gap:6px;background:#ebe4e8;border:0;border-radius:7px;flex:1;padding:8px;color:var(--ui-ink)}.crew-actions .ui-icon{width:20px}.crew-actions span{font-size:9px;text-align:left;flex:1}.crew-actions small{display:block;font-size:7px;color:var(--ui-muted);margin-top:4px}.crew-actions b{font-size:16px;font-weight:400}.stock-inventory{display:flex;justify-content:space-around;gap:15px;padding:9px 0 16px}.stock-inventory>div{display:flex;align-items:center;flex-direction:column;gap:7px}.stock-inventory .ui-icon{width:30px;height:30px}.stock-inventory b{font-size:17px;font-weight:400}.stock-inventory small{font-size:9px;color:var(--ui-muted)}.sheet-divider{height:1px;background:#dfd5dc;margin:4px 0 16px}.game-sheet h3{font-size:13px;font-weight:500;margin:13px 0 0}.gather-actions{display:flex;gap:7px}.gather-actions button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;border:0;border-radius:6px;padding:10px;background:#e7dfe9;color:var(--ui-ink);font-size:11px}.trade-action{display:flex;align-items:center;gap:10px;background:none;width:100%;border:0;border-bottom:1px solid #dfd5dc;color:var(--ui-ink);padding:16px 0;font-size:11px}.trade-action small{margin-left:auto;color:var(--ui-muted);font-size:9px}#new-jobs{display:flex;gap:10px;margin:11px 0}#new-jobs>span{display:flex;align-items:center;font-size:9px;gap:7px;background:#e9e2e6;border-radius:4px;padding:7px}#new-jobs .ui-icon{width:16px;height:16px}.settings-actions{display:flex;gap:10px;margin:20px 0}.settings-actions button{flex:1;background:#e8dfea;border:0;border-radius:8px;padding:12px 5px;font-size:10px;display:flex;align-items:center;flex-direction:column;gap:7px;color:var(--ui-ink)}.tool-upgrades{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.tool-upgrades button{display:flex;align-items:center;justify-content:space-between;border:1px solid #dfd5df;border-radius:7px;padding:10px;background:none;color:var(--ui-ink);text-align:left;font-size:11px}.tool-upgrades small{display:block;margin-top:4px;font-size:9px;color:var(--ui-muted)}.tool-upgrades b{font-size:9px;font-weight:400;color:var(--ui-muted)}.building-detail{display:flex;align-items:center;gap:17px}.building-detail>img{width:128px;height:130px;object-fit:contain}.building-detail p{font-size:11px;line-height:1.65;color:#8a7d8e;margin:0 0 10px}.building-detail .build-problem{font-size:10px;margin-top:12px}.inline-costs{display:flex;gap:12px;flex-wrap:wrap}.inline-costs .cost{display:flex;align-items:center;gap:4px;font-size:12px}.cost .ui-icon{width:18px;height:18px}.cost.missing{color:#bf7667}.placement-summary{display:flex;align-items:center;gap:15px}.placement-summary img{width:97px;height:85px;object-fit:contain}.placement-summary p{font-size:12px;line-height:1.7;flex:1}.placement-summary .text-button{display:none}#placement-hint{position:absolute;left:50%;top:147px;transform:translateX(-50%);background:#fbf4e5e6;padding:10px 20px;border-radius:20px;color:#6e6074;font-size:11px;pointer-events:none!important}
#ui-travel-ready{position:absolute;right:26px;bottom:30px;display:flex;align-items:center;gap:10px;background:var(--ui-paper);color:var(--ui-purple);border:4px solid #fff9f0;padding:10px 14px;border-radius:25px;font-size:11px;box-shadow:0 3px #d4c7d6}#ui-travel-ready .ui-icon{width:20px;height:20px}#ui-bag{position:absolute;left:143px;bottom:28px;display:flex;align-items:center;gap:10px;background:var(--ui-paper);border:4px solid #fff9f0;border-radius:8px;color:var(--ui-ink);padding:9px 11px;font-size:11px;box-shadow:0 3px #d4c7d6}#ui-bag>.ui-icon{width:19px;height:19px}#ui-bag button{border:0;border-left:1px solid #ddd2dd;background:none;color:var(--ui-purple);padding-left:10px;margin-left:4px;font-size:9px}#ui-bag button .ui-icon{width:15px;height:15px}body[data-mode=character] .mode-button{bottom:142px;left:26px}body[data-mode=character] .mode-button small{display:none}body[data-mode=character] #joystick{display:block!important;position:absolute;bottom:25px;left:24px;width:94px;height:94px;border:2px solid #fbf2dd66;background:#fbf2dd1a;z-index:7}body[data-mode=character] #stick{left:27px;top:27px;width:36px;height:36px;background:#fbf2dd99}
#toast{top:auto!important;bottom:125px;left:50%;transform:translate(-50%,15px);background:#f7f0e8f2!important;color:var(--ui-ink)!important;border-radius:20px!important;border:3px solid #fff7ed;box-shadow:0 3px #d1c7d0;font-size:11px;max-width:calc(100vw - 55px);text-align:center;z-index:20;pointer-events:none}#toast.show{transform:translate(-50%,0)}#modal{color:var(--ui-ink);background:var(--ui-paper);border-radius:18px;border:5px solid #fff9f0;box-shadow:0 4px #d1c7d0,0 20px 60px #193b3055}#modal h2{color:var(--ui-ink)}#modal .primary{background:var(--ui-purple)}#loading{z-index:40;background:#70927c;color:#fff6de}#loading h1{color:#fff5dd}#loading p{color:#e4ead7}#pause-screen{z-index:35;background:#243d3d55;backdrop-filter:blur(3px)}
@media(max-width:1050px){.island-caption{top:125px;left:22px}.island-caption>span{font-size:21px}.island-caption small{font-size:7px}.view-tools{top:130px;right:20px}.hud{top:20px}#ui-bag{left:137px;bottom:111px}#ui-travel-ready{bottom:113px;right:20px;font-size:10px}.mode-button small{display:none}}
@media(max-width:650px){.hud{top:21px;width:352px;height:82px;transform:translateX(-50%) scale(.96);transform-origin:top center}.hud-cells{margin-left:57px;padding:8px 3px 8px 9px;grid-template-columns:repeat(3,75px);grid-template-rows:30px 30px}.hud-cells button{gap:5px;padding:4px 3px}.hud-cells b{font-size:10px;min-width:26px}.hud-cells .ui-icon{width:21px;height:21px}.day-medallion{width:67px;height:65px;left:1px;top:-9px;border-width:4px}.day-orbit{height:29px}.day-medallion b{top:31px;font-size:11px}.day-medallion small{font-size:5px}.happiness-medallion{left:286px;top:-8px;width:64px;height:64px;border-width:5px}.happiness-medallion .ui-icon{width:28px;height:28px}.happiness-medallion small{font-size:6px}.time-controls{bottom:-4px;left:1px;gap:2px}.time-controls button{height:25px;width:31px}.time-controls .ui-icon{width:15px;height:15px}.island-caption{top:118px;left:18px}.island-caption>span{font-size:20px}.view-tools{top:118px;right:16px;gap:5px}.view-tools button{width:29px;height:29px}.view-tools .ui-icon{width:16px;height:16px}.dock{bottom:max(20px,env(safe-area-inset-bottom));height:55px;gap:2px;padding:0 2px}.dock button{width:48px;height:45px}.dock .ui-icon{width:24px;height:24px}.dock small{font-size:6px}.dock .build-dock{width:67px;height:68px}.dock .build-dock .ui-icon{width:32px;height:32px}.mode-button{left:18px;bottom:107px;width:43px;height:43px;border-width:3px}.mode-button .ui-icon{width:25px;height:25px}.game-sheet{bottom:102px;width:calc(100vw - 24px);max-height:calc(100dvh - 265px);padding:15px 15px;border-width:4px}.game-sheet.build{width:calc(100vw - 24px)}.sheet-heading h2{font-size:24px}.sheet-heading small{font-size:7px}.sheet-heading{margin-bottom:10px}.sheet-story{font-size:11px}.building-tile{min-width:92px}.building-tile img{width:88px;height:75px}.building-tile b{font-size:9px}.building-detail{gap:7px}.building-detail>img{width:92px;height:105px}.building-detail p{font-size:10px}.inline-costs{gap:9px}.inline-costs .cost{font-size:11px}.stock-inventory{gap:7px}.stock-inventory .ui-icon{width:25px;height:25px}.stock-inventory b{font-size:15px}.stock-inventory small{font-size:8px}.crew-actions{gap:4px}.crew-actions button{padding:6px}.crew-actions span{font-size:8px}.crew-actions .ui-icon{width:16px;height:16px}.people-summary small{font-size:8px}.mode-button small{display:none}.world-hint{bottom:4px;font-size:6px}.settings-actions{gap:5px}.settings-actions button{font-size:9px;padding:10px 3px}.tool-upgrades button{font-size:10px}.tool-upgrades b{font-size:8px}#ui-travel-ready{bottom:111px;right:15px;border-width:3px;padding:8px 10px;font-size:9px}#ui-travel-ready .ui-icon{width:15px;height:15px}body[data-mode=character] .mode-button{left:18px;bottom:206px}#ui-bag{left:50%;bottom:115px;transform:translateX(-50%);white-space:nowrap;font-size:10px;padding:7px 9px;gap:6px}body[data-mode=character] #joystick{bottom:112px;left:18px;width:79px;height:79px}body[data-mode=character] #stick{left:20px;top:20px}body[data-mode=character] #ui-bag{left:auto;right:15px;transform:none}body[data-mode=character] #ui-travel-ready{bottom:171px}#toast{bottom:171px;font-size:10px}#placement-hint{top:168px;font-size:10px;padding:8px 13px}.game-sheet .sheet-note{font-size:10px}.action-button{font-size:11px}}
@media(max-height:550px) and (orientation:landscape){.hud{top:13px;transform:translateX(-50%) scale(.76);transform-origin:top center}.island-caption{top:20px;left:20px}.island-caption>span{font-size:20px}.view-tools{top:23px;right:20px}.view-tools button{width:29px;height:29px}.dock{bottom:14px;transform:translateX(-50%) scale(.88);transform-origin:bottom center}.game-sheet{bottom:93px;max-height:calc(100dvh - 190px);padding:13px 20px}.game-sheet.build{max-height:calc(100dvh - 175px)}.sheet-heading{margin-bottom:7px}.sheet-heading h2{font-size:23px}.building-tile img{height:65px;width:88px}.building-tile{min-width:94px}.sheet-note{margin:6px 0;font-size:9px}.mode-button{left:20px;bottom:20px;width:43px;height:43px}.sheet-story{font-size:10px}.objective{padding:8px 0}.game-sheet.missions{width:520px}.game-sheet.people,.game-sheet.stock{width:540px}.people-summary{padding:4px 0 10px}.people-summary .ui-icon{height:23px;width:23px}.people-summary b{font-size:14px}.stock-inventory{padding:2px 0 9px}.stock-inventory .ui-icon{width:22px;height:22px}.stock-inventory b{font-size:14px}#ui-travel-ready{bottom:22px}.mode-button small{display:none}body[data-mode=character] .mode-button{bottom:120px}body[data-mode=character] #joystick{bottom:15px;left:18px;width:79px;height:79px}body[data-mode=character] #stick{left:20px;top:20px}#ui-bag{left:115px;bottom:24px}.world-hint{display:none}#toast{bottom:105px}#placement-hint{top:107px}}

.compact-atlas{display:grid;gap:7px;margin:17px 0}.compact-atlas button{display:flex;align-items:center;gap:17px;border:0;border-bottom:1px solid #e1d8df;padding:10px 0;background:none;color:var(--ui-ink);text-align:left}.compact-atlas button>span{background:var(--terrain);border-radius:46% 54% 40% 60%;width:57px;height:40px;display:grid;place-items:center;color:#fff8e7;font-size:19px;box-shadow:0 3px #c8c9b2}.compact-atlas button>div{flex:1}.compact-atlas b{font-size:13px;font-weight:400}.compact-atlas small{display:block;font-size:9px;color:var(--ui-muted);margin-top:5px}.compact-atlas button.current-island b{color:var(--ui-purple);font-weight:600}

.build-catalog{scrollbar-width:none}.build-catalog::-webkit-scrollbar{display:none}

.game-sheet .sheet-heading{position:sticky;top:0;z-index:3;background:var(--ui-paper);padding:2px 0 10px;box-shadow:0 -14px var(--ui-paper)}
.install-app-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#e6deea;color:var(--ui-ink);border:0;border-radius:8px;padding:12px;font-size:12px;margin:13px 0 19px}.install-app-button small{font-size:8px;color:var(--ui-muted)}.pwa-status{display:flex;gap:12px;margin:20px 0}.pwa-status>span{flex:1;border-bottom:1px solid #ded3df;padding:9px 0;font-size:11px;color:#948498}.pwa-status b{display:block;font-size:14px;color:#5e4e6a;margin-top:7px}.install-directions{font-size:12px!important;line-height:1.8!important;background:#ece5ee;border-radius:8px;padding:16px!important}.performance-options{padding:13px 0;border-top:1px solid #ded3df;border-bottom:1px solid #ded3df;margin:15px 0;display:flex;flex-direction:column;gap:15px;font-size:12px}.performance-options label{display:flex;align-items:center;gap:8px}.performance-options input{accent-color:#6650a2;width:17px;height:17px}.fps-target-label{justify-content:space-between}.performance-options select{max-width:135px!important;margin:0!important;padding:9px!important}.gpu-diagnostics{margin:20px 0 0;font-size:11px;color:#8d7d93}.gpu-diagnostics summary{cursor:pointer;padding:8px 0}.performance-readings{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:15px 0}.performance-readings span{font-size:9px;color:#9c8ba0}.performance-readings b{display:block;font-size:12px;font-weight:500;color:#5e4e6a;margin-top:4px}#gpu-name{font-size:9px!important;line-height:1.7!important;overflow-wrap:anywhere}#performance-meter{position:absolute;right:23px;top:76px;z-index:11;padding:8px 11px;border:2px solid #fff6ea;border-radius:15px;background:#f7f2e9e6;color:#6650a2;font-size:10px;font-variant-numeric:tabular-nums;box-shadow:0 2px #d2c7d3}#graphics-trial{position:absolute;left:50%;bottom:110px;transform:translateX(-50%);width:min(380px,calc(100vw - 25px));border:4px solid #fff7eb;border-radius:14px;background:#f7f2e9;box-shadow:0 3px #d2c7d3;padding:15px 18px;z-index:25;color:#5e4e6a}#graphics-trial>div:first-child{display:flex;justify-content:space-between;font-size:12px}#graphics-trial p{font-size:10px;line-height:1.7;color:#8d7d93}.trial-actions{display:flex;gap:8px}.trial-actions button{border:0;border-radius:6px;flex:1;padding:9px 8px;font-size:11px;background:#e5dce8;color:#695573}.trial-actions #keep-graphics{background:#6650a2;color:#fff7ec}
@media(max-width:1050px){#performance-meter{top:176px;right:20px}}@media(max-width:650px){#performance-meter{top:162px;right:16px;font-size:9px}.performance-readings{gap:12px}.install-app-button{font-size:11px}.install-app-button small{font-size:7px}}

.production-chain{display:grid;gap:8px;margin:16px 0;padding:16px;border-radius:12px;background:#e7ebdc}.production-chain span{font-size:12px;line-height:1.7}.assignment-row>span small{display:block;font-size:11px;color:#61715b;margin-top:5px}.building-production-state{font-size:12px;color:#4e6b50;font-weight:600}.gather-actions{flex-wrap:wrap}.stock-inventory{grid-template-columns:repeat(auto-fit,minmax(78px,1fr))}

.environment-controls{border-top:1px solid #dcd7ce;border-bottom:1px solid #dcd7ce;padding:8px 0 22px;margin:22px 0}.environment-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.lighting-choice{background:#eae5d9;border:2px solid transparent;border-radius:12px;padding:5px 5px 10px;color:#55505c}.lighting-choice[aria-pressed=true]{border-color:#806aa5;background:#eee7f4}.lighting-choice b{display:block;font-size:12px;padding-top:8px}.lighting-preview{display:block;height:68px;border-radius:7px;background:linear-gradient(160deg,#b7dbed 35%,#9dbf69 36%,#527d37 70%)}.lighting-choice.sunset .lighting-preview{background:linear-gradient(160deg,#e8af98 35%,#ddbc62 36%,#8b8940 70%)}.lighting-choice.night .lighting-preview{background:radial-gradient(circle at 70% 25%,#dbecff 4%,transparent 5%),linear-gradient(160deg,#263d68 35%,#426952 36%,#233e40 70%)}.environment-options{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:20px 0}.environment-options label{display:flex;align-items:center;gap:10px;font-size:12px}.environment-options select{padding:9px;border:1px solid #d5d0c5;border-radius:7px;background:#f7f3ea;color:#55505c}.environment-options input{accent-color:#806aa5}#environment-preview{width:100%}.environment-credit a{color:inherit;text-decoration:underline}#lighting-description{font-size:12px;line-height:1.7}@media(max-width:500px){.environment-choices{gap:5px}.lighting-choice b{font-size:11px}.lighting-preview{height:55px}}

.perspective-button{position:absolute;right:24px;top:76px;border:3px solid #fff8f0;background:var(--ui-paper);color:var(--ui-ink);border-radius:18px;padding:9px 14px;font-size:11px;box-shadow:0 2px #d4c7d6}#fp-crosshair{position:absolute;left:50%;top:50%;width:8px;height:8px;border:2px solid #fff9ec;border-radius:50%;box-shadow:0 0 2px #183b35;transform:translate(-50%,-50%);pointer-events:none!important}#fp-actions{position:absolute;right:25px;bottom:120px;display:flex;align-items:center;flex-direction:column;gap:8px}#fp-actions button{background:#f7f2e9e8;color:var(--ui-ink);border:3px solid #fff9ef;border-radius:14px;padding:12px 16px;box-shadow:0 3px #d4c7d6;display:flex;align-items:center;gap:9px;font-size:12px}#fp-actions small{font-size:9px;opacity:.6;margin-left:6px}#fp-mouselook{font-size:10px!important;padding:8px 13px!important}body[data-perspective=firstperson] .hud{transform:translateX(-50%) scale(.82);transform-origin:top center}body[data-perspective=firstperson] #ui-zoom-in,body[data-perspective=firstperson] #ui-zoom-out{display:none}body[data-perspective=firstperson] #ui-travel-ready{display:none!important}body[data-mode=manage] #joystick{display:none!important}@media(pointer:coarse){#fp-mouselook{display:none!important}}@media(max-width:1050px){.perspective-button{top:174px;right:20px}}@media(max-width:650px){.perspective-button{top:162px;right:15px;padding:7px 10px;font-size:10px}#fp-actions{right:15px;bottom:176px}#fp-actions button{padding:11px 13px;font-size:11px}body[data-perspective=firstperson] .hud{transform:translateX(-50%) scale(.88)}}@media(max-height:550px) and (orientation:landscape){.perspective-button{top:66px;right:20px}#fp-actions{right:18px;bottom:100px}body[data-perspective=firstperson] .hud{transform:translateX(-50%) scale(.70)}}

.build-sites-overlay{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.build-sites-overlay[hidden]{display:none}.build-site-pin{position:absolute;left:0;top:0;min-width:53px;min-height:53px;border:3px solid #fff5d6;border-radius:15px;background:#416e67ee;color:#fff6d9;box-shadow:0 3px 0 #274c4ad9,0 2px 12px #173a4366;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:auto;touch-action:manipulation;cursor:pointer;padding:3px 7px}.build-site-pin strong{font:27px/26px Georgia,serif}.build-site-pin span{font:9px/13px 'Trebuchet MS',sans-serif;white-space:nowrap}.build-site-pin:hover,.build-site-pin:focus-visible{background:#588e7b;outline:3px solid #f9e5a9;outline-offset:3px}.game-sheet.choosing-site .placement-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.game-sheet.choosing-site .placement-summary img{width:58px;height:58px}.game-sheet.choosing-site .placement-summary p{flex:1;min-width:130px;font-size:12px;margin:0}.game-sheet.choosing-site .text-button{display:inline-flex;width:auto;margin:3px 0;font-size:11px}.game-sheet.choosing-site .sheet-heading{margin-bottom:8px}@media(max-width:650px){.build-site-pin{min-width:44px;min-height:46px;padding:2px 5px;border-width:2px;border-radius:12px}.build-site-pin strong{font-size:24px;line-height:23px}.build-site-pin span{font-size:8px}.game-sheet.choosing-site{padding:16px 18px;max-height:190px}.game-sheet.choosing-site .sheet-heading h2{font-size:25px}.game-sheet.choosing-site .placement-summary{gap:8px}.game-sheet.choosing-site .placement-summary img{width:48px;height:48px}}

.assignment-row .work-focus{display:flex;flex:1;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:auto;height:auto;min-height:42px;text-align:left;background:transparent;border:0;padding:6px 5px 6px 0;margin-right:9px;color:var(--ui-ink);font-size:inherit}.work-focus small{display:block;font-size:9px;line-height:1.4;color:var(--ui-muted);margin-top:4px}.work-focus>.ui-icon{width:17px;height:17px;opacity:.55;flex-shrink:0}.work-focus:hover{color:var(--ui-purple)}

.wildlife-finder{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 0 12px;border-bottom:1px solid var(--ui-line);margin-bottom:5px}.wildlife-finder>span{font-size:10px;color:var(--ui-muted);margin-right:auto}.wildlife-finder>span b{color:var(--ui-ink);margin-left:4px}.wildlife-finder button{background:#e9e9db;color:#586948;border:1px solid #d4dac5;border-radius:8px;padding:8px 10px;min-height:40px;font:inherit;font-size:11px;cursor:pointer}.wildlife-finder button:hover{background:#dce4ca}@media(max-width:650px){.wildlife-finder{gap:5px;flex-wrap:wrap}.wildlife-finder button{font-size:10px;padding:8px;min-height:44px}}


/* Free construction stays small enough to judge the building in its setting. */
.game-sheet.build{width:min(840px,calc(100vw - 28px));padding:16px 20px 12px;max-height:240px}
.game-sheet.build .sheet-heading{margin-bottom:6px}.game-sheet.build h2{font-size:23px}.game-sheet.build .sheet-heading small{display:none}
.build-catalog-wrap{display:flex;align-items:center;gap:6px;min-width:0}
.game-sheet.build .build-catalog{display:flex;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9caa8c #e7e3d6;gap:6px;padding:0 0 7px;flex:1;min-width:0;touch-action:pan-x}
.game-sheet.build .build-catalog::-webkit-scrollbar{display:block;height:6px}.game-sheet.build .build-catalog::-webkit-scrollbar-thumb{background:#9caa8c;border-radius:6px}
.game-sheet.build .building-tile{min-width:101px;flex:0 0 101px;padding:3px 4px 6px}.game-sheet.build .building-tile img{width:72px;height:65px;object-fit:contain}.game-sheet.build .building-tile b{font-size:12px}.game-sheet.build .building-tile small{font-size:10px}
.catalog-arrow{flex:0 0 28px;width:28px;height:48px;border:1px solid #d2ccbc;border-radius:12px;background:#e8e5d8;color:#5b5262;font-size:27px;cursor:pointer}.catalog-arrow:hover{background:#d6dfc8}
.game-sheet.build .sheet-note{font-size:11px;margin:5px 0 0}
.game-sheet.free-placement{width:min(520px,calc(100vw - 24px));padding:12px 18px 10px;max-height:230px}
.free-placement-heading{display:flex;align-items:center;gap:10px}.free-placement-heading>img{width:54px;height:48px;object-fit:contain}.free-placement-heading>div{flex:1}.free-placement-heading h2{font-size:23px;margin:0}.free-placement-heading small{font-size:9px;letter-spacing:.12em;color:#8a8091}
#placement-status{font-size:13px;margin:5px 0;color:#44664d}#placement-status.invalid{color:#aa635a}#placement-trees{font-size:11px;color:#7c7581;display:block;min-height:12px}
.placement-actions{display:flex;align-items:center;gap:14px;margin-top:8px}.placement-actions .action-button{margin:0;min-height:38px;flex:1;padding:9px 12px}.placement-actions .text-button{margin:0}
.game-sheet.free-placement .sheet-note{font-size:10px;line-height:1.4;margin:7px 0 0}.placing-building>canvas{cursor:crosshair}
@media(max-width:650px){.game-sheet.build{padding:10px 10px 8px;max-height:185px}.game-sheet.build .building-tile{min-width:85px;flex-basis:85px}.game-sheet.build .building-tile img{height:49px;width:60px}.game-sheet.build .building-tile b{font-size:11px}.game-sheet.build h2{font-size:20px}.game-sheet.build .sheet-note{font-size:9px}.catalog-arrow{flex-basis:23px;width:23px}.game-sheet.free-placement{padding:10px 12px;max-height:215px}.free-placement-heading h2{font-size:20px}}

.placement-touch-help{display:none}.placement-costs{display:flex;gap:9px;font-size:11px;margin-top:4px}.placement-costs svg{width:12px;height:12px}.game-sheet.free-placement .free-placement-heading>img{width:46px;height:40px}@media(pointer:coarse){.placement-touch-help{display:inline}.placement-desktop-help{display:none}}

@media(max-width:650px){.game-sheet.build .sheet-note{display:none}}

.game-sheet.dock-placement{max-height:min(285px,48dvh);overflow-y:auto}
.dock-voyage{margin:8px 0 12px}.dock-voyage p{margin:0;font-size:12px;color:#596850}.dock-voyage .action-button{font-size:12px}.dock-voyage-tools{margin-top:3px;justify-content:space-between}.dock-adjustment{border-top:1px solid #e2dacb;padding-top:8px}.dock-adjustment summary{cursor:pointer;font-size:13px;font-weight:600}.dock-edit-actions{margin:0 0 6px}.dock-edit-actions .text-button{margin:0;min-height:36px}.dock-edit-actions svg{width:15px;height:15px;margin-right:5px;vertical-align:middle}
.dock-settings{display:grid;gap:2px}.dock-settings label{display:flex;justify-content:space-between;font-size:12px}.dock-settings output{font-variant-numeric:tabular-nums}.dock-settings input{width:100%;margin:0 0 2px;accent-color:#52684e}#dock-adjust-status{font-size:12px;color:#aa635a;margin:4px 0 0}#dock-adjust-status:empty{display:none}
