/* ═══════════════════════════════════════════════════════════════════════
   styles/halal.css — HALÁL-KÉPERNYŐ: BEVETÉSI TÉRKÉP (2026-09-25)
   ───────────────────────────────────────────────────────────────────────
   A főmenü nyelvén (styles/menu.css): ugyanaz az acél-paletta, EGY meleg
   kiemelő fény (--ih-fenny), a .ih-panel / .ih-gomb / .ih-tolto-sav elemek.
   Nincs vörös teljes képernyő, nincs emoji, a számok egyenletes szélességűek.
   Kontraszt: a menü mért párjai érvényesek (#e8eef3 / #9aabb8 / #e0c68c a
   #171c21 panelen: 13,4 / 6,4 / 9,8 : 1); a fátyol majdnem átlátszatlan,
   tehát a szöveg nem a mögötte futó jelenettől függ.
   ⚠ NINCS backdrop-filter: a teljes képernyős elmosás a mögötte futó
   WebGL-vásznon KÉPKOCKÁNKÉNT GPU-munka lenne.
   ═══════════════════════════════════════════════════════════════════════ */

#ihHalal {
    position: fixed;
    inset: 0;
    z-index: 2500;                 /* a HUD és a G-térkép (2400) fölött, a főmenü (30000) alatt */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 3vh 24px;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    color: var(--ih-szoveg);
    background: radial-gradient(ellipse at 50% 42%, rgba(15, 19, 23, 0.90) 0%, rgba(8, 11, 14, 0.96) 72%);
    user-select: none;
}
#ihHalal.ih-lathato { display: flex; animation: ihHalalBe 240ms ease-out; }
@keyframes ihHalalBe { from { opacity: 0; } to { opacity: 1; } }

/* ── A FEJ ──────────────────────────────────────────────────────────── */
.ih-halal-fej { text-align: center; }
.ih-halal-cim {
    font: 700 34px/1 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.42em;
    padding-left: 0.42em;          /* a betűköz jobb oldali többletét egyensúlyozza */
    text-transform: uppercase;
    color: var(--ih-szoveg);
}
.ih-halal-cim::after {
    content: '';
    display: block;
    width: 96px;
    height: 2px;
    margin: 13px auto 0;
    background: var(--ih-fenny);
}
.ih-halal-gyilkos {
    margin-top: 10px;
    min-height: 17px;
    font: 600 13px/1.3 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.08em;
    color: var(--ih-halk);
}

/* ── A TÉRKÉP ÉS A PANEL ────────────────────────────────────────────── */
.ih-halal-test {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    max-width: 100%;
}
.ih-halal-terkep {
    position: relative;
    flex: 0 0 auto;
    border: 1px solid var(--ih-acel-4);
    border-radius: 3px;
    overflow: hidden;
    background: #05070a;
    box-shadow: var(--ih-arny);
}
.ih-halal-cv { display: block; }
.ih-halal-jelek { position: absolute; inset: 0; pointer-events: none; }
.ih-halal-sugo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 12px 9px;
    text-align: center;
    font: 600 12px/1.3 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.06em;
    color: var(--ih-szoveg);
    background: linear-gradient(rgba(8, 11, 14, 0), rgba(8, 11, 14, 0.88));
    pointer-events: none;
}

/* ── JELEK: DOM-elemek a vászon fölött (kattintható, CSS-pulzálás) ──── */
.ih-halal-jel { position: absolute; transform: translate(-50%, -50%); }
.ih-halal-jel span {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    white-space: nowrap;
    font: 700 10.5px/1 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ih-szoveg);
    text-shadow: 0 1px 2px #000, 0 0 3px #000;
    pointer-events: none;
}
/* a CORE: ciánkék rombusz (a játékbeli kristály színe), körülötte a kijelölés gyűrűje */
.ih-halal-core {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
}
.ih-halal-core::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #8fd8e0;
    border: 2px solid rgba(6, 9, 12, 0.92);
}
.ih-halal-core::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(143, 216, 224, 0.28);
    border-radius: 50%;
    box-sizing: border-box;
}
.ih-halal-core:hover::after { border-color: rgba(224, 198, 140, 0.55); }
.ih-halal-core:focus-visible { outline: none; }
.ih-halal-core:focus-visible::after { border-color: var(--ih-fenny); }
.ih-halal-core.ih-kijelolt::after {
    border-color: var(--ih-fenny);
    animation: ihHalalPulz 1.4s ease-in-out infinite;
}
.ih-halal-core.ih-kijelolt span { color: var(--ih-fenny); }
@keyframes ihHalalPulz {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 198, 140, 0.50); }
    50%      { box-shadow: 0 0 0 8px rgba(224, 198, 140, 0); }
}
/* a hagyaték-láda: halvány réz kereszt, felirat nélkül (a panel sora a jelmagyarázat), nem kattintható */
.ih-halal-hagyatek { width: 14px; height: 14px; }
.ih-halal-hagyatek::before,
.ih-halal-hagyatek::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 3px;
    background: #d6a47e;
    border: 1px solid rgba(6, 9, 12, 0.9);
    transform: translate(-50%, -50%) rotate(45deg);
}
.ih-halal-hagyatek::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ── A CSAPAT KEZDŐPONTJA (2026-09-30): zászló, a CORE jelének mintájára ── */
.ih-halal-kezdo {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
}
.ih-halal-zaszlo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ih-halal-kezdo::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(224, 198, 140, 0.26);
    border-radius: 50%;
    box-sizing: border-box;
}
.ih-halal-kezdo:hover::after { border-color: rgba(224, 198, 140, 0.55); }
.ih-halal-kezdo:focus-visible { outline: none; }
.ih-halal-kezdo:focus-visible::after { border-color: var(--ih-fenny); }
.ih-halal-kezdo.ih-kijelolt::after {
    border-color: var(--ih-fenny);
    animation: ihHalalPulz 1.4s ease-in-out infinite;
}
.ih-halal-kezdo.ih-kijelolt span { color: var(--ih-fenny); }

