:root{color-scheme:dark;--ink:#08110e;--forest:#102019;--panel:#11231d;--cream:#f4ecd2;--muted:#acb3a0;--gold:#c4b47d;--line:#c4b47d50;--lime:#d9ef82;--bright:#d0ed65;--nav:78px;--header:58px;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cream);background:var(--ink)}
*{box-sizing:border-box}html,body{margin:0;min-width:320px;min-height:100%;overscroll-behavior:none}body{background:radial-gradient(ellipse at top,#26352c,transparent 70%),#07100d}button,input{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{touch-action:manipulation}svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}img{max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3,.wordmark,.action,.game-nav,.refuge-title{font-family:Georgia,"Times New Roman",serif}h1{font-size:clamp(34px,6vw,45px);line-height:1.05;font-weight:700;letter-spacing:-1px}h2{font-size:27px;line-height:1.15}.overline{font:650 9px/1.5 system-ui,sans-serif;letter-spacing:2.3px;color:var(--gold)}.muted,.fine-print{color:var(--muted)}.fine-print{font-size:11px;line-height:1.5;text-align:center;margin:10px 4px}.wordmark{color:var(--cream);text-decoration:none;font-size:19px;letter-spacing:5px;font-weight:700}.wordmark::before,.wordmark::after{content:"";display:inline-block;vertical-align:middle;width:20px;height:1px;background:linear-gradient(90deg,transparent,var(--gold));margin:0 12px}.wordmark::after{transform:rotate(180deg)}.action{display:flex;width:100%;min-height:54px;align-items:center;justify-content:center;gap:12px;padding:13px 17px;border:1px solid var(--gold);border-radius:4px;font-weight:700;font-size:20px;line-height:1.15;text-align:center;transition:filter .18s,transform .18s;position:relative}.action:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.action:active:not(:disabled){transform:translateY(1px)}.primary{background:radial-gradient(ellipse at 50% -20%,#effda9,transparent 68%),linear-gradient(110deg,#b9d65b,#d7ef79 45%,#badb58);border-color:#ecf8b0;color:#162313;box-shadow:inset 0 0 0 3px #ffffff24,0 0 24px #c6ef5e25;text-shadow:0 1px #ffffaf6b;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}.secondary{background:#102019e8;color:var(--cream);border-color:var(--line);font-size:16px}.large{min-height:64px;font-size:25px}.text-button{border:0;background:transparent;color:var(--lime);padding:12px 0;font-size:12px}.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:9px;background:#0b1713db;color:var(--cream);flex-shrink:0}.icon-button:hover{background:#26372a}.icon-button svg{width:21px;height:21px}.form-error{color:#f7bd9c;font-size:13px;margin-top:12px;min-height:20px}.auth-scene{min-height:100svh;display:grid;place-items:center;position:relative;background:#102018 url('./assets/cinematic/shelter-tours.webp') center/cover}.auth-shade{position:absolute;inset:0;background:linear-gradient(90deg,#07120eec,#07120e70),linear-gradient(0deg,#07120e,transparent)}.auth-content{position:relative;width:min(440px,100%);padding:32px 25px}.auth-content>.wordmark{display:block;text-align:center;margin-bottom:42px}.auth-copy h1{margin:12px 0 15px;font-size:37px}.auth-copy>p:last-child{font-size:13px;color:#d4d7c3;line-height:1.65}.auth-form{margin-top:28px}.auth-form h2{font-size:22px;margin-bottom:18px}.auth-form label{display:block;font-size:11px;color:var(--muted);margin:14px 0}.auth-form input{width:100%;display:block;margin-top:6px;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:5px;background:#08130edb}.auth-form .action{margin-top:20px;font-size:19px}.auth-form .text-button{width:100%;text-align:center}
.game-shell{height:100svh;height:100dvh;max-width:540px;margin:0 auto;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--ink);box-shadow:0 0 100px #0009}.game-header{flex:0 0 var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:relative;z-index:3;border-bottom:1px solid var(--line);background:#0b1511}.game-header .wordmark{font-size:15px;letter-spacing:3.8px}.game-header .wordmark::before,.game-header .wordmark::after{display:none}.header-actions{display:flex;gap:7px}.header-actions .icon-button{border:0;width:33px;height:33px;background:none;color:var(--gold)}.screens{flex:1;min-height:0;position:relative}.screen{position:absolute;inset:0;overflow:hidden}.game-nav{flex:0 0 calc(var(--nav) + env(safe-area-inset-bottom));height:calc(var(--nav) + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px env(safe-area-inset-bottom);position:relative;z-index:5;background:linear-gradient(#102018f5,#08110dfc);border-top:1px solid var(--gold);box-shadow:0 -8px 32px #0007}.game-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;border:0;border-right:1px solid #c4b47d1f;background:none;color:#c8c4ab;font-size:14px;line-height:1.2}.game-nav button:last-child{border-right:0}.game-nav svg{width:27px;height:27px;stroke-width:1.6}.game-nav [aria-current="page"]{color:var(--lime);text-shadow:0 0 16px #d9ef8240;background:radial-gradient(ellipse at bottom,#c3df5830,transparent 75%)}.game-nav [aria-current="page"]::after{content:"";position:absolute;height:2px;bottom:0;left:22%;right:22%;background:var(--lime);box-shadow:0 0 12px var(--lime)}
.shelter-screen{display:flex;flex-direction:column;justify-content:space-between}.shelter-backdrop{position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,#08130d 0%,#08130de8 10%,#08130d00 50%,#07120e22 75%,#07120ea0),url('./assets/cinematic/shelter-tours.webp') center 42%/cover}.resource-hud{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);margin:15px 13px;padding:10px 0;border:1px solid #c4b47d80;border-radius:3px;background:linear-gradient(90deg,#091611e8,#122019cc);box-shadow:0 6px 22px #0007}.resource-hud>div{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;border-right:1px solid var(--line)}.resource-hud>div:last-child{border:0}.resource-hud img{width:36px;height:36px;object-fit:contain;mix-blend-mode:screen}.resource-hud b{font:700 20px Georgia,serif}.shelter-copy{position:relative;z-index:1;padding:24px 23px 20px;background:linear-gradient(transparent,#08130dc0 18%,#08130d 90%)}.shelter-copy>.overline{font-size:8px;letter-spacing:2px;margin-bottom:13px;color:#b9c8a0}.status-light{display:inline-block;width:5px;height:5px;margin:0 5px 1px 0;background:var(--lime);border-radius:50%;box-shadow:0 0 10px #a2d54a}.refuge-title{display:flex;align-items:center;gap:15px;margin:0 0 23px}.refuge-title h1{font-size:38px;letter-spacing:-.8px;margin-bottom:5px}.refuge-title p{font-size:17px;font-style:italic;color:#d2d3b9}.level-seal{flex:none;min-width:65px;display:flex;align-items:center;flex-direction:column;border-right:1px solid var(--gold);padding-right:15px;color:#d9d5ab}.level-seal svg{width:37px;height:37px;stroke-width:1.6}.level-seal small{display:block;font:600 10px Georgia,serif;margin-top:6px;border:1px solid var(--gold);padding:3px 5px;white-space:nowrap}.shelter-shortcuts{display:flex;justify-content:center;gap:12px;margin-top:13px}.shelter-shortcuts button{min-height:33px;display:flex;align-items:center;gap:5px;padding:2px;border:0;background:none;color:#bcc4a9;font-size:10px}.shelter-shortcuts svg{width:15px;height:15px}.outing-resume{margin:-8px 0 15px;padding:8px 11px;border:1px solid var(--line);font-size:11px;background:#0b1b13ce;color:#d9e3c1}
.explore-screen{background:#13201c}#map{position:absolute;inset:0}#map .maplibregl-canvas{outline:none}.map-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 55px 70px -35px #08130ecc,inset 0 -60px 70px -35px #08130eee}.explore-hud{position:absolute;z-index:2;top:14px;left:12px;right:12px;display:flex;gap:10px;justify-content:space-between;pointer-events:none}.explore-hud>span,.explore-hud>button{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px;background:#0a1813ec;border:1px solid var(--gold);border-radius:3px;box-shadow:0 4px 20px #0005;font:17px Georgia,serif}.explore-hud>button{pointer-events:auto}.explore-hud i{color:var(--gold)}.explore-hud svg{width:21px;height:21px}.explore-hud b{font-family:system-ui,sans-serif;font-size:16px;color:var(--lime)}.map-tools{position:absolute;z-index:2;right:12px;top:72px;display:grid;gap:8px}.map-tools .icon-button{box-shadow:0 4px 18px #0004;border-color:#c4b47d85}.map-status{position:absolute;z-index:2;top:76px;left:12px;right:68px;background:#0a1813df;padding:9px 12px;border-radius:3px;font-size:11px;color:#e0e1c8;line-height:1.4;pointer-events:none}.map-footer{position:absolute;z-index:2;bottom:35px;left:20px;right:20px}.map-footer .action{box-shadow:0 8px 28px #0005}.signal-sheet{position:absolute;z-index:3;left:10px;right:10px;bottom:31px;padding:15px;border:1px solid var(--gold);border-radius:10px;background:linear-gradient(120deg,#102119f5,#0a1711f8);box-shadow:0 10px 35px #0009}.signal-sheet-header{display:grid;grid-template-columns:78px minmax(0,1fr) 24px;gap:12px;align-items:start;margin-bottom:14px}.signal-sheet-header>img{width:78px;height:86px;object-fit:cover;border:1px solid var(--line);border-radius:4px}.signal-sheet h2{font-size:23px;line-height:1.1;margin:3px 0 5px}.signal-sheet .distance{font:16px Georgia,serif;color:#e6dfb9}.signal-sheet .close-sheet{border:0;background:none;font-size:25px;line-height:1;padding:0;color:#c5c2ac;width:24px;height:28px}.signal-sheet .loot-potential{display:flex;align-items:center;gap:4px;margin-top:10px;font-size:10px;color:var(--muted)}.loot-potential img{height:28px;width:28px;object-fit:contain;mix-blend-mode:screen}.signal-sheet .fine-print{margin:8px 0 0}.map-pin{border:1px solid #cbbb81;background:#10221d;color:#ebe4be;width:43px;height:43px;border-radius:50% 50% 50% 5px;transform:rotate(-45deg);box-shadow:0 3px 9px #000a;display:grid;place-items:center;padding:6px;cursor:pointer;transition:box-shadow .2s}.map-pin img,.map-pin svg{width:29px;height:29px;object-fit:contain;transform:rotate(45deg);mix-blend-mode:screen}.map-pin.is-selected{border-color:var(--lime);box-shadow:0 0 0 5px #d9ef8230,0 0 24px #d9ef8290;background:#344b1e}.player-marker{width:24px;height:24px;border-radius:50%;background:#b9f8d7;border:6px solid #3ad7a1;box-shadow:0 0 0 10px #52d4a52c,0 0 20px #4af3a575}.home-marker{background:#263a22;border:1px solid var(--gold);color:var(--cream);padding:7px;border-radius:50%;box-shadow:0 3px 16px #0009}.home-marker svg{width:25px;height:25px}.maplibregl-ctrl-attrib{font:10px/1.2 system-ui,sans-serif!important;background:#102019cf!important;color:#e1dfcc!important}.maplibregl-ctrl-attrib a{color:inherit!important}.maplibregl-ctrl-logo{opacity:.7}
.scroll-screen{overflow-y:auto;overscroll-behavior:contain;padding:25px 20px 30px;scrollbar-width:thin;scrollbar-color:#68705b transparent;background:radial-gradient(ellipse at 80% 0,#283b292b,transparent 50%),var(--ink)}.screen-heading{margin-bottom:23px}.screen-heading h1{margin:9px 0 11px}.screen-heading>p:last-child,.workshop-banner>p:last-child{font-size:12px;color:var(--muted);max-width:300px;line-height:1.6}.capacity-card{display:flex;gap:14px;align-items:center;padding:16px;margin-bottom:18px;border:1px solid var(--line);background:linear-gradient(110deg,#22302188,#102019)}.capacity-card>span{color:var(--gold)}.capacity-card svg{width:36px;height:36px}.capacity-card>div{flex:1}.capacity-caption{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px;gap:8px}.capacity-caption>span{color:var(--lime)}progress{appearance:none;display:block;width:100%;height:5px;border:0;background:#354031;border-radius:5px;overflow:hidden}progress::-webkit-progress-bar{background:#354031}progress::-webkit-progress-value{background:var(--lime)}progress::-moz-progress-bar{background:var(--lime)}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.item-slot{position:relative;min-width:0;background:radial-gradient(ellipse at top,#b8c48b16,transparent 80%),#101c16;border:1px solid var(--line);border-radius:5px;display:flex;align-items:center;flex-direction:column;padding:10px 5px 8px;overflow:hidden}.item-slot img{width:69px;height:69px;object-fit:contain;mix-blend-mode:screen}.item-slot .quantity{position:absolute;right:7px;top:5px;background:#102019ba;font:700 13px Georgia,serif;color:var(--lime)}.item-slot .item-name{font-size:10px;line-height:1.3;text-align:center;margin-top:5px;overflow-wrap:anywhere}.empty-state{grid-column:1/-1;text-align:center;padding:24px 18px;border:1px dashed var(--line);background:#14201765}.empty-state>svg{width:42px;height:42px;margin:0 auto 11px;color:var(--gold);opacity:.7}.empty-state h3{font-size:21px;margin-bottom:7px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.6}.section-heading{margin:27px 0 15px}.section-heading h2{margin-top:5px}.workshop-banner{margin:-25px -20px 18px;padding:30px 20px 25px;min-height:170px;background:linear-gradient(90deg,#0a1712ed,#0a1712c4 70%,#0a17128a),url('./assets/cinematic/shelter-tours.webp') center 60%/cover;border-bottom:1px solid var(--line)}.workshop-banner h1{margin:7px 0 9px}.segmented{display:flex;gap:3px;padding:4px;border:1px solid var(--line);background:#142219;margin-bottom:18px;border-radius:5px}.segmented button{flex:1;min-height:39px;font-size:12px;padding:4px;border:0;border-radius:3px;color:#b9c0a8;background:none}.segmented [aria-pressed="true"]{color:var(--cream);background:#38432d;box-shadow:inset 0 -2px #d9ef82}.section-intro{font-size:11px;color:var(--muted);margin-bottom:16px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.recipe-card{position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0;padding:13px 9px;text-align:center;background:radial-gradient(ellipse at 50% 20%,#3d4c292b,transparent 80%),#102019;border:1px solid var(--line);border-radius:5px;transition:border-color .2s,transform .2s}.recipe-card:hover{border-color:var(--gold);transform:translateY(-2px)}.recipe-card img{width:88px;height:88px;object-fit:contain;mix-blend-mode:screen}.recipe-card h3{font-size:18px;line-height:1.15;overflow-wrap:anywhere}.recipe-card .card-state{font-size:9px;color:#aab49b;margin-top:auto;padding-top:3px}.recipe-card .card-state.available{color:var(--lime)}.recipe-card .recipe-tag{position:absolute;right:7px;top:7px;font-size:8px;letter-spacing:.7px;padding:2px 4px;color:#d2d9bc;background:#203626;border:1px solid #a8bd6650}.recipe-card.is-locked img{opacity:.5;filter:saturate(.5)}.fallback-art{display:grid;place-items:center;width:72px;height:72px;color:var(--gold)}.fallback-art svg{width:40px;height:40px}
.detail-dialog,.reward-dialog{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:28px 23px 23px;border:1px solid var(--gold);border-radius:10px;background:radial-gradient(ellipse at top,#2a3d29,#0b1912 65%);color:var(--cream);overflow-y:auto;box-shadow:0 20px 100px #000b}.detail-dialog::backdrop,.reward-dialog::backdrop{background:#020805c9;backdrop-filter:blur(5px)}.dialog-close{position:absolute;z-index:2;top:10px;right:10px;width:32px;height:32px;font-size:24px}.detail-art{height:135px;width:135px;object-fit:contain;display:block;margin:3px auto 13px;mix-blend-mode:screen}.detail-dialog h2{text-align:center;margin:4px 0 12px;font-size:30px}.detail-dialog .overline{text-align:center;margin-top:6px}.detail-description{font-size:12px;color:var(--muted);text-align:center;line-height:1.6;margin-bottom:20px}.ingredient-list{padding:0;list-style:none;margin:18px 0}.ingredient-list li{display:flex;align-items:center;gap:10px;border-bottom:1px solid #c4b47d26;padding:8px 0;font-size:12px}.ingredient-list img{width:34px;height:34px;object-fit:contain;mix-blend-mode:screen}.ingredient-list strong{margin-left:auto;white-space:nowrap;color:var(--lime)}.ingredient-list .missing{color:#edbc92}.detail-note{font-size:11px;color:#c5cbb1;text-align:center;margin:12px 0 15px}.detail-dialog .action{font-size:20px}.account-actions{display:grid;gap:12px;margin-top:22px}.account-actions button{font-size:17px}.signal-list{display:grid;gap:9px;margin-top:20px}.signal-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px;border:1px solid var(--line);background:#15271b;color:var(--cream);border-radius:4px}.signal-row img{width:36px;height:36px;object-fit:contain;mix-blend-mode:screen}.signal-row>span{flex:1;min-width:0}.signal-row b{display:block;font:17px Georgia,serif}.signal-row small{color:var(--muted);font-size:10px}.signal-row em{font:12px system-ui,sans-serif;color:var(--lime);white-space:nowrap}.reward-dialog{padding:37px 25px 25px;text-align:center;background:radial-gradient(ellipse at 50% 30%,#364b24aa,#0b1c13 65%),url('./assets/cinematic/expedition.webp') center/cover}.reward-dialog h2{font-size:36px;line-height:1.02;letter-spacing:-.6px;margin:11px 0 15px}.reward-dialog .reward-hero{display:grid;place-items:center;position:relative;min-height:180px;margin-bottom:10px}.reward-hero::before{content:"";position:absolute;width:170px;height:170px;border:1px solid #d8f370;border-radius:50%;box-shadow:0 0 25px #dcf27033,inset 0 0 35px #dcf27022}.reward-hero img{position:relative;height:180px;width:180px;object-fit:contain;mix-blend-mode:screen;filter:drop-shadow(0 0 17px #c7df3330);animation:reward-in .5s ease-out}.reward-lines{display:grid;gap:7px;margin-bottom:15px}.reward-line{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:9px 12px;background:#0a1b14bd;font:19px Georgia,serif;text-align:left}.reward-line img{width:36px;height:36px;object-fit:contain;mix-blend-mode:screen}.reward-line small{font:10px system-ui,sans-serif;display:block;color:var(--muted)}.reward-dialog .fine-print{margin:12px 0 22px}.reward-dialog .action{font-size:20px}.toast{position:fixed;z-index:20;bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 12px);left:50%;transform:translateX(-50%);width:min(460px,calc(100% - 24px));padding:13px 16px;background:#183222f5;color:#edf1d9;border:1px solid var(--gold);box-shadow:0 5px 25px #0008;font-size:12px;border-radius:6px}.busy{pointer-events:none;opacity:.7}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@keyframes screen-in{from{opacity:.6}to{opacity:1}}@keyframes sheet-in{from{transform:translateY(12px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes reward-in{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
@media(min-width:761px){.game-shell{max-width:560px;height:calc(100dvh - 40px);margin:20px auto;border:1px solid #c4b47d55;border-radius:14px}.game-header{--header:62px}.game-shell::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px #c4b47d18;z-index:6}.auth-content{padding-top:45px;padding-bottom:45px}.toast{bottom:112px}.shelter-copy{padding:28px 30px}.refuge-title h1{font-size:43px}}
@media(max-width:374px){:root{--header:50px;--nav:68px}.game-header{padding:0 12px}.game-header .wordmark{font-size:13px}.shelter-copy{padding:16px 17px 14px}.shelter-copy>.overline{font-size:7px;margin-bottom:9px}.refuge-title{gap:10px;margin-bottom:16px}.refuge-title h1{font-size:32px}.refuge-title p{font-size:14px}.large{min-height:56px;font-size:23px}.resource-hud{margin:12px 10px}.resource-hud img{height:28px;width:28px}.resource-hud b{font-size:18px}.game-nav button{font-size:12px}.scroll-screen{padding:22px 16px}.explore-hud>span,.explore-hud>button{font-size:14px;padding:8px}.signal-sheet h2{font-size:20px}.signal-sheet-header{grid-template-columns:60px 1fr 24px;gap:9px}.signal-sheet-header>img{width:60px;height:75px}}
@media(max-height:650px){.resource-hud{margin-top:9px;padding:6px 0}.shelter-copy{padding-top:8px;padding-bottom:12px}.shelter-copy>.overline{display:none}.refuge-title{margin-bottom:13px}.shelter-shortcuts{margin-top:8px}.outing-resume{margin-bottom:10px}.large{min-height:52px}.refuge-title h1{font-size:31px}.reward-hero{min-height:120px!important}.reward-hero img{width:120px!important;height:120px!important}.reward-hero::before{width:115px!important;height:115px!important}.reward-dialog{padding-top:20px}.reward-dialog h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.primary:focus-visible{outline:none;box-shadow:inset 0 0 0 4px #ffffffbf,0 0 24px #d9ef8270;filter:brightness(1.1)}
/* Refinements verified against real mobile captures. */
.primary{background-image:linear-gradient(115deg,#e9fb9d12 15%,#fff5 43%,transparent 60%),radial-gradient(ellipse at 50% -20%,#effda9,transparent 68%),linear-gradient(110deg,#b9d65b,#d7ef79 45%,#badb58);text-shadow:0 1px 0 #ffffff45}
.primary::before{content:'';position:absolute;pointer-events:none;inset:3px;border:1px solid #f5ffc150;clip-path:inherit}
.header-actions{gap:0}.header-actions .icon-button{height:44px;width:44px}
.game-header .wordmark{font-size:17px;letter-spacing:3.6px}
.shelter-shortcuts{gap:8px;margin-top:9px}.shelter-shortcuts button{min-height:44px;padding:4px 3px;font-size:11px}
.resource-hud{box-shadow:0 6px 22px #0007,inset 0 1px #e5d8a01a}
.recipe-card{box-shadow:inset 0 1px #c9c09b12,0 5px 14px #0002}.recipe-card .card-state{font-size:10px}
.workshop-banner{min-height:153px;padding-top:27px;background-image:linear-gradient(90deg,#0a1712df,#0a171294 70%,#0a17124a),url('./assets/cinematic/shelter-tours.webp')}
.bag-screen .screen-heading{position:relative;margin:-25px -20px 22px;padding:25px 20px 21px;min-height:158px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#0a1712f2 0%,#0a1712cb 65%,#0a1712b0),url('./assets/cinematic/expedition.webp') center 42%/cover}
.bag-screen .screen-heading>*{position:relative;z-index:1}.bag-screen .screen-heading>p:last-child{max-width:265px}
.signal-sheet-header{grid-template-columns:84px minmax(0,1fr) 36px;gap:10px}.signal-sheet-header>img{width:84px;height:100px;object-position:61% center}.signal-sheet .close-sheet{min-width:44px;min-height:44px;margin:-7px -7px 0 0;font-size:26px}.signal-sheet h2{font-size:22px}
img{color:transparent}.resource-hud img,.item-slot img,.economy-art,.recipe-card img,.detail-art,.reward-line img{mask-image:radial-gradient(ellipse at center,#000 48%,#000b 63%,transparent 78%)}
@media(max-width:374px){.game-header .wordmark{font-size:14px}.bag-screen .screen-heading{margin:-22px -16px 20px;padding:23px 16px 18px}.shelter-shortcuts button{font-size:10px}.signal-sheet-header{grid-template-columns:65px minmax(0,1fr) 32px}.signal-sheet-header>img{width:65px;height:88px}}
@media(max-height:650px){.shelter-shortcuts{margin-top:3px}.shelter-shortcuts button{min-height:36px}.shelter-copy{padding-bottom:9px}}
/* True-alpha game inventory atlas: no opaque thumbnail boxes. */
.atlas-art{display:inline-block;flex:none;aspect-ratio:1;background-image:url('./assets/cinematic/survival-atlas.webp');background-size:300% 300%;background-position:var(--art-x) var(--art-y);background-repeat:no-repeat;mask-image:none!important;mix-blend-mode:normal!important}
.resource-hud .game-art{width:42px;height:42px;flex:none}.resource-hud{padding:8px 0}
.item-slot .game-art{width:78px;height:78px}.recipe-card .game-art{width:88px;height:88px;flex:none}
.recipe-card.is-locked .game-art{opacity:.55;filter:saturate(.55)}
.game-art.detail-art{width:145px;height:145px;display:block}
.reward-hero .game-art{position:relative;width:185px;height:185px;animation:reward-in .5s ease-out}
.reward-line .game-art{width:37px;height:37px;flex:none}.ingredient-list .game-art{width:34px;height:34px;flex:none}.signal-row .game-art{width:36px;height:36px;flex:none}
.loot-potential .game-art{width:30px;height:30px;flex:none}.map-pin .game-art{width:31px;height:31px;transform:rotate(45deg)}
@media(max-width:374px){.resource-hud .game-art{width:35px;height:35px}.resource-hud>div{gap:5px}.item-slot .game-art{width:70px;height:70px}}
@media(max-height:650px){.reward-hero .game-art{width:120px;height:120px}}
.dialog-close{width:44px;height:44px}.map-tools .icon-button{min-width:44px;min-height:44px}.segmented button{min-height:44px}.text-button{min-height:44px}
@media(max-height:650px){.shelter-shortcuts button{min-height:44px}}
.loot-potential{flex-wrap:wrap}.signal-row b{overflow-wrap:anywhere}

/* Explore: buildings are targets; no cloud of POI pins over the map. */
.explore-hud{top:12px;left:12px;right:12px;justify-content:flex-start;gap:7px}
.explore-hud>span,.explore-hud>button{min-height:36px;padding:7px 10px;border-color:#9eaf7655;border-radius:18px;font:11px system-ui,sans-serif;box-shadow:0 3px 12px #0003;background:#0b1a13eb}
.explore-hud b{font-size:12px}.explore-hud svg{width:16px;height:16px}.explore-hud .explore-label{font-size:10px;color:#bccaa7}
.map-tools{top:12px;right:12px;gap:7px}.map-tools .icon-button{width:38px;height:38px;border-color:#9aab7355;border-radius:10px;background:#0c1c15ed}.map-tools svg{width:19px;height:19px}
.map-status{top:60px;right:65px;font-size:10px;background:#10251be8;border:1px solid #79926433;border-radius:7px;padding:7px 9px}
.map-footer{left:50%;right:auto;bottom:28px;width:min(270px,calc(100% - 90px));transform:translateX(-50%)}
.map-footer .action{min-height:44px;font-size:15px;border-radius:22px;border-color:#c6d59777;background:#14281bed;box-shadow:0 6px 22px #0005}
.map-footer .action svg{width:20px;height:20px}.explore-hint{font:9px/1.4 system-ui,sans-serif;text-align:center;color:#c1cfb0;margin-top:7px;text-shadow:0 1px 4px #08130e,0 0 7px #08130e}
.map-vignette{box-shadow:inset 0 35px 45px -30px #08130e88,inset 0 -40px 45px -30px #08130eaa}

.building-thumb{width:78px;height:86px;display:grid;place-items:center;border:1px solid #b0c38966;border-radius:6px;background:linear-gradient(145deg,#36472e,#13231b)}.building-thumb svg{width:36px;height:36px;color:#d7dfa4}

.map-footer{bottom:24px;width:auto;max-width:calc(100% - 90px)}.explore-hint{font-size:10px;white-space:nowrap;margin:0;padding:8px 13px;border:1px solid #9eaf7633;border-radius:18px;background:#0b1c14de;color:#c8d6b4;box-shadow:0 3px 12px #0003}

.map-footer:has(.first-visit-guide:not([hidden])){width:min(350px,calc(100% - 40px));max-width:none;bottom:24px}
.first-visit-guide{padding:15px 16px 12px;background:linear-gradient(135deg,#243724f5,#0e2119fa);border:1px solid #b7cf7b88;border-radius:12px;box-shadow:0 8px 30px #0007}
.first-visit-guide .overline{font-size:8px;color:#c7da96}.first-visit-guide h2{font-size:21px;line-height:1.15;color:#eef0cc;margin:5px 0 8px}
.first-visit-guide>p:not(.overline){font:12px/1.5 system-ui,sans-serif;color:#c8d5b6}
.map-footer .first-visit-guide .action{min-height:40px;margin-top:11px;border-radius:7px;font-size:13px;background:#344d2c;border-color:#b6cf7b99;box-shadow:none}
.first-visit-popup{pointer-events:none}.first-visit-popup .maplibregl-popup-content{padding:8px 11px;border-radius:7px;background:#e4edb9;color:#1a2b19;font:600 11px system-ui,sans-serif;box-shadow:0 4px 16px #0005}.first-visit-popup .maplibregl-popup-tip{border-top-color:#e4edb9!important}
@media(prefers-reduced-motion:no-preference){.first-visit-popup{animation:first-visit-nudge 2.8s ease-in-out 3}}@keyframes first-visit-nudge{0%,100%{opacity:1}50%{opacity:.75}}
.first-visit-popup,.first-visit-popup *{pointer-events:none!important}

/* Keep screen replacement opaque while Android releases the WebGL surface. */
#screen-interior,.trial-loading{background-color:#0b1712}.trial-loading{color:#f0e4bc;width:100%;min-height:220px}
/* Never expose a newly allocated/failed GL canvas before a complete frame. */
#map,#map .maplibregl-canvas{background:#0b1a15}
#map.map-loading::after,#map.map-failed::after{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:80px 32px;color:#bfccad;background:#0b1a15;text-align:center;font:13px/1.6 system-ui,sans-serif;content:'Chargement de la carte…'}
#map.map-failed::after{content:'La carte attend d’être relancée.'}

button.item-slot{color:inherit;font:inherit;cursor:pointer}button.item-slot small{font-size:10px;color:var(--lime);margin-top:8px}button.item-slot:focus-visible{outline:2px solid var(--lime);outline-offset:2px}.discard-quantity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.discard-quantity input{width:90px;min-height:44px;padding:8px;color:var(--cream);background:var(--ink);border:1px solid var(--line);border-radius:5px;font:inherit}

.building-progress{font-size:11px;color:var(--muted);margin:6px 0}.exploration-counters{font-size:11px;color:var(--muted);margin-top:8px}.legend-visited{color:#86c5cf}.legend-completed{color:#b5d3ba}.legend-special{color:#efd077}

/* Keep GPS at the same reachable corner, independent of top tool stacks. */
#screen-explore #locate{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:12;width:48px;height:48px}
#screen-explore .map-tools{bottom:auto}
#screen-explore .maplibregl-ctrl-bottom-right{bottom:84px}
.explore-hint{margin-right:70px!important}.signal-sheet{bottom:calc(84px + env(safe-area-inset-bottom))!important}
.ranking-tabs{display:flex;gap:8px;margin:18px 0}.ranking-tabs button{flex:1;min-height:44px;padding:8px;border:1px solid var(--line);background:var(--forest);border-radius:6px}.ranking-tabs [aria-pressed=true]{color:var(--lime);border-color:var(--lime)}.ranking-list{list-style:none;padding:0;margin:12px 0}.ranking-row{display:flex;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--line);padding:8px}.ranking-row>b{width:34px;color:var(--gold)}.ranking-row>span{flex:1;overflow-wrap:anywhere}.ranking-row>strong{color:var(--lime)}.ranking-row.is-me{background:#b9ce7422;border-radius:5px}

.shelter-card{padding:16px 0;margin:12px 0;border-bottom:1px solid var(--line)}.shelter-card-actions{display:flex;gap:8px;flex-wrap:wrap}.shelter-card-actions .action{min-height:44px;font-size:15px;width:auto;flex:1}.shelter-name-field{display:block;margin:16px 0}.shelter-name-field input{display:block;width:100%;min-height:46px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--ink);color:var(--cream)}
