:root {
  --bg: #0b0d12;
  --panel: rgba(16, 20, 28, 0.88);
  --panel2: rgba(26, 32, 44, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecf2;
  --muted: #8a94a6;
  --acc: #ffb020;
  --acc2: #3ad0ff;
  --red: #ff4a3d;
  --blue: #3a8aff;
  --green: #4cd964;
  --font: 'Chakra Petch', 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; }
#game canvas { position: absolute; inset: 0; display: block; cursor: crosshair; }
.hud:not([hidden]) ~ #ui[hidden] ~ * , body.ingame #game canvas { cursor: none; }
[hidden] { display: none !important; }
button { font-family: inherit; }
kbd { background: #222a36; border: 1px solid #3a4558; border-bottom-width: 3px; border-radius: 5px; padding: 1px 7px; font-family: inherit; font-size: 12px; color: #fff; }

/* ===== Betöltés ===== */
#loading { position: fixed; inset: 0; background: #07090d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 50; }
.ld-logo { font-size: 42px; font-weight: 700; letter-spacing: 6px; color: var(--acc); text-shadow: 0 0 30px rgba(255, 176, 32, 0.4); }
.ld-bar { width: 260px; height: 4px; background: #1a2030; overflow: hidden; border-radius: 2px; }
.ld-bar i { display: block; height: 100%; width: 40%; background: var(--acc); animation: ld 1s infinite ease-in-out; }
@keyframes ld { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.ld-t { color: var(--muted); font-size: 13px; letter-spacing: 2px; }

/* ===== Gombok ===== */
.btn { background: linear-gradient(180deg, #2a3344, #1c2330); color: var(--text); border: 1px solid #3a4558; border-radius: 8px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.08s, background 0.15s, border-color 0.15s, box-shadow 0.15s; letter-spacing: 0.5px; position: relative; }
.btn:hover { background: linear-gradient(180deg, #34405a, #232c3c); border-color: #5a6a88; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ffbf3a, #e08a10); color: #1a1000; border-color: #ffd070; box-shadow: 0 4px 20px rgba(255, 160, 20, 0.25); }
.btn.primary:hover { background: linear-gradient(180deg, #ffd060, #f09a20); box-shadow: 0 6px 28px rgba(255, 160, 20, 0.4); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: rgba(255, 74, 61, 0.4); margin-top: 10px; }
.btn.big { font-size: 19px; padding: 14px 26px; }
.btn.small { font-size: 12px; padding: 5px 10px; }
.btn.disabled { opacity: 0.4; cursor: not-allowed; }
.btn small { display: block; font-size: 11px; opacity: 0.75; font-weight: 400; }

/* ===== UI képernyők ===== */
.ui { position: absolute; inset: 0; z-index: 10; overflow: hidden; display: flex; flex-direction: column; }
.ui:not(.scr-menu):not(.scr-pause) { background: radial-gradient(ellipse at 50% 0%, rgba(20, 26, 38, 0.82), rgba(5, 7, 11, 0.94)); backdrop-filter: blur(3px); }
.ui.scr-menu { background: linear-gradient(90deg, rgba(5, 7, 11, 0.88) 0%, rgba(5, 7, 11, 0.55) 38%, rgba(5, 7, 11, 0.05) 70%); }
.ui.scr-pause { background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.topbar h2 { margin: 0; flex: 1; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.credits { color: var(--acc); font-weight: 700; font-size: 16px; }
.scroll { overflow-y: auto; flex: 1; padding: 6px 24px 30px; }
.scroll::-webkit-scrollbar { width: 8px; } .scroll::-webkit-scrollbar-thumb { background: #2a3344; border-radius: 4px; }
h4 { margin: 22px 0 10px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--acc); }
h4 small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.note, .desc { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 900px; }
.clickable { cursor: pointer; }
.gold { color: var(--acc); }

/* Főmenü */
.menu-wrap { position: relative; height: 100%; padding: 6vh 6vw; display: flex; flex-direction: column; gap: 4vh; }
.logo { line-height: 0.9; }
.logo .l1 { font-size: clamp(36px, 6vw, 78px); font-weight: 700; letter-spacing: 8px; color: #fff; text-shadow: 0 4px 0 #000, 0 0 40px rgba(255, 176, 32, 0.25); }
.logo .l2 { font-size: clamp(46px, 8vw, 108px); font-weight: 700; letter-spacing: 14px; background: linear-gradient(180deg, #ffd060, #ff7a10); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #000); }
.logo .l3 { margin-top: 10px; font-size: 16px; letter-spacing: 6px; color: var(--muted); text-transform: uppercase; }
.menu-btns { display: flex; flex-direction: column; gap: 10px; width: min(380px, 90vw); }
.menu-btns .btn { text-align: left; }
.menu-btns .btn small { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-hero { position: absolute; right: 4vw; bottom: 6vh; display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 20px 10px 10px; }
.menu-hero img { width: 84px; height: 84px; image-rendering: auto; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%); border-radius: 10px; }
.mh-name { font-size: 20px; font-weight: 700; } .mh-lvl { color: var(--acc); } .mh-c { color: var(--muted); font-size: 13px; }
.menu-foot { position: absolute; left: 6vw; bottom: 3vh; color: var(--muted); font-size: 12px; letter-spacing: 1px; }

/* Hősök */
.heroes { display: flex; flex: 1; min-height: 0; }
.hero-list { width: 250px; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; border-right: 1px solid var(--line); }
.hero-card { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); transition: 0.15s; }
.hero-card:hover { background: rgba(255, 255, 255, 0.07); }
.hero-card.sel { border-color: var(--acc); background: rgba(255, 176, 32, 0.1); }
.hero-card img { width: 56px; height: 56px; }
.hero-card b { display: block; font-size: 15px; } .hero-card small { display: block; color: var(--muted); font-size: 12px; } .hero-card .lv { font-size: 12px; color: var(--acc); }
.hero-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hero-head { display: flex; align-items: center; gap: 18px; padding: 14px 24px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 25%, transparent), transparent 70%); }
.hero-head img { width: 96px; height: 96px; }
.hh-txt { flex: 1; } .hh-txt h3 { margin: 0 0 8px; font-size: 26px; } .hh-txt h3 small { color: var(--muted); font-size: 15px; font-weight: 400; }
.xpbar { position: relative; height: 20px; background: #10141c; border: 1px solid #2a3344; border-radius: 10px; overflow: hidden; max-width: 460px; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #e08a10, #ffd060); transition: width 0.6s; }
.xpbar span { position: relative; font-size: 12px; padding: 0 10px; line-height: 20px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.xpbar.sm { height: 6px; }
.tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { background: none; border: none; color: var(--muted); padding: 10px 16px; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); } .tab.on { color: var(--acc); border-bottom-color: var(--acc); }
.tab img { width: 26px; height: 26px; }
.badge { background: var(--red); color: #fff; font-style: normal; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.item { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #888) 14%, #141a24), #11151d); border: 1px solid color-mix(in srgb, var(--rc, #888) 45%, transparent); border-radius: 10px; padding: 10px; transition: 0.15s; }
.item.clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 24px color-mix(in srgb, var(--rc) 25%, transparent); }
.item.sel { outline: 2px solid var(--acc); box-shadow: 0 0 20px rgba(255, 176, 32, 0.3); }
.item.r4 { animation: legend 2.5s infinite; }
@keyframes legend { 50% { box-shadow: 0 0 22px rgba(255, 160, 32, 0.45); } }
.item.locked { opacity: 0.45; filter: grayscale(1); }
.it-img { height: 52px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07), transparent 70%); }
.it-img img { max-width: 92%; max-height: 50px; image-rendering: auto; }
.it-name { font-weight: 700; color: var(--rc, #fff); font-size: 15px; margin-top: 4px; }
.it-r { font-size: 11px; color: var(--muted); }
.it-stats { display: flex; gap: 10px; font-size: 12px; margin-top: 4px; color: #c8d0dc; flex-wrap: wrap; }
.item ul { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: #9fe0a8; }
.item li.trait { color: var(--acc); list-style: none; margin-left: -16px; }
.item .new { position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; font-style: normal; font-weight: 700; }
.it-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .it-btns .eq { color: var(--green); font-size: 13px; }
.abils { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.abil { display: flex; gap: 12px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.abil.clickable:hover { background: rgba(255, 255, 255, 0.08); }
.abil.sel { border-color: var(--acc2); background: rgba(58, 208, 255, 0.08); }
.abil.ult { border-color: var(--acc); background: rgba(255, 176, 32, 0.08); }
.abil.locked { opacity: 0.45; }
.abil .ai { font-size: 30px; width: 44px; text-align: center; }
.abil b { display: block; } .abil small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0; } .abil span { font-size: 11px; color: var(--acc2); }
.key { font-style: normal; background: var(--acc2); color: #000; border-radius: 4px; padding: 0 5px; font-size: 11px; margin-left: 4px; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.perk-slot { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.perk-slot.locked { color: var(--muted); display: flex; align-items: center; justify-content: center; min-height: 70px; }
.perk-slot small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
select, input[type=text] { width: 100%; background: #10141c; color: var(--text); border: 1px solid #3a4558; border-radius: 6px; padding: 7px; font-family: inherit; font-size: 14px; }
.sk-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; font-size: 16px; }
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.branch { display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, 0.02); border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
.branch h5 { margin: 4px 0; text-align: center; letter-spacing: 2px; text-transform: uppercase; color: var(--acc2); }
.node { padding: 10px; border-radius: 10px; background: #131822; border: 1px solid #2a3344; transition: 0.15s; position: relative; }
.node b { display: block; } .node small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.node.can { border-color: var(--acc); box-shadow: 0 0 12px rgba(255, 176, 32, 0.2); }
.node.can:hover { background: #1c2230; }
.node.has { background: linear-gradient(180deg, rgba(58, 208, 255, 0.12), #131822); }
.node.max { border-color: var(--green); }
.node.lock { opacity: 0.45; }
.node.cap { border-style: dashed; }
.pips { display: flex; gap: 4px; } .pips i { width: 16px; height: 5px; background: #2a3344; border-radius: 2px; } .pips i.on { background: var(--acc2); }
.node .req { font-size: 11px; color: var(--red); }
.info .bars { max-width: 420px; }
.bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; } .bar span { width: 90px; color: var(--muted); }
.bar i { flex: 1; height: 8px; background: #1a2030; border-radius: 4px; overflow: hidden; } .bar b { display: block; height: 100%; background: linear-gradient(90deg, #e08a10, #ffd060); }
.streaks div { margin: 4px 0; font-size: 14px; color: #c8d0dc; }

/* Arzenál */
.cls-tabs .tab { padding: 8px 12px; font-size: 13px; }
.crates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.crate { background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 20%, #141a24), #10141c); border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.crate .cr-ic { font-size: 36px; } .crate small { color: var(--muted); font-size: 12px; flex: 1; }

/* Beállító képernyők */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mode-card { padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: 0.15s; }
.mode-card:hover { background: rgba(255, 255, 255, 0.08); } .mode-card.sel { border-color: var(--acc); background: rgba(255, 176, 32, 0.1); }
.mode-card b { display: block; font-size: 16px; } .mode-card small { color: var(--muted); font-size: 12px; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.map-card { border-radius: 10px; overflow: hidden; background: #10141c; border: 1px solid var(--line); transition: 0.15s; }
.map-card:hover { transform: translateY(-2px); } .map-card.sel { border-color: var(--acc); box-shadow: 0 0 18px rgba(255, 176, 32, 0.3); }
.map-card img { width: 100%; display: block; image-rendering: pixelated; aspect-ratio: 2.7; object-fit: cover; }
.map-card b { display: block; padding: 6px 10px 0; } .map-card small { display: block; padding: 0 10px 8px; color: var(--muted); font-size: 12px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }
.seg { background: #141a24; border: 1px solid #2a3344; color: var(--muted); padding: 7px 12px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; }
.seg:hover { color: var(--text); } .seg.on { background: var(--acc); color: #1a1000; border-color: var(--acc); }
input[type=range] { width: 70%; accent-color: var(--acc); vertical-align: middle; }
.rv { margin-left: 10px; color: var(--acc); font-weight: 700; }
.muts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; } .chk input { accent-color: var(--acc); width: 16px; height: 16px; }
.launch { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 26px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(0deg, rgba(5, 7, 11, 0.95), transparent); }
.launch-hero { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); }
.launch-hero img { width: 54px; height: 54px; } .launch-hero small { color: var(--acc2); }

/* Kampány */
.campaign { display: flex; flex: 1; min-height: 0; }
.campaign .scroll { flex: 1.4; }
.chapter { color: var(--acc2); }
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mission { position: relative; border-radius: 10px; overflow: hidden; background: #10141c; border: 1px solid var(--line); transition: 0.15s; padding-bottom: 8px; }
.mission:hover { transform: translateY(-2px); } .mission.sel { border-color: var(--acc); box-shadow: 0 0 18px rgba(255, 176, 32, 0.3); }
.mission.locked { opacity: 0.4; filter: grayscale(1); }
.mission img { width: 100%; display: block; aspect-ratio: 2.6; object-fit: cover; image-rendering: pixelated; }
.m-num { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, 0.7); border-radius: 50%; width: 26px; height: 26px; text-align: center; line-height: 26px; font-weight: 700; color: var(--acc); }
.mission b { display: block; padding: 6px 10px 0; } .mission small { display: block; padding: 0 10px; color: var(--muted); font-size: 12px; }
.stars { padding: 2px 10px; letter-spacing: 2px; } .stars i { font-style: normal; color: #333c4c; font-size: 18px; } .stars i.on { color: var(--acc); text-shadow: 0 0 8px rgba(255, 176, 32, 0.6); }
.brief { flex: 1; padding: 24px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); overflow-y: auto; }
.brief.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.brief h3 { margin: 0; font-size: 28px; } .b-meta { color: var(--acc2); font-size: 13px; margin: 4px 0 14px; }
.brief p { line-height: 1.6; color: #c8d0dc; }
.objs { list-style: none; padding: 0; } .objs li { padding: 6px 0; color: var(--muted); } .objs li.done { color: var(--acc); }
.b-rew { margin: 14px 0 20px; font-size: 14px; } .b-rew small { color: var(--muted); }

/* Statisztika */
.stat-grid, .res-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.st { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.st small { display: block; color: var(--muted); font-size: 12px; } .st b { font-size: 24px; }
.cls-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cls-stat { display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto auto; gap: 0 10px; align-items: center; background: rgba(255, 255, 255, 0.04); padding: 8px; border-radius: 10px; }
.cls-stat img { grid-row: span 3; width: 50px; } .cls-stat span { color: var(--acc); font-size: 13px; }

/* Beállítások */
.settings .opt { display: flex; align-items: center; gap: 16px; margin: 10px 0; flex-wrap: wrap; } .settings .opt > span { width: 140px; color: var(--muted); }
.settings .opt input[type=text] { width: 240px; }
.rng { display: flex; align-items: center; gap: 12px; margin: 10px 0; } .rng span { width: 140px; color: var(--muted); } .rng input { width: 260px; } .rng b { color: var(--acc); width: 50px; }
.opts2 { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 12px 0; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.key-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Szünet */
.pause { display: flex; flex-direction: column; gap: 12px; align-items: stretch; width: min(360px, 90vw); text-align: center; }
.pause h2 { font-size: 46px; letter-spacing: 10px; margin: 0 0 12px; }
.pause-help { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; opacity: 0.7; }

/* Eredmények */
.ui.scr-results { overflow-y: auto; }
.results { padding: 4vh 6vw 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.results h1 { font-size: clamp(48px, 8vw, 96px); margin: 0; letter-spacing: 12px; text-align: center; }
.results.won h1 { background: linear-gradient(180deg, #ffe080, #ff9010); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 160, 20, 0.4)); animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
.results.lost h1 { color: #ff5a4a; text-shadow: 0 0 30px rgba(255, 60, 40, 0.4); animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.res-sub { text-align: center; color: var(--muted); letter-spacing: 2px; margin-bottom: 18px; }
.res-stars { display: flex; justify-content: center; gap: 18px; margin: 10px 0 20px; flex-wrap: wrap; }
.res-stars div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; } .res-stars i { font-style: normal; font-size: 32px; color: #333c4c; }
.res-stars .on { color: var(--text); } .res-stars .on i { color: var(--acc); text-shadow: 0 0 14px rgba(255, 176, 32, 0.7); animation: pop 0.6s; }
.res-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.res-xp { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 14px; }
.xp-gain { font-size: 22px; font-weight: 700; color: var(--acc); margin-bottom: 10px; }
.lvlup { margin-top: 12px; color: var(--green); font-weight: 700; font-size: 18px; animation: pop 0.6s; }
.unlocks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .unlocks span { background: rgba(76, 217, 100, 0.12); border: 1px solid rgba(76, 217, 100, 0.4); border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.items.loot .item { animation: pop 0.7s cubic-bezier(.2, 1.6, .4, 1); }
.res-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.res-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
.res-table td { padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.res-table td i, .scoreboard td i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.res-table tr.me, .scoreboard tr.me { background: rgba(255, 176, 32, 0.12); color: var(--acc); }
.res-btns { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* Értesítések */
#toast { position: fixed; top: 70px; right: 20px; z-index: 40; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 10px 16px; border-radius: 8px; font-size: 14px; animation: tin 0.25s; transition: opacity 0.5s, transform 0.5s; }
.toast.bad { border-left-color: var(--red); } .toast.loot { border-left-color: #c070ff; font-size: 16px; }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes tin { from { transform: translateX(40px); opacity: 0; } }

/* ===== HUD ===== */
.hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.hud-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 10px; justify-items: center; }
.tscore { display: flex; align-items: center; gap: 10px; background: rgba(10, 12, 18, 0.7); padding: 4px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); min-width: 120px; justify-content: space-between; }
.tscore b { font-size: 26px; } .tscore span { font-size: 12px; color: #c8d0dc; text-transform: uppercase; letter-spacing: 1px; }
.tscore.t0 { border-bottom: 3px solid #d8433a; } .tscore.t1 { border-bottom: 3px solid #3a7ad8; } .tscore.mine { box-shadow: 0 0 12px rgba(255, 255, 255, 0.15); }
.timer { font-size: 22px; background: rgba(10, 12, 18, 0.7); padding: 2px 12px; border-radius: 8px; }
.mode-l { grid-column: span 3; font-size: 11px; color: #aab4c4; letter-spacing: 1px; }
.flags, .zones { grid-column: span 3; display: flex; gap: 14px; font-size: 12px; }
.zones .z { display: inline-block; width: 26px; height: 26px; border-radius: 6px; text-align: center; line-height: 26px; color: #fff; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.3); }
.zones .z.cont { animation: blink 0.5s infinite; border-color: #ffcc00; }
@keyframes blink { 50% { opacity: 0.4; } }
.boss { width: 420px; text-align: center; } .boss-name { color: #ff5040; letter-spacing: 4px; font-size: 14px; }
.boss-bar { height: 10px; background: rgba(0, 0, 0, 0.6); border: 1px solid #ff5040; border-radius: 5px; overflow: hidden; } .boss-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a01010, #ff4030); transition: width 0.2s; }
.killfeed { position: absolute; top: 128px; right: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 13px; }
.kf { background: rgba(10, 12, 18, 0.65); padding: 4px 10px; border-radius: 6px; transition: opacity 0.8s; } .kf.me { background: rgba(255, 176, 32, 0.22); border: 1px solid rgba(255, 176, 32, 0.5); }
.kf.fade { opacity: 0; } .kf .kw { color: #aab4c4; font-size: 12px; } .kf .hs { font-style: normal; }
.minimap { position: absolute; top: 10px; right: 10px; background: rgba(5, 8, 14, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px; }
.announce { position: absolute; top: 24%; left: 0; right: 0; text-align: center; }
.ann { display: inline-block; font-size: clamp(30px, 4.5vw, 60px); font-weight: 700; letter-spacing: 4px; animation: annIn 0.45s cubic-bezier(.2, 1.8, .4, 1); color: #fff; }
.ann.multi { color: #ffd040; text-shadow: 0 0 24px rgba(255, 180, 20, 0.7), 0 3px 0 #000; }
.ann.spree { color: #ff6a30; text-shadow: 0 0 24px rgba(255, 90, 20, 0.7), 0 3px 0 #000; }
.ann.ult { color: #3ad0ff; text-shadow: 0 0 24px rgba(58, 208, 255, 0.7), 0 3px 0 #000; }
.ann.good, .ann.win { color: #5cf; text-shadow: 0 0 24px rgba(60, 160, 255, 0.7), 0 3px 0 #000; } .ann.win { color: #ffd040; font-size: clamp(50px, 8vw, 110px); }
.ann.bad { color: #ff4a3d; text-shadow: 0 0 24px rgba(255, 60, 40, 0.7), 0 3px 0 #000; }
@keyframes annIn { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sub-ann { position: absolute; top: calc(24% + 80px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sub { font-size: 18px; letter-spacing: 2px; animation: subIn 2.5s forwards; } .sub.red { color: #ff6050; } .sub.blue { color: #6cf; } .sub.gold { color: #ffd040; } .sub.purple { color: #c080ff; }
@keyframes subIn { 0% { transform: translateY(10px); opacity: 0; } 10% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.xpfeed { position: absolute; left: 50%; top: 58%; transform: translateX(40px); display: flex; flex-direction: column; gap: 2px; }
.xpi { font-size: 16px; color: #fff; animation: xpIn 1.8s forwards; } .xpi.gold { color: #ffd040; }
@keyframes xpIn { 0% { transform: translateX(-10px); opacity: 0; } 15% { transform: none; opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.hud-bl { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 10px; }
.portrait { width: 76px; height: 76px; background: rgba(10, 12, 18, 0.7); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; }
.portrait img { width: 100%; height: 100%; }
.vitals { width: 270px; } .cls-name { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #ffd040; margin-bottom: 4px; }
.hpbar { position: relative; height: 24px; background: rgba(10, 12, 18, 0.75); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; overflow: hidden; }
.hpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #6ae070, #2fa040); transition: width 0.15s; }
.hpbar i.low { background: linear-gradient(180deg, #ff6a5a, #c02818); animation: blink 0.6s infinite; }
.hpbar b { position: absolute; left: 0; top: 0; height: 5px; background: #66ccff; transition: width 0.15s; }
.hpbar span { position: absolute; inset: 0; text-align: center; line-height: 24px; font-size: 14px; }
.fx-icons { display: flex; gap: 4px; margin-top: 4px; min-height: 22px; } .fx-icons span { background: rgba(10, 12, 18, 0.7); border-radius: 5px; padding: 1px 5px; font-size: 13px; } .fx-icons small { font-size: 10px; margin-left: 2px; color: #ccc; }
.hud-bc { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 10px; }
.ab { position: relative; width: 64px; height: 64px; border-radius: 12px; background: rgba(10, 12, 18, 0.75); border: 2px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ab::before { content: ''; position: absolute; inset: 0; background: conic-gradient(rgba(0, 0, 0, 0.72) var(--f, 0deg), transparent 0); }
.ab .ic { font-size: 30px; position: relative; } .ab .k { position: absolute; left: 4px; top: 2px; font-size: 12px; color: #ffd040; }
.ab .t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.ab .n { position: absolute; bottom: -1px; left: 0; right: 0; font-size: 9px; text-align: center; background: rgba(0, 0, 0, 0.55); white-space: nowrap; overflow: hidden; }
.ab.ready { border-color: rgba(58, 208, 255, 0.7); } .ab.ult { border-color: rgba(255, 176, 32, 0.5); width: 72px; height: 72px; margin-top: -8px; }
.ab.ult.ready { border-color: #ffd040; box-shadow: 0 0 18px rgba(255, 200, 40, 0.6); animation: ultPulse 1s infinite; }
.ab.ult.active { border-color: #3ad0ff; box-shadow: 0 0 18px rgba(58, 208, 255, 0.7); }
.ab.streak.ready { border-color: #ff6a30; box-shadow: 0 0 14px rgba(255, 100, 40, 0.6); animation: ultPulse 0.8s infinite; }
.ab.emp { filter: grayscale(1) brightness(0.6); }
@keyframes ultPulse { 50% { transform: scale(1.06); } }
.hud-br { position: absolute; right: 16px; bottom: 16px; text-align: right; min-width: 220px; }
.wname { font-size: 15px; letter-spacing: 1px; } .ammo { font-size: 52px; font-weight: 700; line-height: 1; } .ammo small { font-size: 18px; color: #aab4c4; } .ammo span.low { color: #ff6050; }
.reload { height: 4px; background: rgba(255, 255, 255, 0.1); margin: 4px 0; border-radius: 2px; overflow: hidden; } .reload i { display: block; height: 100%; background: #ffd040; }
.wsec { font-size: 12px; color: #aab4c4; }
.death { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse, rgba(60, 0, 0, 0.15), rgba(30, 0, 0, 0.55)); pointer-events: auto; gap: 8px; }
.d-title { font-size: 64px; color: #ff4a3d; letter-spacing: 12px; font-weight: 700; animation: annIn 0.5s; }
.d-by { font-size: 18px; color: #ddd; } .d-timer { font-size: 22px; color: #ffd040; }
.d-classes { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.dc { display: flex; flex-direction: column; align-items: center; background: rgba(10, 12, 18, 0.75); border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 10px; padding: 6px 8px; cursor: pointer; font-size: 12px; transition: 0.12s; }
.dc:hover { border-color: #fff; } .dc.sel { border-color: #ffd040; box-shadow: 0 0 14px rgba(255, 200, 40, 0.5); } .dc.locked { opacity: 0.3; }
.dc img { width: 54px; height: 54px; }
.d-hint { color: #aab4c4; font-size: 13px; }
.scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(10, 12, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 16px 20px; display: flex; gap: 20px; min-width: 500px; }
.scoreboard h3 { margin: 0 0 8px; } .scoreboard table { border-collapse: collapse; font-size: 13px; min-width: 330px; }
.scoreboard th { text-align: left; color: #8a94a6; padding: 4px 8px; } .scoreboard td { padding: 4px 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.scoreboard tr.dead { opacity: 0.5; }
.fps { position: absolute; left: 10px; top: 10px; font-size: 12px; color: #9f9; }
.hint { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); background: rgba(10, 12, 18, 0.75); padding: 8px 18px; border-radius: 8px; font-size: 15px; opacity: 0; transition: opacity 0.5s; }
.hint.show { opacity: 1; }

@media (max-width: 900px) {
  .tree { grid-template-columns: 1fr; } .res-grid { grid-template-columns: 1fr; } .campaign { flex-direction: column; } .brief { border-left: none; }
  .hero-list { width: 90px; } .hero-card div { display: none; }
  .killfeed { right: 10px; top: 130px; }
}

.ab .ic, .abil .ai, .fx-icons span, .crate .cr-ic, .menu-btns .btn, .toast { font-family: var(--font), 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif; }
.dash { position: relative; height: 6px; margin-top: 4px; background: rgba(10, 12, 18, 0.7); border-radius: 3px; overflow: hidden; width: 120px; }
.dash i { position: absolute; inset: 0 auto 0 0; background: #6a7a90; } .dash i.ready { background: #3ad0ff; }
.dash span { position: absolute; left: 126px; top: -4px; font-size: 9px; color: #8a94a6; letter-spacing: 1px; white-space: nowrap; }
.dash { overflow: visible; }

.padfocus { outline: 3px solid var(--acc2) !important; outline-offset: 2px; box-shadow: 0 0 18px rgba(58, 208, 255, 0.55) !important; }

.row3 { display: grid; grid-template-columns: 1fr 1.15fr auto; gap: 8px; } .row3 .btn { font-size: 14px; padding: 10px 10px; white-space: nowrap; }
.daily-panel { position: absolute; right: 4vw; top: 8vh; width: min(340px, 40vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.daily-panel h5 { margin: 0 0 8px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--acc); }
.daily-panel > small { color: var(--muted); font-size: 11px; }
.dq { margin-bottom: 10px; } .dq-t { font-size: 14px; } .dq.done .dq-t { color: var(--green); }
.dq-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin: 4px 0 2px; } .dq-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e08a10, #ffd060); } .dq.done .dq-bar i { background: var(--green); }
.dq-r { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.it-up { font-size: 12px; color: var(--acc2); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; letter-spacing: 1px; }
.ach-head { margin: 16px 0; font-size: 16px; } .ach-head .xpbar { margin-top: 6px; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); opacity: 0.6; }
.ach.got { opacity: 1; border-color: rgba(255,176,32,0.5); background: linear-gradient(180deg, rgba(255,176,32,0.12), rgba(255,255,255,0.02)); }
.ach-i { font-size: 32px; width: 44px; text-align: center; font-family: var(--font), 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ach b { display: block; } .ach small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0; } .ach span { font-size: 12px; color: var(--acc); }
.res-daily { margin-top: 8px; font-size: 14px; color: #9fe0a8; } .res-daily.ach-new { color: var(--acc); }
@media (max-width: 1100px) { .daily-panel { display: none; } }

/* ===== Túlélés: fejlesztéskártyák ===== */
.boons { position: absolute; left: 50%; top: 35%; transform: translateX(-50%); z-index: 3; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: boonsIn 0.35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes boonsIn { from { opacity: 0; transform: translate(-50%, 30px) scale(0.92); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.b-title { font-size: 26px; letter-spacing: 6px; color: #ffd23a; }
.b-cards { display: flex; gap: 16px; }
.boon { --rc: #8fb3d9; position: relative; width: 190px; min-height: 200px; padding: 16px 14px 12px; border-radius: 12px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(170deg, rgba(30, 36, 52, 0.95), rgba(12, 14, 22, 0.95)); border: 2px solid var(--rc); box-shadow: 0 0 18px -6px var(--rc), inset 0 0 30px -18px var(--rc); transition: transform 0.12s, box-shadow 0.12s; }
.boon:hover, .boon.sel { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 34px -4px var(--rc), inset 0 0 40px -14px var(--rc); }
.boon.r2 { background: linear-gradient(170deg, rgba(60, 44, 14, 0.95), rgba(18, 14, 8, 0.95)); }
.boon.r2::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 150, 0.35) 50%, transparent 65%) 0 0 / 250% 100%; animation: boonShine 2.4s linear infinite; }
@keyframes boonShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.b-key { position: absolute; top: 6px; left: 9px; font-size: 13px; color: #aab; }
.b-ico { font-size: 46px; line-height: 1.1; filter: drop-shadow(0 0 10px var(--rc)); }
.b-name { font-size: 17px; color: #fff; }
.b-desc { font-size: 13px; color: #c9cfdc; font-weight: 500; line-height: 1.35; flex: 1; }
.b-rar { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--rc); }
.b-foot { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #aab; }
.b-foot .reroll { pointer-events: auto; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 8px; border: 1px solid #ffd23a; background: rgba(40, 32, 8, 0.85); color: #ffd23a; cursor: pointer; }
.b-foot .reroll:disabled { opacity: 0.4; cursor: default; }
.boonbar { position: absolute; left: 16px; bottom: 132px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.boonbar span { --rc: #8fb3d9; position: relative; font-size: 16px; padding: 2px 5px; border-radius: 6px; background: rgba(10, 12, 18, 0.7); border: 1px solid var(--rc); }
.boonbar small { position: absolute; right: -4px; bottom: -5px; font-size: 10px; background: #000; border-radius: 6px; padding: 0 3px; color: #fff; }
@media (max-width: 760px) { .boon { width: 30vw; min-height: 190px; padding: 12px 8px; } .b-ico { font-size: 34px; } .b-cards { gap: 8px; } }
.res-boons { margin-top: 6px; font-size: 14px; color: #dde; } .res-boons span { margin: 0 3px; font-size: 17px; }

/* ===== Megjelenés ===== */
.cos { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.cos-prev { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, rgba(90, 120, 170, 0.25), rgba(10, 12, 18, 0.6)); }
.cos-prev img { width: 150px; height: 150px; image-rendering: auto; }
.cos-prev img + img { width: 96px; height: 96px; margin-top: -10px; opacity: 0.9; }
.cos-prev small { color: #99a; text-align: center; font-size: 11px; } .cos-n { font-size: 12px; color: #ffd23a; }
.cos-list h4 { margin: 10px 0 6px; }
.cos-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cos-sw { position: relative; width: 78px; padding: 6px 4px 5px; border-radius: 9px; background: rgba(20, 24, 34, 0.85); border: 1px solid #2c3446; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; text-align: center; }
.cos-sw:hover { border-color: #6a7a9a; } .cos-sw.sel { border-color: #ffd23a; box-shadow: 0 0 12px -3px #ffd23a; }
.cos-sw img { width: 52px; height: 52px; } .cos-sw span { line-height: 1.15; }
.cs-col { display: block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); margin: 6px 0; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35); }
.cs-def { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 6px 0; border-radius: 50%; border: 2px dashed #556; font-style: normal; font-size: 10px; color: #99a; }
.cos-sw.locked { opacity: 0.5; } .cos-sw.locked img, .cos-sw.locked .cs-col { filter: grayscale(0.8); }
.cs-cost { color: #ffd23a; } .cs-lock { color: #c88; font-size: 9px; line-height: 1.1; }
@media (max-width: 760px) { .cos { grid-template-columns: 1fr; } .cos-prev { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; } }
