dok/public/css/hud.css
2026-03-16 15:03:24 +00:00

257 lines
4.1 KiB
CSS

/* =========================
HUD Container
========================= */
#hud {
position: fixed;
top: 10px;
left: 10px;
z-index: 1500;
display: flex;
flex-direction: column;
gap: 0;
width: 310px;
pointer-events: none;
}
/* =========================
Charakter Panel (oben)
========================= */
#hud-character {
display: flex;
align-items: center;
gap: 0;
background: linear-gradient(
135deg,
rgba(10, 6, 2, 0.92) 0%,
rgba(30, 18, 6, 0.92) 100%
);
border: 2px solid #8b6a2a;
border-radius: 8px 8px 0 0;
border-bottom: 1px solid #5a3e15;
padding: 6px 14px 6px 6px;
pointer-events: all;
width: 100%;
box-sizing: border-box;
box-shadow:
0 2px 12px rgba(0, 0, 0, 0.7),
inset 0 1px 0 rgba(255, 220, 80, 0.08);
}
/* Avatar */
#hud-avatar-wrap {
position: relative;
width: 62px;
height: 62px;
flex-shrink: 0;
}
#hud-avatar {
width: 62px;
height: 62px;
border-radius: 50%;
object-fit: cover;
display: block;
border: 2px solid #c8960a;
box-shadow: 0 0 10px rgba(200, 150, 10, 0.5);
}
#hud-vip {
position: absolute;
bottom: -4px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(#b8720a, #7a4a05);
border: 1px solid #f0b030;
border-radius: 4px;
font-family: "Cinzel", serif;
font-size: 8px;
font-weight: bold;
color: #ffe080;
white-space: nowrap;
padding: 1px 5px;
letter-spacing: 0.5px;
}
/* Name + Klasse */
#hud-info {
display: flex;
flex-direction: column;
margin-left: 10px;
flex: 1;
gap: 4px;
}
#hud-name {
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: bold;
color: #f0d9a6;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
letter-spacing: 0.5px;
}
/* Energie */
#hud-energy {
display: flex;
align-items: center;
gap: 6px;
}
#hud-energy-label {
font-family: "Cinzel", serif;
font-size: 10px;
color: #a08060;
}
#hud-energy-bar-wrap {
display: flex;
align-items: center;
gap: 5px;
}
#hud-energy-value {
font-family: "Cinzel", serif;
font-size: 11px;
font-weight: bold;
color: #f0d9a6;
background: rgba(0, 0, 0, 0.4);
border: 1px solid #5a3e15;
border-radius: 4px;
padding: 1px 7px;
}
#hud-energy-plus {
width: 18px;
height: 18px;
background: linear-gradient(#4a8a20, #2a5a10);
border: 1px solid #6acc30;
border-radius: 4px;
color: #fff;
font-size: 13px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
pointer-events: all;
transition: 0.15s;
line-height: 1;
}
#hud-energy-plus:hover {
background: linear-gradient(#5aaa28, #3a7015);
box-shadow: 0 0 6px rgba(100, 200, 40, 0.4);
}
/* =========================
Währungs Panel (unten)
========================= */
#hud-currency {
display: flex;
flex-direction: column;
gap: 4px;
background: linear-gradient(
135deg,
rgba(8, 5, 1, 0.92) 0%,
rgba(22, 13, 4, 0.92) 100%
);
border: 2px solid #8b6a2a;
border-top: none;
border-radius: 0 0 8px 8px;
padding: 5px 10px;
pointer-events: all;
width: 100%;
box-sizing: border-box;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}
.hud-res-row {
display: flex;
align-items: center;
gap: 8px;
}
/* Einzelne Währung */
.hud-res {
display: flex;
align-items: center;
gap: 4px;
}
.hud-res-icon {
font-size: 15px;
line-height: 1;
}
.hud-res-value {
font-family: "Cinzel", serif;
font-size: 11px;
font-weight: bold;
color: #f0d9a6;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
min-width: 40px;
}
/* Trennlinie */
.hud-sep {
width: 1px;
height: 18px;
background: rgba(139, 106, 42, 0.4);
margin: 0 2px;
}
/* Gold Button */
#hud-gold-btn {
margin-left: 4px;
padding: 3px 12px;
background: linear-gradient(#d4830a, #f0a020);
border: 1px solid #f8c040;
border-radius: 5px;
font-family: "Cinzel", serif;
font-size: 11px;
font-weight: bold;
color: #3a1a00;
cursor: pointer;
pointer-events: all;
transition: 0.15s;
white-space: nowrap;
}
#hud-gold-btn:hover {
background: linear-gradient(#e4930a, #ffc030);
box-shadow: 0 0 8px rgba(240, 160, 30, 0.5);
transform: scale(1.04);
}