/* ── AZ OTTHON (2026-10-24): ház-jel a kezdőpont mintájára — a saját és a squadtársak ágyas birtokai ── */
.ih-halal-otthonok { position: absolute; inset: 0; pointer-events: none; }
.ih-halal-otthon { width: 34px; height: 34px; padding: 0; margin: 0; background: transparent; border: 0; cursor: pointer; pointer-events: auto; }
.ih-halal-haz { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); pointer-events: none; }
.ih-halal-otthon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(224, 198, 140, 0.26);
    border-radius: 50%;
    box-sizing: border-box;
}
.ih-halal-otthon:hover::after { border-color: rgba(224, 198, 140, 0.55); }
.ih-halal-otthon:focus-visible { outline: none; }
.ih-halal-otthon:focus-visible::after { border-color: var(--ih-fenny); }
.ih-halal-otthon.ih-kijelolt::after { border-color: var(--ih-fenny); animation: ihHalalPulz 1.4s ease-in-out infinite; }
.ih-halal-otthon.ih-kijelolt span { color: var(--ih-fenny); }

/* ── A CSAPATTÁRSAK (2026-09-30): kék nyíl = csapattárs (csak jel), zöld nyíl = squad-társ
      (kattintható, mint a CORE; a neve fölötte). A nyilat a JS forgatja (180° − yaw). ── */
.ih-halal-tarsak { position: absolute; inset: 0; pointer-events: none; }
.ih-halal-tars { width: 15px; height: 15px; pointer-events: none; }
.ih-halal-nyil { position: absolute; inset: 0; display: block; pointer-events: none; }
.ih-halal-sqtars {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
}
.ih-halal-sqtars .ih-halal-nyil { inset: auto; left: 50%; top: 50%; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; }
.ih-halal-sqtars::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(78, 224, 106, 0.30);
    border-radius: 50%;
    box-sizing: border-box;
}
.ih-halal-sqtars span { color: #4ee06a; letter-spacing: 0.08em; }
.ih-halal-sqtars:hover::after { border-color: rgba(224, 198, 140, 0.55); }
.ih-halal-sqtars:focus-visible { outline: none; }
.ih-halal-sqtars:focus-visible::after { border-color: var(--ih-fenny); }
.ih-halal-sqtars.ih-kijelolt::after {
    border-color: var(--ih-fenny);
    animation: ihHalalPulz 1.4s ease-in-out infinite;
}
/* tűzharcban: vörös gyűrű + felirat — kijelölhető, a bevetés a harc végén indul */
.ih-halal-sqtars.ih-harc::after { border-color: #ff6b5e; border-style: dashed; }
.ih-halal-sqtars.ih-harc span::after { content: ' · harcban'; color: #ff6b5e; }
/* nem elérhető (halott, föld alatt, úszik): halvány */
.ih-halal-sqtars.ih-nem { opacity: 0.5; }
.ih-halal-sqtars.ih-nem span::after { content: ' · nem elérhető'; color: var(--ih-halk); }

/* a jobb oszlop: a bevetés-panel és alatta a squad-panel (styles/squad.css). A squad-lista
   saját magasság-korláttal görget — az oszlop maga nem (a panelek árnyéka ne vágódjon le). */
.ih-halal-jobb {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
}
.ih-panel.ih-halal-sq { width: 300px; margin: 0; }
.ih-halal-sq .ih-sq-lista { max-height: 26vh; overflow-y: auto; }

/* ── A BEVETÉS-PANEL ────────────────────────────────────────────────── */
.ih-panel.ih-halal-panel {
    width: 300px;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.ih-halal-sor {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 53, 61, 0.6);
}
.ih-halal-cimke {
    font: 600 11px/1 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ih-halk);
}
.ih-halal-ertek {
    font: 600 13px/1.25 'Segoe UI', system-ui, sans-serif;
    color: var(--ih-szoveg);
    text-align: right;
}
.ih-halal-szam {
    font: 700 14px/1 'Segoe UI', system-ui, sans-serif;   /* egyenletes számjegyek, a mértékegység nem szakad el */
    font-variant-numeric: tabular-nums;
}
/* a hagyaték jelmagyarázata: ugyanaz a kereszt, mint a térképen */
.ih-halal-kereszt {
    position: relative;
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 7px;
    vertical-align: -1px;
}
.ih-halal-kereszt::before,
.ih-halal-kereszt::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 3px;
    background: #d6a47e;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ih-halal-kereszt::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ih-halal-sav { margin: 14px 0 16px; }
.ih-halal-gomb { margin: 0; text-align: center; }
.ih-halal-gomb .ih-alsor { text-align: center; }
.ih-halal-gomb.ih-elesitve { border-color: var(--ih-fenny); }

/* keskeny ablakban a panel a térkép alá kerül */
@media (max-width: 899px) {
    .ih-halal-test { flex-direction: column; align-items: center; }
}
