:root{--night:#071a2c;--deep:#0b263d;--panel:#102f49;--cream:#fff5d9;--ink:#102a3b;--gold:#f6bd4e;--coral:#ff806d;--mint:#9de0c4;--muted:#526879;--line:#34546b;--pixel:ui-monospace,monospace;--body:"Trebuchet MS",sans-serif}*{box-sizing:border-box}html{background:var(--night);scroll-behavior:smooth}body{margin:0;min-height:100vh;padding:0 0 calc(82px + env(safe-area-inset-bottom));color:#f4f0dc;font:17px/1.5 var(--body);background:radial-gradient(ellipse at 50% -20%,#244d68 0%,#102e47 38%,#071a2c 88%);overflow-x:hidden}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.16;background-image:radial-gradient(#fff5d9 1px,transparent 1px);background-size:47px 47px;mask-image:linear-gradient(#000,transparent 85%)}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #ffe28a!important;outline-offset:3px}#app{position:relative;z-index:1;max-width:760px;margin:auto;min-height:100vh;padding-bottom:25px}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 15px;background:#071a2cf2;border-bottom:1px solid #e6b85377;backdrop-filter:blur(8px)}.brand{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--gold);text-align:left;padding:0;font:700 12px/1.5 var(--pixel);letter-spacing:.3px}.brand svg{width:42px;height:42px}.brand small{display:block;color:#d7e0dd;font:12px var(--body);letter-spacing:1px}.hud{text-align:right}.wallet{padding:5px 9px;border:2px solid var(--gold);border-radius:10px;background:#fff5d9;color:#102a3b;font-weight:800;font-size:13px}.stash{font-size:12px;color:#e9dec2}.view{padding:14px 15px 18px;animation:rise .22s ease-out}@keyframes rise{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}.card{background:var(--cream);color:var(--ink);border:1px solid #dfc98f;border-radius:16px;box-shadow:0 6px 0 #030d17;padding:19px;margin:0 0 15px}.eyebrow{color:#176c55;font:700 10px/1.7 var(--pixel);letter-spacing:1px;text-transform:uppercase}h1,h2,h3{font-family:var(--pixel);line-height:1.55;color:#0b385b}h1{font-size:clamp(19px,5vw,27px);margin:9px 0 14px}h2{font-size:15px;margin:23px 0 9px}h3{font-size:12px;margin:4px 0}.lede{font-size:19px;line-height:1.5;color:#173d55}.small{font-size:14px;line-height:1.5;color:var(--muted)}.intro h1{font-size:clamp(25px,7vw,39px);color:#092f50;letter-spacing:-1px}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:47px;padding:10px 13px;margin:4px 3px 4px 0;border:2px solid #31546c;border-radius:10px;background:#123e5d;color:#fff8e9;font-weight:800;text-align:center;text-decoration:none;box-shadow:0 3px 0 #092036}.button:hover{background:#1b5679}.button.primary{background:#f4bf54;color:#132e41;border-color:#dca93f;box-shadow:0 3px 0 #9a6515}.button.light{background:#fff5d9;color:#16374f;border-color:#d6be7f}.button.quiet{background:#e5ebdf;color:#123b56;border-color:#b9c8b4;box-shadow:0 2px 0 #a4b09f}.button.danger{background:#84454b;color:#fff;border-color:#ab6867}.button.small{font-size:13px;min-height:39px;padding:7px 10px}.field{display:block;margin:13px 0;color:#144563;font-weight:700}.field input,.field select,.field textarea{display:block;width:100%;min-height:46px;padding:10px 12px;margin-top:5px;border:1px solid #82979e;border-radius:9px;background:#fffdf7;color:#122e40;font-size:16px}.field textarea{min-height:82px}.actions{display:flex;flex-wrap:wrap;gap:5px}.steps{list-style:none;padding:0}.steps li{display:flex;align-items:center;gap:12px;margin:13px 0;font-size:18px}.steps li span{font:700 12px var(--pixel);background:#123e5d;color:#ffdb81;padding:9px;border-radius:9px}.nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);max-width:760px;margin:auto;padding:5px 4px calc(5px + env(safe-area-inset-bottom));background:#061726f5;border-top:2px solid var(--gold);box-shadow:0 -5px 20px #001321aa;backdrop-filter:blur(8px)}.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:57px;border:0;border-radius:8px;background:transparent;color:#e9e4d4;font-size:12px}.nav button b{font-size:19px;line-height:1}.nav button.active{background:#f3c55f;color:#102b41}.courier-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;background:linear-gradient(130deg,#143e5d,#0d2c45 67%,#274a57);border:1px solid #efc14f;border-radius:16px;box-shadow:0 6px 0 #030d17;margin:0 0 14px}.courier-copy h2{color:#ffda79;margin:6px 0}.courier-copy p{margin:3px 0 10px;color:#eef0df}.courier-card .eyebrow{color:#a9e2c7}.avatar-wrap{min-width:112px;text-align:center}.creature{width:clamp(100px,30vw,150px);height:auto;filter:drop-shadow(0 5px 4px #0008)}.wear{font-size:21px;min-height:27px}.goal h2{margin-top:7px}.progress{height:13px;background:#c9d2c5;border:1px solid #70867c;border-radius:9px;overflow:hidden}.progress i{display:block;height:100%;background:#188765;transition:width .3s}.trust{padding:11px 13px;border-left:4px solid #177556;background:#e6f0e5;color:#164732;font-weight:800}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.menu-grid .button{min-height:62px;margin:0}.split-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.split-stats div{padding:12px;background:#e8eddf;border-radius:10px}.split-stats span,.split-stats b{display:block}.split-stats span{font-size:12px}.split-stats b{color:#104664;font:700 14px var(--pixel);margin-top:8px}.footer{text-align:center;color:#e4d5ae;font-size:14px;padding:8px}.footer a{color:#ffe28a}.notice{width:100%;margin-bottom:12px;padding:12px 14px;border:1px solid #efbf4c;border-radius:12px;background:#fff0c6;color:#17374a;text-align:left}.notice span,.notice strong,.notice small{display:block}.notice span{font:700 9px var(--pixel);color:#176c55}.notice strong{margin:6px 0}.mission-list{display:grid;gap:8px}.mission{display:grid;grid-template-columns:40px 1fr 20px;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid #d8c89d;border-radius:12px;background:#fffaf0;text-align:left;color:#13364f}.mission-icon{font-size:26px}.mission strong,.mission small,.mission em{display:block}.mission small{color:#526879;line-height:1.4}.mission em{font-style:normal;font-size:13px;font-weight:800;color:#176147}.place-card{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #d6c9a6}.place-icon{font-size:25px}.place-info{flex:1;min-width:0}.place-info h3{margin:0}.place-info p{margin:3px 0;font-size:14px}.status{display:inline-block;padding:3px 7px;border-radius:15px;font-size:12px;font-weight:800}.status.needs{background:#ffebc4;color:#684800}.status.stock{background:#d6eddf;color:#14513d}.status.check{background:#f8d8d2;color:#782b31}.tag-button{margin:4px;padding:7px 9px;border:1px solid #82978d;border-radius:22px;background:#e8ecde;color:#17394e}.schematic{position:relative;min-height:355px;overflow:hidden;border:2px solid #688292;border-radius:14px;background:linear-gradient(35deg,transparent 48%,#406579 49%,#406579 50%,transparent 51%),linear-gradient(130deg,transparent 44%,#476c7c 45%,#476c7c 46%,transparent 47%),radial-gradient(ellipse at center,#385e6d,#1a3c55 75%);background-size:auto,auto,auto;isolation:isolate}.schematic:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,transparent 49%,#ffffff13 50%,transparent 51%),linear-gradient(transparent 49%,#ffffff13 50%,transparent 51%);background-size:45px 45px;opacity:.75;z-index:-1}.map-label{position:absolute;left:12px;bottom:9px;color:#dce6d5;font:700 9px var(--pixel);letter-spacing:1px}.marker{position:absolute;transform:translate(-50%,-50%);width:37px;height:37px;display:flex;align-items:center;justify-content:center;border:2px solid #f1c45b;border-radius:50%;background:#113752;color:white;font-size:19px;box-shadow:0 2px 6px #001523}.marker small{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #fff5d9;border-radius:50%;background:#ffebc4;color:#513900;font-size:12px}.marker.stock{border-color:#a7e0b8}.marker.check{border-color:#ff9c8e}.marker.draft{left:50%;top:50%}.legend{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.legend span{padding:5px 8px;border-radius:12px;background:#e8ecde;color:#193c51;font-size:13px}.place-hero{display:flex;gap:12px;align-items:center;margin:16px 0}.place-hero>span{font-size:42px}.place-hero h1{margin:4px 0}.details-box{padding:9px 13px;background:#e8eddf;border-radius:10px}.rating{margin:16px 0}.star{border:0;background:none;color:#857759;font-size:28px;padding:3px}.star.selected{color:#a16b00}.action-box{margin:9px 0;padding:10px;border:1px solid #d6c69d;border-radius:10px;background:#fffaf0}.action-box summary{font-weight:800;color:#103c5b;cursor:pointer;padding:4px}.log-form{padding:5px}.inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:18px 0}.inventory div{padding:12px 5px;text-align:center;background:#e7eddf;border-radius:10px}.inventory b,.inventory span{display:block}.inventory b{font:700 18px var(--pixel);color:#123e5d}.inventory span{font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.courier-profile{display:flex;align-items:center;gap:12px}.courier-profile h1{margin-bottom:2px}.color-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.swatch-field{font-size:12px;font-weight:700;color:#173c52}.swatch-field input{width:100%;height:45px;border:1px solid #a99a71;border-radius:8px;background:#fff}.cosmetic{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #d6c9a6}.cosmetic-icon{font-size:26px}.cosmetic>div{flex:1}.cosmetic b,.cosmetic small{display:block}.cosmetic small{font-size:13px;color:#526879}.rank-row{display:grid;grid-template-columns:36px 1fr auto;gap:8px;align-items:center;padding:12px 4px;border-bottom:1px solid #d6c9a6}.rank-row> b{font:700 16px var(--pixel);color:#805609}.rank-row strong{font-size:14px;color:#175840}.manual-item{padding:12px;margin:8px 0;border-radius:9px;background:#fffaf0;border:1px solid #ded0a8}.manual-item summary{color:#124361;font-weight:800;cursor:pointer}.manual-item p{color:#2c4859}.announcement{margin:12px 0;padding:12px;border-left:4px solid #e4ad3d;background:#fffaf0;border-radius:5px}.announcement small{color:#526879}.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.more-grid .button{min-height:58px}.admin-box{margin:18px 0;padding:13px;border:1px dashed #9b895b;border-radius:10px}.check-field{display:flex;align-items:center;gap:9px;font-weight:800;color:#16425c}.toast{position:fixed;z-index:40;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,430px);padding:12px;border:2px solid var(--gold);border-radius:11px;background:var(--cream);color:#12374f;text-align:center;box-shadow:0 4px 0 #030d17;font-weight:800}.button:disabled{opacity:.6;cursor:wait}
@media(min-width:620px){.view{padding:22px 24px}.topbar{padding:12px 24px}.card{padding:23px}.schematic{min-height:460px}}@media(max-width:390px){.view{padding:10px}.card{padding:15px}.nav button{font-size:11px}.cosmetic .button{font-size:12px;padding:7px}.courier-card{padding:12px}}

/* COURIER LOOK presentation */ .creature{width:clamp(100px,30vw,190px);height:auto;filter:drop-shadow(0 5px 4px #0008);shape-rendering:geometricPrecision}.courier-profile #preview{position:relative;flex:0 0 auto;min-width:125px;text-align:center}.courier-profile #preview .creature{width:clamp(125px,35vw,190px)}.courier-card .creature{width:clamp(100px,27vw,150px)}.cosmetic button[aria-label^="Selected"]{background:#d6e8d9;color:#123d32;border-color:#587868}.swatch-field input{cursor:pointer}.creature:focus{outline:3px solid #f2c656}.palette{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}.palette-dot{width:17px;height:17px;padding:0;border:1px solid #26384d;border-radius:50%;background:var(--swatch);cursor:pointer}.palette-dot:focus-visible{outline:2px solid #123f68;outline-offset:2px}
.map-warning{margin:10px 0;padding:14px 16px;border:1px solid #e9b64b;border-radius:12px;background:#fff3ce;color:#18364b}.map-warning p{margin:5px 0 0}.custom-pin.hq span{background:#f6bd4e!important;color:#102a3b;border:2px solid #fff5d9;box-shadow:0 0 0 4px #f6bd4e66}.custom-pin.spotted span{background:#9de0c4!important;color:#102a3b;border:2px solid #fff5d9}.news-panel{margin:0 0 14px;padding:16px;border:5px ridge #647783;border-radius:14px;background:linear-gradient(145deg,#101e1a,#0a1712 70%,#14241b);color:#baffbf;box-shadow:inset 0 0 22px #54e87922,0 7px 0 #030d17;font-family:ui-monospace,monospace;text-shadow:0 0 5px #60ff8644}.news-panel .news-kicker{color:#f3cc69}.news-panel .news-content h2{color:#aaffb5;font-family:ui-monospace,monospace}.news-panel .news-content p{color:#c8f4ce}.news-panel .news-image{width:78px;height:68px;object-fit:cover;border:2px solid #8ad89a;border-radius:5px;flex:none}.social-icons{display:flex;justify-content:center;gap:17px}.social-icons a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;color:#ffe28a}.social-icons svg{width:20px;height:20px}.map-filters{display:grid;gap:8px;margin:10px 0 13px}.map-check{display:flex;align-items:center;gap:10px;min-height:38px;font-weight:800;color:#173c52;cursor:pointer}.map-check input{position:absolute;opacity:0;width:1px;height:1px}.map-check span{width:22px;height:22px;border:2px solid #24485b;border-radius:3px;background:#fffaf0;box-shadow:inset 0 0 0 2px #fffaf0;flex:none}.map-check input:checked+span{background:#1c6e4e;box-shadow:inset 0 0 0 3px #fffaf0}.map-check input:focus-visible+span{outline:3px solid #d99e30;outline-offset:2px}.news-controls .button{font-size:12px}.emoji-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:8px 0;color:#baffbf;font:12px ui-monospace,monospace}.emoji-button{min-width:34px;height:34px;border:1px solid #568c62;border-radius:6px;background:#0a1a12;color:#caffcf;font-size:18px}.news-kicker{font:700 10px var(--pixel);color:#176c55;text-transform:uppercase;letter-spacing:1px}.news-content{display:flex;align-items:center;gap:14px;min-height:110px}.news-content h2{margin:8px 0;color:#0b385b;font-size:15px}.news-content p{margin:5px 0;color:#263f50;white-space:pre-line}.news-image{width:82px;height:60px;object-fit:cover;border-radius:9px;border:1px solid #d2bd84}.news-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px}.news-dots{display:flex;gap:6px}.dot{width:13px;height:13px;border:1px solid #174b65;border-radius:50%;background:#fff;cursor:pointer}.dot.selected{background:#e2a831}.profile-teaser{padding:10px 14px}.profile-teaser .creature{width:96px}.menu-grid .button{min-height:68px}.icon-inline{width:20px;height:20px;vertical-align:middle}.leaflet-map{height:360px;width:100%;border:2px solid #496c7c;border-radius:13px;overflow:hidden;background:#183a50;z-index:1}.leaflet-container{font:14px var(--body)}.custom-pin{background:transparent;border:0}.custom-pin span{display:grid;place-items:center;width:38px;height:38px;border:2px solid #f6bd4e;border-radius:50%;background:#123e5d;color:white;font-size:20px;box-shadow:0 2px 7px #0009}.custom-pin.spotted span{background:#903e4c;border-color:#fff3a6}.map-list{margin-top:12px}.photo-pick{display:inline-flex;position:relative;align-items:center;justify-content:center;width:48px;height:48px;margin:6px 0;border:2px solid #31546c;border-radius:12px;background:#123e5d;color:#fff;cursor:pointer}.photo-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.camera-icon svg{width:25px;height:25px}.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}.photo-preview img{position:absolute;right:-8px;bottom:-8px;width:27px;height:27px;object-fit:cover;border:2px solid #fff;border-radius:7px;background:#fff}.points-preview{margin:12px 0;padding:12px;border:2px solid #c69831;border-radius:10px;background:#fff0c6;color:#14374c;font-weight:800}.marker.spotted{background:#903e4c;border-color:#fff3a6}.custom-pin.flagged span{filter:grayscale(1);opacity:.52;border-color:#b6bdc0!important;background:#59646b!important;color:#d7dcdd!important}.place-popup{min-width:220px;max-width:290px;line-height:1.55}.place-popup .actions{margin-top:5px}.place-report-options{margin-top:8px;padding-top:6px;border-top:1px solid #a9b4b2}.place-report-options small{font-weight:800;color:#526879}
@media(max-width:480px){.leaflet-map{height:300px}.news-content{align-items:flex-start}.news-image{width:64px;height:55px;flex-shrink:0}.nav{grid-template-columns:repeat(5,1fr)}}
.button.active{background:#f3c55f;color:#102b41;border-color:#dca93f;box-shadow:0 3px 0 #9a6515}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.admin-console{position:relative;margin:20px 0;padding:18px;border:8px ridge #647783;border-radius:20px;background:linear-gradient(145deg,#29343a,#10191e 65%,#34424a);box-shadow:inset 0 0 0 2px #c1a768,0 10px 0 #030d17,0 14px 24px #0009;color:#e6dfbf;font-family:ui-monospace,monospace}.admin-console:before{content:"";position:absolute;inset:10px;border:1px solid #bac1ae55;border-radius:10px;pointer-events:none}.console-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font:700 12px ui-monospace,monospace;letter-spacing:1px;color:#f3cc69}.console-led{display:inline-block;width:9px;height:9px;border-radius:50%;background:#78ff9d;box-shadow:0 0 9px #67ff91;animation:ledpulse 1.4s infinite alternate}.console-screen{position:relative;margin:12px 0;padding:14px;border:5px inset #718579;border-radius:9px;background:#10251c;color:#9dffb0;box-shadow:inset 0 0 22px #54e87922;text-shadow:0 0 5px #60ff86;overflow:hidden}.console-screen:after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0 3px,#a6ffc10c 4px 5px);opacity:.6}.console-screen h2,.console-screen h3{color:#9dffb0;font-family:ui-monospace,monospace}.console-screen .field{color:#b2ffc0;font-family:ui-monospace,monospace}.console-screen .field input,.console-screen .field textarea,.console-screen .field select{font-family:ui-monospace,monospace;background:#0a1a12;color:#b7ffbd;border:1px solid #568c62}.console-screen .button{font-family:ui-monospace,monospace}.console-unit{border-top:1px solid #69ef8755;margin-top:12px;padding-top:12px}.player-code{font:700 12px ui-monospace,monospace;color:#176c55;letter-spacing:1px}.player-code strong{font-size:20px;color:#0b385b}.reward-art{width:90px;height:70px;display:grid;place-items:center;flex:none;border:2px solid #bd9c52;border-radius:10px;background:#102d42}.reward-art svg{width:84px;height:62px}.reward-copy{flex:1;min-width:0}.reward-stock{font:700 11px ui-monospace,monospace;color:#176147}.request-row{padding:10px;border:1px solid #68817a;background:#132821;margin:8px 0;color:#baf7bf}.request-row .button{min-height:35px;padding:6px 9px}@keyframes ledpulse{from{opacity:.4}to{opacity:1;box-shadow:0 0 13px #67ff91}}.sticker-popup{font:13px ui-monospace,monospace;line-height:1.45}.sticker-thumb{width:48px;height:48px;object-fit:cover;border:1px solid #f6bd4e;border-radius:5px;cursor:zoom-in;vertical-align:middle}.photo-zoom{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;background:#030d17eF}.photo-zoom img{max-width:92vw;max-height:88vh;border:4px solid #f6bd4e;border-radius:10px}

/* ===== MondQuest redesign: Lunitos album look, day/night ===== */
:root{--navy:#0B1B6B;--blue:#1F4BFF;--sky:#3D8BFF;--sky2:#5AB0FF;--sun:#FFD21F;--pink:#FF5FB0;--teal:#1FD6B5;--lilac:#9A6BFF;--cream:#FFF6E6;--ink:#0B1B6B;--gold:#FFD21F;--coral:#FF5FB0;--mint:#1FD6B5;--muted:#3A4A8F;--line:#0B1B6B;--pixel:"Baloo 2","Trebuchet MS",system-ui,sans-serif;--body:"Nunito","Trebuchet MS",system-ui,sans-serif}
html[data-theme=night]{background:#050C3D}html[data-theme=night] body{background:radial-gradient(ellipse at 50% -10%,#3D5BFF 0,#1B2A9A 42%,#050C3D 90%)}
html[data-theme=day]{background:#3D8BFF}html[data-theme=day] body{background:radial-gradient(ellipse at 50% -10%,#BFE3FF 0,#3D8BFF 50%,#1F4BFF 95%)}
body{font:17px/1.5 var(--body);color:var(--cream);padding-bottom:calc(112px + env(safe-area-inset-bottom))}
h1,h2,h3{font-family:var(--pixel);font-weight:800;color:var(--navy);letter-spacing:0}h1{font-size:clamp(26px,7vw,36px);line-height:1.1}h2{font-size:21px;line-height:1.2}h3{font-size:17px}
.intro h1{font-size:clamp(32px,9vw,46px);letter-spacing:0;color:var(--navy)}.lede{color:#1B2A6B}
.eyebrow,.news-kicker{font:800 12px var(--pixel);letter-spacing:1.4px;color:var(--blue)}
.card{background:var(--cream);color:var(--navy);border:3px solid var(--navy);border-radius:22px;box-shadow:0 6px 0 var(--navy)}
.card h1:after{content:none}
.topbar{gap:8px;background:var(--navy);border-bottom:4px solid var(--sun);backdrop-filter:none}.brand{font:800 14px/1.1 var(--pixel);color:var(--sun)}.brand svg{width:38px;height:38px}.brand small{font:700 11px var(--body);color:#BFE3FF}
.hud{margin-left:auto}.wallet{background:var(--sun);border:3px solid var(--navy);border-radius:20px;color:var(--navy);font-weight:800}.stash{color:var(--cream)}
.theme-toggle{flex:none;width:44px;height:44px;display:grid;place-items:center;border:3px solid var(--sun);border-radius:50%;background:var(--navy);color:var(--sun);padding:0}.theme-toggle svg{width:22px;height:22px}html[data-theme=night] .i-sun,html[data-theme=day] .i-moon{display:none}
.button{border:3px solid var(--navy);border-radius:16px;background:#fff;color:var(--navy);font-weight:800;box-shadow:0 4px 0 var(--navy)}.button:hover{background:#FFF1A8}.button:active{transform:translateY(3px);box-shadow:0 1px 0 var(--navy)}
.button.primary{background:var(--sun);border-color:var(--navy);box-shadow:0 4px 0 var(--navy)}.button.primary:hover{background:#FFE56B}.button.light{background:var(--cream);border-color:var(--navy)}.button.quiet{background:#DCE8FF;border-color:var(--navy);box-shadow:0 3px 0 var(--navy)}.button.danger{background:var(--pink);color:var(--navy);border-color:var(--navy)}.button.active{background:var(--sun);color:var(--navy);border-color:var(--navy);box-shadow:0 4px 0 var(--navy)}
.field{color:var(--navy)}.field input,.field select,.field textarea{border:3px solid var(--navy);border-radius:14px;background:#fff;color:var(--navy)}
.nav{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:736px;margin:0 auto;height:68px;padding:0 4px;align-items:center;border:3px solid var(--navy);border-radius:26px;background:var(--cream);box-shadow:0 5px 0 var(--navy);backdrop-filter:none}
.nav button{min-height:56px;color:var(--navy);font:800 12px var(--body);border-radius:20px;gap:2px}.nav button svg{width:24px;height:24px}.nav button.active{background:var(--sun);color:var(--navy)}
.nav button.moon{width:72px;height:72px;min-height:0;margin:-34px auto 0;padding:0;border:3px solid var(--navy);border-radius:50%;background:var(--sun);box-shadow:0 5px 0 var(--navy),0 0 26px #FFD21F}.nav button.moon.active{background:#fff}.nav button.moon svg{width:32px;height:32px}
.courier-card{background:linear-gradient(160deg,#FFD21F,#5AB0FF 55%,#FF5FB0);border:4px solid var(--cream);border-radius:26px;box-shadow:0 7px 0 var(--navy),0 0 34px #5AB0FF99}.courier-copy h2{color:var(--navy)}.courier-card .eyebrow{color:var(--navy)}.courier-copy p{color:var(--navy)}
.news-panel{background:var(--cream);color:var(--navy);border:3px solid var(--navy);border-radius:22px;box-shadow:0 6px 0 var(--navy);font-family:var(--body);text-shadow:none}.news-panel .news-kicker{color:var(--blue)}.news-panel .news-content h2{color:var(--navy);font-family:var(--pixel)}.news-panel .news-content p{color:#1B2A6B}.news-panel .news-image{border:3px solid var(--navy);border-radius:12px}.news-image{border:3px solid var(--navy)}.dot{border:2px solid var(--navy)}.dot.selected{background:var(--pink)}
.mission,.place-card,.action-box,.manual-item,.announcement{border:3px solid var(--navy);border-radius:16px;background:#fff}.place-card{border-width:0 0 2px;border-radius:0;background:none}.mission small,.small{color:var(--muted)}.mission em{color:var(--blue)}
.progress{height:16px;border:3px solid var(--navy);background:#fff}.progress i{background:var(--blue)}.trust{border-left-color:var(--teal);background:#DDF8F1;color:var(--navy)}
.split-stats div,.inventory div,.details-box,.legend span{background:#E4EEFF;border-radius:14px;color:var(--navy)}.split-stats b,.inventory b{color:var(--blue);font-family:var(--pixel)}
.steps li span{background:var(--navy);color:var(--sun);font-family:var(--pixel)}.rank-row>b{color:var(--blue);font-family:var(--pixel)}.rank-row strong{color:var(--navy)}
.status{border:2px solid var(--navy)}.points-preview{background:#FFF1A8;border:3px solid var(--navy);border-radius:14px}.tag-button{border:2px solid var(--navy);background:#fff}
.leaflet-map{border:3px solid var(--navy);border-radius:20px}html[data-theme=night] .leaflet-tile-pane{filter:brightness(.7) contrast(1.1) saturate(1.3)}.custom-pin span{background:var(--blue);border:3px solid var(--sun)}
.toast{border:3px solid var(--navy);box-shadow:0 5px 0 var(--navy);bottom:calc(116px + env(safe-area-inset-bottom))}.footer{color:var(--cream)}.footer a{color:var(--sun)}
/* Cargo: shipping-container look */
.container-hero{position:relative;margin:-5px -5px 14px;padding:14px 18px 16px;border:3px solid var(--navy);border-radius:16px;color:var(--cream);background:repeating-linear-gradient(90deg,#1F4BFF 0 16px,#173FD0 16px 20px)}
.container-hero:before,.container-hero:after{content:"";position:absolute;top:8px;width:10px;height:10px;border-radius:50%;background:var(--sun);border:2px solid var(--navy)}.container-hero:before{left:8px}.container-hero:after{right:8px}
.container-hero .plate{display:inline-block;padding:2px 10px;border:2px solid var(--cream);border-radius:6px;font:800 12px var(--pixel);letter-spacing:2px;color:var(--sun)}.container-hero h1{color:var(--cream);margin:8px 0 4px}.container-hero h1:after{content:none}.container-hero p{margin:0;color:#DCE8FF;font-size:15px}
.cosmetic{margin:10px 0;padding:10px;border:3px solid var(--navy);border-bottom-width:6px;border-radius:16px;background:#fff}.reward-art{border:3px solid var(--navy);border-radius:12px;background:linear-gradient(160deg,#FFD21F,#fff)}.reward-stock{font:800 12px var(--pixel);color:var(--blue);letter-spacing:1px}

/* ===== v2: ranks, minerals, gadgets, chests, adventures, album ===== */
.button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.mq-tabs{display:flex;gap:8px;margin:0 0 12px}.mq-tabs .button{flex:1}.mq-rank{margin:6px 0;font-weight:800}
.mq-chest{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border:3px solid var(--navy);border-radius:16px;background:linear-gradient(160deg,#1F4BFF,#5AB0FF);color:var(--cream)}.mq-chest small{display:block;font-size:12px}
.mq-min{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.mq-mtile{flex:none;width:84px;padding:4px 2px;border:3px solid var(--navy);border-radius:14px;background:#fff;text-align:center;font:800 12px/1.2 var(--body)}.mq-mtile span{display:block}.mq-mtile b{font-size:15px}
.mq-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.mq-slot{position:relative;aspect-ratio:1;display:grid;place-items:center;padding:0;border:3px solid var(--navy);border-radius:14px;background:linear-gradient(160deg,var(--t),#fff);cursor:pointer}.mq-slot.sel{border-color:var(--sun);outline:3px solid var(--navy)}.mq-slot.lock{background:#C9D8FF}.mq-slot.lock>span{opacity:.45}.mq-slot svg{width:100%;max-width:50px;height:auto}
.mq-lock{position:absolute;right:2px;bottom:0;font-style:normal;font-size:16px}.mq-eq{position:absolute;left:3px;top:2px;width:18px;height:18px;line-height:14px;font-style:normal;font-weight:800;font-size:12px;text-align:center;color:var(--navy);background:var(--sun);border:2px solid var(--navy);border-radius:50%}
.mq-panel{padding:12px;border:3px solid var(--navy);border-bottom-width:6px;border-radius:18px;background:#fff}.mq-cost{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}.mq-cost span{padding:2px 10px;border:3px solid var(--navy);border-radius:12px;background:#FFF1A8;font-weight:800;font-size:13px}.mq-cost .miss{background:#FFD1E6}
.mq-cromo{position:relative;margin:14px 0;padding:14px;border:5px solid var(--cream);border-radius:28px;text-align:center;color:var(--navy);background:linear-gradient(160deg,#FFD21F,#9CC6FF 55%,#FF5FB0);box-shadow:0 8px 0 var(--navy),0 0 40px #5AB0FF99}
.mq-cromo-top{display:flex;justify-content:space-between;font:800 13px var(--pixel)}.mq-cromo-art{width:200px;max-width:70%;margin:8px auto;padding:8px;border:3px solid var(--navy);border-radius:20px;background:var(--cream)}.mq-cromo-art svg{width:100%;height:auto;display:block}.mq-cromo h2{margin:0}.mq-sub{margin:0;font-weight:800}.mq-glyph{height:16px;margin:6px auto;background:radial-gradient(circle at 12% 50%,#f2bd52 0 2px,transparent 2.5px),radial-gradient(circle at 88% 50%,#63b6ef 0 2px,transparent 2.5px),linear-gradient(90deg,transparent,#63b6ef 18%,#f2bd52 50%,#63b6ef 82%,transparent) center/90% 1px no-repeat;position:relative}.mq-glyph:after{content:'';position:absolute;left:50%;top:1px;width:12px;height:12px;border:1px solid #f2bd52;border-radius:50%;transform:translateX(-50%);box-shadow:0 0 0 3px #63b6ef22}.mq-stats{display:flex;gap:6px;margin:8px 0}.mq-stats div{flex:1;padding:4px;border-radius:12px;background:var(--cream);font:800 12px/1.2 var(--body)}.mq-stats b{display:block;font:800 18px var(--pixel)}
.mq-chip{display:inline-block;margin:8px 0 0;padding:2px 12px;border:3px solid var(--navy);border-radius:14px;background:var(--pink);color:var(--navy);font-weight:800;font-size:13px}.mq-gear{display:flex;justify-content:center;gap:8px;margin:10px 0;min-height:38px;align-items:center}.mq-gear span{padding:2px;border:3px solid var(--navy);border-radius:12px;background:var(--cream)}
.mq-adv{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0;padding:10px 12px;border:3px solid var(--navy);border-bottom-width:6px;border-radius:16px;background:#fff}.mq-adv.on{background:#FFF1A8}.mq-adv small{display:block;color:var(--muted)}
.mq-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.mq-card{aspect-ratio:3/4;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:8px;border:3px solid var(--cream);border-radius:16px;text-align:left;color:var(--navy);background:#C9D8FF;box-shadow:0 4px 0 var(--navy);cursor:pointer;font:800 12px/1.15 var(--body)}.mq-card.own{background:linear-gradient(160deg,#FFD21F,#5AB0FF)}.mq-card:nth-child(3n+2).own{background:linear-gradient(160deg,#FF5FB0,#FFD21F)}.mq-card:nth-child(3n).own{background:linear-gradient(160deg,#1FD6B5,#9A6BFF)}.mq-card .ico{font-size:30px;line-height:1;margin:auto}.mq-card b{font:800 16px var(--pixel)}

/* MondQuest full-screen map / friendly field atlas */
html,body{height:100%;overflow:hidden}body{padding:0!important;background:#d8e9d8;color:#102d47}body:before{display:none}#app{max-width:none;width:100%;height:100dvh;min-height:0;padding:0;margin:0}.topbar,.nav{display:none!important}.view{position:absolute;inset:0;padding:0;overflow:hidden;animation:none}.map-sheet-close{display:none}.view:not(:has(.map-world)) .map-sheet-close{display:grid;position:fixed;z-index:800;top:max(12px,env(safe-area-inset-top));right:14px;width:48px;height:48px;place-items:center;border:3px solid #163652;border-radius:50%;background:#ffda48;color:#163652;font-size:28px;font-weight:900;box-shadow:0 4px 0 #163652}.view:not(:has(.map-world)){overflow-y:auto;padding:13vh 12px 100px;background:linear-gradient(145deg,#dfead7,#cbe1d8 55%,#bad6d2)}.view:not(:has(.map-world))>.card,.view:not(:has(.map-world))>.courier-card{max-width:760px;margin:0 auto 18px}.view:not(:has(.map-world))>.card:first-child{border-radius:28px 28px 20px 20px;box-shadow:0 8px 0 #163652,0 20px 48px #173b4255}.map-world{position:absolute;inset:0;background:linear-gradient(145deg,#e6f0dc,#c8e3d9 55%,#b9d8d4);overflow:hidden}.map-world .leaflet-map{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;filter:saturate(.88) contrast(.96)}.leaflet-tile-pane{filter:saturate(.85) contrast(.98)}.map-hud{position:absolute;z-index:500;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;pointer-events:none}.map-hud>*{pointer-events:auto}.player-pill,.coin-pill,.shop-pill{display:flex;align-items:center;gap:8px;min-height:54px;padding:6px 12px;border:3px solid #163652;border-radius:22px;background:#fff6df;color:#132f49;box-shadow:0 5px 0 #163652;font-weight:900}.player-pill{text-align:left;min-width:0}.player-pill span:last-child{display:grid;line-height:1.05}.player-pill small,.coin-pill small{font-size:11px;color:#486177}.avatar-dot{width:36px;height:36px;overflow:hidden;border-radius:50%;background:#a9d9d5;flex:none}.avatar-dot .creature{width:40px;height:42px}.coin-pill{background:#ffda48;white-space:nowrap}.coin-pill small{display:block}.shop-pill{background:#ff8f7b;white-space:nowrap}.float-actions{position:absolute;z-index:500;display:grid;gap:9px;top:50%;transform:translateY(-50%)}.float-actions.right{right:13px}.float-actions.left{left:13px}.float-actions button,.round-tool{width:60px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:3px solid #163652;border-radius:50%;background:#fff6df;color:#163652;box-shadow:0 5px 0 #163652;font-size:23px;font-weight:900;transition:transform .15s,filter .15s}.float-actions button:hover,.round-tool:hover{transform:translateY(-3px);filter:brightness(1.04)}.float-actions small,.round-tool small{font-size:9px;line-height:1;font-weight:900}.float-actions button:nth-child(2){background:#98e4c4}.float-actions button:nth-child(3){background:#ffdc69}.float-actions button:nth-child(4){background:#b6d8ff}.float-actions button:nth-child(5){background:#ffa2bd}.float-actions.left button{background:#c8e4ff}.map-bottom{position:absolute;z-index:500;left:50%;bottom:max(15px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:13px}.round-tool{width:58px;height:58px;background:#fff6df}.map-place-list{position:absolute;z-index:499;bottom:90px;left:12px;display:flex;gap:6px;max-width:calc(100% - 160px);overflow:auto;padding:4px}.map-place-list button{flex:none;border:2px solid #163652;border-radius:22px;padding:8px 12px;background:#fff6df;color:#163652;box-shadow:0 3px 0 #163652;font-weight:800}.map-warning{position:absolute;z-index:700;left:50%;top:50%;transform:translate(-50%,-50%);width:min(85%,350px);box-shadow:0 5px 0 #163652}.custom-pin.place span{border-color:#fff;background:#ee8175;box-shadow:0 0 0 4px #ee817566,0 5px 0 #163652}.custom-pin.place.inactive span{filter:grayscale(1);opacity:.6;background:#aab4b8;box-shadow:0 4px 0 #5a6973}.custom-pin.place.active span{filter:none;opacity:1;box-shadow:0 0 0 4px #ffd84d88,0 5px 0 #163652,0 0 20px #fff}.custom-pin.place.hot span{animation:hotPulse 1.7s infinite}.custom-pin span{box-shadow:0 5px 0 #163652,0 0 15px #fff9}.place-popup{font-family:var(--body)}.place-popup .button{margin-top:7px}.points-table{width:100%;border-collapse:collapse;margin:10px 0}.points-table th,.points-table td{padding:8px;border-bottom:2px solid #c5d6e5;text-align:left}.batch-notice,.pending-material{padding:12px 14px;border:3px solid #163652;border-radius:14px;background:#ffdf78;color:#163652}.pending-material{margin:8px 0}.map-world+.view{background:transparent}@keyframes hotPulse{50%{box-shadow:0 0 0 11px #ffac5266,0 0 22px #ffe795}}
@media(max-width:650px){.map-hud{grid-template-columns:1fr auto;top:max(8px,env(safe-area-inset-top));left:8px;right:8px;gap:6px}.player-pill{grid-column:1;grid-row:1}.coin-pill{grid-column:2;grid-row:1}.shop-pill{grid-column:2;grid-row:2;min-height:42px;justify-content:center}.float-actions.right{right:7px;gap:7px}.float-actions.left{left:7px;gap:7px}.float-actions button{width:52px;height:52px;font-size:20px}.map-bottom{bottom:max(10px,env(safe-area-inset-bottom));gap:9px}.round-tool{width:51px;height:51px}.map-place-list{bottom:76px;max-width:calc(100% - 130px)}.map-place-list button{font-size:12px;padding:7px 9px}}

.record-credit{display:flex;align-items:center;gap:9px;margin:10px 0;padding:9px;border:1px solid #d7c895;border-radius:10px;background:#fffaf0}.record-credit>span:not(.record-avatar){margin-left:auto;font-size:12px;color:#526879}.record-credit>span:first-child{margin-left:0;font-weight:800;color:#143c56}.record-avatar{display:grid;place-items:center;width:42px;height:42px;flex:none;overflow:hidden;border-radius:50%;border:2px solid #d2a934;background:#102d42}.record-avatar .creature{width:40px!important;filter:none}.record-avatar.unknown{font:800 20px ui-monospace,monospace;color:#fff}.record-credit .player-code{margin-left:auto}.record-credit-list{margin:15px 0}.map-world{position:relative;min-height:calc(100vh - 158px);margin:-14px -15px -18px;overflow:hidden;background:#10263b}.map-world .leaflet-map{height:calc(100vh - 155px);min-height:520px;border:0;border-radius:0;background:#b7c9b1}.map-world .map-hud,.map-world .float-actions,.map-world .map-bottom,.map-world .map-place-list{z-index:500}.map-world .map-hud{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;gap:6px;pointer-events:none}.map-world .map-hud>*{pointer-events:auto}.player-pill,.coin-pill,.shop-pill{display:flex;align-items:center;gap:7px;padding:8px 10px;border:2px solid #0b1b6b;border-radius:13px;background:#fff6e6;color:#0b1b6b;box-shadow:0 3px 0 #0b1b6b;font-weight:800}.player-pill{max-width:44%;text-align:left}.player-pill small{display:block;font-size:11px}.avatar-dot{width:30px;height:30px;overflow:hidden;border-radius:50%}.avatar-dot .creature{width:30px!important}.coin-pill{white-space:nowrap}.shop-pill{white-space:nowrap}.map-world .float-actions{position:absolute;top:88px;display:grid;gap:7px}.map-world .float-actions.right{right:12px}.map-world .float-actions.left{left:12px}.map-world .float-actions button,.round-tool{display:grid;place-items:center;gap:0;min-width:50px;min-height:48px;padding:5px;border:2px solid #0b1b6b;border-radius:13px;background:#fff6e6;color:#0b1b6b;box-shadow:0 3px 0 #0b1b6b;font-weight:900}.map-world .float-actions button small,.round-tool small{display:block;font-size:10px;line-height:1.2}.map-bottom{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px;white-space:nowrap}.map-bottom button{padding:6px 10px}.map-place-list{position:absolute;bottom:76px;left:12px;display:grid;gap:4px;max-width:min(55vw,330px);max-height:130px;overflow:auto}.map-place-list button{padding:7px 9px;border:1px solid #0b1b6b;border-radius:9px;background:#fff6e6;color:#0b1b6b;text-align:left;font-weight:800}.map-world .map-warning{position:absolute;z-index:600;top:65px;left:12px;right:12px;margin:0}.map-sheet-close{position:fixed;z-index:19;right:max(12px,calc((100vw - 760px)/2 + 12px));bottom:calc(78px + env(safe-area-inset-bottom));padding:8px 12px;border:2px solid #0b1b6b;border-radius:18px;background:#fff6e6;color:#0b1b6b;font-weight:900;box-shadow:0 3px 0 #0b1b6b}.map-presence{position:absolute;z-index:550;right:12px;bottom:70px;max-width:230px;padding:8px 10px;border:1px solid #0b1b6b;border-radius:10px;background:#fff6e6;color:#0b1b6b;font-size:12px;box-shadow:0 2px 0 #0b1b6b}.map-presence b,.map-presence span{display:block}.map-presence button{padding:3px 7px;margin-top:4px;border:1px solid #0b1b6b;border-radius:8px;background:#1fd6b5;color:#0b1b6b;font-weight:800}.offline-map{height:100%;min-height:300px;position:relative;overflow:hidden;background-color:#cad7b5;background-image:linear-gradient(24deg,transparent 47%,#f5e2ab 48%,#fff5d8 50%,#f5e2ab 52%,transparent 53%),linear-gradient(108deg,transparent 36%,#a6c2b0 37%,#d3dfc0 39%,transparent 40%),repeating-linear-gradient(0deg,transparent 0 49px,#ffffff55 50px 52px),repeating-linear-gradient(90deg,transparent 0 59px,#ffffff55 60px 62px)}.offline-map:after{content:'SCHEMATIC OVERVIEW · NOT A REAL MAP';position:absolute;left:10px;bottom:8px;padding:4px 7px;border-radius:6px;background:#fff6e6;color:#0b1b6b;font:700 10px ui-monospace,monospace}.offline-map-pin{position:absolute;z-index:2;transform:translate(-50%,-100%);padding:5px;border:2px solid #0b1b6b;border-radius:50% 50% 50% 0;background:#fff6e6;color:#0b1b6b;font-size:17px;box-shadow:0 2px 0 #0b1b6b}.presence-pin{background:#1fd6b5}.online-list{padding:8px;background:#eff5df;border-radius:9px;color:#143a56;font-size:12px}.privacy-note{padding:9px;border-left:4px solid #1b8d70;background:#e5f2e6;color:#18483f}.
/* Final map-first responsive pass: reliable full-height map and a small, readable control set. */
html,body,#app{width:100%;height:100%;height:100dvh;min-height:0}#app{overflow:hidden}
#app>.view:has(.map-world){position:absolute;inset:0;width:100%;height:100%;padding:0;overflow:hidden}
#app>.view:has(.map-world)>.map-world{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0}
.map-world .leaflet-map{position:absolute;inset:0;width:100%;height:100%;min-height:0}
.map-world .map-hud{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:7px;align-items:center;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));pointer-events:none}
.map-world .player-pill{grid-column:1;grid-row:1;max-width:none;min-width:0;min-height:48px;padding:5px 9px;overflow:hidden;border-radius:18px;font-size:14px}
.map-world .player-pill b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-world .coin-pill{grid-column:2;grid-row:1;min-height:48px;padding:5px 10px;border-radius:18px;font-size:13px}
.map-world .shop-pill{grid-column:1;grid-row:2;justify-self:start;min-height:40px;padding:5px 13px;border-radius:15px;font-size:13px}
.news-bell{position:relative;grid-column:3;grid-row:1 / span 2;justify-self:end;display:grid;place-items:center;width:42px;height:42px;border:2px solid #0b1b6b;border-radius:50%;background:#fff6e6;color:#0b1b6b;box-shadow:0 3px 0 #0b1b6b;font-size:23px;font-weight:900;pointer-events:auto}
.news-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;border:2px solid #0b1b6b;border-radius:12px;background:#ff5fb0;color:#0b1b6b;font:900 11px/1 var(--body)}.news-badge[hidden]{display:none}
.map-world .float-actions{display:none!important}.map-world .map-bottom{bottom:max(14px,env(safe-area-inset-bottom));gap:9px}.map-world .round-tool{width:48px;min-width:48px;height:48px;min-height:48px;padding:3px;border-radius:16px;font-size:18px}.map-world .round-tool small{font-size:9px}
.map-world .map-place-list{left:10px;bottom:76px;max-width:min(65vw,350px);max-height:26vh;grid-template-columns:1fr}.map-world .map-place-list button{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.map-world .map-presence{display:none}
.map-world .map-warning{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(88vw,390px);max-height:45vh;overflow:auto}
.offline-map{min-height:0;height:100%;background-color:#cbd7bd;background-image:radial-gradient(circle at 15% 26%,#dbe2c9 0 9%,transparent 9.3%),radial-gradient(circle at 80% 62%,#bdd5c5 0 15%,transparent 15.3%),linear-gradient(24deg,transparent 47%,#f5e2ab 48%,#fff5d8 50%,#f5e2ab 52%,transparent 53%),repeating-linear-gradient(0deg,transparent 0 49px,#ffffff55 50px 52px),repeating-linear-gradient(90deg,transparent 0 59px,#ffffff55 60px 62px)}
.offline-map:after{content:'SCHEMATIC OVERVIEW · NOT STREET CARTOGRAPHY';font-size:9px}
.view:not(:has(.map-world)){padding-top:max(74px,calc(env(safe-area-inset-top) + 62px));padding-bottom:calc(100px + env(safe-area-inset-bottom))}.view:not(:has(.map-world))>.card{width:min(100%,760px)}
.more-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}.more-grid .button{min-width:0;min-height:48px;padding:9px;font-size:14px}.location-settings{max-width:760px;margin:12px auto;padding:14px 16px;border:2px solid var(--navy);border-radius:18px;background:var(--cream);color:var(--navy);box-shadow:0 4px 0 var(--navy)}.location-settings h2{margin:0 0 6px}.location-settings p{margin:4px 0 10px;color:var(--muted);font-size:14px}.location-settings .actions{gap:8px}.location-settings .button{flex:1;min-width:130px;font-size:13px}
.admin-console .small{color:#d9e6d9}.admin-console .field{color:#e6dfbf}.admin-console .check-field{position:relative;z-index:1;color:#e6dfbf}.admin-console input,.admin-console textarea,.admin-console select{max-width:100%}
.map-warning[hidden]{display:none!important}.map-warning .button{margin-top:8px}
@media(max-width:370px){.map-world .coin-pill{font-size:12px;padding:4px 7px}.map-world .player-pill{font-size:12px}.map-world .avatar-dot{width:28px;height:28px}.map-world .avatar-dot .creature{width:28px!important}.map-world .map-place-list{max-width:62vw}}
@media(min-width:760px){.map-world .map-place-list{max-width:340px}.map-world .map-bottom{left:auto;right:24px;transform:none}}

/* Original retro space-noir atlas: ink-dark, signal amber, restrained vermilion. */
:root{--navy:#09131c;--blue:#183b4a;--sky:#5f9a9c;--sun:#f0b64b;--pink:#e56f55;--teal:#76aaa0;--cream:#e8dfc8;--ink:#111b20;--gold:#f0b64b;--coral:#e56f55;--mint:#76aaa0;--muted:#53666a;--line:#34464a;--pixel:ui-monospace,"Courier New",monospace;--body:"Trebuchet MS","Segoe UI",sans-serif}
html,html[data-theme=night],html[data-theme=day],body,html[data-theme=night] body,html[data-theme=day] body{background:#071018;color:#e8dfc8}
#app>.view:has(.map-world){background:#071018}.map-world{background:radial-gradient(ellipse at 52% 44%,#263a3a 0,#172629 37%,#090f15 78%,#060b10 100%)}
.map-world .leaflet-map{filter:grayscale(.55) sepia(.28) hue-rotate(145deg) saturate(.76) brightness(.72) contrast(1.12)}
.map-world:before{content:"";position:absolute;z-index:400;inset:0;pointer-events:none;background:linear-gradient(180deg,#050b12b8 0%,transparent 19%,transparent 66%,#050b12b0 100%),repeating-linear-gradient(0deg,#d9e5d208 0 1px,transparent 1px 4px);box-shadow:inset 0 0 100px 25px #02070bc9}
.map-world:after{content:"NIGHT ROUTE / BERLIN SECTOR 52°31′N";position:absolute;z-index:401;left:max(16px,env(safe-area-inset-left));bottom:calc(105px + env(safe-area-inset-bottom));padding:5px 8px;border-left:2px solid var(--sun);background:#081117c9;color:#d0c8af;font:10px/1.2 var(--pixel);letter-spacing:1px;pointer-events:none}
.map-world .map-hud{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;gap:8px;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top))}
.map-world .player-pill,.map-world .coin-pill{min-height:46px;padding:5px 10px;border:1px solid #c29546;border-radius:5px;background:#101b20ee;color:#eee4c9;box-shadow:0 4px 14px #0009;font-family:var(--pixel);font-size:12px;letter-spacing:.2px}
.map-world .player-pill{grid-column:1;grid-row:1;max-width:min(48vw,290px)}.map-world .coin-pill{grid-column:2;grid-row:1;gap:6px;justify-self:end;color:#f1c879}.map-world .player-pill small,.map-world .coin-pill small{color:#a8b5ab;font:10px var(--body)}
.map-world .avatar-dot{width:33px;height:33px;border:1px solid #d49d45;border-radius:2px;background:#26393a}.map-world .news-bell{grid-column:3;grid-row:1;justify-self:end;width:43px;height:43px;border:1px solid #c29546;border-radius:4px;background:#111b20;color:#f0c46c;box-shadow:0 4px 12px #0009;font-size:23px}
.map-world .news-badge{border:1px solid #10181b;border-radius:2px;background:#e56f55;color:#fff1d2}.map-world .map-bottom{z-index:501;left:50%;right:auto;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 36px),520px);display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:10px}
.map-world .round-tool{width:54px;min-width:54px;height:50px;min-height:50px;padding:4px;border:1px solid #b28a48;border-radius:4px;background:#111b20ef;color:#eee2c4;box-shadow:0 4px 0 #05090c,0 7px 20px #0008;font:18px var(--pixel)}.map-world .round-tool small{font:9px var(--pixel);letter-spacing:1px;color:#c5b892}.map-world .location-tool{justify-self:start;color:#9ec8b2}.map-world .center-tool{justify-self:end;color:#f0c46c}.map-world .moon-menu{width:68px;height:68px;min-width:68px;min-height:68px;justify-self:center;border:2px solid #f0bd59;border-radius:50%;background:#e1aa45;color:#111a1e;box-shadow:0 0 0 5px #090f15,0 0 0 6px #876536,0 0 28px #dfa94166;font-size:14px}.map-world .moon-menu svg{width:31px;height:31px}.map-world .moon-menu small{color:#192024}.map-world .map-presence,.map-world .map-place-list{display:none!important}
.map-world .map-warning{border:1px solid #d39b3f;border-radius:3px;background:#111b20f2;color:#eee2c4;box-shadow:0 8px 34px #000b}.map-world .map-warning p{color:#c1c1ad}
.offline-map{background-color:#111c20;background-image:radial-gradient(ellipse at 28% 55%,#253a38 0 17%,transparent 17.3%),radial-gradient(ellipse at 78% 26%,#222f33 0 14%,transparent 14.3%),linear-gradient(24deg,transparent 47%,#9b733a 48%,#d6a851 49%,#2f3630 50%,transparent 52%),repeating-linear-gradient(0deg,transparent 0 49px,#d9c89116 50px 52px),repeating-linear-gradient(90deg,transparent 0 59px,#d9c89116 60px 62px)}.offline-map:after{background:#0b1117e8;color:#ddc58b;border-left:2px solid #e3aa43}
.map-world .custom-pin span{border-color:#ebb752;background:#1b3337;color:#eebd59;box-shadow:0 0 0 4px #e8b24a30,0 4px 12px #0009}.news-panel{background:#111b20;color:#e8dfc8;border-color:#9a7945}.news-panel .news-content h2,.news-panel .news-content p{color:#e8dfc8}.more-grid .button{background:#17262b;color:#e8dfc8;border-color:#92733f;box-shadow:0 3px #080d11}
@media(max-width:650px){.map-world .map-hud{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;gap:5px;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}.map-world .player-pill{grid-column:1;grid-row:1}.map-world .coin-pill{grid-column:2;grid-row:1;min-height:43px}.map-world .news-bell{grid-column:3;grid-row:1;width:40px;height:40px}.map-world .map-bottom{bottom:max(17px,env(safe-area-inset-bottom));width:calc(100% - 28px)}.map-world:after{bottom:calc(101px + env(safe-area-inset-bottom));font-size:9px}}
@media(max-width:370px){.map-world .coin-pill{font-size:11px;padding:4px 7px}.map-world .player-pill{font-size:11px}.map-world .player-pill small{font-size:9px}.map-world .avatar-dot{width:29px;height:29px}.map-world .avatar-dot .creature{width:29px!important}.map-world .map-hud{gap:4px}}
/* Top rail: identity upper-left, wallet upper-right; alerts sit just below the wallet. */
.map-world .map-hud{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}.map-world .player-pill{grid-column:1;grid-row:1}.map-world .coin-pill{grid-column:2;grid-row:1}.map-world .news-bell{grid-column:2;grid-row:2}

/* Final map HUD: original moonlit anime-noir field atlas, with destinations kept in the menu. */
.map-world{isolation:isolate;background:radial-gradient(ellipse at 50% 43%,#243a3b 0,#17282b 34%,#0a1217 72%,#060b10 100%)}
.map-world:before{z-index:2;background:linear-gradient(180deg,#050b12c4 0%,transparent 23%,transparent 71%,#050b12dc 100%),repeating-linear-gradient(0deg,#d9e5d20a 0 1px,transparent 1px 5px),radial-gradient(ellipse at 50% 45%,transparent 34%,#020609a8 100%);box-shadow:inset 0 0 92px 18px #02070bc9}
.map-world:after{z-index:3;letter-spacing:1.15px}
.map-world .map-hud{z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:start;justify-content:stretch;gap:7px;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));pointer-events:none}
.map-world .map-hud .player-pill{grid-column:1;grid-row:1;justify-self:start;max-width:min(48vw,290px);min-width:0}
.map-world .map-hud .coin-pill{grid-column:2;grid-row:1;justify-self:end;white-space:nowrap}
.map-world .map-hud .news-bell{grid-column:2;grid-row:2;justify-self:end;width:44px;height:42px;display:grid;place-items:center;pointer-events:auto}
.map-world .news-bell svg{width:23px;height:23px;display:block}
.map-world .news-badge[hidden]{display:none!important}
.map-world .map-bottom{z-index:6;left:50%;right:auto;bottom:max(17px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 30px),460px);display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:10px}
.map-world .location-tool{grid-column:1;grid-row:1;justify-self:start}
.map-world .moon-menu{grid-column:2;grid-row:1;justify-self:center}
.map-world .center-tool{grid-column:3;grid-row:1;justify-self:end}
.map-world .round-tool{z-index:1;position:relative}
.map-world .moon-menu{width:70px;height:70px;min-width:70px;min-height:70px;border-radius:50%;background:radial-gradient(circle at 36% 28%,#f4d992,#d99a35 72%);color:#11191a}
.map-world .location-tool,.map-world .center-tool{min-width:58px;width:58px;height:54px;border-radius:5px}
.map-world .map-place-list,.map-world .map-presence,.map-world .map-quick-places,.map-world .places-list,.map-world [data-main-place-list]{display:none!important;visibility:hidden!important}
.map-world .map-warning{z-index:4}
.map-world .leaflet-map{z-index:0}
@media(max-width:370px){.map-world .map-hud{left:8px;right:8px;gap:5px}.map-world .map-hud .player-pill{max-width:47vw;padding:4px 7px}.map-world .map-hud .coin-pill{padding:4px 7px;font-size:11px}.map-world .map-bottom{width:calc(100% - 24px);gap:6px}.map-world .location-tool,.map-world .center-tool{width:52px;min-width:52px}.map-world .moon-menu{width:64px;height:64px;min-width:64px;min-height:64px}}
.offline-sticker-pin{background:#e7b75a;color:#17232a;cursor:default}
.world-shortcut{width:43px;min-width:43px;height:43px;min-height:43px;padding:5px!important;justify-content:center!important;gap:0!important}
.world-shortcut svg{display:block;width:24px;height:24px}
@media(max-width:480px){.map-world .world-shortcut{width:40px;min-width:40px;height:40px;min-height:40px;padding:4px!important}}
/* Focused alignment: preserve the noir blue/amber home atlas and half-screen centered menu. */
.map-world .world-shortcut{position:absolute;z-index:502;top:calc(max(14px,env(safe-area-inset-top)) + 103px);right:max(14px,env(safe-area-inset-right));display:flex;align-items:center;gap:7px;min-height:43px;padding:6px 12px;border:1px solid #c29546;border-radius:5px;background:#101b20ee;color:#f0c46c;box-shadow:0 4px 14px #0009;font:11px ui-monospace,monospace;letter-spacing:1px;text-transform:uppercase}
.world-shortcut svg{width:23px;height:23px;flex:none}.world-shortcut:hover{background:#1b3337}
.rank-link{width:100%;grid-template-columns:54px minmax(0,1fr) auto;text-align:left;color:#eee2c4;background:#101b20;border:1px solid #a98443;border-radius:10px;cursor:pointer}.rank-link>span:nth-child(2){display:grid;gap:3px}.rank-link>span:nth-child(2)>strong{color:#f0c46c}.rank-link small,.rank-equipment{display:block;color:#c2c9c5;font-size:12px}.rank-avatar{width:48px;height:48px;overflow:hidden;border:1px solid #bd934b;background:#162a31;border-radius:50%}.rank-avatar .creature{width:48px!important}.dossier-head{display:flex;align-items:center;gap:18px}.dossier-avatar{width:min(35vw,170px);flex:none}.dossier-avatar .creature{width:100%!important}.player-dossier .player-code{margin:4px 0}.dossier-gear{padding:8px 12px;background:#172831;border-radius:10px}.dossier-gear p{margin:7px 0}.player-dossier .split-stats{margin:12px 0}.player-dossier .split-stats div{border:1px solid #53666a}
@media(max-width:480px){.map-world .world-shortcut{top:calc(max(8px,env(safe-area-inset-top)) + 97px);right:8px;min-height:40px;padding:5px 9px}.dossier-head{align-items:flex-start;gap:8px}.dossier-avatar{width:100px}.rank-link{grid-template-columns:44px minmax(0,1fr) auto}.rank-avatar{width:40px;height:40px}}
/* Final cohesive interaction layer: map-first spacing, dark forms, accessible photo source, and original Lunito marks. */
.view:has(.map-world)>.map-sheet-close{display:none!important}
.map-world .map-bottom{left:50%;right:auto;bottom:max(17px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 32px),330px);display:grid;grid-template-columns:minmax(58px,1fr) 70px minmax(58px,1fr);align-items:end;gap:clamp(8px,3vw,22px)}
.map-world .map-bottom>.location-tool{grid-column:1;grid-row:1;justify-self:start}.map-world .map-bottom>.moon-menu{grid-column:2;grid-row:1;justify-self:center}.map-world .map-bottom>.center-tool{grid-column:3;grid-row:1;justify-self:end}
.map-world .location-tool,.map-world .center-tool{width:54px;min-width:54px;height:54px;min-height:54px;border-radius:50%}.map-world .moon-menu{width:70px;height:70px;min-width:70px;min-height:70px;border-radius:50%;background:radial-gradient(circle at 35% 27%,#f8d985,#d89d3d 72%);color:#17232a}.map-world .moon-menu svg{width:32px;height:32px}.map-world .location-tool svg,.map-world .center-tool svg{display:block;width:24px;height:24px;flex:none}.map-world .moon-menu small{color:#192024}
/* Keep bottom controls centered identically on touch and wide viewports; no extra home-map back control. */
@media(max-width:480px){.map-world .map-bottom{width:min(calc(100% - 24px),320px);grid-template-columns:minmax(52px,1fr) 64px minmax(52px,1fr);gap:8px}.map-world .location-tool,.map-world .center-tool{width:49px;min-width:49px;height:49px;min-height:49px}.map-world .moon-menu{width:62px;height:62px;min-width:62px;min-height:62px}}
@media(max-height:470px){.map-world .map-bottom{bottom:max(8px,env(safe-area-inset-bottom))}.map-world .map-world:after{display:none}}
/* All user-facing fields use the same legible dark control treatment, including selects and multiline notes. */
.view:not(:has(.map-world))>.card:has(form){background:linear-gradient(150deg,#13232c,#0b161d)!important;color:#eee6d2!important;border-color:#b38e4a!important}.view:not(:has(.map-world))>.card:has(form) h1,.view:not(:has(.map-world))>.card:has(form) h2,.view:not(:has(.map-world))>.card:has(form) h3{color:#f0c46c!important}.view:not(:has(.map-world))>.card:has(form) .small{color:#c2c9c5!important}.view:not(:has(.map-world))>.card:has(form) .details-box{background:#172831;color:#eee6d2}
.field{color:#e8dcbf!important}.field input,.field select,.field textarea,.onboard-field input{background:#101c25!important;color:#f5efdc!important;border:1px solid #8a9ca6!important;caret-color:#ffd061}.field input::placeholder,.field textarea::placeholder,.onboard-field input::placeholder{color:#bac6ce!important;opacity:1}.field select option{background:#101c25;color:#f5efdc}.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.onboard-field input:focus-visible{outline:3px solid #ffd15b!important;outline-offset:2px;border-color:#ffd15b!important;box-shadow:0 0 0 2px #071116}.console-screen .field input,.console-screen .field textarea,.console-screen .field select{background:#101c25!important;color:#f5efdc!important}.console-screen .field input::placeholder,.console-screen .field textarea::placeholder{color:#bac6ce!important}
.photo-choice{position:relative;margin:12px 0}.photo-choice-label{display:block;color:#e8dcbf;font-weight:800;margin-bottom:5px}.photo-choice>.photo-pick{width:48px;height:48px;min-width:48px;min-height:48px;margin:3px 0;padding:0;border:1px solid #d4a94d;border-radius:10px;background:#122b3b;color:#f3c65e;box-shadow:0 3px 0 #05090c}.photo-choice>.photo-pick svg{width:24px;height:24px}.photo-source-menu{display:inline-flex;gap:7px;vertical-align:middle;margin:0 0 0 9px;padding:6px;border:1px solid #b28a48;border-radius:10px;background:#0c171d}.photo-source-menu[hidden]{display:none!important}.photo-source-menu .button{margin:0;min-height:38px}.photo-choice .photo-preview{position:relative;display:inline-block;margin-left:10px;vertical-align:middle}.photo-choice .photo-preview img{position:static;width:42px;height:42px;object-fit:cover;border:2px solid #f1c45e;border-radius:8px}
.route-art-button{position:relative;display:flex!important;align-items:center;gap:9px!important;justify-content:flex-start!important;text-align:left!important;padding:8px 11px!important;background:linear-gradient(130deg,#142a38,#0c1820)!important;color:#f4e8ca!important;border-color:#a98443!important;box-shadow:0 3px #05090c!important}.route-art-button .lunito-route-art{width:38px;height:38px;flex:none;filter:drop-shadow(0 0 5px #58b6e755)}.route-art-button:hover .lunito-route-art{transform:rotate(-5deg) scale(1.06);transition:transform .18s}.reward-art{position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 45%,#1c3847,#0b1821)!important;border-color:#c39a4b!important}.reward-art>svg:first-child{max-width:72px;max-height:56px;opacity:.8}.reward-lunito{position:absolute;right:-2px;bottom:-4px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#0d1d27;border:1px solid #d5a844;box-shadow:0 0 12px #4ba6d455}.reward-lunito svg{width:32px;height:32px}.lunar-sheet{height:50dvh;min-height:220px;max-height:50dvh}.lunar-sheet-scroll{min-height:0}.lunar-sheet .field{color:#e8dcbf!important}.lunar-sheet .photo-choice-label{color:#e8dcbf}
@media(prefers-reduced-motion:reduce){.route-art-button .lunito-route-art{transition:none!important}}
/* Shared blue-and-amber design system: carry the home atlas palette through every page and menu. */
:root{--mq-ink:#09131c;--mq-blue:#183b4a;--mq-blue2:#244e60;--mq-amber:#f0b64b;--mq-cream:#eee2c4;--mq-soft:#b9c7c2}
.view:not(:has(.map-world))>.card,.lunar-sheet,.more-grid,.menu-grid{color:var(--mq-cream)}
.view:not(:has(.map-world))>.card{background:linear-gradient(145deg,#142832,#0b171e 78%)!important;border:1px solid #b28a48!important;box-shadow:0 5px 0 #05090c,0 10px 26px #0006!important}
.view:not(:has(.map-world))>.card h1,.view:not(:has(.map-world))>.card h2,.view:not(:has(.map-world))>.card h3{color:#f0c46c!important}
.view:not(:has(.map-world))>.card p,.view:not(:has(.map-world))>.card .small,.view:not(:has(.map-world))>.card label{color:#c2c9c5}
.view:not(:has(.map-world))>.card .eyebrow,.view:not(:has(.map-world))>.card .news-kicker{color:#f0c46c}
.view:not(:has(.map-world))>.card .button,.lunar-sheet .button,.more-grid .button,.menu-grid .button{background:linear-gradient(145deg,#183b4a,#10232c)!important;color:#f2e7cc!important;border:1px solid #b28a48!important;box-shadow:0 3px 0 #05090c!important}
.view:not(:has(.map-world))>.card .button.primary{background:linear-gradient(145deg,#f5ca70,#d99a35)!important;color:#17232a!important;border-color:#f0b64b!important}
.view:not(:has(.map-world))>.card .button.quiet{background:#203b45!important;color:#eee2c4!important}
.view:not(:has(.map-world))>.card .split-stats div,.view:not(:has(.map-world))>.card .inventory div,.view:not(:has(.map-world))>.card .details-box,.view:not(:has(.map-world))>.card .legend span{background:#172831!important;color:#eee2c4!important;border:1px solid #52686c}
.view:not(:has(.map-world))>.card .split-stats b,.view:not(:has(.map-world))>.card .inventory b{color:#f0c46c!important}
.view:not(:has(.map-world))>.card .mission,.view:not(:has(.map-world))>.card .cosmetic,.view:not(:has(.map-world))>.card .manual-item,.view:not(:has(.map-world))>.card .action-box,.view:not(:has(.map-world))>.card .announcement,.view:not(:has(.map-world))>.card .place-card{background:#12232b!important;color:#eee2c4!important;border-color:#80683d!important}
.view:not(:has(.map-world))>.card .mission strong,.view:not(:has(.map-world))>.card .cosmetic b,.view:not(:has(.map-world))>.card .manual-item summary,.view:not(:has(.map-world))>.card .place-card h3{color:#f0c46c!important}
.view:not(:has(.map-world))>.card .mission small,.view:not(:has(.map-world))>.card .cosmetic small,.view:not(:has(.map-world))>.card .place-card p{color:#b9c7c2!important}
.lunar-sheet{background:linear-gradient(145deg,#142832,#0b171e)!important;border-color:#b28a48!important;color:#eee2c4!important}
.lunar-sheet h1,.lunar-sheet h2,.lunar-sheet h3{color:#f0c46c!important}.lunar-sheet .more-grid .button{min-height:54px}
.wallet,.coin-pill{cursor:pointer;font:inherit}.wallet:hover,.coin-pill:hover{filter:brightness(1.08);outline:2px solid #f0b64b;outline-offset:2px}
.wallet:focus-visible,.coin-pill:focus-visible{outline:3px solid #ffe28a!important;outline-offset:3px}

/* ===== Fix: welcome + guide screens had no styles. Noir blue/amber, matches the map home. ===== */
.onboarding{position:relative;min-height:100vh;min-height:100dvh;display:grid;align-items:center;padding:max(18px,env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom));overflow:hidden;color:#eee2c4;background:radial-gradient(ellipse at 50% 38%,#243a3b 0,#17282b 34%,#0a1217 72%,#060b10 100%)}
.onboarding-map{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.orbital{position:absolute;border:1px solid #c2954655;border-radius:50%}
.orbital-a{width:120vw;height:120vw;left:-30vw;top:-24vw}.orbital-b{width:90vw;height:90vw;right:-34vw;bottom:-30vw;border-color:#6ec8c844}
.map-star{position:absolute;color:#f0c46c;font-size:18px;opacity:.75}.star-a{left:12%;top:13%}.star-b{right:15%;top:22%;font-size:14px}.star-c{left:20%;bottom:20%}
.map-route{position:absolute;left:-10%;right:-10%;top:60%;height:2px;transform:rotate(-8deg);background:repeating-linear-gradient(90deg,#f0c46c99 0 10px,transparent 10px 20px)}
.map-caption{position:absolute;left:16px;bottom:calc(14px + env(safe-area-inset-bottom));font:10px/1 var(--pixel);letter-spacing:1.4px;color:#c5b892}
.onboard-panel{position:relative;z-index:1;width:min(100%,430px);margin:0 auto;padding:22px 20px;border:1px solid #b28a48;border-radius:8px;color:#eee2c4;background:linear-gradient(145deg,#142832f2,#0b171ef2);box-shadow:0 5px 0 #05090c,0 18px 48px #000a}
.onboard-panel p{color:#c9d0cb}
.onboard-kicker{font:11px/1.2 var(--pixel);letter-spacing:1.6px;color:#c5b892}
.onboard-emblem{display:grid;place-items:center;width:64px;height:64px;margin:14px 0 6px;border:2px solid #f0bd59;border-radius:50%;color:#17232a;font-size:34px;background:radial-gradient(circle at 36% 28%,#f4d992,#d99a35 72%);box-shadow:0 0 28px #dfa94155}
.onboard-panel .onboard-step{margin:10px 0 0;font:11px var(--pixel);letter-spacing:1.4px;color:#f0c46c}
.onboarding h1{margin:4px 0 8px;color:#f0c46c;font-size:clamp(28px,8vw,36px);line-height:1.12}
.onboard-field{display:grid;gap:6px;margin:14px 0;font-weight:800;color:#eee2c4}
.onboard-field input{min-height:48px;padding:10px 12px;border:1px solid #b28a48;border-radius:6px;background:#0b161d;color:#fff5d9;font:inherit}
.onboard-next{width:100%;min-height:52px}
.onboard-panel .onboard-foot{margin:14px 0 0;font-size:12px;color:#9fb0aa}
.guide-progress{display:flex;gap:6px;margin:12px 0}.guide-progress i{flex:1;height:6px;border-radius:3px;background:#2b4147}.guide-progress i.filled{background:#f0c46c}
.guide-icon{display:grid;place-items:center;width:56px;height:56px;margin:6px 0;border:1px solid #b28a48;border-radius:12px;background:#12232b;color:#f0c46c;font-size:28px}
.guide-actions{display:flex;gap:10px;margin-top:14px}.guide-actions .button{flex:1;min-height:48px}.guide-actions .button:disabled{opacity:.4;cursor:default}
.guide-skip{display:block;margin:12px auto 0;min-height:44px;padding:8px 14px;border:0;background:none;color:#c5b892;font:800 14px var(--body);text-decoration:underline;cursor:pointer}

/* Keep the map credit visible above the bottom buttons (required by the tile providers' licences). */
.map-world .leaflet-bottom{bottom:calc(96px + env(safe-area-inset-bottom))}
.map-world .leaflet-control-attribution{margin:0 8px;padding:2px 6px;border-radius:4px;background:#0b161dcc;color:#c5b892;font-size:10px}
.map-world .leaflet-control-attribution a{color:#f0c46c}

/* Fix: light surfaces inside the dark sheets must keep dark text (Cargo, Adventures) and the player code must be readable. */
.mq-mtile{background:#f4ead0}.mq-mtile,.mq-mtile span,.mq-mtile b{color:#0b1b6b!important}
.mq-panel,.mq-adv{background:#f4ead0!important;color:#0b1b6b!important}.mq-adv.on{background:#fff1a8!important}
.view:not(:has(.map-world))>.card .mq-panel h2,.view:not(:has(.map-world))>.card .mq-panel p,.view:not(:has(.map-world))>.card .mq-panel .small,.view:not(:has(.map-world))>.card .mq-panel span,.view:not(:has(.map-world))>.card .mq-adv b,.view:not(:has(.map-world))>.card .mq-adv small{color:#0b1b6b!important}
.mq-cost span{color:#0b1b6b!important}
.view:not(:has(.map-world))>.card .player-code{color:#9ec8b2}.view:not(:has(.map-world))>.card .player-code strong{color:#f0c46c}

/* Brighter night map and clearer pins (places without recent deliveries were grey and hard to see). */
.map-world .leaflet-map{filter:grayscale(.2) sepia(.1) hue-rotate(145deg) saturate(.95) brightness(.9) contrast(1.05)}
.map-world:before{background:linear-gradient(180deg,#050b129a 0%,transparent 16%,transparent 74%,#050b128a 100%),radial-gradient(ellipse at 50% 45%,transparent 45%,#02060966 100%)}
.custom-pin.place.inactive span{filter:none;opacity:1;background:#5AB0FF;border-color:#fff;box-shadow:0 0 0 3px #5AB0FF66,0 4px 0 #0B1B6B}
.custom-pin.place.active span{background:#FFD21F;border-color:#fff;box-shadow:0 0 0 4px #FFD21F88,0 4px 0 #0B1B6B,0 0 18px #FFD21F}
.custom-pin.hq span{background:#FF5FB0!important;color:#fff;border-color:#fff}
