/* ss2event.css — the season-2 Blood Moon banner (js/bloodmoon.js) and the map event tracker bar (js/mapevent.js, the
   owner's pick: style 2, a slim bar at the top centre). The plates are painted (assets/ss2event/bm_plate.png, ev_bar.png);
   the game writes the Thai text on them. Sizes in the HUD's own unit (--u). */
#hud .bm-banner {
  position: absolute; left: 50%; top: calc(8 * var(--u)); transform: translateX(-50%);
  width: calc(300 * var(--u)); height: calc(62 * var(--u));
  background: url('../assets/ss2event/bm_plate.png') center / 100% 100% no-repeat;
  display: flex; align-items: center; gap: calc(10 * var(--u)); padding: 0 calc(34 * var(--u)) 0 calc(30 * var(--u)); box-sizing: border-box;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.5));
}
#hud .bm-banner[hidden] { display: none; }
#hud .bm-banner .bm-moonic { width: calc(40 * var(--u)); height: calc(40 * var(--u)); filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(255, 60, 60, 0.8)); }
#hud .bm-banner .bm-txt { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
#hud .bm-banner .bm-txt b { font-size: calc(19 * var(--u)); color: #e8f7ff; letter-spacing: 0.02em; text-shadow: 0 calc(2 * var(--u)) 0 #051321, 0 0 calc(8 * var(--u)) rgba(255, 70, 70, 0.6); }
#hud .bm-banner .bm-txt span { font-size: calc(17 * var(--u)); font-weight: 700; color: #e8f7ff; text-shadow: 0 calc(2 * var(--u)) 0 #051321; font-variant-numeric: tabular-nums; }
#hud .bm-banner.soon { opacity: 0.85; }

#hud .ev-bar {
  position: absolute; left: 50%; top: calc(14 * var(--u)); transform: translateX(-50%);
  width: calc(460 * var(--u)); height: calc(56 * var(--u));
  background: url('../assets/ss2event/ev_bar.png') center / 100% 100% no-repeat;
  padding: calc(7 * var(--u)) calc(34 * var(--u)) calc(9 * var(--u)); box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.5));
}
#hud .ev-bar[hidden] { display: none; }
#hud .ev-bar.bm { top: calc(78 * var(--u)); } /* (under the Blood Moon's banner) */
#hud .ev-bar .ev-top { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(22 * var(--u)); }
#hud .ev-bar .ev-top img { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-top: calc(-4 * var(--u)); filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 80, 230, 0.7)); }
#hud .ev-bar .ev-top b { font-size: calc(16 * var(--u)); color: #e8f7ff; text-shadow: 0 calc(2 * var(--u)) 0 #051321; }
#hud .ev-bar .ev-top span { font-size: calc(15 * var(--u)); color: #e8f7ff; font-weight: 700; text-shadow: 0 calc(2 * var(--u)) 0 #051321; font-variant-numeric: tabular-nums; }
#hud .ev-bar .ev-top span:first-of-type { margin-left: auto; }
#hud .ev-bar .ev-top span:last-of-type { min-width: calc(42 * var(--u)); text-align: right; color: #e8f7ff; }
#hud .ev-bar .ev-segs { display: flex; gap: calc(3 * var(--u)); height: calc(12 * var(--u)); padding: 0 calc(6 * var(--u)); }
#hud .ev-bar .ev-segs i { flex: 1; border-radius: calc(3 * var(--u)); background: rgba(70, 60, 110, 0.55); box-shadow: inset 0 0 0 calc(1 * var(--u)) rgba(150, 140, 200, 0.25); }
#hud .ev-bar .ev-segs i.on { background: linear-gradient(#17364b, #16445c); box-shadow: 0 0 calc(6 * var(--u)) rgba(255, 60, 220, 0.7); }

/* the dial's red moon (laid over the silver one; js/bloodmoon.js places it on the moon's arc) */
#hud .dial .bm-dialmoon { position: absolute; width: 24%; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 calc(5 * var(--u)) rgba(255, 50, 50, 0.85)); }
#hud .dial .bm-dialmoon[hidden] { display: none; }
