/* R16: derived from the existing forest frame, with explicit content zones. */
#hud .header{left:0;right:auto;top:0;width:1280px;height:124px;display:block;pointer-events:none}
#hud .header>div:first-child{position:absolute;left:28px;top:28px;padding:0;margin:0;border:0}
#hud .header .toolbar{position:absolute;left:912px;top:24px;width:336px;height:48px;display:grid;grid-template-columns:48px 48px 96px 96px;gap:16px;pointer-events:auto}
#hud .toolbar .icon-button,#hud .toolbar .text-button{width:100%;height:48px;min-height:48px;margin:0;padding:2px;border-radius:8px;font-size:19px;display:flex;align-items:center;justify-content:center}
#hud .toolbar .icon-button img{width:44px;height:44px;object-fit:contain}
#hud .speed-action{height:48px;padding:2px 5px;border-width:2px;border-style:solid;box-shadow:none}
#hud .dew-action{left:492px;top:25px;width:300px;height:66px;padding:10px 16px;gap:12px;background:transparent;border:0;border-radius:10px;box-shadow:none}
#hud .dew-action>img{width:34px;height:42px;object-fit:contain}
#hud .dew-action>div{text-align:left;min-width:0}
#hud .dew-action strong{display:block;font-size:23px;line-height:26px;white-space:nowrap}
#hud .dew-action small{font-size:13px;line-height:16px;color:#ead8a9;white-space:nowrap}
#hud .dew-action:hover{background:#f8d98712}
#hud .dew-action.aiming{background:#c6ca5930;box-shadow:inset 0 0 0 2px #f0dc9c}
#hud .stats{right:auto;display:flex;align-items:center;gap:12px}
#hud .stats .stat{flex:1;min-width:0;width:auto;height:38px;padding:1px 4px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:24px;line-height:28px;border-radius:6px;box-shadow:none}
#hud .stats .stat small{font-size:11px;line-height:18px;margin:0;white-space:nowrap}
.stat-symbol{position:relative;display:block;width:34px;height:32px;flex:0 0 34px;overflow:hidden}
#hud .stats .stat .stat-symbol>.stat-art{position:absolute;left:-6px;top:-12px;width:102px;height:55px;max-width:none;object-fit:contain}
.stat-symbol.wave-symbol{width:42px;flex-basis:42px}
#hud .stats .stat .wave-symbol>.stat-art{position:static;width:42px;height:32px}
#hud .detail-heading{padding:4px;gap:6px;background:linear-gradient(#77522e,#49331e);border:3px double #d4b576;box-shadow:0 3px 0 #382613;color:#ffedba;border-radius:8px;overflow:hidden}
#hud .detail-heading:hover{filter:brightness(1.12)}
#hud .detail-heading .return-arrow{font-size:27px;line-height:32px;flex:0 0 16px}
#hud .detail-mini-portrait{width:36px;height:56px;flex:0 0 36px}
#hud .detail-mini-portrait .profile-frame{inset:8px 0 auto;width:36px;height:40px}
#hud .detail .detail-mini-portrait .tower-portrait{left:3px;top:5px;width:30px;height:45px;margin:0}
#hud .return-label{min-width:0;text-align:left;font-size:22px;line-height:28px;font-weight:400;white-space:nowrap}
#hud .detail-heading .detail-name{font-size:15px;line-height:22px;margin:0;color:#ead8ad;white-space:normal}
.return-label .return-short{display:none}
.compact #hud .header>div:first-child{left:28px;top:26px}
.compact #hud .header .logo{visibility:visible;font-size:30px;letter-spacing:2px}
.compact #hud .header .chapter{display:none}
.compact #hud .header .toolbar{left:1168px;top:0;width:88px;height:88px;display:block}
.compact #hud .toolbar .icon-button{width:88px;height:88px;min-height:88px}
.compact #hud .toolbar .icon-button img{width:78px;height:78px}
.compact #hud .speed-action{left:1008px;top:0;width:88px;height:88px;min-height:88px}
.compact #hud .dew-action{left:492px;top:0;width:300px;height:88px;min-height:88px;padding:18px 16px}
.compact #hud .dew-action strong{font-size:26px;line-height:29px}
.compact #hud .dew-action small{font-size:20px;line-height:24px}
.compact #hud .stats{top:94px!important;height:28px!important}
.compact #hud .stats .stat{height:28px;font-size:24px;line-height:25px;border-width:1px;gap:6px;padding:0 4px}
.compact #hud .stats .stat small{font-size:15px;line-height:20px}
.compact .stat-symbol{height:24px}
.compact #hud .stats .stat .stat-symbol>.stat-art{top:-15px}
.compact #hud .stats .stat .wave-symbol>.stat-art{height:24px}
.compact #hud .detail-heading .return-label{font-size:30px;line-height:32px}
.compact #hud .detail-heading .detail-name{font-size:20px;line-height:23px}
.compact .return-label .return-wide{display:none}
.compact .return-label .return-short{display:inline}

.compact #hud .dew-action>img,.compact #hud .dew-action>div{transform:translateY(10px)}
.compact #hud .dew-action strong{font-size:24px;line-height:26px}
.compact #hud .dew-action small{font-size:18px;line-height:22px}
.compact .detail-heading .detail-level{display:none}

#hud .toolbar .icon-button{padding:0;border-width:2px;overflow:hidden}
#hud .toolbar .icon-button img{width:42px;height:42px}
#hud .detail-heading{padding:3px;gap:4px;border-width:2px}
#hud .detail-heading .return-arrow{flex-basis:12px}
#hud .detail-mini-portrait{width:30px;flex-basis:30px}
#hud .detail-mini-portrait .profile-frame{width:30px;height:34px;top:10px}
#hud .detail .detail-mini-portrait .tower-portrait{width:26px;height:40px;left:2px;top:8px}
#hud .detail-heading .detail-name{font-size:14px;line-height:20px}
#hud .detail-heading .detail-level{white-space:nowrap}
.compact #hud .toolbar .icon-button img{width:78px;height:78px}
.compact #hud .detail-heading .detail-name{font-size:20px;line-height:23px}

/* R18: keep every result action inside the paper, without reducing its target. */
.compact .modal-result{max-height:690px;padding:24px 40px 30px}
.compact .modal-result p{margin:14px 0}
.compact .modal-result .result-stats{margin:16px 0;font-size:24px}
.compact .modal-result .result-stats b{font-size:30px}
.compact .modal-result .small{line-height:1.45}
.compact .modal-result .row{margin-top:16px}
