/* v0.77 lasting-effect icons under every HP bar + the Team Blast gauge (js/effects.js). Stage pixels (1600x900). */
.nb .u .sts { display: none; }
.nb .u .hud .efx { grid-column: 2; display: grid; grid-template-columns: repeat(5, 24px); justify-content: space-between; gap: 4px 0; width: 100%; min-height: 0; margin-top: 4px; }
.ef { position: relative; flex: none; width: 24px; height: 24px; border-radius: 6px; background: #0b1622; box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 2px 4px rgba(0,0,0,.6); }
.ef img { width: 100%; height: 100%; display: block; border-radius: 6px; image-rendering: pixelated; }
.ef > b { display: grid; place-items: center; height: 100%; font: 700 13px/1 'Barlow Condensed', sans-serif; color: #fff; }
/* the group shows on the edge: buff green, debuff / CC / DoT red, boss states orange */
.ef::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--eg, transparent); pointer-events: none; }
.ef.g-buff { --eg: #6fe3a0; } .ef.g-debuff, .ef.g-cc, .ef.g-dot { --eg: #ff5a4a; } .ef.g-state, .ef.g-timer { --eg: #ffb347; }
.ef.passive { opacity: .8; } .ef.passive::after { --eg: rgba(255,255,255,.35); }
.ef.stopped { filter: grayscale(1) brightness(.6); }
.ef.stopped::before { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 3px; background: #ff4a3a; transform: rotate(-35deg); z-index: 2; box-shadow: 0 0 0 1px #000; }
/* what is left: turns (plain), hits (x8), shield HP (12.4K) */
.ef em { position: absolute; right: -5px; bottom: -6px; z-index: 3; min-width: 15px; padding: 0 3px; font: 700 12px/13px 'Barlow Condensed', sans-serif; font-style: normal; color: #fff;
  text-align: center; background: #08111d; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ef em.u-x { color: #ffd0c8; } .ef em.u-hp { color: #9fe8ff; right: -8px; }
.ef.more { display: grid; place-items: center; background: rgba(8,17,29,.9); } .ef.more::after { --eg: rgba(255,255,255,.4); }
.ef.fresh { animation: efIn .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes efIn { 0% { transform: scale(1.4); filter: brightness(3); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); filter: none; } }
/* Compact boss icons, mirrored underneath the stage character. */
.nb-boss .efx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; max-width: 560px; }
.nb-boss .ef { width: 30px; height: 30px; border-radius: 7px; } .nb-boss .ef img, .nb-boss .ef::after { border-radius: 7px; }
.nb-boss .ef em { font-size: 14px; line-height: 15px; min-width: 14px; right: -6px; bottom: -7px; }
/* shields: a white-cyan layer on the HP bar (Star Rail), the boss Barrier as a red crystal edge on its bar */
.nb .u .bar.hp .track { position: relative; }
.nb .u .bar.hp .shd { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffffff, #a8eaff); opacity: .85; box-shadow: 0 0 6px #bff3ff; transition: width .3s; }
.nb .u.ef-shield .bar.hp .track { box-shadow: 0 0 0 1px #bff3ff, 0 0 8px #6fd8ff; }
.nb-boss .bbar { position: relative; }
.nb-boss .bbar .brr { position: absolute; inset: -4px; border: 2px solid #ff5a6e; box-shadow: 0 0 10px #ff3a5a, inset 0 0 10px rgba(255,58,90,.6);
  background: repeating-linear-gradient(120deg, rgba(255,90,110,.18) 0 10px, transparent 10px 20px); animation: efPulse 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes efPulse { 50% { opacity: .55; } }

/* ---------- Team Blast gauge: top left under the fight title (Zenless Zone Zero keeps its Decibel gauge there), shared by the squad ---------- */
.nb-blast { position: absolute; left: 84px; top: 62px; z-index: 1050; display: flex; align-items: center; pointer-events: none; scale: .82; transform-origin: top left;
  --p: 0; --o: 0; --gc: #ffd84a; --gc2: #ff9a1a; }
.nb-blast .orb { position: relative; width: 78px; height: 78px; flex: none; z-index: 2; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gc) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); box-shadow: 0 0 0 3px #08111d, 0 4px 12px rgba(0,0,0,.7); }
.nb-blast .orb img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #08111d; filter: grayscale(calc(1 - var(--p) / 100)) brightness(calc(.55 + var(--p) / 220)); image-rendering: pixelated; }
.nb-blast .orb .ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--gc); opacity: 0; }
.nb-blast .bx { margin-left: -14px; display: grid; gap: 4px; }
.nb-blast .lab { display: flex; justify-content: space-between; align-items: baseline; padding: 0 10px 0 26px; font: 800 22px/1 'Barlow Condensed', sans-serif; letter-spacing: .06em;
  color: #e8f1fa; text-shadow: 0 2px 3px #000, 0 0 2px #000; transform: skewX(-12deg); }
.nb-blast .lab .pc { font-size: 26px; color: var(--gc); }
.nb-blast .bar { position: relative; width: 300px; height: 20px; transform: skewX(-24deg); background: rgba(8,17,29,.92); border: 2px solid rgba(255,255,255,.35); overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.6); }
.nb-blast .bar i { position: absolute; top: 0; bottom: 0; left: 0; }
.nb-blast .f1 { width: calc(var(--p) * 1%); background: linear-gradient(#fff3b0, #ffd84a 45%, #e8a010); transition: width .4s; }
.nb-blast .f2 { width: calc(var(--o) * 1%); background: linear-gradient(#ffd0a0, #ff6a2a 45%, #c8200c); transition: width .4s; }
.nb-blast .ticks { right: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(8,17,29,.75) calc(10% - 2px) 10%); }
.nb-blast .shine { width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); opacity: 0; }
/* READY: the orb blazes, a ring pulses out, a shine sweeps the full bar */
.nb-blast.ready .orb, .nb-blast.od .orb { box-shadow: 0 0 0 3px #08111d, 0 0 26px var(--gc), 0 0 60px var(--gc2); animation: bgBeat 1s ease-in-out infinite; }
.nb-blast.ready .orb .ring, .nb-blast.od .orb .ring { animation: bgRing 1.1s ease-out infinite; }
.nb-blast.ready .shine, .nb-blast.od .shine { animation: bgShine 1.4s linear infinite; }
.nb-blast.ready .bar { border-color: #ffe98a; box-shadow: 0 0 14px #ffd84a, 0 3px 10px rgba(0,0,0,.6); }
.nb-blast.ready .lab b { color: #ffe98a; }
/* OVERDRIVE: past 100 it fills again in red over the gold, the whole gauge runs hot */
.nb-blast.od { --gc: #ff6a2a; --gc2: #ff2a0a; }
.nb-blast.od .bar { border-color: #ffb08a; box-shadow: 0 0 18px #ff4a1a, 0 0 34px rgba(255,90,20,.6); }
.nb-blast.od .lab b { color: #ff9a6a; animation: bgFlick .18s steps(2) infinite; }
.nb-blast.od .f2 { animation: bgHeat .5s ease-in-out infinite alternate; }
.nb-blast.pop .orb { animation: bgPop .6s cubic-bezier(.2,1.7,.4,1), bgBeat 1s .6s ease-in-out infinite; }
.nb-blast.fire { animation: bgFire .7s ease-out; }
@keyframes bgBeat { 50% { transform: scale(1.07); } }
@keyframes bgRing { from { opacity: .9; transform: scale(.95); } to { opacity: 0; transform: scale(1.5); } }
@keyframes bgShine { from { left: -30%; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes bgFlick { 50% { opacity: .82; } }
@keyframes bgHeat { to { filter: brightness(1.35) saturate(1.3); } }
@keyframes bgPop { 0% { transform: scale(.6); filter: brightness(3); } 100% { transform: scale(1); } }
@keyframes bgFire { 0% { filter: brightness(4); transform: scale(1.08); } 100% { filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nb-blast *, .ef.fresh { animation: none !important; } }
/* phones: the 1600x900 stage is shrunk to ~45%, so the icons and their numbers grow to stay readable */
@media (max-height: 560px), (max-width: 900px) {
  .ef { width: 46px; height: 46px; }
  .ef em { font-size: 24px; line-height: 25px; min-width: 22px; right: -7px; bottom: -8px; }
  .nb-boss .ef { width: 44px; height: 44px; } .nb-boss .efx { gap: 6px; max-width: 700px; }
  .nb-boss .ef em { font-size: 22px; line-height: 23px; min-width: 18px; right: -5px; bottom: -6px; }
  /* v0.77.1 owner: smaller Team Blast; leave the top row HP bars clear on phones. */
  .nb-blast { scale: .7; top: 54px; }
  .nb-blast .bar { width: 250px; } .nb-blast .lab { font-size: 26px; } .nb-blast .lab .pc { font-size: 30px; }
}

/* v0.77.1 immediate status details, outside the scaled battle stage. */
.ef[data-eftip] { cursor: help; pointer-events: auto; }
.ef[data-eftip]:focus-visible { outline: 2px solid #9fe8ff; outline-offset: 3px; }
.ef-tooltip { position: fixed; z-index: 100000; box-sizing: border-box; width: max-content; max-width: min(280px, calc(100vw - 16px)); padding: 8px 10px; background: #0b1b2a; border: 1px solid #53738b; border-left: 3px solid #9fe8ff; color: #eef6ff; font: 500 14px/1.35 sans-serif; box-shadow: 0 4px 12px #0008; max-height: min(240px, 60vh); overflow-y: auto; pointer-events: auto; }

/* v0.77.1 owner: battlefield effects fit the HP bar exactly, at most two rows; + opens the rest. */
@media (hover:none), (max-height:560px), (max-width:900px) {
  .ef-tooltip { max-width: min(220px, 48vw); padding: 6px 8px; font-size: 12px; line-height: 1.3; max-height: min(160px, 40vh); }
}

/* Stage strips only: keep the approved top boss bar unchanged. The HUD's bottom anchor keeps both rows above the artwork. */
.nb .u .hud .efx .ef { width: 24px; height: 24px; border-radius: 4px; }
.nb .u .hud .efx .ef em { right: 0; bottom: 0; min-width: 0; max-width: 100%; box-sizing: border-box; padding: 0 1px; font-size: 10px; line-height: 11px; border-radius: 2px; box-shadow: none; overflow: hidden; }
.nb .u .hud .efx .ef.fresh { animation: efHudIn .2s ease-out; }
@keyframes efHudIn { from { opacity: 0; filter: brightness(2); } to { opacity: 1; filter: none; } }
.nb .u .hud .efx:empty { margin-top: 0; }
.ef-menu { position: fixed; z-index: 99999; box-sizing: border-box; width: 260px; max-width: calc(100vw - 16px); max-height: min(320px, 65vh); overflow-y: auto; padding: 8px; background: #0b1b2a; border: 1px solid #53738b; color: #eef6ff; box-shadow: 0 4px 12px #0008; font: 13px/1.3 sans-serif; }
.ef-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; }
.ef-menu-head button { width: 28px; height: 28px; background: #19344a; border: 1px solid #53738b; color: #eef6ff; cursor: pointer; }
.ef-menu-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-top: 1px solid #294050; }
.ef-menu-row small { display: block; color: #9fb6c9; }
.ef-menu .ef { width: 28px; height: 28px; }
.ef-menu .ef em { font-size: 11px; line-height: 12px; min-width: 0; right: 0; bottom: 0; padding: 0 1px; }
/* v0.77.1 owner: a smaller overflow list on phones, adapting to the available screen. */
@media (hover:none), (max-height:560px), (max-width:900px) {
  .ef-menu { width: min(190px, calc(100vw - 16px)); max-height: min(200px, 48vh); padding: 6px; font-size: 12px; }
  .ef-menu-row { gap: 7px; padding: 4px 1px; }
  .ef-menu .ef { width: 22px; height: 22px; }
  .ef-menu .ef em { font-size: 10px; line-height: 11px; }
  .ef-menu-head { padding-bottom: 4px; }
  .ef-menu-head button { width: 24px; height: 24px; }
}
/* v0.77.7: big Digimon in the top row: the gauge folds to its orb (+ %), still top left on our side (js/effects.js place()) */
.nb-blast .opc { display: none; }
.nb-blast.compact .bx { display: none; }
.nb-blast.compact .opc { display: block; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font: 800 20px/1 'Barlow Condensed', sans-serif;
  font-style: normal; color: var(--gc); text-shadow: 0 2px 3px #000, 0 0 2px #000; white-space: nowrap; }
