ui/bossbarhud.razor.scss
// BOSS BAR
//
// Top centre, over everything the corners hold: the boss's name, his health and the phase marks. Gold for the name, as the
// points and the powerup banner are; the fill the lava's orange-red.
root
{
position: absolute;
width: 100%;
height: 100%;
pointer-events: none; // never eat clicks
}
.boss
{
position: absolute;
top: 4%;
// ⛔ SPANNED AND CENTRED AS A FLEX CONTAINER, NOT BY THE PARENT — an absolutely positioned panel ignores its parent's
// `justify-content` (the powerup banner's note), so the width is explicit and the children are centred inside it.
left: 30%;
width: 40%;
flex-direction: column;
align-items: center;
}
.name
{
font-family: Inter;
font-size: 26px;
font-weight: 800;
letter-spacing: 6px;
color: rgba( 235, 200, 100, 1 );
text-shadow: 2px 2px 0px rgba( 0, 0, 0, 0.9 );
margin-bottom: 6px;
}
.bar
{
position: relative;
width: 100%;
height: 16px;
background-color: rgba( 20, 8, 6, 0.8 );
border: 2px solid rgba( 235, 200, 100, 0.8 );
}
.fill
{
position: absolute;
left: 0px;
top: 0px;
height: 100%;
background-color: rgba( 230, 70, 25, 1 );
}
.mark
{
position: absolute;
top: 0px;
width: 2px;
height: 100%;
background-color: rgba( 255, 240, 200, 0.9 );
}
.phase
{
font-family: Inter;
font-size: 16px;
font-weight: 700;
letter-spacing: 3px;
color: rgba( 255, 240, 220, 0.9 );
text-shadow: 1px 1px 0px rgba( 0, 0, 0, 0.9 );
margin-top: 6px;
}
// ═══ BASALT (`HudTheme`) — the map's face, Cinzel on the boss's bar ═══
//
// *"i want the font for this map to affect … all hud messages that appear on screen"* (2026-09-27). The root wears the theme's class; the rules name it and each box
// here that sets Inter itself.
// ⛔ ON INTER'S LINE BOX, so no row grows taller: 0.898 of Cinzel's own line, which is Inter's 1.211 of the size. See
// `.round` in SurvivalHud.razor.scss for why it is not 1.211. It is wider on mixed-case text, which it sets in small capitals. Cinzel-Bold is the one face shipped,
// so every weight draws bold.
.theme-basalt,
.theme-basalt .name,
.theme-basalt .phase
{
font-family: Cinzel;
line-height: 0.898;
}