/* Approved six A variants, 15 October 2026. Production parchment and forest frames. */
body.framed-ui.wald-design .wacht-upgrade-context{display:flex;align-items:center;gap:5px;min-width:0;color:#294b40;font:12px/1.2 'Trebuchet MS',sans-serif;text-align:left}
body.framed-ui.wald-design .wacht-upgrade-context>.wacht-context-art{flex:none;width:23px;height:25px;display:grid;place-items:center}
body.framed-ui.wald-design .wacht-context-art img{display:block;width:23px;height:25px;object-fit:contain;margin:0;filter:none}
body.framed-ui.wald-design .wacht-upgrade-context>span:last-child{font:inherit;color:inherit;display:block;line-height:inherit;letter-spacing:0;text-transform:none;margin:0;padding:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-item{height:132px;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:22px minmax(0,1fr) 29px;gap:0;padding:0}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-item>.wacht-upgrade-context{grid-column:1;grid-row:3;margin:0 8px;padding:3px 0;border-top:1px solid color-mix(in srgb,var(--card-edge) 40%,transparent)}
body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:113px}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-content{padding:4px 8px}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-item .reward-list-copy strong{margin-bottom:3px}
body.framed-ui.wald-design #reward-popup .wacht-context-detail{padding:10px 0;margin:8px 0;border-top:1px solid var(--card-edge,#b49a62);border-bottom:1px solid var(--card-edge,#b49a62);font-size:14px}
body.framed-ui.wald-design #reward-popup .wacht-context-detail>span:last-child{white-space:normal;overflow:visible}
body.framed-ui.wald-design .wacht-context-detail small{display:block;margin-top:4px;font-size:12px;line-height:1.4}

/* Spähbericht: one illustrated list; existing popup keeps header and actions fixed. */
body.framed-ui.wald-design .wacht-scout-intro{margin:0 0 10px;font-size:15px;line-height:1.4}
body.framed-ui.wald-design .wacht-scout-intro small{display:block;font-size:12px;line-height:1.4;margin-top:6px}
body.framed-ui.wald-design .wacht-scout-hint{font-size:13px;margin:0 0 12px}
body.framed-ui.wald-design .wacht-scout-list>article{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #b49a6266}
body.framed-ui.wald-design .wacht-scout-list>article:last-child{border-bottom:0}
body.framed-ui.wald-design .wacht-scout-art{width:70px;height:86px;flex:none;display:grid;place-items:center}
body.framed-ui.wald-design .wacht-scout-art img{width:70px;height:86px;object-fit:contain;margin:0;filter:drop-shadow(0 3px 2px #102b2422)}
body.framed-ui.wald-design .wacht-scout-list>article>div:last-child{min-width:0}
body.framed-ui.wald-design .wacht-scout-list h3{font:700 16px/1.2 'Courier New',monospace;overflow-wrap:normal;word-break:normal;margin:0 0 7px;padding:0;border:0}
body.framed-ui.wald-design .wacht-scout-list p{font-size:13px;line-height:1.45;margin:5px 0 0}
body.framed-ui.wald-design .wacht-scout-list .wacht-scout-traits{font-size:12px;border-left:3px solid #b49a62;padding-left:7px;margin-bottom:6px}
body.framed-ui.wald-design .wacht-scout-counts small{display:block;font-size:11px;margin-top:3px}

/* True, isolated before/after tower renders and values. */
body.framed-ui.wald-design #reward-popup .wacht-research-preview{margin:0 0 12px;padding:0;background:radial-gradient(ellipse at 50% 25%,#c5ce9d44,transparent 60%)}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison{display:flex;align-items:center;gap:3px;padding:0}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison figure{flex:1;min-width:0;margin:0;text-align:center}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison img{display:block;width:100%;height:142px;object-fit:contain;margin:0;max-width:none;filter:drop-shadow(0 4px 3px #102b2422)}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison figcaption{font-size:12px;line-height:1.3;margin:0}
body.framed-ui.wald-design .wacht-research-arrow{font:bold 25px 'Courier New',monospace;color:#8f793f}
body.framed-ui.wald-design .wacht-research-values{border-left:3px solid #b49a62;margin:12px 0 8px;padding:2px 0 2px 10px}
body.framed-ui.wald-design .wacht-research-values>div{display:flex;justify-content:space-between;gap:9px;align-items:baseline;margin:5px 0;font-size:13px}
body.framed-ui.wald-design .wacht-research-values small{font-size:12px}
body.framed-ui.wald-design .wacht-research-values>div>span{white-space:nowrap}
body.framed-ui.wald-design #reward-popup .wacht-research-location{font-size:12px;line-height:1.4;margin:8px 0 0}
body.framed-ui.wald-design #reward-popup:has(.wacht-research-preview) .upgrade-detail-head>.upgrade-detail-emblem{display:none}
body.framed-ui.wald-design #reward-popup:has(.wacht-research-preview) .upgrade-detail-head{padding-top:8px;padding-bottom:0;min-height:0}
body.framed-ui.wald-design #reward-popup:has(.wacht-research-preview) .upgrade-detail-head .upgrade-category{margin-bottom:3px}

/* The memory scene shares the existing result, analysis and collection lifecycle. */
body.framed-ui.wald-design .run-complete .wacht-memory-scene{position:relative;height:326px;border:0;background:#102b24;overflow:hidden;margin:0;isolation:isolate}
body.framed-ui.wald-design .run-complete .wacht-memory-forest{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;z-index:-2}
body.framed-ui.wald-design .run-complete .wacht-memory-scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 35%,#102b24 92%);pointer-events:none}
body.framed-ui.wald-design .run-complete .wacht-memory-hero{position:absolute;left:50%;top:0;transform:translateX(-50%);width:210px;height:225px;object-fit:contain;margin:0;max-width:78%;filter:drop-shadow(0 5px 6px #0005)}
body.framed-ui.wald-design .run-complete .wacht-memory-team{position:absolute;left:8px;right:8px;bottom:55px;display:flex;align-items:end;justify-content:space-evenly;gap:6px;color:#ffe3a0}
body.framed-ui.wald-design .run-complete .wacht-memory-team>figure{position:relative;flex:1;max-width:110px;min-width:0;margin:0;background:none}
body.framed-ui.wald-design .run-complete .wacht-memory-team img{display:block;margin:0 auto;width:68px;height:86px;object-fit:contain;max-width:100%;filter:drop-shadow(0 4px 3px #0006)}
body.framed-ui.wald-design .run-complete .wacht-memory-team figcaption{position:static;inset:auto;display:block;min-height:0;background:none;border:0;padding:2px 0 0;text-align:center;color:#ffe3a0;font:11px/1.2 'Trebuchet MS',sans-serif}
body.framed-ui.wald-design .run-complete .wacht-memory-team figcaption small{display:block;color:#d1dbc2;font-size:10px;margin:3px 0 0}
body.framed-ui.wald-design .run-complete .wacht-memory-caption{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:4px;text-align:center;padding:9px;background:none;color:#ffe3a0}
body.framed-ui.wald-design .run-complete .wacht-memory-caption strong{font:bold 17px 'Courier New',monospace}
body.framed-ui.wald-design .run-complete .wacht-memory-caption span{font-size:12px;color:#d1dbc2}
body.framed-ui.wald-design .wacht-memory-connections{padding:10px 0;border-bottom:1px solid #b49a6266;color:#294b40}
body.framed-ui.wald-design .wacht-memory-connections h3{font:700 14px/1.3 'Trebuchet MS',sans-serif;margin:0 0 5px;padding:0;border:0}
body.framed-ui.wald-design .wacht-memory-connections p{font-size:13px;line-height:1.4;margin:0}
body.framed-ui.wald-design .run-complete .modal>.run-end-actions{position:static;flex:none;margin:0;padding:10px 12px 12px;background:#f1e7c9;border-top:1px solid #b49a6266}
body.framed-ui.wald-design .run-complete #choices{overflow:auto}

/* Decorative surroundings on wide displays; arena, hit areas and HUD keep their geometry. */
@media(min-width:850px){
 body.framed-ui.wald-design{isolation:isolate}
 body.framed-ui.wald-design:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#102b2444,#102b24b5 46%,#102b24b5 54%,#102b2444),url('assets/map-selection/daemmerwald-v1.webp') center/cover no-repeat;box-shadow:inset 0 0 100px 20px #071b17a0}
}
@media(max-height:700px){
 body.framed-ui.wald-design .upgrade-list-selection .reward-list-item{height:116px;grid-template-rows:20px minmax(0,1fr) 25px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:88px;grid-template-rows:18px minmax(0,1fr) 22px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-content{padding:2px 7px;gap:6px;grid-template-columns:26px minmax(0,1fr)}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-arrow{display:none}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-emblem,body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-emblem svg{width:26px;height:26px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-copy strong{font-size:12px;line-height:1.15;margin-bottom:1px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-effect{font-size:11px;line-height:1.15}
 body.framed-ui.wald-design .upgrade-list-selection .reward-list-item>.wacht-upgrade-context{font-size:11px;margin:0 7px;gap:4px;padding:1px 0}
 body.framed-ui.wald-design .upgrade-list-selection .wacht-context-art,body.framed-ui.wald-design .upgrade-list-selection .wacht-context-art img{width:20px;height:21px}
 body.framed-ui.wald-design #reward-popup .wacht-research-comparison img{height:120px}
 body.framed-ui.wald-design .run-complete .wacht-memory-scene{height:280px}
 body.framed-ui.wald-design .run-complete .wacht-memory-hero{height:190px}
 body.framed-ui.wald-design .run-complete .wacht-memory-team img{height:72px;width:58px}
}
@media(max-width:360px){
 body.framed-ui.wald-design .wacht-scout-art{width:62px;height:78px}
 body.framed-ui.wald-design .wacht-scout-art img{width:62px;height:78px}
 body.framed-ui.wald-design .wacht-scout-list>article{gap:9px}
 body.framed-ui.wald-design .wacht-scout-list h3{font-size:15px}
 body.framed-ui.wald-design .upgrade-list-selection .reward-list-content{grid-template-columns:30px minmax(0,1fr);gap:7px}
 body.framed-ui.wald-design .upgrade-list-selection .reward-list-arrow{display:none}
}

@media(max-height:700px){body.framed-ui.wald-design .upgrade-list-selection #modal-title:has(.detail-head-seal){padding:8px 12px}body.framed-ui.wald-design .upgrade-list-selection #modal-copy{padding-top:7px;margin-bottom:7px}body.framed-ui.wald-design .upgrade-list-selection #draft-tools{padding:8px 12px}body.framed-ui.wald-design .upgrade-list-selection #choices{gap:5px;padding-bottom:6px}body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:87px}}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison figcaption strong{display:block;font:bold 13px/1.2 'Courier New',monospace;overflow-wrap:normal}
body.framed-ui.wald-design #reward-popup .wacht-research-comparison figcaption small{display:block;font-size:11px;margin-top:4px}

/* Graphic finish 8A: shared icon rhythm and quiet brass divisions. */
body.framed-ui.wald-design .hud-vitals{gap:8px}
body.framed-ui.wald-design .hud :is(.hud-stat-icon,.gold-stat svg){width:16px;height:16px;flex:none}
body.framed-ui.wald-design .hud :is(.vital-stat,.wave-stat,.gold-stat){gap:5px;align-items:center}
body.framed-ui.wald-design .hud :is(.vital-stat,.wave-stat,.gold-stat) strong{line-height:20px}
body.framed-ui.wald-design .hud .hud-stat-max{margin-left:3px}
body.framed-ui.wald-design .hud :is(.vital-stat,.wave-stat):after{content:'';position:absolute;right:-5px;top:17px;width:1px;height:12px;background:#b49a6288}
dialog .menu-heading{gap:12px}
dialog .detail-head-seal{width:26px;flex:0 0 26px}
dialog .detail-head-seal svg{width:22px;height:22px}
dialog .menu-content h3{margin-top:20px;padding-bottom:7px;border-bottom:1px solid #b49a6277}
dialog .menu-content h3 svg{width:19px;height:19px;vertical-align:-4px;margin-right:7px}

/* Approved 2B. Preserve the established card, fonts, category and rarity. */
body.framed-ui.wald-design .upgrade-list-selection .reward-list-effect.wacht-offer-summary{display:block;float:none;margin:0;-webkit-line-clamp:unset;line-clamp:unset;max-height:none;overflow:visible;font-weight:400;line-height:1.25}
/* Nested text must not inherit the legacy .choice span icon treatment. */
body.framed-ui.wald-design .wacht-offer-facts{display:flex;flex-wrap:wrap;column-gap:10px;row-gap:2px;align-items:baseline;font:inherit;color:inherit;float:none;margin:0;min-width:0}
body.framed-ui.wald-design .wacht-offer-fact{display:inline;font:inherit;color:inherit;float:none;margin:0;min-width:0;overflow-wrap:break-word}
body.framed-ui.wald-design .wacht-offer-fact b{font:inherit;font-weight:700;color:inherit;white-space:nowrap}
body.framed-ui.wald-design .wacht-offer-cost{color:#794331}
body.framed-ui.wald-design .wacht-offer-condition{display:block;float:none;margin:4px 0 0;font-size:11px;line-height:1.2;color:#294b40}
@media(max-height:700px){
 body.framed-ui.wald-design .upgrade-list-selection .wacht-offer-condition{font-size:11px;margin-top:2px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:101px;grid-template-rows:18px minmax(0,1fr) 22px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .wacht-offer-facts{column-gap:7px;row-gap:1px}
}

/* Text determines the middle row; long effects cannot slip behind the context. */
body.framed-ui.wald-design .upgrade-list-selection .modal{display:flex;flex-direction:column;overflow:hidden}
body.framed-ui.wald-design .upgrade-list-selection .modal>:is(#modal-title,#modal-copy,#draft-tools){flex-shrink:0}
body.framed-ui.wald-design .upgrade-list-selection #choices{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start;grid-auto-rows:max-content}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-item{height:auto;min-height:132px;grid-template-rows:22px auto 29px;flex:0 0 auto}
body.framed-ui.wald-design .upgrade-list-selection .reward-list-content{height:auto;overflow:visible}
body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:auto;min-height:113px}
@media(max-height:700px){
 body.framed-ui.wald-design .upgrade-list-selection .reward-list-item{min-height:116px;grid-template-rows:20px auto 25px}
 body.framed-ui.wald-design .upgrade-list-selection #choices[data-count="4"] .reward-list-item{height:auto;min-height:101px;grid-template-rows:18px auto 22px}
}
