/* Economy UI follows main adventure V2.51: its V2.46 floating controls and V2.32 story paper. */
:root{color-scheme:light;--jade:#285d40;--deep:#193e2d;--gold:#c8a15c;--paper:#fff3d9;--ink:#543b2b;--muted:#8b7049;--stroke:#b99458;font-family:system-ui,'Noto Sans CJK SC',sans-serif;background:#173c30;color:var(--ink)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,a,select{font:inherit;touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ffdc77;outline-offset:2px}button:disabled,.disabled{opacity:.48;cursor:default}.disabled{pointer-events:none}
.eco-page{background:#173c30}.eco-shell{max-width:580px;min-height:100dvh;margin:auto;padding:calc(8px + env(safe-area-inset-top)) 10px calc(80px + env(safe-area-inset-bottom));position:relative;background:linear-gradient(180deg,#d8e7bd33 0,#e4e9ca 260px,#e4e9ca 100%),url('peach-village.webp') center top/100% auto no-repeat}
.eco-top{display:grid;grid-template-columns:minmax(62px,1fr) minmax(0,2fr) minmax(62px,1fr);align-items:center;gap:6px;position:sticky;top:env(safe-area-inset-top);z-index:5;padding:5px;background:#28533cf5;color:#fff0cb;border:1.5px solid #c5a368;border-radius:16px;box-shadow:0 2px #183e2e,0 3px 8px #203c2f44}
.eco-top h1{font-size:clamp(18px,4.8vw,22px);letter-spacing:.04em;margin:0;text-align:center;white-space:nowrap}.eco-top>a,.eco-top>b{font-size:12px;font-weight:700;padding:5px 6px;min-height:38px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}.eco-top>a:first-child{justify-content:flex-start}.eco-top>#wallet,.eco-top>#balance{border:1px solid #d5b676;border-radius:12px;background:#315a40;color:#fff0c9;font-variant-numeric:tabular-nums}
.eco-intro{display:flex;align-items:center;gap:10px;min-height:86px;padding:8px 12px 4px;margin:10px 0 12px;background:linear-gradient(90deg,#fff5dfef,#fff5dfd9);border:1.5px solid #b99458;border-radius:17px;box-shadow:inset 0 0 0 2px #fffcf0,0 2px #8f764c}.eco-intro img{width:72px;height:78px;object-fit:contain;object-position:center bottom;flex:none}.eco-intro strong{display:inline-block;background:#386347;color:#fff3d6;border:1px solid #c5a46a;border-radius:8px;padding:3px 10px;font-size:14px}.eco-intro p{margin:5px 0;font-size:13px;line-height:1.5}
.eco-shell section,.gallery>.tile{background:#fff5df;color:#59412e;border:1.5px solid #b99458;border-radius:15px;padding:12px;margin:10px 0;box-shadow:inset 0 0 0 2px #fffcf0,0 2px #b59c70}.eco-shell h2{margin:0 0 7px;font-size:18px;color:#386347;font-weight:800}.eco-shell p{line-height:1.45;margin:7px 0}.sub,.eco-footnote{font-size:12px;color:#806a4c}.eco-footnote{text-align:center}
.eco-shell button,.eco-shell .action,.eco-shell .link,.eco-dialog button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #c39a51;border-radius:12px;background:linear-gradient(#ffe6a8,#ecc372);box-shadow:0 2px #95723f,inset 0 1px #fff2c9;color:#654324;font-weight:750;text-align:center;font-size:14px}.eco-shell .action,.eco-shell .link{display:flex;width:100%;margin:8px 0 2px}.eco-shell button.secondary,.eco-shell .secondary,.eco-dialog .secondary{background:#f3e3bb;color:#4e3e2b;border-color:#d5b477;box-shadow:none}.eco-shell select{max-width:100%;padding:7px 9px;border:1px solid #c7a66b;border-radius:9px;background:#ffedc7;color:#59412e}.eco-shell label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}.eco-shell progress{appearance:none;width:100%;height:9px;border:0;border-radius:8px;background:#dfd4ae;overflow:hidden}.eco-shell progress::-webkit-progress-bar{background:#dfd4ae}.eco-shell progress::-webkit-progress-value{background:#52784a}.eco-shell progress::-moz-progress-bar{background:#52784a}
.eco-assets{display:grid;grid-template-columns:1fr 1fr;gap:12px}.eco-assets>div+div{border-left:1px solid #d6c29a;padding-left:12px}.amount{font-weight:800;font-size:23px;display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-variant-numeric:tabular-nums}.amount .eco-glyph{color:#a97629}.eco-assets h2{font-size:13px;color:#806a4c}.eco-assets #timer{font-size:11px;margin:4px 0 0}.eco-shop #buy{width:100%}.eco-tool{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #e0c99e}.eco-tool:last-child{border-bottom:0}.eco-tool-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#f0dfb5;color:#386347;border:1px solid #d9bd7d}.eco-tool-icon img{width:29px;height:29px;object-fit:contain}.eco-tool-icon .eco-glyph{width:28px;height:28px}.eco-tool .sub{margin:2px 0;font-size:11px}.eco-stock{font-size:11px;color:#52784a}.eco-tool button{font-size:12px;padding:7px;min-width:74px}.eco-earn{display:flex;gap:8px}.eco-earn>a{flex:1}.eco-price{color:#a36e25}.eco-done{color:#386347;font-weight:750}.row,.topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.row h2{margin:0}.eco-quota{display:flex;align-items:center;gap:5px;padding:5px 0}.eco-quota i{width:9px;height:9px;border:1px solid #c5a46a;border-radius:50%;background:#e2d4b6}.eco-quota i.available{background:#52784a;border-color:#386347}.eco-quota span{margin-left:4px}
.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.day{text-align:center;background:#ffedc9;border:1px solid #d9bd7d;border-radius:8px;padding:9px 0;font-size:12px}.day.done{background:#52784a;color:#fff5df;border-color:#386347}.day.today{outline:2px solid #ad7331;outline-offset:-2px}.topline button{min-width:44px;font-size:18px;padding:5px}.milestone{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:8px;border-bottom:1px solid #e0c99e;padding:9px 0;font-size:13px}.milestone:last-child{border-bottom:0}
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery>.tile{margin:0;padding:9px;min-width:0}.gallery>.tile canvas{display:block;width:100%;aspect-ratio:5/3;border-radius:9px;background:#28533c;margin-bottom:6px}.gallery>.tile strong{font-size:14px;color:#386347}.gallery>.tile p{margin:4px 0;font-size:11px}.gallery>.tile .action{font-size:12px;padding:6px}.gallery>.tile.collected{border-color:#70935b}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.actions button{flex:1}.eco-wardrobe canvas{width:100%;height:auto;border-radius:10px;margin:8px 0;background:#244336;display:block}.eco-wardrobe #cancel{margin-top:8px}.eco-shell [role=status]:empty{display:none}.eco-shell [role=status]{font-size:13px;color:#7d4f24}
.eco-nav{position:fixed;z-index:8;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));width:min(calc(100% - 18px),562px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:5px;background:#28533cf5;color:#ffefcc;border:1.5px solid #c5a368;border-radius:21px;box-shadow:0 3px #183e2e,0 5px 18px #20382a55}.eco-nav a{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-height:45px;border-radius:10px;font-size:11px;font-weight:650}.eco-nav a[aria-current=page]{background:#f5d07b25;color:#ffe6a8}.eco-glyph{width:20px;height:20px;flex:none;color:inherit}.eco-nav .eco-glyph{color:#eed198}
.eco-dialog{width:min(calc(100% - 24px),420px);padding:14px 16px;border:2px solid #b99458;border-radius:17px;background:#fff5df;color:#59412e;box-shadow:inset 0 0 0 3px #fffcf0,0 5px 20px #173c3055}.eco-dialog::backdrop{background:#17392bb8}.eco-dialog h2{margin:0;color:#386347;font-size:20px}.eco-dialog p{line-height:1.6;font-size:15px}.eco-dialog .actions{margin-top:14px}
/* V277: one confirmation pattern on map, shop and canvas game. */
.eco-dialog{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.eco-dialog h2,.eco-dialog p{overflow-wrap:anywhere}.eco-dialog .actions{display:flex;gap:8px;flex-wrap:wrap}.eco-dialog .actions button{flex:1 1 100px;min-width:0;white-space:normal;line-height:1.35}.eco-dialog button:focus-visible,.eco-shell button:focus-visible,.eco-shell a:focus-visible{outline:2px solid #386347;outline-offset:3px}.eco-dialog .actions button:active{transform:translateY(1px)}
@media(max-height:440px){.eco-dialog{max-height:calc(100dvh - 16px);padding:10px 12px}.eco-dialog h2{font-size:18px}.eco-dialog p{font-size:14px;margin:7px 0}.eco-dialog .actions{margin-top:8px}}
@media(min-width:480px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:340px){.eco-shell{padding-inline:7px}.eco-tool{grid-template-columns:34px minmax(0,1fr) auto;gap:5px}.eco-tool-icon{width:34px;height:34px}.eco-tool button{min-width:66px}.eco-top h1{font-size:18px}.eco-intro img{width:60px}.eco-assets .amount{font-size:20px}}@media(max-height:500px) and (orientation:landscape){.eco-intro{min-height:60px}.eco-intro img{height:54px}.eco-nav a{min-height:38px}.eco-shell{padding-bottom:66px}}
/* Small two-line resource pill on the existing floating map header, not a new bar. */
.shell .top .eco-map-assets{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:4px 6px;min-width:54px;max-width:88px;font-size:11px;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}.eco-map-assets span{display:flex;align-items:center;gap:3px;max-width:100%}.eco-map-assets .eco-glyph{width:13px;height:13px;color:#eed198}.eco-map-assets b{overflow:hidden;text-overflow:ellipsis;max-width:100%}.shell .top:has(.eco-map-assets){gap:4px}.shell .chapter-bar{min-width:0}
@media(max-width:360px){.shell .top .eco-map-assets{max-width:65px;padding-inline:4px}.shell .top .pill{padding-inline:5px}.shell .top .settings-pill{width:35px}.shell .chapter-bar button:first-child,.shell .chapter-bar button:last-child{min-width:24px;width:24px}.shell .chapter-bar strong{font-size:13px}.shell .chapter-bar small{font-size:9px}}

/* Canvas game keeps its own background and board layout; only the modal is styled here. */
body[data-economy-preview] .eco-dialog,body[data-economy-preview] .eco-dialog *{touch-action:manipulation}body[data-economy-preview] .eco-dialog{max-height:calc(100dvh - 30px);overflow:auto;user-select:text;-webkit-user-select:text}body[data-economy-preview] .eco-dialog button{user-select:none;-webkit-user-select:none}

/* V2.51 visual refinement: character-led headings, tabs, compact reward art. */
.eco-intro.eco-scene{min-height:92px;padding:7px 12px 0;overflow:hidden;background:linear-gradient(90deg,#fff5dfef 0%,#fff5dfeb 48%,#f9e5b5c9 100%);position:relative}
.eco-scene img{width:82px;height:92px;filter:drop-shadow(0 2px 1px #6f704633)}.eco-scene strong{background:none;color:#386347;border:0;padding:0;font-size:19px;font-weight:800}.eco-scene p{font-size:13px;color:#806a4c}.eco-scene:after{content:'';position:absolute;right:10px;top:10px;width:12px;height:12px;border:1px solid #d8bc80;border-radius:3px;transform:rotate(45deg);opacity:.65;pointer-events:none}
.eco-tabs{display:flex;gap:3px;background:#f3e3bb;border:1.5px solid #c5a368;border-radius:13px;padding:3px;margin:11px 0;box-shadow:0 2px #b59c70}.eco-shell .eco-tabs button{min-width:0;flex:1;min-height:39px;border:0;box-shadow:none;background:transparent;color:#806a4c;padding:5px;font-size:13px}.eco-shell .eco-tabs button[aria-pressed=true]{background:#386347;color:#fff3d6;box-shadow:0 1px #254833;border-radius:9px}
.eco-energy-pips{grid-column:1/-1;display:grid;grid-template-columns:repeat(10,1fr);gap:4px}.eco-energy-pips i{height:8px;border:1px solid #d5b477;border-radius:4px;background:#e1d3ac}.eco-energy-pips i.filled{background:linear-gradient(#86a56a,#52784a);border-color:#52784a}
.eco-tool button{min-width:68px}.eco-tool-icon{background:linear-gradient(#fff1d4,#ead3a0);box-shadow:inset 0 1px #fff8df}.eco-treasure-art{display:flex;align-items:center;gap:12px;background:linear-gradient(105deg,#f0dfb5,#fff5df);border:1px solid #d9bd7d;border-radius:12px;padding:8px}.eco-treasure-art img{width:76px;height:84px;object-fit:contain}.eco-treasure-art p{font-size:12px;color:#806a4c}.eco-wish #wish-summary{margin:10px 0}
.eco-daily-top{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px}.eco-daily-art{position:relative;width:90px;height:75px;border:1px solid #b99458;border-radius:11px;background:radial-gradient(ellipse at top,#75916a,#28533c);overflow:hidden}.eco-daily-art.special{background:radial-gradient(ellipse at top,#c4a16a,#77513d)}.eco-daily-art img{position:absolute;width:32px;height:44px;object-fit:contain;top:16px;filter:drop-shadow(0 2px 1px #253c2c66)}.eco-daily-art img:nth-child(1){left:8px;transform:rotate(-13deg)}.eco-daily-art img:nth-child(2){left:29px;top:12px;z-index:2}.eco-daily-art img:nth-child(3){left:50px;transform:rotate(13deg)}.eco-daily-copy{min-width:0}.eco-daily-copy h2{font-size:16px}.eco-daily-copy .eco-price,.eco-daily-copy .eco-done{font-size:13px;white-space:nowrap}.eco-event-name{font-size:13px;color:#a36e25;display:block;margin-top:5px}.eco-daily-card details{margin-top:7px;font-size:12px;color:#806a4c}.eco-daily-card summary{cursor:pointer}.eco-month{margin-top:16px!important}
.eco-shape-art{position:relative}.eco-shape-stamp{position:absolute;right:4px;bottom:4px;padding:3px 6px;background:#fff1d4;color:#865c26;border:1px solid #c5a368;border-radius:6px;font-size:10px;font-weight:750}.eco-shape-stamp.collected{background:#386347;color:#fff3d6;border-color:#a7bd8d}.gallery .tile .action{margin-top:6px}.eco-gallery #filter-summary{margin:6px 0;text-align:left}
.eco-collectible.equipped{border-color:#52784a;box-shadow:inset 0 0 0 2px #e1e9cc,0 2px #a7b48a}.eco-collectible canvas{border:1px solid #b99458;box-shadow:0 2px 4px #7c654b33}.eco-current{background:#f9ebcb!important}.eco-toast{position:fixed;z-index:40;bottom:calc(78px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:10px 18px;border-radius:12px;border:1.5px solid #c5a368;background:#fff5df;color:#7d4f24;box-shadow:0 4px 16px #173c3055;font-size:14px;font-weight:750;text-align:center;pointer-events:none}.eco-toast.success{background:#386347;color:#fff3d6}.eco-toast:not([hidden]){animation:eco-toast-in .2s ease-out}@keyframes eco-toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}@media(prefers-reduced-motion:reduce){.eco-toast:not([hidden]){animation:none}}@media(max-width:340px){.eco-daily-top{grid-template-columns:72px minmax(0,1fr);gap:6px}.eco-daily-art{width:72px;height:68px}.eco-daily-art img{width:27px;height:38px}.eco-daily-art img:nth-child(1){left:4px}.eco-daily-art img:nth-child(2){left:22px}.eco-daily-art img:nth-child(3){left:40px}.eco-daily-copy h2{font-size:14px}.eco-scene img{width:68px;height:78px}}

/* Small illustrated economy assets; preserve main board geometry. */
.eco-material{overflow:visible;flex:none}.eco-assets .amount .eco-material{width:30px;height:30px}.eco-map-assets .eco-material{width:15px;height:15px}.eco-reward-amount{display:flex;align-items:center;gap:4px;color:#976324;font-variant-numeric:tabular-nums}.eco-reward-amount .eco-material{width:24px;height:24px}.eco-milestone-mark{display:inline-flex;vertical-align:middle;margin-right:3px}.eco-milestone-mark .eco-material{width:21px;height:21px}.milestone{grid-template-columns:72px minmax(0,1fr) auto}.milestone.claimed{background:#edf0d7;border-radius:6px;padding-inline:4px}.eco-shape-stamp{display:flex;align-items:center;gap:3px}.eco-shape-stamp span{display:flex}.eco-shape-stamp .eco-material{width:14px;height:14px}.eco-reward{position:fixed;z-index:45;top:calc(64px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);width:max-content;display:flex;align-items:center;gap:9px;padding:9px 15px 9px 10px;border:1.5px solid #bc9450;border-radius:14px;background:#fff5df;color:#805220;box-shadow:inset 0 0 0 2px #fffcf0,0 3px 0 #967443,0 6px 14px #183b2c38;pointer-events:none}.eco-reward-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f2dfad}.eco-reward-icon .eco-material{width:32px;height:32px}.eco-reward strong{display:block;font-size:19px;font-variant-numeric:tabular-nums}.eco-reward small{display:block;color:#52784a;font-size:12px;font-weight:650;margin-top:2px}.eco-reward:not([hidden]){animation:eco-reward-enter .32s ease-out}.eco-reward:not([hidden]) .eco-reward-icon{animation:eco-reward-pop .4s ease-out}@keyframes eco-reward-enter{from{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes eco-reward-pop{from{transform:scale(.72)}65%{transform:scale(1.12)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.eco-reward:not([hidden]),.eco-reward:not([hidden]) .eco-reward-icon{animation:none}}@media(max-width:340px){.milestone{grid-template-columns:65px minmax(0,1fr) auto;gap:5px}.eco-reward strong{font-size:17px}}

/* Collectibles: show a representative whole board rather than three isolated tiles. */
.eco-collectible canvas{aspect-ratio:2/1;object-fit:contain;margin:9px 0 4px;border-radius:11px;background:#28533c}.eco-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 10px}.eco-preview-bar .sub{font-size:11px;line-height:1.35}.eco-shell .eco-preview-bar button{min-height:36px;flex:none;padding:5px 9px;font-size:11px}.eco-shell .eco-preview-bar button[aria-pressed=true]{background:#386347;color:#fff3d6;border-color:#52784a}.eco-collectible .row h2{font-size:20px}.eco-collectible .row .eco-price{font-variant-numeric:tabular-nums}.eco-collectible .actions button{min-height:44px}.eco-collectible.equipped .eco-price{color:#386347}

/* Map entry state uses the existing CTA and navigation footprint. */
.shell .top .eco-map-assets.eco-energy-low{border-color:#e6bb73}.shell #start.eco-energy-low{color:#735334;background:#eddfbb;border-color:#c9a96a}.shell footer nav a[data-eco-daily]{position:relative}.shell footer nav a[data-eco-daily="0"]::after,.shell footer nav a[data-eco-daily="1"]::after,.shell footer nav a[data-eco-daily="2"]::after{content:attr(data-eco-daily) '/2';position:absolute;right:3px;top:2px;font-size:9px;line-height:1.25;padding:1px 3px;border-radius:5px;background:#f3d180;color:#59412e;pointer-events:none}.shell footer nav a[data-eco-daily="2"]::after{background:#a8c48d;color:#244b33}.shell #start{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:340px){.shell #start{font-size:14px}}

/* Collectible studio: portrait-size material test, isolated from saved equipment. */
.eco-studio-entry{display:flex;align-items:center;justify-content:space-between;gap:10px}.eco-studio-entry h2{margin-bottom:3px}.eco-studio-entry p{margin:0}.eco-studio-entry button{flex:none}.eco-preview-bar{flex-wrap:wrap}.eco-preview-bar .sub{flex:1;min-width:84px}.eco-preview-bar button{flex:none}.eco-studio{width:min(calc(100% - 20px),460px);max-height:calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:12px}.eco-studio-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.eco-studio-title button{min-height:36px;padding:5px 10px}.eco-studio-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.eco-studio-selects label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#806a4c}.eco-studio-selects select{min-width:0;width:100%;font:inherit;padding:9px 6px;background:#ffedc7;border:1px solid #c7a66b;border-radius:9px;color:#59412e}.eco-studio-switches{display:flex;gap:6px;margin:8px 0}.eco-studio-switches button{flex:1;min-height:36px;font-size:12px;padding:5px}.eco-studio-switches button[aria-pressed=true]{background:#386347;color:#fff3d6;border-color:#52784a}.eco-studio canvas{display:block;width:100%;max-height:46dvh;aspect-ratio:3/4;object-fit:contain;border:1px solid #b99458;border-radius:10px;background:#28533c;margin:4px auto}.eco-studio .sub{font-size:12px;color:#806a4c;line-height:1.4;margin:6px 0}.eco-studio #studio-current{width:100%;min-height:38px}.eco-studio:not([open]){display:none}@media(max-height:500px) and (orientation:landscape){.eco-studio canvas{max-height:42dvh}.eco-studio-selects label{flex-direction:row;align-items:center}}

/* Travel collectibles: chapter identity without a new visual system or locked store gates. */
.eco-region-index{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.eco-region-index a{flex:1;min-width:90px;padding:8px 5px;text-align:center;border:1px solid #b99458;background:#fff1d4;color:#386347;border-radius:9px;font-size:13px;font-weight:700}.eco-region{scroll-margin-top:calc(70px + env(safe-area-inset-top));margin:16px 0}.eco-region-title{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 8px;padding:9px 12px;border:1.5px solid #c5a368;border-radius:12px;background:#28533c;color:#fff0cb;box-shadow:0 2px #183e2e}.eco-region-title h2{color:#fff0cb;margin:0;font-size:17px}.eco-region-title>span:nth-child(2){grid-row:2;grid-column:1;font-size:11px;color:#dfcc9d}.eco-region-count{grid-column:2;grid-row:1/3;font-size:12px;font-variant-numeric:tabular-nums}.eco-region .eco-collectible{margin-top:9px}

/* Travel album shares the existing map dialog and paper/green palette. */
#collection .travel-album{padding:1px 0 8px;color:#59412e}.travel-intro{display:flex;align-items:center;gap:10px;padding:6px 9px;background:linear-gradient(100deg,#f9ebcb,#fff5df);border:1px solid #c9ac76;border-radius:12px}.travel-intro img{width:66px;height:72px;object-fit:contain}.travel-intro h3{font-size:18px;color:#386347;margin:0}.travel-intro p{font-size:12px;margin:4px 0;color:#806a4c}.travel-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:9px 0}.travel-overview>div{text-align:center;padding:7px 2px;background:#f4e5c2;border:1px solid #ddc58f;border-radius:9px}.travel-overview strong{display:block;font-size:17px;color:#386347;font-variant-numeric:tabular-nums}.travel-overview small{font-size:10px;color:#806a4c}.travel-section{border:1px solid #c9ac76;border-radius:12px;padding:9px;margin:9px 0;background:#fffaea}.travel-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:8px}.travel-heading h3{font-size:16px;margin:0 0 2px;color:#386347}.travel-heading small,.travel-note,.travel-section p{font-size:11px;color:#806a4c;margin:3px 0}.travel-link{font-size:12px;font-weight:700;color:#386347;padding:7px 6px;border:1px solid #c9ac76;border-radius:8px;background:#f9ebcb;white-space:nowrap}.travel-chapter{display:flex;align-items:center;gap:8px;padding:7px;background:#f4ead0;border:1px solid #d6c29a;border-radius:9px}.travel-chapter img{width:60px;height:60px;object-fit:contain;filter:grayscale(.8);opacity:.45}.travel-chapter.earned img{filter:none;opacity:1}.travel-chapter>div{flex:1;min-width:0}.travel-chapter strong{font-size:14px}.travel-tag{font-size:10px;color:#806a4c}.earned>.travel-tag{color:#386347;font-weight:700}.travel-expression-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.travel-expression{text-align:center;background:#f6ead0;border:1px solid #deca9d;border-radius:9px;padding:4px;min-width:0}.travel-expression img{display:block;width:100%;height:66px;object-fit:contain;filter:grayscale(1);opacity:.35}.travel-expression.earned img{filter:none;opacity:1}.travel-expression strong{font-size:11px}.travel-region h4,.travel-section h4{font-size:12px;color:#806a4c;margin:8px 0 5px}.travel-goods-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.travel-good{padding:5px;border:1px solid #d6c29a;background:#f6ead0;border-radius:9px;min-width:0}.travel-good.earned{border-color:#8da76f}.travel-good canvas{display:block;width:100%;height:auto;border-radius:6px;margin:0 0 3px;opacity:.65}.travel-good.earned canvas{opacity:1}.travel-good strong,.travel-good small{display:block;font-size:11px;overflow-wrap:anywhere}.travel-current-month{display:flex;align-items:center;gap:10px}.travel-current-month>div:last-child{flex:1;min-width:0}.travel-current-month strong{font-size:13px}.travel-current-month small{display:block;font-size:11px;color:#806a4c}.travel-month-medal{width:88px;min-height:77px;text-align:center;padding:5px;border:1px solid #d6c29a;border-radius:9px;background:#f4ead0;color:#806a4c}.travel-month-medal strong{display:block;font-size:11px}.travel-medal-art{display:block}.travel-medal-art svg{width:39px;height:39px;opacity:.4;filter:grayscale(1)}.travel-month-medal.earned{background:#f9ebcb;border-color:#b99458;color:#386347}.travel-month-medal.earned svg{opacity:1;filter:none}.travel-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.travel-month-grid .travel-month-medal{width:100%}.travel-section progress{display:block;width:100%;height:9px;accent-color:#52784a;margin:5px 0}.travel-note{line-height:1.5}.travel-main-progress{font-size:14px;color:#386347}.travel-journey-rows{display:grid;gap:6px;margin-top:9px}.travel-journey-row{display:flex;align-items:center;gap:8px;padding:7px;background:#f6ead0;border:1px solid #deca9d;border-radius:9px}.travel-journey-row>div{flex:1;min-width:0}.travel-journey-row strong,.travel-journey-row small{display:block}.travel-journey-row strong{font-size:13px;color:#386347}.travel-journey-row small{font-size:11px;color:#806a4c;line-height:1.4}.travel-journey-row b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.travel-journey button.travel-link{min-height:44px;flex:none;cursor:pointer}.travel-next-goal{display:flex;gap:8px;align-items:center;margin-top:8px;padding:7px 8px;border-radius:9px;background:#e4edd7;font-size:12px;color:#386347}.travel-next-goal span{flex:1;min-width:0}@media(max-width:340px){.travel-overview small{font-size:9px}.travel-heading small{font-size:10px}.travel-expression img{height:55px}.travel-link{padding:6px 4px}}

/* Single top-level navigation; map keeps its primary play action, not a second menu. */
.shell footer .eco-nav{position:static;transform:none;width:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:5px}.shell footer .eco-nav a[aria-current=page]{background:#f5d07b25;color:#ffe6a8}.shell footer .eco-map-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:stretch}.shell footer .eco-map-actions #story{display:flex;align-items:center;justify-content:center;gap:4px;min-height:42px;border:1px solid #d5b676;background:#315a40;color:#fff0c9;border-radius:12px;font-size:11px;font-weight:700;padding:4px 7px;position:relative}.shell footer .eco-map-actions #story[data-new="1"]::after,.eco-map-chest[data-ready="1"]::after{content:"";position:absolute;top:1px;right:1px;width:8px;height:8px;border-radius:50%;background:#ce7766;border:1px solid #ffedc8}.eco-map-chest{position:relative}.eco-map-chest #reward-strip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.eco-text-link{display:block;text-align:center;padding:9px;color:#386347;font-size:13px;font-weight:700}.eco-nav a[data-nav="daily"][data-eco-daily="2"] span{color:#ffe49d}.eco-nav a[aria-current=page]{background:#f5d07b25}.hero #secondary-title{font-size:26px}#star-chest-profile{scroll-margin-top:12px}
@media(max-width:340px){.shell footer .eco-map-actions #story{padding:3px 5px;font-size:10px}.shell footer .eco-map-actions #story .nav-glyph{width:15px;height:15px}}@media(max-height:500px) and (orientation:landscape){.shell footer .eco-map-actions{grid-template-columns:1fr}.shell footer .eco-map-actions #story{min-height:30px}.shell footer .eco-nav{margin-top:0}}

/* Stable navigation polish: no active-tab reload or variable header height. */
.eco-top{min-height:50px}.eco-top h1{grid-column:2}.eco-top>a:first-child{grid-column:1}.eco-top>#wallet,.eco-top>#balance{grid-column:3}.eco-gallery-progress h2{font-size:15px}.eco-gallery-progress progress{display:block}.eco-gallery #resume-classic:not([hidden]){background:linear-gradient(#ffe6a8,#ecc372)}.eco-nav a{min-height:45px;white-space:nowrap}.eco-nav a:active{background:#f5d07b28}.eco-nav a[aria-current=page]{box-shadow:inset 0 1px #e9c77922}.eco-collection-head .eco-text-link{margin-top:3px}.eco-earn .action{min-width:0}@media(max-width:340px){.eco-top h1{font-size:17px}.eco-nav a{font-size:10px}}

/* First-screen focus: Mimi belongs to the actual action card, not a separate banner. */
.eco-shell>.eco-top+section{margin-top:9px}.eco-shell section{padding:10px;margin:8px 0}.eco-feature-head{display:flex;align-items:center;gap:8px;justify-content:space-between}.eco-feature-head>div{flex:1;min-width:0}.eco-feature-head img{width:60px;height:64px;object-fit:contain;object-position:center bottom;flex:none}.eco-feature-head h2{margin:0;font-size:17px}.eco-feature-head p{margin:3px 0;font-size:12px}.eco-header-link{font-size:12px;color:#ffebc0}.eco-play-card label{margin:7px 0}.eco-shell .eco-resume{flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;min-height:52px}.eco-resume small{font-size:11px;font-weight:500;color:#76512e}.eco-gallery-progress .row strong{font-size:14px;color:#52784a}.eco-gallery-progress p{margin-bottom:0}
.eco-daily-tally{min-width:0}.eco-daily-compact .eco-feature-head img{width:48px;height:54px}.eco-daily-compact h2{font-size:14px}.eco-daily-compact .eco-reward-amount{font-size:13px;white-space:nowrap}.eco-daily-compact .eco-reward-amount svg{width:18px;height:18px}.eco-daily-compact p{font-size:11px;white-space:normal}.eco-daily-top{grid-template-columns:76px minmax(0,1fr);gap:8px}.eco-daily-art{width:76px;height:61px}.eco-daily-art img{width:28px;height:38px;top:12px}.eco-daily-art img:nth-child(1){left:4px}.eco-daily-art img:nth-child(2){left:24px;top:8px}.eco-daily-art img:nth-child(3){left:44px}.eco-daily-actions{display:flex;gap:6px}.eco-daily-actions .action{flex:1;min-width:0;margin-top:6px;padding:7px 5px}.eco-daily-card.completed{border-color:#a5b68b}.eco-month-summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:40px}.eco-month-summary::-webkit-details-marker{display:none}.eco-month-summary>span:first-child{display:flex;flex-direction:column;flex:1;gap:3px}.eco-month-summary strong{font-size:16px;color:#386347}.eco-month-summary small{font-size:12px;color:#806a4c}.eco-month-summary progress{width:25%;min-width:45px}.eco-disclosure{font-size:22px;color:#9b763f;transition:transform .15s}.eco-month details[open] .eco-disclosure{transform:rotate(90deg)}.eco-month{margin-top:9px!important}
.eco-assets-compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:7px;position:relative;align-items:center}.eco-assets-compact .amount{font-size:19px;gap:3px}.eco-assets-compact .amount .eco-material{width:24px;height:24px}.eco-assets-compact .eco-resource-mimi{grid-column:3;grid-row:1;border:0;padding:0;align-self:end}.eco-resource-mimi img{width:44px;height:52px;object-fit:contain}.eco-assets-compact .eco-energy-pips{grid-row:2}.eco-earn-help{font-size:12px;color:#806a4c;text-align:center;margin:10px 0}.eco-earn-help summary{cursor:pointer;padding:7px}.eco-wardrobe-summary #owned-count{font-size:13px;font-weight:600;color:#806a4c}.eco-wardrobe-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.eco-wardrobe-actions button,.eco-wardrobe-actions .action{flex:1;min-width:80px;margin:0;min-height:39px;font-size:12px;padding:6px}.eco-wardrobe #current-equipment{scroll-margin-top:70px}.eco-shell .eco-collectible{padding:9px}.eco-collectible .sub{margin:4px 0}.eco-shell .eco-collectible .actions{margin-top:6px}
@media(max-width:340px){.eco-feature-head img{width:49px;height:54px}.eco-daily-compact .eco-feature-head img{width:34px;height:44px}.eco-daily-compact h2{font-size:12px}.eco-assets-compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.eco-resource-mimi img{width:32px;height:43px}.eco-assets-compact .amount{font-size:17px}.eco-assets-compact .amount .eco-material{width:18px;height:18px}.eco-assets-compact>div+div{padding-left:6px}.eco-assets-compact .eco-resource-mimi{padding:0}}
@media(prefers-reduced-motion:reduce){.eco-disclosure{transition:none}}

/* Reserve thumbnail geometry before painting; avoid layout jumps on return. */
.eco-shape-art canvas{aspect-ratio:5/3;width:100%;height:auto;display:block;background:#28533c}.eco-daily-art img{aspect-ratio:28/38}.eco-page .eco-glyph{flex-shrink:0}.eco-shell .eco-top{isolation:isolate}.eco-gallery .tile{min-width:0}.eco-nav a{touch-action:manipulation}.eco-shell img{max-width:100%}

/* V2.81 · game-like traveller dossier and catalogue; scoped to secondary surfaces. */
#profile .section-title{margin:0}#profile .info-card{border-radius:15px;padding:12px}#profile [hidden],.eco-shop [hidden]{display:none!important}
.profile-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 0%,#78945c66,transparent 60%),linear-gradient(135deg,#385f46,#1c382e);border:1.5px solid #c7a76a;border-radius:18px;padding:15px;box-shadow:inset 0 0 0 2px #d8b87820,0 4px 12px #0002;display:grid;gap:10px}.profile-hero-top{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:8px}.profile-hero-top img{width:84px;height:94px;object-fit:contain;align-self:end}.profile-eyebrow{font-size:11px;letter-spacing:.12em;color:#d7c28b}.profile-rank{display:block;font-size:21px;color:#fff0c7;line-height:1.3;margin:4px 0}.profile-level{display:inline-flex;border:1px solid #c0a161;border-radius:20px;padding:3px 9px;font-size:12px;color:#ffe4a0;gap:6px;align-items:center}.profile-progress-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#dfd6b7}.profile-hero progress{width:100%;height:8px;accent-color:#e2bc6f}.profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px}.profile-metrics .career-metric{background:#122f2388;border:1px solid #ccb47e25;border-radius:10px;padding:8px 6px;text-align:center}.profile-metrics .career-metric small{margin:0;font-size:11px;line-height:1.4;display:block;color:#c3d0b8}.profile-metrics .career-metric b{font-size:clamp(17px,5vw,23px);line-height:1.3;color:#ffe0a0;font-variant-numeric:tabular-nums}.profile-tabs{display:flex;background:#172f26;border:1px solid #806d48;padding:4px;border-radius:12px;gap:3px}.profile-tabs button{min-width:0;flex:1;min-height:42px;border:0;background:transparent;color:#c9cdb4;border-radius:8px;font-size:13px;box-shadow:none}.profile-tabs button[aria-pressed=true]{background:linear-gradient(#e6cd90,#c7a66b);color:#254332;font-weight:800}.profile-panel{display:grid;gap:9px}.profile-heading{display:block;font-size:16px;color:#f5e1ac}.profile-mode-card{background:#213f31;border:1px solid #80704e;border-radius:14px;padding:12px;margin:7px 0}.profile-mode-card>strong{color:#f0d89f;font-size:16px}.profile-mode-card .profile-metrics,#profile-activity .profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-chest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.profile-chest{min-width:0;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:10px 7px;border:1px solid #8b7850;background:linear-gradient(#385344,#203a2d);border-radius:12px}.profile-chest.ready{border-color:#e8c170;background:linear-gradient(#686139,#34422b);box-shadow:inset 0 0 0 1px #f3cf8050}.profile-chest.claimed .profile-chest-art{opacity:.5}.profile-chest-art{width:65px;height:52px;display:grid;place-items:center}.profile-chest-art svg{width:100%;height:100%}.profile-chest>strong{color:#f8d98c;font-size:17px}.profile-chest>small{font-size:11px;min-height:28px;margin:0!important}.profile-chest button{width:100%;min-height:42px;background:linear-gradient(#ffe4a4,#d8b76f);color:#493923;border:1px solid #af8d4b;border-radius:9px;font-weight:800;margin-top:auto}.profile-chest progress{width:100%;height:6px;accent-color:#d9bf7b}.profile-pill{font-size:12px;color:#c1d6b6}.profile-other-chests{margin-top:10px}.profile-other-chests summary{font-size:12px;color:#dfcea4;padding:8px 0;cursor:pointer}.profile-inline-link{display:block;color:#f3d493;text-decoration:none;font-weight:700;font-size:13px;margin-top:12px;min-height:30px}.profile-feedback{color:#f9df99!important}.profile-panel #profile-records{display:grid;gap:0}.profile-panel .career-details summary{min-height:36px}.profile-hero .profile-metrics{margin-top:0}#profile .ach-v2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.eco-shop .shop-section{background:transparent;border:0;padding:0;box-shadow:none}.eco-shop .shop-section>h2{font-size:17px;margin:12px 4px 4px}.eco-shop .shop-section>.sub{margin:4px 4px 10px}.shop-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-product{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 8px 7px;border:1.5px solid #b99559;border-radius:15px;background:linear-gradient(180deg,#fff9e9,#f9eaca);box-shadow:inset 0 0 0 2px #fff9e9,0 2px #b99b65;text-align:center}.shop-product-head{width:100%;position:relative}.shop-product-art{position:relative;display:grid;place-items:center;width:100%;height:96px;border-radius:11px;background:radial-gradient(ellipse,#fffaf0 0,#ebd8aa 95%);border:1px solid #dfc58c;overflow:hidden}.shop-product-art>img{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 3px 2px #80572833)}.shop-product-art>.eco-glyph{width:54px;height:54px;color:#457950;filter:drop-shadow(0 3px 2px #80572822)}.shop-product[data-product=freeze] .shop-product-art{background:radial-gradient(ellipse,#f6fcff,#c7dce0)}.shop-product[data-product=freeze] .shop-product-art>.eco-glyph{color:#438baf}.shop-product[data-product=auto] .shop-product-art{background:radial-gradient(ellipse,#fffbea,#eddaa7)}.shop-product[data-product=auto] .shop-product-art>.eco-glyph{color:#ae8139}.shop-stock{position:absolute;right:5px;top:5px;font-size:10px;line-height:1.5;padding:2px 6px;border-radius:20px;color:#fff5df;background:#406349e8;max-width:95%;white-space:nowrap}.shop-product>strong{font-size:16px;color:#375a40;line-height:1.25}.eco-shop .shop-product .shop-description{font-size:11px;color:#7c694c;line-height:1.35;margin:0;min-height:29px}.eco-shop .shop-product .shop-price{display:flex;justify-content:center;align-items:center;gap:5px;width:100%;min-height:43px;margin-top:auto;padding:5px 4px;border:1px solid #b28b48;border-radius:9px;background:linear-gradient(#ffe6a4,#e8bd6c);color:#674727;font-size:15px;font-weight:800;box-shadow:0 2px #a17e43;text-decoration:none}.eco-shop .shop-product .shop-price:disabled{background:#e3d9bd;color:#867a62;border-color:#c6b99b;box-shadow:none;opacity:1}.shop-coin{display:flex;align-items:center}.shop-coin .eco-glyph{width:20px;height:20px}.shop-product-status{font-size:11px;color:#95724a;min-height:14px;line-height:1.3}.shop-energy-count{position:absolute;bottom:6px;right:10px;color:#52784a;font-size:22px;text-shadow:0 1px #fff}.shop-table-swatch{width:70%;height:64%;border:5px solid #c9a575;border-radius:9px;box-shadow:inset 0 0 8px #0004,0 3px 4px #0004;background-image:linear-gradient(135deg,transparent,#fff1)}.shop-product-art .shop-glaze-sample{height:70px;width:auto;filter:sepia(.2) hue-rotate(70deg) saturate(.65) drop-shadow(0 3px 2px #80572822)}.eco-shop .shop-preview-link{font-size:13px!important}.shop-banner{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #c4a05e;border-radius:13px;background:linear-gradient(110deg,#f7e3b4,#fff6dd);margin-bottom:10px}.shop-banner img{width:52px;height:60px;object-fit:contain}.shop-banner strong{display:block;color:#446747}.shop-banner p{font-size:11px;color:#806a4c;margin:3px 0!important}.eco-shop .shop-product-grid+ [role=status]{margin:8px 4px}.eco-nav a:active{background:#f5d07b40}
@media(max-width:340px){.profile-hero{padding:11px}.profile-hero-top{grid-template-columns:minmax(0,1fr) 67px}.profile-hero-top img{width:67px;height:78px}.shop-product-grid{gap:7px}.shop-product{padding:7px 5px}.shop-product-art{height:80px}.shop-product-art>img{width:50px;height:50px}.shop-product-art>.eco-glyph{width:45px;height:45px}.shop-product>strong{font-size:15px}.profile-metrics .career-metric{padding:6px 3px}.profile-metrics .career-metric small{font-size:10px}}

/* Recoverable settlement state, placed before launch actions. */
.eco-recovery{margin:8px 0;padding:10px 12px;border:1px solid #b99559;border-radius:12px;background:#fff4d8;color:#654622}.eco-recovery p{margin:0 0 6px;font-size:13px;line-height:1.5}.eco-recovery .action{width:100%;min-height:40px;margin:0}.eco-daily-actions .disabled{pointer-events:none}

/* V2.90: shared adventure chrome, deliberately scoped to menu surfaces. */
:root{
  --mimi-chrome:#28533c;--mimi-chrome-deep:#183e2e;--mimi-chrome-border:#c5a368;
  --mimi-chrome-text:#ffefcc;--mimi-chrome-focus:#ffe6a8;
  --mimi-chrome-radius:16px;--mimi-nav-radius:21px;
  --mimi-nav-hit:45px;--mimi-nav-label:11px;--mimi-nav-inset:9px;
  --mimi-nav-reserve:80px;
}
.eco-top,.mimi-secondary .wrap>.hero{
  background:var(--mimi-chrome);color:var(--mimi-chrome-text);
  border:1.5px solid var(--mimi-chrome-border);border-radius:var(--mimi-chrome-radius);
  box-shadow:0 2px var(--mimi-chrome-deep),0 3px 8px #203c2f44;
}
.eco-top{grid-template-columns:minmax(68px,1fr) minmax(0,2fr) minmax(68px,1fr);min-height:56px}
.eco-top>a,.eco-top>b{min-width:0;min-height:44px;line-height:1.2}
.eco-top h1,.mimi-secondary #secondary-title{min-width:0;font-size:clamp(17px,4.8vw,22px);font-weight:750;line-height:1.2;letter-spacing:.02em;text-align:center;margin:0;color:var(--mimi-chrome-text);overflow-wrap:anywhere;white-space:normal}
.eco-nav,.shell footer{background:var(--mimi-chrome);color:var(--mimi-chrome-text);border-color:var(--mimi-chrome-border);border-radius:var(--mimi-nav-radius)}
.shell footer .eco-nav{background:transparent;border-radius:0}
.eco-nav a,.shell footer .eco-nav a{
  min-height:var(--mimi-nav-hit);min-width:0;gap:3px;font-size:var(--mimi-nav-label);
  font-weight:650;line-height:1.2;letter-spacing:0;white-space:nowrap;position:relative;
  color:var(--mimi-chrome-text);border-radius:10px;padding:3px 1px;
}
.eco-nav .nav-glyph,.shell footer .eco-nav .nav-glyph{width:20px;height:20px;color:#eed198}
.eco-nav a[aria-current=page],.shell footer .eco-nav a[aria-current=page]{
  background:#f5d07b25;color:var(--mimi-chrome-focus);box-shadow:inset 0 0 0 1px #e9c77950;
}
.eco-nav a[aria-current=page] .nav-glyph,.shell footer .eco-nav a[aria-current=page] .nav-glyph{color:var(--mimi-chrome-focus)}
.eco-nav a:active,.shell footer .eco-nav a:active{background:#f5d07b38}
.eco-shell .eco-nav a:focus-visible,.eco-nav a:focus-visible,.shell footer .eco-nav a:focus-visible,.eco-shell .eco-top a:focus-visible,.mimi-secondary #secondary-back:focus-visible{
  outline:2px solid var(--mimi-chrome-focus);outline-offset:-3px;
}
/* Keep fixed chrome and the last scrollable controls out of device safe areas. */
.eco-nav{bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(562px,calc(100% - 2 * var(--mimi-nav-inset) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));left:calc(50% + (env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/2)}
.shell footer .eco-nav{left:auto;bottom:auto;width:100%}
.eco-shell,.mimi-secondary .wrap{padding-bottom:calc(var(--mimi-nav-reserve) + env(safe-area-inset-bottom,0px));padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}
.eco-shell{scroll-margin-bottom:var(--mimi-nav-reserve)}
.eco-shell .action,.eco-shell .eco-tabs button,.eco-shell select{scroll-margin-bottom:calc(var(--mimi-nav-reserve) + env(safe-area-inset-bottom,0px))}
.eco-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
#world,#collection,#station-dialog,#challenge-dialog{max-height:min(88dvh,calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))}
/* Profile and settings share the same compact header, without legacy lobby decoration. */
.mimi-secondary .wrap{width:min(100%,580px);padding-top:calc(8px + env(safe-area-inset-top,0px))}
.mimi-secondary .wrap>.hero{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;display:block;min-height:56px;padding:5px}
.mimi-secondary .hero>.hero-text{display:grid;grid-template-columns:minmax(68px,1fr) minmax(0,2fr) minmax(68px,1fr);gap:6px;align-items:center}
.mimi-secondary .hero>.hero-tiles,.mimi-secondary .hero #title-chip{display:none}
.mimi-secondary #secondary-title{grid-column:2;grid-row:1}
.mimi-secondary #secondary-back{grid-column:1;grid-row:1;display:flex;align-items:center;min-height:44px;padding:5px 6px;border-radius:10px;font-size:12px;font-weight:650;color:var(--mimi-chrome-text);line-height:1.2;overflow-wrap:anywhere}
@media(max-width:340px){:root{--mimi-nav-label:10px;--mimi-nav-inset:6px}.eco-shell,.mimi-secondary .wrap{padding-left:max(7px,env(safe-area-inset-left,0px));padding-right:max(7px,env(safe-area-inset-right,0px))}}
@media(max-height:500px) and (orientation:landscape){
  :root{--mimi-nav-hit:44px;--mimi-nav-reserve:78px;--mimi-nav-label:10px}
  .shell{--map-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
  .shell footer .eco-nav .nav-glyph,.eco-nav .nav-glyph{width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){.eco-disclosure,.eco-nav a,.eco-shell .action{transition:none}}

/* V2.91: concise next attainable goal, not an additional task. */
.eco-shell .eco-next-goal{font-size:12px;line-height:1.4;color:#386347;font-weight:700;margin:5px 0 0;overflow-wrap:anywhere}.eco-month-summary .eco-next-goal{font-size:11px;margin:0;color:#386347}.eco-month-summary>span:first-child{min-width:0}

/* V2.92: direct treasure navigation and real wish progress. */
.shop-wish-panel{margin:8px 0;padding:9px 10px;border:1px solid #d1b67e;border-radius:12px;background:#fff5df}.shop-wish-panel progress{display:block;margin-top:6px}.shop-wish-panel .eco-text-link{padding:6px 0 0;text-align:left;min-height:36px}.shop-product[data-wish='1']{border-color:#a87836;box-shadow:inset 0 0 0 2px #f3d180,0 2px #b99b65}.eco-collectible[id^='treasure-']{scroll-margin-top:calc(78px + env(safe-area-inset-top,0px))}.eco-collectible[data-target='1']{outline:2px solid #bc9753;outline-offset:2px}.eco-collectible:focus{outline:2px solid #bc9753;outline-offset:2px}
