#view { position: fixed; inset: 0; }
#view canvas { display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lb { position: absolute; transform: translate(-50%, -100%); text-align: center; white-space: nowrap; font: 600 12px var(--font-ui); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.lb .n { color: #f4f0e4; }
.lb .n.hard { color: #ff8a70; } .lb .n.easy { color: #a8b0a0; } .lb .n.me { color: var(--gold); font-size: 14px; } .lb .n.npc { color: #ffe9a8; font-size: 13px; }
.lb .mk { font: 800 26px Georgia, serif; color: #ffd23a; text-shadow: 0 2px 0 #000, 0 0 8px rgba(255,200,60,.6); animation: mkBob 1.2s ease-in-out infinite; }
.lb .mk.ready { color: #8dff8a; }
.lb .ag { font: 800 20px Georgia, serif; color: #ff5a3c; text-shadow: 0 2px 0 #000; }
@keyframes mkBob { 50% { transform: translateY(-4px); } }
.lb .hb { width: 46px; height: 5px; margin: 2px auto 0; background: #3a1410; border: 1px solid #000; }
/* Zustände über Monstern (betäubt, verlangsamt, brennt …) mit Restzeit */
.lb .st { display: flex; justify-content: center; gap: 3px; margin-top: 2px; min-height: 0; }
.lb .st span { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 8px; background: rgba(10,8,4,.75); border: 1px solid rgba(255,255,255,.25); font: 700 11px var(--font-ui); line-height: 16px; }
.lb .st b { font-weight: 700; color: #fff; }
.lb .st .stun { color: #ffe36a; border-color: #ffe36a; } .lb .st .slow { color: #9ae0ff; } .lb .st .burn { color: #ff9a4a; } .lb .st .bleed { color: #ff6a6a; } .lb .st .mark { color: #ff7a5a; }
.lb .hb i { display: block; height: 100%; background: #e8553a; }
.lb .bag { color: #fff; font-size: 11.5px; }
.dmg { position: absolute; transform: translate(-50%, -50%); font: 900 22px var(--font-ui); color: #fff6e0; -webkit-text-stroke: 1px #1a0c06; text-shadow: 0 3px 0 #1a0c06, 0 0 8px rgba(0,0,0,.7); pointer-events: none; white-space: nowrap; animation: dmgPop .32s cubic-bezier(.2,1.6,.4,1); }
@keyframes dmgPop { 0% { scale: 2.3; } 55% { scale: .92; } 100% { scale: 1; } }
.dmg.crit { color: #ffd23a; font-size: 32px; animation: dmgCrit .4s cubic-bezier(.2,1.8,.4,1); } @keyframes dmgCrit { 0% { scale: 3; rotate: -12deg; } 60% { scale: .9; rotate: 4deg; } 100% { scale: 1; rotate: -4deg; } }
#hurtfx { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(190,20,10,.55) 100%); z-index: 5; }
#hurtfx.on { animation: hurtFx .45s ease-out; } @keyframes hurtFx { 0% { opacity: 1; } 100% { opacity: 0; } } .dmg.hurt { color: #ff7d6a; } .dmg.xp { color: #d6a8ff; font-size: 15px; } .dmg.gold { color: #ffd76a; font-size: 14px; } .dmg.heal { color: #8dff8a; }

#mapbox { position: relative; width: 200px; text-align: center; }
#minimap { width: 190px; height: 190px; display: block; margin: 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
#map-zone { font: italic 15px var(--font-display); color: var(--gold); text-shadow: 0 1px 2px #000; margin-bottom: 4px; }
#map-pos { font-size: 11px; color: var(--muted); text-shadow: 0 1px 2px #000; margin-top: 2px; }
#map-time { font-size: 12px; color: #f3ead2; text-shadow: 0 1px 2px #000; margin-top: 1px; letter-spacing: .02em; }
#side { width: 210px; }
#xpline { position: fixed; left: 0; right: 0; bottom: 0; height: 7px; background: rgba(10,8,20,.85); border-top: 1px solid #000; }
#xpline i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#c79bff, #7a4ad8); transition: width .2s; }
#xpline span { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); font-size: 11px; color: #d6c4ff; text-shadow: 0 1px 2px #000; }
#skillbar { bottom: 22px; gap: 5px; padding: 7px 9px; border-radius: 6px; background: linear-gradient(#2a2116, #120d08); border: 1px solid #000; box-shadow: inset 0 0 0 1px #6b5226, inset 0 1px 0 #a88a4a, 0 6px 18px rgba(0,0,0,.6); }
#skillbar .slot { width: 56px; height: 56px; padding: 0; border-radius: 4px; border: 2px solid #1a120a; background: #0b0805; box-shadow: inset 0 0 0 1px #8a6b32, 0 0 0 1px #3a2c16; overflow: hidden; }
#skillbar .slot:hover { box-shadow: inset 0 0 0 1px #ffd36a, 0 0 12px rgba(255,200,90,.55); }
#skillbar .slot.empty { opacity: 1; background: linear-gradient(#17120c, #0b0805); box-shadow: inset 0 0 0 1px #4a3a1e; }
#skillbar .slot .icon.art { inset: 0; border-radius: 0; }
#skillbar .slot .icon.art svg { width: 100%; height: 100%; display: block; }
#skillbar .slot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%); pointer-events: none; }
#skillbar .slot .key { left: 4px; top: 2px; z-index: 2; color: #ffe39a; font-size: 12px; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
#skillbar .slot .num { z-index: 2; right: 4px; bottom: 2px; color: #fff; font-size: 12px; }
#skillbar .slot .cd { border-radius: 0; z-index: 1; }
#skillbar .slot .cdt { z-index: 2; font-size: 20px; color: #fff; }
#chat { bottom: 22px; }
#menu-btns { bottom: 22px; }
#fps { position: fixed; right: 10px; bottom: 60px; font-size: 11px; color: var(--muted); }
#loading .panel input { margin-bottom: 0; }
.no-numbers .dmg:not(.xp):not(.gold):not(.heal) { display: none; }

/* ---- Lebensanzeige und Ziel im Goldstil (wie die Fähigkeiten-Leiste) ---- */
#me, #target, #quest { background: linear-gradient(rgba(42,33,22,.94), rgba(18,13,8,.94)); border: 1px solid #000; border-radius: 6px;
  box-shadow: inset 0 0 0 1px #6b5226, inset 0 1px 0 #a88a4a, 0 6px 18px rgba(0,0,0,.55); }
#me .me-head b, #target .me-head b { font-family: var(--font-display); color: #ffe39a; letter-spacing: .02em; }
#me .lvl, #target .lvl { background: radial-gradient(circle at 40% 30%, #6b5226, #1a120a); border: 1px solid #a88a4a; color: #ffe39a; font-weight: 700; }
#me .cls { color: #c8b48a; }
.bar { height: 18px; border-radius: 3px; background: #120806; border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 0 0 1px #4a3a1e; }
.bar i { z-index: 1; transition: width .12s; }
.bar .lag { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(#fff2c0, #e8b44a); transition: width .5s ease-in .35s; z-index: 0; }
.bar.hp i { background: linear-gradient(#9cf07a 0%, #4fbf38 45%, #2e8a22 55%, #3fa22e 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.bar.hp.foe i { background: linear-gradient(#ff9a7a 0%, #e0432a 45%, #a82612 55%, #c2341c 100%); }
.bar span { z-index: 2; line-height: 17px; font-size: 11.5px; }
#xpline { height: 8px; background: #0c0816; box-shadow: 0 -1px 0 #4a3a1e; }
#xpline i { background: linear-gradient(#e6c8ff, #9a62f0 50%, #6a36c8); box-shadow: 0 0 8px rgba(170,110,255,.6); }
#quest .q-title { color: #c8b48a; }

/* ---- Mauszeiger im Spielstil ---- */
#view canvas, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2 L3 24 L9 18.5 L13 28 L17 26.3 L13.2 17 L21 17 Z' fill='%23f2cf72' stroke='%232a1a08' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M5.5 6.5 L5.5 18.5 L9.5 15 L11 15 L17 15 Z' fill='%23fff3c4' opacity='.55'/%3E%3C/svg%3E") 3 2, default; }
#view canvas.cur-attack { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg stroke='%232a1a08' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M2 2 L6 2 L21 17 L17 21 L2 6 Z' fill='%23e8e6e0'/%3E%3Cpath d='M15 23 L23 15 L25 17 L17 25 Z' fill='%23d6a23a'/%3E%3Cpath d='M21 21 L26 26' stroke='%235a3a1a' stroke-width='3.2'/%3E%3Ccircle cx='27.5' cy='27.5' r='2.4' fill='%23d6a23a'/%3E%3C/g%3E%3Cpath d='M4 3.5 L19 18.5' stroke='%23fff' stroke-width='1' opacity='.8'/%3E%3C/svg%3E") 2 2, crosshair; }
#view canvas.cur-talk { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 4 Q3 2 5 2 L27 2 Q29 2 29 4 L29 18 Q29 20 27 20 L13 20 L6 27 L7.5 20 L5 20 Q3 20 3 18 Z' fill='%23fff6dc' stroke='%232a1a08' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='11' r='2' fill='%236b4a1a'/%3E%3Ccircle cx='16' cy='11' r='2' fill='%236b4a1a'/%3E%3Ccircle cx='22' cy='11' r='2' fill='%236b4a1a'/%3E%3C/svg%3E") 4 26, pointer; }
#view canvas.cur-loot { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 7 L20 7 L18 11 Q27 14 27 22 Q27 29 16 29 Q5 29 5 22 Q5 14 14 11 Z' fill='%23b8854a' stroke='%232a1a08' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12.5 11 L19.5 11' stroke='%23f2cf72' stroke-width='2.4'/%3E%3Ccircle cx='16' cy='21' r='3.5' fill='%23f2cf72' stroke='%232a1a08' stroke-width='1.2'/%3E%3Cpath d='M3 3 L9 3 M3 3 L3 9' stroke='%23f2cf72' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer; }
#view canvas.cur-grab { cursor: grabbing; }

/* ---- Stärke der Monster: Namensfarbe ---- */
.d-gray { color: #a4a49c !important; } .d-green { color: #6fe06a !important; } .d-yellow { color: #ffe066 !important; }
.d-orange { color: #ff9a40 !important; } .d-red { color: #ff4a3a !important; }
.lb .n.hov { font-size: 13.5px; filter: brightness(1.25); }
.lb .hb { width: 54px; height: 6px; border-radius: 2px; background: #2a0c08; border: 1px solid #000; box-shadow: 0 0 0 1px #6b5226; }
.lb .hb i { background: linear-gradient(#ff8a6a, #c2341c); }

/* ---- Fenster (Gespräch, Inventar) im Goldstil ---- */
#dlg-body .qbox { border-color: #6b5226; background: rgba(0,0,0,.3); box-shadow: inset 0 1px 0 rgba(255,215,140,.08); }
#dlg-name { font-family: var(--font-display); color: #ffe39a; }

/* eigener Lebensbalken über dem Kopf: groß, grün, unter 30 % rot blinkend */
.lb .hb.me { width: 84px; height: 8px; margin-top: 3px; box-shadow: 0 0 0 1px #6b5226, 0 0 6px rgba(0,0,0,.6); }
.lb .hb.me i { background: linear-gradient(#9cf07a, #3fa22e); transition: width .15s; }
.lb .hb.me.low i { background: linear-gradient(#ff8a6a, #c2341c); animation: lowHp .6s ease-in-out infinite alternate; }
@keyframes lowHp { to { filter: brightness(1.6); } }

/* ---- Inventar: 8 Ausrüstungsplätze in zwei Spalten, gemalte Symbole ---- */
#inv { width: 560px; }
.eq-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.eq { height: 44px; padding: 0 6px; gap: 6px; font-size: 11px; border-color: #4a3a1e; background: rgba(0,0,0,.35); overflow: hidden; }
.eq b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
.eq .ic, .bag .cell .ic { width: 34px; height: 34px; flex: none; display: block; }
.eq .ic svg, .bag .cell .ic svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px #000); }
.inv-left { width: 270px; }
.lb .n.elite { color: #ffd23a !important; text-shadow: 0 0 6px rgba(255,190,40,.8), 0 1px 2px #000; font-weight: 800; }
#tg-name.elite { color: #ffd23a !important; text-shadow: 0 0 6px rgba(255,190,40,.7); }
#q-prog .q-where { font-size: 11.5px; opacity: .8; margin-top: 2px; font-style: italic; }
.dmg.miss { color: #c8d4e0; font-size: 15px; font-style: italic; }
