/* Liverush Online – HUD v2 (cienki, w stylu Albionu). Grafiki: /online/img/ui/hud2/ (manifest.json).
   Każdy blok ma własne klasy (p2, t2, hb2, s2, menu2, q2, m2, c2), żeby nie dziedziczyć starego HUD-u. Skala: zoom: var(--ui). */
:root { --h2-gold: #d6a85a; --h2-text: #fff3d1; --h2-soft: #d9cfbb; --h2-bg: rgba(18, 15, 34, .72); --h2-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .7); }

/* stary HUD – ukryty */
#hud .compass2 { display: none !important; }

/* ===== Ramka gracza (lewy górny róg) ===== */
#hud .p2 { position: absolute; left: 16px; top: 14px; width: 360px; height: 96px; zoom: var(--ui); pointer-events: auto; }
#hud .p2::before { content: ""; position: absolute; left: 44px; right: 0; top: 16px; height: 64px; border-style: solid; border-width: 0 20px; border-image: url(/online/img/ui/hud2/player/player_panel_3slice.svg) 0 20 fill / 0 20px stretch; box-sizing: border-box; }
#hud .p2-por { position: absolute; left: 0; top: 6px; width: 84px; height: 84px; z-index: 2; }
#hud .p2-face { position: absolute; left: 10px; top: 10px; width: 64px; height: 64px; border-radius: 50%; }
#hud .p2-ring { position: absolute; left: 0; top: 0; width: 84px; height: 84px; pointer-events: none; }
#hud #uf.combat .p2-ring { content: url(/online/img/ui/hud2/player/portrait_ring_combat.svg); }
#hud #uf.dead .p2-ring { content: url(/online/img/ui/hud2/player/portrait_ring_dead.svg); }
#hud #uf.dead .p2-face { filter: grayscale(1) brightness(.6); }
#hud .p2-lvl { position: absolute; right: -8px; bottom: -6px; width: 40px; height: 40px; display: grid; place-items: center; background: url(/online/img/ui/hud2/player/level_badge.svg) center / 100% 100% no-repeat; font: 800 13px/1 Inter, sans-serif; color: var(--h2-text); text-shadow: var(--h2-shadow); }
#hud .p2-lvl::after, #hud .p2-lvl::before { content: none !important; }
#hud .p2-main { position: absolute; left: 96px; top: 22px; width: 248px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
#hud .p2-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; height: 17px; }
#hud .p2-name b { font: 700 15px/1 Cinzel, serif; color: var(--h2-text); text-shadow: var(--h2-shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud .p2-name small { font: 600 11px/1 Inter, sans-serif; color: #d9c49a; white-space: nowrap; }
#hud .p2-bar { position: relative; height: 16px; }
#hud .p2-bar::before { content: ""; position: absolute; inset: 0; border-style: solid; border-width: 0 7px; border-image: url(/online/img/ui/hud2/player/bar_hp_frame_3slice.svg) 0 7 fill / 0 7px stretch; box-sizing: border-box; }
#hud .p2-bar > i, #hud .p2-bar > b.lag { position: absolute; left: 2px; top: 2px; bottom: 2px; max-width: calc(100% - 4px); border-style: solid; border-width: 0 4px; box-sizing: border-box; display: block; transition: width .12s linear; }
#hud .p2-bar > i { z-index: 2; border-image: url(/online/img/ui/hud2/player/bar_hp_fill_3slice.svg) 0 4 fill / 0 4px stretch; }
#hud .p2-bar > b.lag { z-index: 1; border-image: url(/online/img/ui/hud2/player/bar_hp_damage_trail_3slice.svg) 0 4 fill / 0 4px stretch; transition: none; }
#hud .p2-bar > span { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font: 700 10.5px/1 Inter, sans-serif; color: #fff; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
#hud .p2-bar.mp { height: 11px; }
#hud .p2-bar.mp::before { border-width: 0 6px; border-image: url(/online/img/ui/hud2/player/bar_mana_frame_3slice.svg) 0 6 fill / 0 6px stretch; }
#hud .p2-bar.mp > i { border-width: 0 3px; border-image: url(/online/img/ui/hud2/player/bar_mana_fill_3slice.svg) 0 3 fill / 0 3px stretch; }
#hud .p2-bar.mp > span { font-size: 9px; }
#hud #uf.low .p2-bar.hp::after { content: ""; position: absolute; left: -6px; right: -6px; top: -6px; bottom: -6px; border-style: solid; border-width: 0 14px; border-image: url(/online/img/ui/hud2/player/bar_hp_low_pulse_3slice.svg) 0 14 fill / 0 14px stretch; animation: h2pulse .9s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes h2pulse { 50% { opacity: .35; } }
#hud .p2-st { display: none; }
#hud .p2-buffs { position: absolute; left: 96px; top: 84px; margin: 0; display: flex; gap: 4px; }
#hud .p2-buffs .buff { width: 26px !important; height: 26px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: url(/online/img/ui/hud2/player/effect_frame_buff.svg) center / 100% 100% no-repeat !important; display: grid; place-items: center; }
#hud .p2-buffs .buff.bad { background-image: url(/online/img/ui/hud2/player/effect_frame_debuff.svg) !important; }
#hud .p2-buffs .buff img { width: 20px; height: 20px; }

/* ===== Ramka celu (góra, środek) ===== */
#hud .t2 { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 340px; height: 64px; zoom: var(--ui); display: none; pointer-events: auto; }
#hud .t2.on { display: block; }
#hud .t2::before { content: ""; position: absolute; inset: 0; border-style: solid; border-width: 0 20px; border-image: url(/online/img/ui/hud2/target/target_panel_monster_3slice.svg) 0 20 fill / 0 20px stretch; box-sizing: border-box; }
#hud .t2.npc::before { border-image-source: url(/online/img/ui/hud2/target/target_panel_npc_3slice.svg); }
#hud .t2.boss { width: 520px; }
#hud .t2.boss::before { border-width: 0 22px; border-image: url(/online/img/ui/hud2/target/target_panel_boss_3slice.svg) 0 22 fill / 0 22px stretch; }
#hud .t2-skull { display: none; position: absolute; left: 50%; top: -20px; width: 48px; height: 36px; transform: translateX(-50%); z-index: 2; }
#hud .t2.boss .t2-skull { display: block; }
#hud .t2-head { position: absolute; left: 16px; right: 16px; top: 11px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#hud .t2-head b { font: 700 15px/1 Cinzel, serif; color: #ffd9d9; text-shadow: var(--h2-shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud .t2.npc .t2-head b { color: #ffe9a8; }
#hud .t2-head small { font: 700 12px/1 Inter, sans-serif; color: #e8b85a; white-space: nowrap; }
#hud .t2-bar { position: absolute; left: 14px; right: 14px; top: 38px; height: 12px; }
#hud .t2.npc .t2-bar { display: none; }
#hud .t2-bar::before { content: ""; position: absolute; inset: 0; border-style: solid; border-width: 0 6px; border-image: url(/online/img/ui/hud2/target/bar_target_hp_frame_3slice.svg) 0 6 fill / 0 6px stretch; box-sizing: border-box; }
#hud .t2-bar > i, #hud .t2-bar > b.lag { position: absolute; left: 2px; top: 2px; bottom: 2px; max-width: calc(100% - 4px); display: block; border-style: solid; border-width: 0 3px; box-sizing: border-box; }
#hud .t2-bar > i { z-index: 2; border-image: url(/online/img/ui/hud2/target/bar_target_hp_fill_3slice.svg) 0 3 fill / 0 3px stretch; transition: width .12s linear; }
#hud .t2-bar > b.lag { z-index: 1; border-image: url(/online/img/ui/hud2/player/bar_hp_damage_trail_3slice.svg) 0 4 fill / 0 3px stretch; }
#hud .t2-bar > span { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font: 700 9.5px/1 Inter, sans-serif; color: #fff; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
#hud .bossbar { top: 96px; }

/* ===== Menu i złoto (prawy górny róg) ===== */
#hud .menu2 { position: absolute; right: 16px; top: 14px; display: flex; align-items: center; gap: 6px; zoom: var(--ui); pointer-events: auto; }
#hud .menu2 button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: url(/online/img/ui/hud2/menu/menu_button_normal.svg) center / 100% 100% no-repeat; display: grid; place-items: center; cursor: pointer; }
#hud .menu2 button:hover, #hud .menu2 button.on { background-image: url(/online/img/ui/hud2/menu/menu_button_hover.svg); }
#hud .menu2 button img { width: 24px; height: 24px; pointer-events: none; }
#hud .gold2 { display: flex; align-items: center; gap: 6px; margin-left: 8px; padding: 0 4px; font: 800 15px/1 Inter, sans-serif; color: var(--h2-text); text-shadow: var(--h2-shadow); }
#hud .gold2 img { width: 18px; height: 18px; }

/* ===== Lista zadań (prawa strona) ===== */
#hud .q2 { position: absolute; right: 16px; top: 70px; width: 280px; box-sizing: border-box; zoom: var(--ui); padding: 0 2px; border-style: solid; border-width: 12px; border-image: url(/online/img/ui/hud2/quests/quest_list_panel_9slice.svg) 12 fill / 12px stretch; pointer-events: auto; }
#hud .q2 h4 { margin: 0; display: flex; align-items: center; justify-content: space-between; font: 700 13px/1 Cinzel, serif; letter-spacing: .08em; color: #e8b85a; cursor: pointer; user-select: none; }
#hud .q2 h4 img { width: 14px; height: 14px; }
#hud .q2.min .q2-q { display: none; }
#hud .q2-q { position: relative; margin-top: 9px; padding-left: 20px; }
#hud .q2-s { position: absolute; left: 0; top: 1px; width: 14px; height: 14px; }
#hud .q2-q > b { display: block; font: 700 13.5px/1.25 Inter, sans-serif; color: var(--h2-text); text-shadow: var(--h2-shadow); }
#hud .q2-q.done > b { color: #e8b85a; }
#hud .q2-o { font: 12px/1.35 Inter, sans-serif; color: var(--h2-soft); text-shadow: var(--h2-shadow); margin-top: 2px; }
#hud .q2-o.ok { color: #9fe0a0; }
#hud .q2-p { position: relative; display: block; width: 120px; height: 4px; margin-top: 3px; border-style: solid; border-width: 0 3px; box-sizing: border-box; border-image: url(/online/img/ui/hud2/quests/quest_progress_frame_3slice.svg) 0 3 fill / 0 3px stretch; }
#hud .q2-p i { position: absolute; left: -2px; top: 0; bottom: 0; max-width: calc(100% + 4px); display: block; border-style: solid; border-width: 0 2px; box-sizing: border-box; border-image: url(/online/img/ui/hud2/quests/quest_progress_fill_3slice.svg) 0 2 fill / 0 2px stretch; }

/* ===== Minimapa (prawy dolny róg) ===== */
#hud .m2 { position: absolute; right: 16px; bottom: 14px; width: 210px; zoom: var(--ui); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: auto; }
#hud .m2-ring { position: relative; width: 210px; height: 210px; }
#hud .m2 #mini { position: absolute; left: 3px; top: 3px; width: 204px; height: 204px; border-radius: 50%; }
#hud .m2-vig { position: absolute; left: 3px; top: 3px; width: 204px; height: 204px; pointer-events: none; }
#hud .m2-frame { position: absolute; left: 0; top: 0; width: 210px; height: 210px; pointer-events: none; }
#hud .m2-n { position: absolute; left: 93px; top: -10px; width: 24px; height: 24px; pointer-events: none; }
#hud .m2-b { position: absolute; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--h2-gold); background: rgba(18, 15, 34, .9); color: var(--h2-text); font: 700 14px/1 Inter, sans-serif; display: grid; place-items: center; cursor: pointer; }
#hud .m2-b.zin { right: 4px; bottom: 36px; }
#hud .m2-b.zout { right: 22px; bottom: 12px; }
#hud .m2-zone { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 190px; height: 28px; box-sizing: border-box; padding: 0 4px; border-style: solid; border-width: 0 18px; border-image: url(/online/img/ui/hud2/minimap/zone_plate_3slice.svg) 0 18 fill / 0 18px stretch; font: 700 12.5px/1 Inter, sans-serif; color: var(--h2-text); white-space: nowrap; }
#hud .m2-zone #clock { display: flex; align-items: center; gap: 4px; color: #e8b85a; }
#hud .m2-zone #clock::before { content: ""; width: 14px; height: 14px; background: url(/online/img/ui/hud2/minimap/time_day.svg) center / 100% 100% no-repeat; }
#hud .m2-zone #clock[data-n="1"]::before { background-image: url(/online/img/ui/hud2/minimap/time_night.svg); }

/* ===== Pasek umiejętności, przedmioty, XP (dół, środek) ===== */
#hud .hb2 { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); zoom: var(--ui); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
#hud .hb2-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px 2px; border-radius: 18px; background: rgba(18, 15, 34, .55); border: 1px solid rgba(214, 168, 90, .38); pointer-events: auto; }
#hud .s2 { position: relative; flex: none; width: 64px; height: 64px; margin-bottom: 18px; cursor: pointer; }
#hud .s2 .ic { position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; pointer-events: none; }
#hud .s2 .ring { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 4; pointer-events: none; }
#hud .s2 .cd { display: none; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; font: 900 17px/1 Inter, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 1px 2px #000; pointer-events: none; }
#hud .s2 .cd[style*="block"] { display: flex !important; }
#hud .s2 .cd::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: url(/online/img/ui/hud2/skills/skill_overlay_cooldown.svg) center / 100% 100% no-repeat; -webkit-mask: conic-gradient(transparent calc((1 - var(--p, 0)) * 360deg), #000 0); mask: conic-gradient(transparent calc((1 - var(--p, 0)) * 360deg), #000 0); }
#hud .s2.nomana::after, #hud .s2.far::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%; pointer-events: none; background: url(/online/img/ui/hud2/skills/skill_overlay_no_mana.svg) center / 100% 100% no-repeat; }
#hud .s2.far:not(.nomana)::after { background-image: url(/online/img/ui/hud2/skills/skill_overlay_out_of_range.svg); }
#hud .s2 .key { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); width: 22px; height: 14px; background: url(/online/img/ui/hud2/skills/skill_key_plate.svg) center / 100% 100% no-repeat; font: 800 10px/14px Inter, sans-serif; color: #e8b85a; text-align: center; }
#hud .s2.locked .ic { filter: grayscale(1) brightness(.45); }
#hud .s2 .lk { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font: 800 11px/1 Inter, sans-serif; color: #ffd9a0; text-shadow: 0 1px 2px #000; }
#hud .s2.rdy::before { content: ""; position: absolute; left: -12px; top: -12px; width: 88px; height: 88px; z-index: 6; pointer-events: none; background: url(/online/img/ui/hud2/skills/skill_ready_flash.svg) center / 100% 100% no-repeat; animation: h2flash .32s ease-out forwards; }
@keyframes h2flash { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
#hud .s2.ping .ic { animation: h2ping .22s ease-out; }
@keyframes h2ping { 50% { transform: scale(.92); } }
#hud .s2:hover .ic { filter: brightness(1.12); }
#hud .s2.it { width: 48px; height: 48px; margin-top: 8px; margin-bottom: 26px; border-radius: 10px; background: url(/online/img/ui/hud2/items/item_slot.svg) center / 100% 100% no-repeat; }
#hud .s2.it.sep { margin-left: 16px; }
#hud .s2.it .ic { width: 48px; height: 48px; border-radius: 0; }
#hud .s2.it.empty .ic { filter: grayscale(1) brightness(.5); }
#hud .s2.it .cd::before { border-radius: 10px; -webkit-mask: conic-gradient(transparent calc((1 - var(--p, 0)) * 360deg), #000 0); }
#hud .s2.it .key { left: -4px; top: -5px; transform: none; width: 16px; height: 14px; background-image: url(/online/img/ui/hud2/items/item_key_plate.svg); }
#hud .s2.it .n { position: absolute; right: -5px; bottom: -5px; z-index: 5; min-width: 22px; height: 14px; padding: 0 5px; box-sizing: border-box; border-style: solid; border-width: 0 7px; border-image: url(/online/img/ui/hud2/items/item_count_plate_3slice.svg) 0 7 fill / 0 7px stretch; font: 800 10px/14px Inter, sans-serif; color: #fff; text-align: center; }
#hud .xp2b { display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto; }
#hud .xp2-track { position: relative; width: 560px; height: 6px; box-sizing: border-box; border-style: solid; border-width: 0 4px; border-image: url(/online/img/ui/hud2/xp/xp_track_3slice.svg) 0 4 fill / 0 4px stretch; }
#hud .xp2-track #bXp { position: absolute; left: -4px; top: 0; bottom: 0; max-width: calc(100% + 8px); display: block; box-sizing: border-box; border-style: solid; border-width: 0 3px; border-image: url(/online/img/ui/hud2/xp/xp_fill_3slice.svg) 0 3 fill / 0 3px stretch; background: none; height: auto; transition: width .3s; }
#hud .xp2b #tXp { position: static; font: 600 11.5px/1 Inter, sans-serif; color: #e8d6ae; text-shadow: var(--h2-shadow); white-space: nowrap; }
#hud .xp2b.lvfx .xp2-track::after { content: ""; position: absolute; left: -16px; right: -16px; top: -8px; bottom: -8px; border-style: solid; border-width: 0 16px; border-image: url(/online/img/ui/hud2/xp/xp_levelup_flash_3slice.svg) 0 16 fill / 0 16px stretch; animation: h2xp 1.4s ease-out forwards; pointer-events: none; }
@keyframes h2xp { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* ===== Czat (lewy dolny róg) ===== */
#hud .c2 { position: absolute; left: 16px; bottom: 14px; width: 420px; zoom: var(--ui); display: flex; flex-direction: column; gap: 3px; pointer-events: auto; }
#hud .c2.min { display: none; }
#hud .c2-tabs { display: flex; align-items: flex-end; gap: 3px; }
#hud .c2-tabs button { height: 24px; padding: 0; border-radius: 0; box-shadow: none; border-style: solid; border-width: 0 10px; border-image: url(/online/img/ui/hud2/chat/chat_tab_normal_3slice.svg) 0 10 fill / 0 10px stretch; background: none; font: 600 12px/24px Inter, sans-serif; color: #cbbf9f; cursor: pointer; }
#hud .c2-tabs button:hover { border-image-source: url(/online/img/ui/hud2/chat/chat_tab_hover_3slice.svg); }
#hud .c2-tabs button.on { border-image-source: url(/online/img/ui/hud2/chat/chat_tab_active_3slice.svg); color: var(--h2-text); }
#hud .c2-tabs .c2-min { margin-left: auto; width: 24px; border: 0; border-radius: 6px; background: rgba(18, 15, 34, .6); color: var(--h2-text); font-size: 14px; }
#hud .c2-body { position: relative; padding: 0 2px; border-style: solid; border-width: 12px; border-image: url(/online/img/ui/hud2/chat/chat_panel_9slice.svg) 12 fill / 12px stretch; }
#hud .c2 .chatlog { height: 150px; max-height: 150px; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; overflow-x: hidden; -webkit-mask: linear-gradient(transparent, #000 16%); mask: linear-gradient(transparent, #000 16%); }
#hud .c2 .chatlog > :first-child { margin-top: auto; }
#hud .c2 .chatlog::-webkit-scrollbar { width: 6px; }
#hud .c2 .chatlog::-webkit-scrollbar-thumb { background: rgba(214, 168, 90, .45); border-radius: 3px; }
#hud .c2 .cl { font-size: 13.5px; line-height: 1.38; }
#hud .c2-hint { margin-top: 4px; font: 11.5px/1 Inter, sans-serif; color: #a99f88; }
#hud .c2:focus-within .c2-hint { display: none; }
#hud .c2-in { display: flex; align-items: center; gap: 6px; height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: opacity .12s; }
#hud .c2:focus-within .c2-in { height: 30px; margin-top: 6px; opacity: 1; }
#hud #chatIn { flex: 1; min-width: 0; height: 30px; box-sizing: border-box; padding: 0; margin: 0; opacity: 1; border-radius: 0; border-style: solid; border-width: 0 12px; border-image: url(/online/img/ui/hud2/chat/chat_input_idle_3slice.svg) 0 12 fill / 0 12px stretch; background: none; color: var(--h2-text); font: 14px Inter, sans-serif; outline: none; }
#hud #chatIn:focus { border-image-source: url(/online/img/ui/hud2/chat/chat_input_active_3slice.svg); }
#hud .c2-emo { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
#hud .c2-emo img { width: 22px; height: 22px; }
#hud .c2-send { height: 30px; padding: 0 12px; border: 0; border-radius: 0; border-style: solid; border-width: 0 12px; border-image: url(/online/img/ui/hud2/windows/button_normal_3slice.svg) 0 12 fill / 0 12px stretch; background: none; font: 700 12.5px/30px Inter, sans-serif; color: #2a1606; cursor: pointer; }
#hud .c2-send:hover { border-image-source: url(/online/img/ui/hud2/windows/button_hover_3slice.svg); }
#hud .c2 .emopick { bottom: 52px; }
#hud .c2-pill { display: none; position: absolute; left: 16px; bottom: 14px; width: 44px; height: 32px; padding: 0; border: 0; background: none; zoom: var(--ui); cursor: pointer; pointer-events: auto; }
#hud .c2-pill.on { display: block; }
#hud .c2-pill img { width: 44px; height: 32px; }
#hud .c2-pill #chatNew { position: absolute; right: -6px; top: -6px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #d9434f; font: 800 10px/16px Inter, sans-serif; font-style: normal; color: #fff; text-align: center; }
#hud .c2-pill #chatNew:empty { display: none; }

/* ===== Napisy nad postaciami ===== */
#tags .tag3 b { font: 700 15px Cinzel, serif; font-size: calc(15px * var(--ui)); letter-spacing: 0; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .85); }
#tags .tag3.me b { color: #8fe38a; }
#tags .tag3.npc b { color: #ffe08a; }
#tags .tag3 small { color: #e8d6ae; }
#tags .mtag b { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 4px; font: 700 14px Cinzel, serif; font-size: calc(14px * var(--ui)); color: #ff9a8a; opacity: 1; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .85); }
#tags .mtag b em { min-width: calc(16px * var(--ui)); height: calc(12px * var(--ui)); margin: 0; padding: 0 2px; box-sizing: border-box; border-radius: 0; background: url(/online/img/ui/hud2/nameplate/nameplate_level_chip.svg) center / 100% 100% no-repeat; box-shadow: none; font: 800 9px Inter, sans-serif; font-size: calc(9px * var(--ui)); line-height: calc(12px * var(--ui)); color: #fff; }
#tags .mtag.lvlhi b em { filter: drop-shadow(0 0 4px rgba(255, 60, 60, .9)); }
#tags .mtag.dummy b { color: #ffe6a8; }
#tags .mtag.boss b { font-size: calc(16px * var(--ui)); color: #ff8a8a; }
#tags .mtag .mhp { width: calc(64px * var(--ui)); height: calc(5px * var(--ui)); margin: 3px auto 0; border: 0; border-radius: 0; background: url(/online/img/ui/hud2/nameplate/nameplate_bar_frame.svg) center / 100% 100% no-repeat; padding: calc(1px * var(--ui)); box-sizing: border-box; }
#tags .mtag .mhp i { height: 100%; background: url(/online/img/ui/hud2/nameplate/nameplate_fill_monster.svg) left center / calc(62px * var(--ui)) 100% no-repeat; }
#tags .mtag.sel .mhp { border: 0; filter: drop-shadow(0 0 3px rgba(255, 207, 107, .9)); }

/* ===== Kursory ===== */
body.inworld #world { cursor: url(/online/img/ui/hud2/cursors/cursor_default.svg) 3 2, default; }
body.inworld #world.c-atk { cursor: url(/online/img/ui/hud2/cursors/cursor_attack.svg) 5 5, pointer; }
body.inworld #world.c-talk { cursor: url(/online/img/ui/hud2/cursors/cursor_talk.svg) 6 6, pointer; }
body.inworld #world.c-use { cursor: url(/online/img/ui/hud2/cursors/cursor_use.svg) 12 3, pointer; }
body.inworld.amove #world, body.amove #world { cursor: url(/online/img/ui/hud2/cursors/cursor_attack_move.svg) 16 16, crosshair !important; }

/* ===== Okna gry ===== */
.win { border-radius: 0 !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .55) !important; background: none !important; border-style: solid !important; border-color: transparent !important; border-width: 6px 16px 16px 16px !important; border-image: url(/online/img/ui/hud2/windows/window_frame_9slice.svg) 44 16 16 16 fill / 44px 16px 16px 16px stretch !important; }
.win header { height: 34px; padding: 0 30px 0 6px !important; border-bottom: 0 !important; background: none !important; }
.win header b { font: 700 17px/1 Cinzel, serif; color: #e8b85a; text-shadow: var(--h2-shadow); }
.win header button { width: 26px !important; height: 26px !important; padding: 0; border: 0; border-radius: 0 !important; background: url(/online/img/ui/hud2/windows/window_close_normal.svg) center / 100% 100% no-repeat !important; font-size: 0 !important; color: transparent; cursor: pointer; }
.win header button:hover { background-image: url(/online/img/ui/hud2/windows/window_close_hover.svg) !important; }

/* poprawki po pierwszym teście */
#hud .c2 .emopick { display: none; position: absolute; left: 0; bottom: 46px; z-index: 6; grid-template-columns: repeat(8, 30px); gap: 3px; padding: 10px; border-style: solid; border-width: 12px; border-color: transparent; border-image: url(/online/img/ui/hud2/chat/chat_panel_9slice.svg) 12 fill / 12px stretch; background: rgba(18, 15, 34, .9); }
#hud .c2 .emopick.on { display: grid; }
#hud .c2 .emopick button { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
#hud .c2 .emopick img { width: 26px; height: 26px; }
#hud .menu2 .wt { display: none !important; }
#hud .m2 { align-items: flex-end; }
#hud .m2-zone { min-width: 0; max-width: calc(100vw / var(--ui) - 40px); }
#tags .tag3.me b, #tags .tag3 b { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
#toast { bottom: calc(150px * var(--ui)) !important; }
#hud .notes { top: 100px !important; }

/* ===== komendy admina ===== */
#hud .c2 .cl.adm { color: #ffd98a; }
#hud .c2 .cl.adm b { color: #ff9f5a; }
#hud .c2-cmds { display: none; position: absolute; left: 0; right: 0; bottom: 44px; z-index: 7; padding: 6px 4px; border-style: solid; border-width: 12px; border-color: transparent; border-image: url(/online/img/ui/hud2/chat/chat_panel_9slice.svg) 12 fill / 12px stretch; background: rgba(18, 15, 34, .92); }
#hud .c2-cmds.on { display: block; }
#hud .c2-cmds div { display: flex; gap: 10px; align-items: baseline; padding: 3px 4px; font: 13px/1.3 Inter, sans-serif; color: var(--h2-soft); }
#hud .c2-cmds b { min-width: 110px; color: #ffd98a; font-weight: 700; }
#tags .tag3.me.vanish { opacity: .55; }
#tags .tag3.me.vanish b::before { content: "👁 "; }
#tags .tag3.me.god b { color: #ffe08a; text-shadow: 0 0 8px rgba(255, 200, 80, .9), 0 1px 2px #000; }

/* czat większy i czytelniejszy */
#hud .c2 { width: 480px; }
#hud .c2 .chatlog { height: 210px; max-height: 210px; }
#hud .c2 .cl { font-size: 14.5px; line-height: 1.4; }
#hud .c2-tabs button { height: 26px; font-size: 13px; line-height: 26px; }
#hud .c2-hint { font-size: 12.5px; cursor: text; }
#hud .c2-body { cursor: text; }
#hud #chatIn { font-size: 15px; }

/* ===== czat: elementy ze starej paczki img/ui/chat (ikony kanałów, suwak, wysyłanie, zwijanie, emotki, dymki) ===== */
#hud .c2 .cl { position: relative; padding-left: 22px; }
#hud .c2 .cl::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: url(/online/img/ui/chat/svg/icons/icon_general.svg) center / contain no-repeat; }
#hud .c2 .cl.sys::before, #hud .c2 .cl.lvl::before { background-image: url(/online/img/ui/chat/svg/icons/icon_system.svg); }
#hud .c2 .cl.local::before, #hud .c2 .cl.me::before, #hud .c2 .cl.npc::before { background-image: url(/online/img/ui/chat/svg/icons/icon_local.svg); }
#hud .c2 .cl.trade::before { background-image: url(/online/img/ui/chat/svg/icons/icon_trade.svg); }
#hud .c2 .cl.adm::before { background-image: url(/online/img/ui/chat/svg/badges/badge_admin.svg); }
#hud .c2 .cl.whisper::before { background-image: url(/online/img/ui/chat/svg/icons/icon_whisper.svg); }
#hud .c2 .cl.party::before { background-image: url(/online/img/ui/chat/svg/icons/icon_party.svg); }
#hud .c2 .cl.clan::before { background-image: url(/online/img/ui/chat/svg/icons/icon_clan.svg); }
#hud .c2 .cl.warn::before { background-image: url(/online/img/ui/chat/svg/icons/icon_warning.svg); }
#hud .c2-tabs button[data-ct] { display: inline-flex; align-items: center; gap: 5px; }
#hud .c2-tabs button[data-ct]::before { content: ""; width: 14px; height: 14px; flex: none; background: url(/online/img/ui/chat/svg/icons/icon_general.svg) center / contain no-repeat; opacity: .8; }
#hud .c2-tabs button[data-ct="local"]::before { background-image: url(/online/img/ui/chat/svg/icons/icon_local.svg); }
#hud .c2-tabs button[data-ct="trade"]::before { background-image: url(/online/img/ui/chat/svg/icons/icon_trade.svg); }
#hud .c2-tabs button[data-ct="sys"]::before { background-image: url(/online/img/ui/chat/svg/icons/icon_system.svg); }
#hud .c2-tabs button.on::before { opacity: 1; }
#hud .c2 .chatlog::-webkit-scrollbar { width: 10px; }
#hud .c2 .chatlog::-webkit-scrollbar-track { background: none; border-style: solid; border-width: 6px 0; border-image: url(/online/img/ui/chat/svg/scrollbar/scroll_track_3slice.svg) 6 0 fill / 6px 0 stretch; }
#hud .c2 .chatlog::-webkit-scrollbar-thumb { min-height: 24px; background: none; border-radius: 0; border-style: solid; border-width: 6px 0; border-image: url(/online/img/ui/chat/svg/scrollbar/scroll_thumb_3slice.svg) 6 0 fill / 6px 0 stretch; }
#hud .c2 .chatlog::-webkit-scrollbar-thumb:hover { border-image-source: url(/online/img/ui/chat/svg/scrollbar/scroll_thumb_hover.svg); }
#hud .c2-send { width: 86px; height: 34px; padding: 0 0 1px; border: 0 !important; border-image: none !important; display: flex; align-items: center; justify-content: center; gap: 5px; background: url(/online/img/ui/chat/svg/input/btn_send_normal.svg) center / 100% 100% no-repeat !important; font: 800 13px/1 Inter, sans-serif; color: #3a2108; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); }
#hud .c2-send::before { content: ""; width: 15px; height: 15px; background: url(/online/img/ui/chat/svg/icons/icon_send.svg) center / contain no-repeat; }
#hud .c2-send:hover { background-image: url(/online/img/ui/chat/svg/input/btn_send_hover.svg) !important; }
#hud .c2-send:active { background-image: url(/online/img/ui/chat/svg/input/btn_send_pressed.svg) !important; }
#hud .c2:focus-within .c2-in { height: 34px; }
#hud .c2-tabs .c2-min { width: 26px; height: 26px; border: 0; border-radius: 0; background: url(/online/img/ui/chat/svg/buttons/btn_minimize_normal.svg) center / 100% 100% no-repeat; font-size: 0; color: transparent; }
#hud .c2-tabs .c2-min::before { content: none !important; }
#hud .c2-tabs .c2-min:hover { background-image: url(/online/img/ui/chat/svg/buttons/btn_minimize_hover.svg); }
#hud .c2-tabs .c2-min:active { background-image: url(/online/img/ui/chat/svg/buttons/btn_minimize_pressed.svg); }
#hud .c2-pill #chatNew { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 0; background: url(/online/img/ui/chat/svg/pill/badge_unread.svg) center / 100% 100% no-repeat; line-height: 20px; }
#hud .c2 .emopick { border-width: 14px; border-image: url(/online/img/ui/chat/svg/frame/chat_frame_9slice.svg) 24 fill / 14px stretch; background: none; }
#hud .c2 .emopick button:hover { transform: scale(1.15); }
#tags .tag3 .bub { position: relative; padding: 4px 6px; border-radius: 0; border-style: solid; border-width: 12px; border-color: transparent; border-image: url(/online/img/ui/chat/svg/bubble/speech_bubble_9slice.svg) 12 fill / 12px stretch; background: none; }
#tags .tag3 .bub::after { left: 50%; bottom: -24px; width: 20px; height: 14px; transform: translateX(-50%); border: 0; background: url(/online/img/ui/chat/svg/bubble/speech_bubble_tail.svg) center / 100% 100% no-repeat; }
#hud .c2 .emopick { background: rgba(18, 15, 34, .96) padding-box; }
