:where(#fd-hud, #fd-say) { --dg: #ff4a3a; --dg-lo: #4e0c08; --dga: #ffb0a0; }
#fd-hud { position: absolute; z-index: 3; left: 50%; top: calc(1.6rem + var(--sat)); transform: translateX(-50%); width: max-content; max-width: 96vw; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
#fd-hud.hidden, #fd-say.hidden { display: none; }
body.patch-pending #fd-hud { top: calc(var(--patch-h, 0px) + 1rem + var(--sat)); }
#fd-hud .vy-isle { color: #ffe0d8; }
#fd-hud .fd-num small.tw-lv { font-size: max(9px, 1rem); }
#fd-hud .vy-s small, #fd-hud .vy-s > span { font: 600 max(9px, 1.05rem) var(--sans); color: var(--ink3); }
#fd-hud .vy-s b { color: #fff; font-variant-numeric: tabular-nums; }
#fd-hud .vy-s.pct b { color: #ff8a70; }
#fd-hud .vy-s.stage { display: inline-flex; align-items: center; gap: .3rem; }
#fd-hud .vy-s.stage img { width: 2rem; height: 2rem; min-width: 18px; min-height: 18px; }
#fd-hud .vy-s.stage span { color: #ffb0a0; font-weight: 700; }
#fd-hud .vy-s.stage.s0 span { color: var(--ink3); }
#fd-hud .vy-s.loot b { color: #ffd36e; }
#fd-hud .vy-s.boss b { color: #ff6a52; }
#fd-hud .vy-s.calm b { color: #9fd8ff; }
#fd-hud .vy-s.mine b { color: #ffd36e; }
#fd-hud .fd-bar { position: relative; width: min(42rem, 72vw); aspect-ratio: 640 / 80; pointer-events: auto; --pct: 0; }
#fd-hud .fd-bar::before { content: ''; position: absolute; left: 8.75%; right: 8.75%; top: 37.5%; bottom: 37.5%; background: rgba(12, 4, 4, .85); }
#fd-hud .fd-bar .fd-fill { position: absolute; left: 8.75%; top: 37.5%; bottom: 37.5%; width: calc(82.5% * var(--pct)); transition: width .4s ease-out;
background: linear-gradient(180deg, #ffb59a, #e8341e 50%, #7a0c06); box-shadow: 0 0 .9rem rgba(255, 60, 30, .6); }
#fd-hud .fd-bar.boss .fd-fill { animation: fd-pulse 1s ease-in-out infinite; }
@keyframes fd-pulse { 50% { filter: brightness(1.5); } }
#fd-hud .fd-bar .fd-frame { position: absolute; inset: 0; background: url(../assets/ui/field/frenzy_bar.webp) center / 100% 100% no-repeat; pointer-events: none; }
#fd-hud .fd-bar .fd-mark { position: absolute; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); filter: grayscale(.85) brightness(.55); transition: filter .3s; pointer-events: none; }
#fd-hud .fd-bar .fd-mark.lit { filter: drop-shadow(0 0 .5rem rgba(255, 70, 40, .9)); }
#fd-hud .fd-bar .fd-mark.m4 { left: 91.25% !important; }
#fd-hud .fd-bar .fd-pct { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 700 max(10px, 1.15rem)/1 var(--sans); color: #fff; text-shadow: 0 1px 2px #000, 0 0 .4rem #000; pointer-events: none; }
#fd-say { position: absolute; z-index: 4; left: 50%; top: calc(16rem + var(--sat)); transform: translateX(-50%); max-width: min(90vw, 90rem); padding: .6rem 4rem; pointer-events: none; text-align: center;
font: 700 max(15px, 2.3rem)/1.35 var(--serif); letter-spacing: .03em; color: #ffe0d8; text-shadow: 0 .2rem 0 #000, 0 0 1.4rem rgba(230, 40, 20, .85);
background: linear-gradient(90deg, transparent, rgba(34, 4, 2, .78) 18%, rgba(34, 4, 2, .78) 82%, transparent); }
#fd-say.show { animation: tw-say 4.2s ease-out both; }
#fd-say.good { color: #ffe9b0; }
#fd-say.boss { color: #ff9a80; font-size: max(17px, 2.7rem); }
body.touch #fd-hud { top: calc(.8rem + var(--sat)); left: calc((100vw + var(--sal) - var(--sar)) / 2 + 1.5rem); max-width: 46rem; }
body.touch #fd-hud .fd-bar { width: min(30rem, 52vw); }
body.touch #fd-say { top: calc(11.5rem + var(--sat)); left: calc((100vw + var(--sal) - var(--sar)) / 2 + 1.5rem); font-size: max(13px, 1.7rem); padding: .4rem 2.4rem; }