/* Artwork is the control: no opaque buttons or enclosing navigation trays. */
.topbar .icon-button,.topbar .map-switch,.farm-hud .mode-button,.farm-hud .hud-action,.farm-hud .tool-button,#farm-play-button,.farm-hud .mode-switch,.farm-hud .hud-actions,.topbar .resource,.topbar #guide-launcher{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.hud-painted{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;min-width:48px!important;width:58px!important;height:58px!important;min-height:48px!important;border-radius:0!important;touch-action:none!important;overflow:visible!important;position:relative;color:#fff8e5!important}
.hud-painted-art{display:block!important;width:56px!important;height:56px!important;object-fit:contain!important;pointer-events:none;filter:drop-shadow(0 2px 2px #30200f88);transition:transform .15s,filter .15s}
.hud-screenreader{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.hud-painted:disabled{opacity:.4!important}.hud-painted.active .hud-painted-art,.hud-exploring>.hud-painted-art,.hud-exploring>img{transform:translateY(-4px) scale(1.13);filter:drop-shadow(0 0 5px #fff3b3) drop-shadow(0 2px 2px #30200f88)}
.hud-painted:focus-visible,.scene-action:focus-visible{outline:2px solid #ffe9a2!important;outline-offset:3px!important;border-radius:12px!important}
.farm-hud{gap:12px!important;align-items:end!important}.farm-hud .mode-switch,.farm-hud .hud-actions{gap:12px!important;padding:0!important;min-height:58px!important}.farm-hud .hud-actions{justify-content:flex-end}.farm-hud .mode-switch{flex-shrink:0}
.topbar .resource{padding:0 3px!important;gap:2px!important;color:#fff7df!important;text-shadow:0 2px 3px #38220c,1px 0 2px #38220c}.topbar .resource img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 2px #38220c88)}.topbar .resource-bar{gap:7px!important}.topbar .map-switch{flex-shrink:0}
.topbar #guide-launcher{padding:0!important;gap:5px!important;color:#fff7df!important;text-shadow:0 2px 3px #38220c}.topbar #guide-launcher img{filter:drop-shadow(0 2px 2px #38220c88)}.topbar #guide-launcher span{background:none!important}
[data-hud-help]{-webkit-user-select:none;user-select:none;touch-action:none!important;-webkit-touch-callout:none}
#hud-explanation{position:fixed;z-index:1300;pointer-events:none;background:#fff6e5f5;border:1px solid #d5ae70;border-radius:13px;padding:10px 13px;box-shadow:0 4px 18px #3324104d;color:#513c26;line-height:1.35;text-shadow:none;font-size:13px;box-sizing:border-box}#hud-explanation[hidden]{display:none}#hud-explanation strong{display:block;font-size:15px;margin-bottom:3px}#hud-explanation span{display:block}
@media(max-height:520px){.hud-painted{width:49px!important;height:49px!important;min-width:44px!important;min-height:44px!important}.hud-painted-art{width:47px!important;height:47px!important}.farm-hud .mode-switch,.farm-hud .hud-actions{gap:8px!important;min-height:49px!important}.topbar .resource img{width:30px;height:30px}}
@media(max-width:650px){.farm-hud{gap:4px!important}.farm-hud .mode-switch,.farm-hud .hud-actions{gap:3px!important}.hud-painted{width:44px!important;min-width:40px!important;height:48px!important}.hud-painted-art{width:44px!important;height:44px!important}.farm-hud .hud-actions{flex-wrap:wrap!important}.resource-bar .hud-painted{width:39px!important;min-width:36px!important;height:42px!important}.resource-bar .hud-painted-art{width:39px!important;height:39px!important}.topbar .resource-bar{gap:2px!important}.topbar .resource img{width:26px;height:26px}.topbar .resource{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.hud-painted-art{transition:none}.hud-exploring>.hud-painted-art{transform:none}}
.brand .brand-mark{background:none!important;border:0!important;box-shadow:none!important}.topbar .map-switch .hud-screenreader{display:block!important}@media(max-width:650px){.topbar .map-switch.hud-painted{width:32px!important;min-width:30px!important;height:36px!important}.topbar .map-switch .hud-painted-art{width:32px!important;height:32px!important}}
.scene-actions,.scene-action.club-launch,.scene-action.club-launch:hover,.scene-action.club-launch:active{background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.hud-painted,#guide-launcher,.brand-mark{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.animal-room-finder{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 22px 10px;flex:none}.animal-room-finder input,.animal-room-finder select{min-width:130px;min-height:42px;border:1px solid #cbb28b;border-radius:10px;background:#fff8e9;color:#513c26;padding:8px 11px;font:inherit;font-size:14px}.animal-room-finder input{flex:1}.animal-room-finder small{color:#fff8e9;text-shadow:0 1px 3px #382710;font-size:12px;white-space:nowrap}.animal-room-finder button{min-height:42px}.animal-room-finder input:focus-visible,.animal-room-finder select:focus-visible{outline:3px solid #e0af62;outline-offset:1px}@media(max-width:650px){.animal-room-finder{padding:4px 12px 8px;gap:5px}.animal-room-finder input{width:100%;flex-basis:100%}.animal-room-finder select{flex:1;max-width:65%}.animal-room-finder button{font-size:12px}}
.reading-details{margin:9px 0;border-top:1px solid #d9c7a250;padding-top:4px}.reading-details summary{min-height:42px;display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;color:#63482b;font-size:13px;font-weight:700;line-height:1.4}.reading-details summary::-webkit-details-marker{display:none}.reading-details summary::before{content:"›";font-size:23px;line-height:1;flex:none;transform:rotate(0deg)}.reading-details[open]>summary::before{transform:rotate(90deg)}.reading-details summary:focus-visible{outline:2px solid #bd8c4f;outline-offset:2px;border-radius:5px}.reading-details>p{font-size:14px;line-height:1.5;margin:5px 0 10px!important}
#modal-content>img.well-preview,#modal-content>img.kitchen-preview,#modal-content>img.hive-preview,#modal-content>img.animal-preview{width:140px;max-height:120px;height:120px;object-fit:contain;margin:6px auto 10px}@media(max-height:520px){#modal-content>img.well-preview,#modal-content>img.kitchen-preview,#modal-content>img.hive-preview,#modal-content>img.animal-preview{max-height:88px;height:88px;width:115px}}
/* A silhouette-only aura: the map itself stays unblurred. */ .hud-painted-art,.scene-action.club-launch img{filter:drop-shadow(0 0 3px #fff1bc99) drop-shadow(0 2px 2px #30200f99)!important}.hud-painted.active .hud-painted-art,.hud-exploring>.hud-painted-art,.hud-exploring>img{filter:drop-shadow(0 0 5px #fff1bcd9) drop-shadow(0 2px 2px #30200f99)!important}.hud-painted:disabled .hud-painted-art{filter:drop-shadow(0 1px 1px #30200f66)!important}.animal-room-head{flex-wrap:wrap}.animal-room-head #animal-collect-all{white-space:nowrap}@media(max-width:700px){#animal-collect-all{grid-column:1/-1}}
/* Travel emphasis follows the transparent artwork, never its rectangular box.
   The walkthrough owns the temporary glow; normal navigation has a crisp edge. */
.topbar #map-switch.hud-painted{width:54px!important;height:54px!important;min-width:48px!important}
.topbar #map-switch .hud-painted-art{width:52px!important;height:52px!important}
.topbar #map-switch[hidden]{display:none!important}
@media(max-width:650px){.topbar #map-switch.hud-painted{width:42px!important;height:42px!important;min-width:40px!important}.topbar #map-switch .hud-painted-art{width:40px!important;height:40px!important}}
.brand-group .brand-resources{display:flex;gap:4px;padding-left:46px;margin-top:3px;align-items:center}
.topbar .brand-resources .resource{background:#fff9e9f2!important;border:1px solid #e2cf9b!important;border-radius:20px!important;box-shadow:0 1px 3px #34281c33!important;padding:1px 7px 1px 3px!important;min-height:24px;gap:3px!important;color:#35503d!important;text-shadow:none!important}
.topbar .brand-resources .resource img{width:22px;height:22px}.topbar .brand-resources .resource b{font-size:12px;white-space:nowrap}
@media(max-width:700px){.brand-group .brand-resources{padding-left:0}.topbar .brand-resources .resource{padding:1px 5px 1px 2px!important;min-height:22px}.topbar .brand-resources .resource img{width:19px;height:19px}.topbar .brand-resources .resource b{font-size:10px}.topbar .brand-group{width:142px;flex-shrink:0}}
/* Alpha-only outlines. Notification glow never blurs the map behind the icon. */
:root{--hud-outline:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)}
.hud-painted .hud-painted-art,.hud-painted.active .hud-painted-art,.hud-exploring>.hud-painted-art,.scene-action.club-launch img,.topbar #map-switch .hud-painted-art,.topbar #guide-launcher img,.brand-mark img,.topbar .resource img{filter:var(--hud-outline) var(--hud-glow,drop-shadow(0 1px 1px #30200f66))!important}
.hud-painted.has-notification,.scene-action.has-notification,.topbar #map-switch.travel-walkthrough{--hud-glow:drop-shadow(0 0 7px #fffbd0dd)}
.hud-painted:disabled .hud-painted-art{filter:var(--hud-outline)!important}

@media(min-width:651px){.farm-hud .mode-switch,.farm-hud .hud-actions{gap:12px!important}}@media(max-width:650px){.farm-hud .mode-switch,.farm-hud .hud-actions{gap:5px!important}.topbar .resource-bar{gap:6px!important}}

/* Keep navigation on the top safe-area edge rather than centring it against the tall helper column. */
.topbar{align-items:flex-start!important;height:auto!important;min-height:0!important;padding-top:max(6px,env(safe-area-inset-top,0px))!important}
.topbar>.resource-bar,.topbar>.top-hud-farm{align-self:flex-start!important;margin-top:0!important}
.topbar>.resource-bar{align-items:flex-start!important}
@media(max-width:700px){.topbar>.brand-group{width:126px!important}.topbar>.top-hud-farm{padding:0!important;gap:2px}.topbar>.top-hud-farm>div{display:none}.topbar>.resource-bar{gap:4px!important}.topbar>.resource-bar .hud-painted{min-width:34px!important;width:36px!important;height:42px!important}.topbar>.resource-bar .hud-painted-art{width:36px!important;height:36px!important}.topbar #map-switch.hud-painted{min-width:36px!important;width:38px!important;height:42px!important}.topbar #map-switch .hud-painted-art{width:36px!important;height:36px!important}}
@media(max-width:360px){.topbar>.brand-group{width:112px!important}.topbar>.resource-bar{gap:2px!important}.topbar>.resource-bar .hud-painted{min-width:30px!important;width:32px!important}.topbar>.resource-bar .hud-painted-art{width:32px!important;height:32px!important}}

/* Farm status replaces the old title and flower; keep the helper directly below. */
.topbar>.brand-group{width:230px!important;flex:0 1 230px;gap:4px;max-width:100%;min-width:0}
.brand-group .brand-resources{display:flex;flex-wrap:wrap;align-items:center;gap:6px!important;width:max-content;max-width:100%;padding:0;margin:0}
.topbar .brand-resources .resource{min-height:36px;padding:3px 8px 3px 4px!important;gap:4px!important;flex:none}
.topbar .brand-resources .resource b{font-size:12px;white-space:nowrap}
.topbar .brand-resources .resource img{width:22px;height:22px}
.topbar .brand-resources .vip-resource{font:inherit;min-width:48px;padding:3px 9px!important;color:#805921!important}
.brand-group #farm-help-slot{padding:0;width:100%}
.brand-group #guide-launcher{max-width:100%}
.brand-group #build-mode-pill{margin:0;max-width:100%}
@media(max-width:700px){
 .topbar>.brand-group{width:auto!important;flex:1 1 174px;max-width:210px}
 .brand-group .brand-resources{gap:4px!important}
 .topbar .brand-resources .resource{min-height:32px;padding:2px 5px 2px 3px!important;gap:3px!important}
 .topbar .brand-resources .resource b{font-size:11px}
 .topbar .brand-resources .resource img{width:18px;height:18px}
 .topbar .brand-resources .vip-resource{min-width:44px;padding:2px 6px!important}
 .brand-group #guide-launcher{max-width:170px}
}
@media(max-width:360px){
 .app-shell>.topbar{padding-left:max(8px,env(safe-area-inset-left))!important;padding-right:max(8px,env(safe-area-inset-right))!important}
 .topbar>.brand-group{flex-basis:156px}
 .brand-group .brand-resources{gap:3px!important}
 .topbar .brand-resources .resource b{font-size:10px}
 .topbar .brand-resources .resource img{width:15px;height:15px}
 .topbar .brand-resources .resource{padding:2px 4px 2px 2px!important}
 .topbar .brand-resources .vip-resource{padding:2px 5px!important}
}
@media(max-width:410px){.topbar>.top-hud-farm{position:absolute!important;left:max(166px,calc(50% + 5px))!important;right:auto!important;top:calc(max(6px,env(safe-area-inset-top,0px)) + 54px)!important;width:38px!important;min-width:0!important;margin:0!important}}
/* A narrow expanded strip scrolls from its first control instead of clipping it. */
.compact-hud .topbar [data-compact-group="top"].is-expanded>.compact-hud-panel{justify-content:flex-start!important}
