/* Approved C1 / Klarere Werte: a single free HUD row, map-first geometry. */
body.framed-ui.wald-design{--hud-space:calc(88px + env(safe-area-inset-top));--bottom-space:calc(80px + env(safe-area-inset-bottom))}
body.framed-ui.wald-design .hud{height:var(--hud-space);padding:calc(10px + env(safe-area-inset-top)) 10px 10px;gap:7px;align-items:flex-start}
body.framed-ui.wald-design #hero-run{width:44px;min-width:44px;height:54px;padding:0;border:0;border-image:none;background:none;filter:drop-shadow(0 2px 2px #071d16)}
body.framed-ui.wald-design .hud-head{width:44px;height:54px}
body.framed-ui.wald-design .hud-vitals{display:flex;flex:1;align-items:center;gap:7px;height:54px;width:auto;max-width:none;min-width:0;margin-right:49px}
body.framed-ui.wald-design .hud :is(.vital-stat,.wave-stat,.gold-stat){position:relative;display:flex;align-items:center;justify-content:center;gap:3px;height:44px;min-height:44px;min-width:0;padding:4px 0;background:none;border:0;border-image:none;box-shadow:none;overflow:visible}
body.framed-ui.wald-design .hud .vital-stat{flex:1;min-width:64px}
body.framed-ui.wald-design .hud .wave-stat{flex:1;min-width:63px}
body.framed-ui.wald-design .hud .gold-stat{min-width:38px;flex-shrink:0}
body.framed-ui.wald-design .hud :is(.hud-stat-icon,.gold-stat svg){width:14px;height:14px;filter:drop-shadow(0 1px 2px #071d16)}
body.framed-ui.wald-design .hud :is(.vital-stat,.wave-stat,.gold-stat) strong{font:700 16px/1 'Courier New',monospace;letter-spacing:-.35px;text-shadow:0 1px 2px #071d16,1px 0 #071d16,-1px 0 #071d16,0 -1px #071d16}
body.framed-ui.wald-design .hud .hud-stat-max{font:9px 'Trebuchet MS',sans-serif;color:#c1cdb3;opacity:1;margin-left:2px;letter-spacing:0}
body.framed-ui.wald-design .game-menu{top:calc(15px + env(safe-area-inset-top));right:10px}
body.framed-ui.wald-design .game-menu>summary{width:44px;height:44px;background:none;border:0;box-shadow:none;filter:drop-shadow(0 1px 2px #071d16);font-size:21px}
body.framed-ui.wald-design .wave-controls{height:var(--bottom-space);padding:12px 10px calc(12px + env(safe-area-inset-bottom));gap:8px;align-items:center}
body.framed-ui.wald-design #build-mode{width:56px;min-width:56px;height:56px;min-height:56px;padding:12px}
body.framed-ui.wald-design #build-mode .build-symbol,body.framed-ui.wald-design #build-mode svg{width:26px;height:26px}
body.framed-ui.wald-design #hero-ability{width:48px;min-width:48px;height:56px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:6px;background:none;border:0;border-image:none;box-shadow:none;filter:none}
body.framed-ui.wald-design #hero-ability[hidden]{display:none}
body.framed-ui.wald-design #hero-ability svg,body.framed-ui.wald-design #hero-ability:has(small[hidden]) svg{width:31px;height:31px;filter:drop-shadow(0 0 3px #ebc66e55)}
body.framed-ui.wald-design #hero-ability small{font:10px 'Trebuchet MS';color:#ffe3a0;line-height:1.15}
body.framed-ui.wald-design #hero-ability[data-state='cooldown'] svg,body.framed-ui.wald-design #hero-ability[data-state='unavailable'] svg{filter:none}
body.framed-ui.wald-design #hero-ability:before{left:8px;right:8px;bottom:3px;height:2px}
body.framed-ui.wald-design #start{height:56px;min-height:56px;gap:6px;padding:10px;font-size:14px}
body.framed-ui.wald-design #start .wood-action-mark{width:20px;height:22px;font-size:14px;border:0;background:none;box-shadow:none}
body.framed-ui.wald-design #start span{white-space:nowrap}
body.framed-ui.wald-design .hud.low-lives #lives{color:#ffcfb4!important}
@media(max-width:350px){body.framed-ui.wald-design #start{font-size:13px}body.framed-ui.wald-design .hud .gold-stat:has(strong[data-long='true']) strong{font-size:13px}}
body.framed-ui.wald-design #hero-ability[data-state]{background:none;border:0;border-image:none;box-shadow:none;filter:none}
body.framed-ui.wald-design #start{justify-content:center}
