* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1117; font-family: "Segoe UI", system-ui, sans-serif; color: #f2f2f2; user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; }
#hud[hidden], #target-frame[hidden] { display: none; }

.bar { position: relative; height: 18px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(#e0484a, #9d1d22); transition: width .15s; }
.bar.enemy .fill { background: linear-gradient(#d9a23a, #8c5a12); }
.bar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 18px; text-shadow: 0 1px 2px #000; }

#player-frame { position: absolute; left: 16px; top: 16px; width: 260px; }
.pf-name, .tf-name { font-weight: 600; margin-bottom: 4px; text-shadow: 0 1px 3px #000; }
#pf-level, #tf-level { color: #ffd166; font-weight: 500; }

#target-frame { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 300px; text-align: center; }

#wallet { position: absolute; right: 198px; top: 16px; background: rgba(0,0,0,.45); padding: 8px 12px; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.coin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.coin.silver { background: radial-gradient(#ffffff, #9aa3ad); }
.coin.gold { background: radial-gradient(#fff3b0, #c9971c); }
.coin.bronze { background: radial-gradient(#f0b27a, #8a4f1c); }

#perf { position: absolute; right: 198px; top: 112px; background: rgba(0,0,0,.45); padding: 6px 10px; border-radius: 6px; font: 12px/1.5 Consolas, monospace; white-space: pre; }

#skillbar { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 8px; }
.skill { position: relative; width: 58px; height: 58px; background: rgba(20,24,32,.8); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; overflow: hidden; }
.skill b { font-size: 18px; color: #ffd166; }
.skill .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.7); }

#xpbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); height: 12px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
#xp-fill { height: 100%; width: 0; background: linear-gradient(#8f7cff, #5636d9); transition: width .2s; }
#xp-text { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 12px; }

#toast { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 28px; font-weight: 700; text-shadow: 0 2px 6px #000; opacity: 0; transition: opacity .3s; text-align: center; }
#toast.show { opacity: 1; }

#labels { position: absolute; inset: 0; overflow: hidden; }
.mobbar { position: absolute; left: 0; top: 0; width: 70px; will-change: transform; text-align: center; font-size: 11px; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.mobbar .mb { height: 5px; background: rgba(0,0,0,.6); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.mobbar .mb div { height: 100%; background: #e0484a; }
.mobbar.targeted { color: #ffd166; }
.float { position: absolute; left: 0; top: 0; will-change: transform; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; }
.float.dmg { color: #fff; font-size: 18px; }
.float.crit { color: #ffcf3f; font-size: 24px; }
.float.hurt { color: #ff5a5a; font-size: 18px; }
.float.heal { color: #6cff8a; font-size: 18px; }
.float.loot { color: #e6e9ee; font-size: 15px; }
.float.lootb { color: #f0a868; font-size: 15px; }
.float.xp { color: #b3a6ff; font-size: 14px; }

#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(20,30,50,.75), rgba(5,8,14,.95)); }
#start[hidden] { display: none; }
.panel { width: min(520px, calc(100% - 32px)); background: rgba(16,20,28,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 24px 28px; }
.panel h1 { margin: 0 0 8px; font-size: 26px; }
.panel h1 small { font-size: 14px; color: #9aa3ad; font-weight: 400; }
.controls { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.controls td { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.controls td:first-child { color: #ffd166; width: 38%; }
#play { width: 100%; padding: 12px; font-size: 17px; font-weight: 600; border: 0; border-radius: 8px; background: #5636d9; color: #fff; cursor: pointer; }
#play:disabled { opacity: .45; cursor: wait; }
.credits { font-size: 11px; color: #7d8590; margin: 14px 0 0; }

#death { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; pointer-events: auto; }
#death[hidden] { display: none; }
.death-box { background: rgba(10,10,14,.85); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 18px 26px; text-align: center; max-width: 360px; }
.death-box h2 { margin: 0 0 6px; color: #e7c46a; font-size: 24px; }
.death-box p { margin: 0 0 14px; font-size: 14px; color: #cfd3da; }
#revive { padding: 10px 18px; font-size: 15px; font-weight: 600; border: 0; border-radius: 8px; background: #5636d9; color: #fff; cursor: pointer; }

/* ---------- okna ---------- */
.win { position: absolute; background: rgba(14,17,24,.94); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; pointer-events: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: 13px; }
.win[hidden] { display: none; }
.win-head { padding: 10px 14px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.x { background: none; border: 0; color: #aab; font-size: 20px; cursor: pointer; line-height: 1; }
#inv { right: 16px; top: 120px; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 136px); overflow: auto; }
.inv-body { display: flex; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.inv-left { flex: 1 1 250px; min-width: 230px; }
.inv-right { flex: 0 0 301px; max-width: 301px; }
#inv-equip { display: grid; gap: 6px; }
.eqslot { display: flex; align-items: center; gap: 8px; }
.eqname { font-size: 12px; line-height: 1.2; }
#inv-bag { display: grid; grid-template-columns: repeat(6, 46px); gap: 5px; }
.cell { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.04); position: relative; display: flex; align-items: center; justify-content: center; }
.cell.has { cursor: pointer; background: rgba(255,255,255,.07); }
.cell .ic { font-size: 22px; }
.cell .ic.empty { opacity: .2; filter: grayscale(1); }
.cell .lv { position: absolute; right: 3px; bottom: 1px; font-size: 10px; color: #cfd3da; }
.inv-foot { display: flex; justify-content: space-between; margin-top: 8px; gap: 10px; }
.stats { margin-top: 10px; font-size: 12px; display: grid; gap: 2px; }
.stats div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.05); padding: 2px 0; }
.stats b { font-weight: 600; color: #ffe6a6; }
.muted { color: #8b93a1; }
.small { font-size: 11px; padding: 0 14px 10px; }
.m-g { color: #ffd76a; } .m-b { color: #e39a5b; } .m-s { color: #dfe4ea; }
#shop { left: 16px; top: 120px; width: min(380px, calc(100% - 32px)); }
#shop-list { max-height: 50vh; overflow: auto; padding: 8px 10px; display: grid; gap: 6px; }
.shoprow { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 6px; cursor: pointer; }
.shoprow:hover { background: rgba(255,255,255,.06); }
.shopinfo { flex: 1; font-size: 12px; }
.shopprice { font-size: 12px; white-space: nowrap; }
.shopprice.bad { opacity: .45; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); }
#shop-sellcommon { background: #2b3242; color: #eee; border: 1px solid #3d4558; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
#tooltip { position: fixed; left: 0; top: 0; z-index: 50; max-width: 300px; background: rgba(8,10,14,.97); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 10px 12px; font-size: 12px; pointer-events: none; line-height: 1.45; }
#tooltip[hidden] { display: none; }
.tt-name { font-weight: 700; font-size: 14px; }
.tt-sub { color: #8b93a1; margin-bottom: 6px; }
.tt-base { color: #f2f2f2; }
.tt-aff { color: #8fd3ff; margin-top: 4px; }
.tt-eff { color: #e8c76a; margin-top: 6px; font-style: italic; }
.tt-req { margin-top: 6px; color: #cfd3da; } .tt-req.bad { color: #ff6b6b; }
.tt-sep { margin-top: 6px; color: #8b93a1; }
.up { color: #5fe07a; } .down { color: #ff6b6b; }
.tt-price { margin-top: 6px; }
.tt-hint { margin-top: 4px; color: #6f7785; font-size: 11px; }
.groundlabel { position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px #000, 0 0 3px #000; white-space: nowrap; pointer-events: auto; cursor: pointer; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 4px; will-change: transform; }
.npclabel { position: absolute; left: 0; top: 0; text-align: center; font-size: 13px; font-weight: 700; color: #ffe08a; text-shadow: 0 1px 3px #000; white-space: nowrap; will-change: transform; line-height: 1.15; }
.npclabel small { font-weight: 500; color: #d8dde6; font-size: 11px; }

.tt-set { margin-top: 6px; font-weight: 600; }
.tt-setb { color: #6f7785; } .tt-setb.on { color: #e6f0ff; }
.setdot { position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; }
.setline span { font-weight: 600; }

#errbox { position: fixed; left: 16px; bottom: 90px; z-index: 100; max-width: min(640px, calc(100% - 32px)); background: rgba(120,10,10,.92); color: #fff; font: 12px/1.4 Consolas, monospace; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; }
#errbox[hidden] { display: none; }
.warn { background: rgba(160,40,30,.35); border: 1px solid rgba(255,120,100,.5); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 0 0 14px; }
.warn[hidden] { display: none; }

/* ---------- úkoly ---------- */
.qm { font-size: 26px; font-weight: 900; line-height: 1; text-shadow: 0 2px 4px #000; }
.qm.avail { color: #ffd23f; } .qm.ready { color: #ffd23f; } .qm.active { color: #9aa3ad; }
#tracker { position: absolute; right: 16px; top: 226px; width: 240px; font-size: 12px; text-shadow: 0 1px 2px #000; }
#tracker[hidden] { display: none; }
.tq { margin-bottom: 8px; background: rgba(0,0,0,.28); padding: 6px 8px; border-radius: 6px; }
.tqn { font-weight: 700; color: #ffd76a; margin-bottom: 2px; }
#tracker .ok { color: #6fe08a; }
#dialog { left: 50%; top: 14%; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); max-height: 72vh; overflow: auto; }
#dialog-body { padding: 10px 14px 14px; display: grid; gap: 10px; }
.dq { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 10px 12px; }
.dq p { margin: 6px 0; color: #d5d9e0; line-height: 1.45; }
.dqn { font-weight: 700; color: #ffd76a; font-size: 14px; }
.dqo { color: #cfd3da; margin: 6px 0; }
.dqr { color: #cfd3da; margin: 6px 0; } .dqr .xp { color: #b3a6ff; }
.dbtn { margin-top: 6px; background: #5636d9; color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.choices { display: grid; gap: 6px; margin: 8px 0 4px; }
.choice { text-align: left; background: #1d2230; color: #eee; border: 1px solid #343b4d; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.choice.on { border-color: #ffd76a; box-shadow: 0 0 0 1px #ffd76a inset; }
.exbtn { margin-top: 8px; width: 100%; background: #3a2f12; color: #ffd76a; border: 1px solid #6b5520; border-radius: 6px; padding: 7px 10px; font-weight: 600; cursor: pointer; }
.exbtn:disabled { opacity: .45; cursor: default; }
body.win-open #tracker { display: none; }

/* ---------- Trhlina ---------- */
#dungeon-hud { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); text-align: center; text-shadow: 0 1px 3px #000; }
#dungeon-hud[hidden], #dh-bar[hidden] { display: none; }
#dh-title { font-size: 18px; font-weight: 800; color: #c9a2ff; letter-spacing: .5px; }
#dh-bar { height: 14px; margin: 4px 0; }
#dh-bar .fill { background: linear-gradient(#a05cff, #4a1a9a); }
#dh-sub { font-size: 12px; color: #e6dcff; }
#dungeon-win { left: 50%; top: 18%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); }
#dw-body { padding: 10px 14px; line-height: 1.5; }
#dw-body ul { margin: 6px 0; padding-left: 18px; }
#log { left: 50%; top: 12%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); }
#log-list { max-height: 60vh; overflow: auto; padding: 8px 12px; font-size: 12px; }
.lr { display: grid; grid-template-columns: 120px 80px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.lt { color: #7d8590; } .lk { font-weight: 700; }
.lk-buy, .lk-sell { color: #ffd76a; } .lk-drop, .lk-pickup { color: #8fd3ff; } .lk-reward, .lk-quest, .lk-exchange { color: #6fe08a; } .lk-death { color: #ff6b6b; } .lk-dungeon { color: #c9a2ff; }
.small-btn { padding: 4px 10px; font-size: 12px; margin: 0; }

/* ---------- lektvary a alchymie ---------- */
#belt { position: absolute; left: calc(50% + 150px); bottom: 34px; display: flex; gap: 6px; pointer-events: auto; }
.pslot { position: relative; width: 44px; height: 44px; background: rgba(20,24,32,.8); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.pslot.empty { opacity: .45; }
.pslot b { position: absolute; left: 3px; top: 1px; font-size: 10px; color: #ffd166; }
.pslot .pi { font-size: 20px; }
.pslot .pn { position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 700; }
.pslot .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.65); }
@media (max-width: 900px) { #belt { left: 50%; transform: translateX(-50%); bottom: 100px; } }
#buffs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.buff { font-size: 11px; background: rgba(0,0,0,.5); border: 1px solid; border-radius: 4px; padding: 1px 6px; }
#alch { left: 16px; top: 120px; width: min(470px, calc(100% - 32px)); }
#alch-mats { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px 4px; font-size: 12px; }
#alch-list { max-height: 52vh; overflow: auto; padding: 6px 10px; display: grid; gap: 6px; }
.arow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.04); }
.ainfo { font-size: 13px; } .small2 { font-size: 11px; margin-top: 2px; }
.ainfo .ok { color: #6fe08a; } .ainfo .bad { color: #ff6b6b; }
.abtns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.abtns button:disabled { opacity: .4; cursor: default; }
.buyb { background: #3a2f12 !important; color: #ffd76a !important; }
.lk-craft { color: #ffb347; }
#news { left: 50%; top: 12%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); max-height: 72vh; overflow: auto; }
#news-body { padding: 10px 14px; display: grid; gap: 8px; }
#news-body ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; color: #d5d9e0; }
#wb-hud { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); text-align: center; text-shadow: 0 1px 3px #000; }
#wb-hud[hidden] { display: none; }
.wbt { font-size: 18px; font-weight: 800; color: #cfe3ff; }
#wb-hud .bar { height: 14px; margin: 4px 0; } #wb-hud .fill { background: linear-gradient(#cfe3ff, #5a7fb8); }
#wb-sub { font-size: 12px; }
.panel { max-height: calc(100vh - 32px); overflow: auto; }
#pets { left: 16px; top: 120px; width: min(470px, calc(100% - 32px)); }
#pet-list { max-height: 56vh; overflow: auto; padding: 8px 10px; display: grid; gap: 6px; }
#pet-info .bad { color: #ff6b6b; }
.abtns button:disabled { opacity: .4; }

/* minimapa, velká mapa, teleport, vylepšování */
#minimap { position: absolute; right: 16px; top: 16px; width: 170px; height: 170px; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
#map-win { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(592px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; }
#bigmap { display: block; width: calc(100% - 28px); margin: 10px 14px 0; aspect-ratio: 1; border-radius: 8px; cursor: pointer; }
#castbar { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: 260px; text-align: center; font-size: 13px; text-shadow: 0 1px 2px #000; }
#castbar[hidden] { display: none; }
#castbar .cb { height: 10px; margin-top: 4px; background: rgba(0,0,0,.55); border: 1px solid rgba(95,216,255,.6); border-radius: 5px; overflow: hidden; }
#cast-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2a8fd0, #5fd8ff); }
#upg { left: 16px; top: 120px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 140px); overflow: auto; }
.ainfo .chance { color: #ffb347; }
.plus { color: #5fd8ff; font-weight: 800; }
.cell .pl { position: absolute; left: 3px; top: 1px; font-size: 10px; font-weight: 800; color: #5fd8ff; text-shadow: 0 1px 2px #000; }
.tt-plus { color: #5fd8ff; font-size: 12px; margin-top: 2px; }
#tracker { top: 200px; }
@media (max-width: 700px) { #minimap { width: 120px; height: 120px; } #wallet, #perf { right: 146px; } }

/* nastavení */
#set-open { position: absolute; right: 16px; top: 192px; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.5); color: #dde; font-size: 16px; line-height: 1; cursor: pointer; pointer-events: auto; }
#set-open:hover { background: rgba(86,54,217,.7); }
#settings { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; }
#set-body { padding: 4px 16px 14px; }
#set-body .sgroup { margin: 14px 0 6px; font-weight: 700; color: #ffd166; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
#set-body .srow { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
#set-body .srow > span { flex: 0 0 44%; }
#set-body input[type=range] { flex: 1; accent-color: #7a5cff; }
#set-body .srow b { width: 46px; text-align: right; font-weight: 600; }
#set-body select { flex: 1; background: #1b2030; color: #e6e9ef; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 4px; }
#set-body .controls { margin: 4px 0 10px; font-size: 13px; }
@media (max-width: 700px) { #set-open { top: 142px; } }

/* postava: atributy + strom dovedností */
#tal-badge { margin-top: 6px; background: linear-gradient(90deg, #ffb703, #ff7a00); color: #1a1000; border: 0; border-radius: 5px; padding: 3px 9px; font-weight: 700; font-size: 12px; cursor: pointer; pointer-events: auto; animation: talpulse 1.6s ease-in-out infinite; }
#tal-badge[hidden] { display: none; }
@keyframes talpulse { 50% { filter: brightness(1.25); box-shadow: 0 0 10px rgba(255,183,3,.6); } }
#talents { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100% - 32px)); max-height: calc(100% - 30px); overflow: auto; }
.tal-wrap { display: flex; gap: 14px; padding: 12px 14px 14px; }
#tal-attrs { flex: 0 0 270px; }
.tal-right { flex: 1; min-width: 0; }
#tal-tree { width: 100%; max-height: 520px; display: block; }
.tal-pts { margin-bottom: 8px; }
.tal-attr { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.tal-attr .ai { font-size: 20px; width: 24px; text-align: center; }
.tal-attr .an { flex: 1; }
.tal-attr .av { color: #ffd166; font-weight: 700; margin-left: 4px; }
.plus-btn { width: 28px; height: 28px; border-radius: 6px; border: 0; background: #5636d9; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.plus-btn:disabled { background: #2a2f3d; color: #667; cursor: default; }
.tal-sum { margin: 10px 0; line-height: 1.7; }
.tal-reset { display: flex; flex-wrap: wrap; gap: 6px; }
.dbtn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); }
#tal-info { min-height: 52px; padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 6px; line-height: 1.6; }
.tal-node { cursor: pointer; }
.tal-node.can circle { animation: talglow 1.4s ease-in-out infinite; }
@keyframes talglow { 50% { opacity: .65; } }
.tal-node:hover circle { stroke: #fff; }
.tal-sector { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tal-cost { font-size: 13px; font-weight: 800; pointer-events: none; }
@media (max-width: 760px) { .tal-wrap { flex-direction: column; } #tal-attrs { flex: none; } }

/* inventář: suroviny, přetahování, koš */
.cell .lv.cnt { font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; font-size: 11px; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: .85; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
#inv.dragging #inv-bag .cell:hover, #inv.dragging #inv-equip .cell:hover { background: rgba(122,92,255,.35); }
#inv-trash { width: 34px; height: 34px; margin-left: auto; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: .7; }
#inv.dragging #inv-trash { opacity: 1; border-color: #ff5a5a; background: rgba(255,60,60,.12); }
#inv-trash:hover { background: rgba(255,60,60,.25); }
#inv-confirm { margin-top: 8px; padding: 8px 10px; background: rgba(255,60,60,.12); border: 1px solid rgba(255,90,90,.4); border-radius: 6px; font-size: 12px; }
#inv-confirm[hidden] { display: none; }
.dbtn.danger { background: #c62f3a; }
.inv-foot { display: flex; align-items: center; gap: 10px; }

/* úkoly: kde co najít */
.dqh { color: #9fd3ff; margin: 4px 0 6px; font-size: 12px; }
.tqh { color: #aeb6c4; font-size: 11px; margin-top: 2px; }

/* účet GamersTogether */
.gt-ucet { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid rgba(42,139,244,.45); border-radius: 8px; background: rgba(42,139,244,.08); text-align: left; }
.gt-ucet .gu-row { display: flex; align-items: center; gap: 10px; }
.gt-ucet .gu-row > div { flex: 1; min-width: 0; }
.gt-ucet .gu-logo { width: 34px; height: 34px; border-radius: 8px; background: #2A8BF4; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.gt-ucet .gu-sub { font-size: 12px; color: #aeb6c4; }
.gt-ucet .gu-sub a { color: #8cc4ff; }
.gt-ucet .gu-btn { background: #2A8BF4; color: #fff; border: 0; border-radius: 6px; padding: 7px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gt-ucet .gu-btn:disabled { opacity: .6; cursor: default; }
.gt-ucet .gu-ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); }
.gt-ucet .gu-note { margin-top: 6px; font-size: 11px; color: #9aa3b2; }
.gt-ucet .gu-err { margin-top: 6px; font-size: 12px; color: #ff9a8a; }

/* úspěchy a titul nad hlavou */
#ach { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; }
#ach-head select { background: #1b2030; color: #e6e9ef; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 3px; }
#ach-list { padding: 0 14px 14px; }
.ach-cat { margin: 12px 0 6px; font-weight: 700; color: #ffd166; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ach { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; background: rgba(255,255,255,.03); margin-bottom: 5px; }
.ach.ok { background: rgba(255,209,102,.08); }
.ach-ic { font-size: 20px; width: 26px; text-align: center; opacity: .8; }
.ach-b { flex: 1; min-width: 0; }
.ach-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb703, #ffd166); }
.ach-r { text-align: right; min-width: 120px; }
.player-title { position: absolute; left: 0; top: 0; pointer-events: none; text-align: center; white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.player-title .pt-title { display: block; color: #ffd166; font-weight: 800; font-size: 13px; letter-spacing: .03em; }
.player-title .pt-name { display: block; color: #e8ecf3; font-size: 12px; }

/* chat a ostatní hráči */
#chat { position: absolute; left: 16px; bottom: 96px; width: min(360px, calc(100% - 32px)); pointer-events: auto; font-size: 12px; opacity: .55; transition: opacity .3s; }
#chat:hover, #chat.fresh, #chat:focus-within { opacity: 1; }
#chat-head { font-size: 11px; color: #9fb0c8; margin-bottom: 3px; text-shadow: 0 1px 2px #000; }
#chat-log { max-height: 150px; overflow-y: auto; background: rgba(0,0,0,.35); border-radius: 6px 6px 0 0; padding: 4px 8px; }
#chat-log .cl { padding: 1px 0; text-shadow: 0 1px 2px #000; word-wrap: break-word; }
#chat-log .cl b { color: #8cc4ff; font-weight: 700; } #chat-log .cl b.me { color: #ffd166; }
#chat-log .cl.sys { color: #9aa3b2; font-style: italic; }
#chat-input { width: 100%; box-sizing: border-box; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); border-radius: 0 0 6px 6px; color: #fff; padding: 5px 8px; font: inherit; outline: none; }
#chat-input:focus { border-color: #2A8BF4; }
.player-title.other .pt-name small { color: #ffd166; font-weight: 700; }
@media (max-width: 700px) { #chat { bottom: 150px; width: 240px; } }

/* fronta na kanál */
#fronta { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(255,183,3,.1); border: 1px solid rgba(255,183,3,.45); font-size: 13px; line-height: 1.5; text-align: left; }
#fronta .gu-btn { margin-top: 6px; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
#fronta.plovouci { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 50; background: rgba(20,16,4,.92); max-width: 420px; }

.gt-ucet .gu-nick { margin-top: 8px; font-size: 12px; color: #dfe6f2; }
.gt-ucet .gu-nick-row { display: flex; gap: 6px; margin-top: 5px; }
.gt-ucet .gu-nick-row input { flex: 1; min-width: 0; background: #11151f; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #fff; padding: 6px 8px; font: inherit; }
.gt-ucet .gu-note a { color: #8cc4ff; }
