
.sfx-layer { position: fixed; inset: 0; z-index: 9300; pointer-events: none; overflow: hidden; }
.sfx-pop { position: absolute; left: 0; top: 0; display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 12px 5px; border-radius: 999px; white-space: nowrap; will-change: transform, opacity;
  font: 800 26px/1.1 var(--hn-sans, sans-serif); text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 12px rgba(0, 0, 0, .35); border: 2px solid transparent; }
.sfx-pop i { font-style: normal; font-size: .8em; }
.sfx-pop small { font-size: .7em; font-weight: 700; }
.sfx-pop em { font-style: normal; font-size: .55em; font-weight: 700; opacity: .9; margin-left: 4px; }
.sfx-pop.up { color: #fff3b0; background: rgba(36, 92, 40, .82); border-color: #f0d890; }
.sfx-pop.dn { color: #ffe6e2; background: rgba(150, 28, 28, .85); border-color: #ff9a8a; }
.sfx-pop.other { font-size: 16px; padding: 2px 8px 3px; border-width: 1px; }
.sfx-pop.go { animation: sfx-in .28s ease-out; }
@keyframes sfx-in { 0% { scale: .5; } 60% { scale: 1.22; } 100% { scale: 1; } }

.sfx-pill { position: fixed; z-index: 9310; left: max(12px, env(safe-area-inset-left)); top: calc(max(8px, env(safe-area-inset-top)) + 54px); transform-origin: left center; display: inline-flex; gap: 14px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--hn-gold, #c9a24a); background: rgba(14, 18, 34, .9); color: #f6ecd0; font: 700 18px/1.1 var(--hn-sans, sans-serif); pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.sfx-pill.hidden { display: none; }
.sfx-pill b { font-size: 21px; color: #fff6dc; }
.sfx-pill.pulse { animation: sfx-pulse .9s ease-out; }
.sfx-pill.sfx-hp-dn .sfx-ph b, .sfx-pill.sfx-lv-dn .sfx-pl b { color: #ff8f80; }
.sfx-pill.sfx-hp-up .sfx-ph b, .sfx-pill.sfx-lv-up .sfx-pl b { color: #b9f08a; }
.sfx-pill.sfx-hp-dn .sfx-ph b::before, .sfx-pill.sfx-lv-dn .sfx-pl b::before { content: '▼ '; font-size: .75em; }
.sfx-pill.sfx-hp-up .sfx-ph b::before, .sfx-pill.sfx-lv-up .sfx-pl b::before { content: '▲ '; font-size: .75em; }
@keyframes sfx-pulse { 0% { scale: 1; box-shadow: 0 0 0 0 rgba(240, 216, 144, .8); } 30% { scale: 1.25; } 100% { scale: 1; box-shadow: 0 0 0 18px rgba(240, 216, 144, 0); } }
@media (prefers-reduced-motion: reduce) { .sfx-pop.go, .sfx-pill.pulse { animation: none; } }
@media (max-width: 560px) { .sfx-pop { font-size: 24px; } .sfx-pill { font-size: 16px; } .sfx-pill b { font-size: 19px; } }
