/* ============ Last Light — raid boss bar (The Hollow Sun, js/boss.js) ============ */
#bossbar { position: absolute; top: 92px; left: 50%; width: min(600px, max(280px, calc(100vw - 620px))); transform: translate(-50%, -8px); opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; text-align: center; font-family: var(--f-text); }
#bossbar.show { opacity: 1; transform: translate(-50%, 0); }
#hud.bossfight #banner { top: 190px; }

#bossbar .bb-head { display: flex; align-items: center; justify-content: center; gap: 12px; font: bold 18px var(--f-text); letter-spacing: .32em; text-transform: uppercase; color: #f6e2a8;
  text-shadow: 0 0 12px rgba(255,160,60,.75), 0 2px 4px #000, 0 0 2px #000; }
#bossbar .bb-sun { width: 14px; height: 14px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #ffcf6a, 0 0 10px 3px rgba(255,140,40,.8); }
#bossbar .bb-title { font: italic 12px var(--f-text); color: #b9a27c; letter-spacing: .12em; margin-top: 1px; text-shadow: 0 1px 3px #000; }

#bossbar .bb-frame { position: relative; margin: 5px 16px 0; height: 20px; padding: 3px; border-radius: 3px;
  background: linear-gradient(#22190f, #0d0906); border: 1px solid #8a6a3e;
  box-shadow: inset 0 0 0 1px #2e2316, inset 0 0 10px #000, 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.8); }
#bossbar .bb-frame::before, #bossbar .bb-frame::after { content: '◆'; position: absolute; top: 50%; transform: translateY(-52%); font-size: 15px; color: #d4a85a; text-shadow: 0 0 8px rgba(255,150,60,.9), 0 0 2px #000; }
#bossbar .bb-frame::before { left: -13px; }
#bossbar .bb-frame::after { right: -13px; }
#bossbar .bb-track { position: relative; height: 100%; overflow: hidden; border-radius: 2px; background: repeating-linear-gradient(90deg, #160b08 0 6px, #120907 6px 12px); }
#bossbar .bb-ghost { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(#fff3d0, #d8b070); opacity: .5; transition: width .2s; }
#bossbar .bb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; overflow: hidden; transition: width .12s;
  background: linear-gradient(180deg, #ffe08a 0%, #f08a2a 38%, #b0361a 70%, #5a1008 100%); box-shadow: 0 0 14px rgba(255,120,40,.7), inset 0 1px 0 rgba(255,255,220,.6); }
#bossbar .bb-fill::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, rgba(255,250,230,.38), transparent); animation: bb-sheen 2.8s linear infinite; }
@keyframes bb-sheen { to { left: 110%; } }
#bossbar .bb-notch { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: rgba(0,0,0,.85); box-shadow: 0 0 0 1px rgba(255,214,150,.22); }
#bossbar .bb-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: bold 12px var(--f-text); color: #fff8e6; letter-spacing: .08em; text-shadow: 0 1px 2px #000, 0 0 4px #000, 0 0 6px #000; }

#bossbar .bb-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 5px 16px 0; font: 12.5px var(--f-text); color: #cdb68a; text-shadow: 0 1px 3px #000, 0 0 6px #000; min-height: 16px; }
#bossbar .bb-phase { color: #ffd98a; font-weight: bold; letter-spacing: .04em; text-align: left; flex: 1; }
#bossbar .bb-cast { color: #ffb08a; font-weight: bold; animation: llpulse .8s infinite; white-space: nowrap; }
#bossbar .bb-hide { color: #b9a5d8; font-style: italic; text-align: right; flex: 1; }

/* phase colours */
#bossbar.p2 .bb-fill, #bossbar.eclipse .bb-fill { background: linear-gradient(180deg, #f0dcff 0%, #b07aff 38%, #5a2aa8 72%, #1e0a3a 100%); box-shadow: 0 0 14px rgba(160,100,255,.8), inset 0 1px 0 rgba(255,240,255,.6); }
#bossbar.p2 .bb-sun, #bossbar.eclipse .bb-sun { box-shadow: 0 0 0 2px #c8a0ff, 0 0 10px 3px rgba(150,90,255,.85); }
#bossbar.p2 .bb-head, #bossbar.eclipse .bb-head { text-shadow: 0 0 12px rgba(170,110,255,.8), 0 2px 4px #000; }
#bossbar.p3 .bb-fill { background: linear-gradient(180deg, #ffc09a 0%, #ff4a2a 40%, #8a0a0a 75%, #3a0404 100%); box-shadow: 0 0 16px rgba(255,60,30,.85), inset 0 1px 0 rgba(255,220,200,.6); }
#bossbar.p3 .bb-head { text-shadow: 0 0 14px rgba(255,70,40,.85), 0 2px 4px #000; }
#bossbar.p4 .bb-fill { background: linear-gradient(180deg, #ffffff 0%, #ffe6a0 35%, #ff7a2a 70%, #a01a08 100%); box-shadow: 0 0 20px rgba(255,230,160,.95); animation: bb-throb .5s ease-in-out infinite alternate; }
#bossbar.p4 .bb-head { color: #fff; animation: bb-throb .5s ease-in-out infinite alternate; }
#bossbar.night .bb-frame { border-color: #8a5ad0; box-shadow: inset 0 0 10px #000, 0 0 18px rgba(140,80,255,.7); }
#bossbar.night .bb-phase { color: #d8b8ff; }
#bossbar.dormant .bb-fill { filter: grayscale(.55) brightness(.8); }
#bossbar.dormant .bb-phase { color: #a8987a; font-weight: normal; font-style: italic; }
#bossbar.dead .bb-fill { width: 0 !important; }
#bossbar.dead .bb-phase { color: #ffe9a0; }
@keyframes bb-throb { from { filter: brightness(1); } to { filter: brightness(1.35); } }

/* stored light (Light Returned): a thin white-gold gauge under the health bar */
#bossbar .bb-store { height: 4px; margin: 3px 16px 0; background: rgba(0,0,0,.6); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .4s; }
#bossbar .bb-store.on { opacity: 1; }
#bossbar .bb-store-fill { height: 100%; width: 0; background: linear-gradient(90deg, #fff4d6, #ffe08a, #ffffff); box-shadow: 0 0 8px #fff0b0; transition: width .2s; }
#bossbar .bb-store.full .bb-store-fill { animation: bb-throb .25s ease-in-out infinite alternate; }
