/* New artwork and native HTML buttons; no game-state dependencies. */
.icon-grimoire{--action-icon:url('../images/icon-grimoire.png')}
.icon-key{--action-icon:url('../images/icon-cle.png')}
.icon-gear{--action-icon:url('../images/icon-engrenage.png')}
.manor-heading{display:flex;align-items:center;gap:12px;min-width:0}
.manor-heading::before{content:"";flex:0 0 48px;width:48px;height:48px;background:var(--action-icon,none) center/contain no-repeat}
.manor-heading h1,.manor-heading h2{margin:0}
.manor-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:10px;margin:14px 0 20px}
.manor-tools .moosters-action{min-width:0;box-sizing:border-box;text-align:left;justify-content:flex-start}
.manor-resource-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px;margin:18px 0}
.manor-resource{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line,#6c5a96);border-radius:12px;background:var(--panel,#211c36);min-width:0}
.manor-resource img{width:64px;height:64px;object-fit:contain;flex:0 0 64px}
.manor-resource strong{display:block;color:var(--gold,#ffcf72)}
.manor-resource small{display:block;color:var(--muted,#c8c4da);line-height:1.35}
.backup-actions .moosters-action,.dialog-actions .moosters-action{flex:1 1 auto;min-width:0;max-width:100%;white-space:normal}
.world-scene.manor-wide img{max-height:260px;object-position:center}
.manor-map-art{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px;margin:16px 0}
.manor-map-art .world-scene{margin:0;min-width:0}
.manor-map-art .world-scene img{max-height:220px;object-fit:cover}
@media(max-width:500px){.manor-heading::before{flex-basis:38px;width:38px;height:38px}.manor-resource img{width:52px;height:52px;flex-basis:52px}.world-scene.manor-wide img{max-height:190px}.manor-map-art .world-scene img{max-height:190px}}
@media(forced-colors:active){.manor-resource{border:2px solid CanvasText;background:Canvas}.manor-resource strong,.manor-resource small{color:CanvasText}}
