/* ==========================================================================
   Armor Grid TECH-FA (2026-11-19). A style.css és az armorgrid.css UTÁN töltődik (a méhsejtes feliratok onnan jönnek).
   Sötét acél, cián izzás, hatszögek; telefonon a tier-sorok vízszintesen görgethetők, az adatlap teljes képernyős.
   ========================================================================== */
.tf { --prem: #e3a62b; --pp: #f08cff; --tfc: 14px; }
.tf-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(26px, 4vw, 44px); text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(31, 168, 255, .14), transparent 70%), var(--bg); }
.tf-hero .hexfx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.tf-hero .wrap { position: relative; }
.tf-hero .h2 { margin-inline: auto; }
.tf-hero .h2::after { left: calc(var(--hx-ext) / -2); background: linear-gradient(90deg, rgba(31, 168, 255, 0), var(--hx) 24%, var(--hx) 76%, rgba(31, 168, 255, 0)); transform-origin: center; }
.tf-hero .lead { margin: 6px auto 0; }

/* fülek */
.tf-tabs { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); margin-top: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.tf-tab { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: min(280px, 44vw); padding: 12px 22px 12px 14px; cursor: pointer;
  font-family: var(--f-display); font-stretch: 66%; font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-text);
  background: linear-gradient(90deg, rgba(8, 15, 24, .95), rgba(8, 15, 24, .7)), var(--hx-mesh) 0 0 / 12px 20.8px; border: 1px solid var(--line-2);
  clip-path: polygon(var(--tfc) 0, 100% 0, 100% calc(100% - var(--tfc)), calc(100% - var(--tfc)) 100%, 0 100%, 0 var(--tfc)); transition: border-color .2s, color .2s, box-shadow .2s; }
.tf-tab img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.tf-tab small { margin-left: auto; font-family: var(--f-mono); font-stretch: 100%; font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.tf-tab:hover { border-color: var(--line-3); }
.tf-tab[aria-selected="true"] { color: #fff; border-color: var(--hx); box-shadow: inset 0 -3px 0 var(--hx), 0 0 26px rgba(31, 168, 255, .25); }
.tf-tab[aria-selected="true"] span { color: var(--hx); text-shadow: 0 0 14px rgba(31, 168, 255, .7); }

.tf-panel { padding-bottom: clamp(40px, 6vw, 80px); }
.tf-sec { padding-top: clamp(40px, 6vw, 72px); }
.tf-sec > .wrap > .lead { margin-bottom: clamp(18px, 3vw, 28px); }
.tf-empty { color: var(--muted); }

/* hatszög-jelvény (tier) */
.tf-hex { display: grid; place-items: center; width: 64px; height: 72px; clip-path: var(--hx-dot); background: linear-gradient(180deg, #6fd0ff, #1fa8ff 55%, #0f86d6);
  font-family: var(--f-display); font-stretch: 70%; font-weight: 800; font-size: 1.5rem; color: #001523; }
.tf-hex--sm { width: 48px; height: 54px; font-size: 1.15rem; flex: none; }

/* szűrők */
.tf-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ice-2); background: rgba(31, 168, 255, .05); border: 1px solid var(--line-2); transition: background .2s, border-color .2s, color .2s; }
.tf-chip img { width: 22px; height: 22px; object-fit: contain; }
.tf-chip:hover { border-color: var(--line-3); }
.tf-chip[aria-pressed="true"] { color: #001523; background: var(--hx); border-color: var(--hx); }
.tf-chip--p1[aria-pressed="true"] { background: var(--prem); border-color: var(--prem); }
.tf-chip--p2[aria-pressed="true"] { background: var(--pp); border-color: var(--pp); }

/* tier-létra */
.tf-tier { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.tf-tier__badge { position: sticky; top: calc(var(--nav-h) + 12px); display: grid; justify-items: center; gap: 6px; }
.tf-tier__badge small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tf-tier__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* járműkártya */
.tf-veh { display: flex; flex-direction: column; padding: 0; text-align: left; cursor: pointer; color: var(--text); font: inherit; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); clip-path: polygon(var(--tfc) 0, 100% 0, 100% calc(100% - var(--tfc)), calc(100% - var(--tfc)) 100%, 0 100%, 0 var(--tfc));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; animation: tfIn .5s var(--ease) both; }
.tf-veh:hover, .tf-veh:focus-visible { transform: translateY(-3px); border-color: var(--hx); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(31, 168, 255, .22); outline: none; }
.tf-veh--p1 { border-color: rgba(227, 166, 43, .45); }
.tf-veh--p2 { border-color: rgba(240, 140, 255, .45); }
.tf-veh--p1:hover { border-color: var(--prem); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(227, 166, 43, .25); }
.tf-veh--p2:hover { border-color: var(--pp); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(240, 140, 255, .28); }
.tf-veh__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0f15; }
.tf-veh__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tf-veh:hover .tf-veh__img img { transform: scale(1.05); }
.tf-veh__type { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(5, 7, 10, .75); border: 1px solid var(--line-2); }
.tf-veh__type img { width: 26px; height: 26px; object-fit: contain; }
.tf-prem { position: absolute; right: 0; top: 10px; padding: 4px 10px 4px 14px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #1a1000; background: var(--prem); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.tf-prem--pp { color: #24002a; background: linear-gradient(90deg, #ffb3ff, var(--pp)); }
.tf-veh__body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.tf-veh__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tf-veh__name b { font-family: var(--f-display); font-stretch: 66%; font-weight: 750; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.tf-veh__fr { width: 22px; height: 22px; object-fit: contain; opacity: .9; }
.tf-veh__role { color: var(--muted); font-size: .88rem; }
.tf-veh__stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-family: var(--f-mono); font-size: 12px; color: var(--ice-2); }
.tf-veh__stats span { display: inline-flex; align-items: center; gap: 5px; }
.tf-veh__stats img { width: 16px; height: 16px; object-fit: contain; opacity: .85; }
.tf-veh__price { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-family: var(--f-display); font-stretch: 90%; font-weight: 700; color: #ffd0ff; }
.tf-veh__price img { width: 18px; height: 18px; filter: drop-shadow(0 0 5px rgba(232, 110, 255, .5)); }
@keyframes tfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* fejlesztési ágak */
.tf-upg { display: grid; gap: 18px; }
.tf-branch { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); padding: clamp(14px, 2.4vw, 22px);
  clip-path: polygon(var(--tfc) 0, 100% 0, 100% calc(100% - var(--tfc)), calc(100% - var(--tfc)) 100%, 0 100%, 0 var(--tfc)); }
.tf-branch__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.tf-branch__ico { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(31, 168, 255, .35)); }
.tf-branch h3, .tf-card h3, .tf-ammo h3, .tf-sold h3, .tf-gear h3, .tf-iupg h3 { margin: 0 0 4px; font-family: var(--f-display); font-stretch: 70%; font-weight: 750; font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; }
.tf-branch p, .tf-card p { margin: 0 0 8px; color: var(--muted); }
.tf-branch__tot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tf-branch__tot small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tf-eff { display: inline-block; padding: 4px 9px; font-family: var(--f-mono); font-size: 12px; color: var(--hx); background: rgba(31, 168, 255, .08); border: 1px solid rgba(127, 212, 255, .25); }
.tf-eff--dim { color: var(--ice-2); border-color: var(--line-2); background: transparent; }
.tf-req { display: inline-block; margin-top: 8px; padding: 4px 9px; font-size: .85rem; color: #ffd68a; border: 1px dashed rgba(242, 177, 60, .45); }
.tf-steps { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.tf-step { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; }
.tf-step__img { position: relative; display: block; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 60%, rgba(31, 168, 255, .12), transparent 70%), #0a0f15; border: 1px solid var(--line); overflow: hidden; }
.tf-step__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.tf-step:hover .tf-step__img img { transform: scale(1.06); }
.tf-step__n { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 28px; height: 31px; clip-path: var(--hx-dot); background: var(--hx); color: #001523; font-family: var(--f-display); font-weight: 800; font-size: .9rem; }
.tf-step b { font-size: .92rem; line-height: 1.25; }
.tf-step__eff { font-family: var(--f-mono); font-size: 11.5px; color: var(--hx); }

/* kártyarács */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tf-card { display: flex; gap: 14px; padding: 14px 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); transition: border-color .2s; }
.tf-card:hover { border-color: var(--line-3); }
.tf-card__ico { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(31, 168, 255, .25)); }
.tf-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* lőszer */
.tf-ammo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tf-ammo { padding: 14px 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.tf-ammo h3 small { font-family: var(--f-mono); font-stretch: 100%; font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-left: 6px; }
.tf-ammo ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tf-ammo li { display: flex; gap: 12px; align-items: flex-start; }
.tf-ammo li img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.tf-ammo li div { display: grid; gap: 2px; }
.tf-ammo li span { color: var(--muted); font-size: .9rem; }
.tf-ammo li em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--hx); }

/* gyalogos: katonák */
.tf-sold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tf-sold { display: flex; gap: 16px; padding: 14px 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); animation: tfIn .5s var(--ease) both; }
.tf-sold--top { border-color: rgba(240, 140, 255, .5); box-shadow: 0 0 24px rgba(240, 140, 255, .12); }
.tf-sold__img { flex: none; width: 104px; height: 116px; clip-path: var(--hx-dot); background: linear-gradient(180deg, #6fd0ff, #0f86d6); padding: 3px; }
.tf-sold__img img { width: 100%; height: 100%; object-fit: cover; clip-path: var(--hx-dot); }
.tf-sold h3 .tf-prem { position: static; display: inline-block; vertical-align: middle; font-size: 9.5px; padding: 3px 8px; clip-path: none; }
.tf-sold__st { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; font-family: var(--f-mono); font-size: 12px; color: var(--ice-2); }
.tf-sold__st span { display: inline-flex; align-items: center; gap: 5px; }
.tf-sold__st img { width: 16px; height: 16px; }
.tf-sold ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; display: grid; gap: 2px; }

/* gyalogos: fegyverek */
.tf-gclass + .tf-gclass { margin-top: 26px; }
.tf-gclass__t { margin: 0 0 12px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--hx); }
.tf-guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tf-gun { padding: 12px 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); transition: border-color .2s; animation: tfIn .5s var(--ease) both; }
.tf-gun:hover { border-color: var(--hx); }
.tf-gun__img { display: block; aspect-ratio: 600 / 220; background: radial-gradient(ellipse at 50% 60%, rgba(31, 168, 255, .1), transparent 70%); }
.tf-gun__img img { width: 100%; height: 100%; object-fit: contain; }
.tf-gun h4 { margin: 8px 0 6px; font-family: var(--f-display); font-stretch: 70%; font-weight: 750; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.tf-gun h4 small { font-family: var(--f-mono); font-stretch: 100%; font-weight: 500; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.tf-gun dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 0; font-size: .88rem; }
.tf-gun dt { color: var(--muted); }
.tf-gun dd { margin: 0; text-align: right; font-family: var(--f-mono); color: var(--ice-2); }
.tf-gun dd.tf-hot { color: var(--hx); text-shadow: 0 0 10px rgba(31, 168, 255, .5); }

/* gyalogos: felszerelés és fejlesztés */
.tf-gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tf-gear { padding: 12px 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.tf-gear > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.tf-iupg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.tf-iupg { padding: 14px 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.tf-iupg header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tf-iupg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tf-iupg li { display: grid; gap: 4px; }
.tf-iupg li > span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.tf-pips { display: flex; gap: 4px; }
.tf-pips i { width: 22px; height: 6px; background: linear-gradient(90deg, var(--hx), #1fa8ff); opacity: calc(.35 + var(--i) * .13); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }

/* jármű-adatlap */
.tf-modal { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--hx); color: var(--text); background: var(--bg-2); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 40px rgba(31, 168, 255, .2); }
.tf-modal::backdrop { background: rgba(2, 4, 8, .78); backdrop-filter: blur(4px); }
.tf-modal__x { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--text); background: rgba(5, 7, 10, .8); border: 0; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tf-modal__x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.tf-det__img { position: relative; aspect-ratio: 16 / 9; background: #0a0f15; }
.tf-det__img img { width: 100%; height: 100%; object-fit: cover; }
.tf-det__head { display: flex; align-items: center; gap: 14px; padding: 16px clamp(16px, 3vw, 24px) 0; }
.tf-det__head h3 { margin: 0; font-family: var(--f-display); font-stretch: 66%; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: .04em; text-transform: uppercase; }
.tf-det__head p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.tf-ico { width: 22px; height: 22px; object-fit: contain; }
.tf-det__price { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-stretch: 90%; font-weight: 800; font-size: 1.4rem; color: #ffd0ff; }
.tf-det__desc { padding: 10px clamp(16px, 3vw, 24px) 0; margin: 0; color: var(--ice-2); }
.tf-det__kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 10px clamp(16px, 3vw, 24px) 0; margin: 0; }
.tf-det__kv dt { color: var(--muted); }
.tf-det__kv dd { margin: 0; }
.tf-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 22px; padding: 16px clamp(16px, 3vw, 24px) 22px; }
.tf-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; }
.tf-bar__l { color: var(--muted); font-size: .88rem; }
.tf-bar__v { font-family: var(--f-mono); color: var(--text); }
.tf-bar__v small { color: var(--muted); }
.tf-bar__t { grid-column: 1 / -1; height: 5px; background: rgba(150, 178, 206, .12); }
.tf-bar__t i { display: block; height: 100%; background: linear-gradient(90deg, #0f86d6, var(--hx)); box-shadow: 0 0 10px rgba(31, 168, 255, .45); }

/* telefon */
@media (max-width: 760px) {
  .tf-tab { min-width: 0; flex: 1 1 0; padding: 10px 12px; gap: 8px; }
  .tf-tab img { width: 32px; height: 32px; }
  .tf-tab small { display: none; }
  .tf-tier { grid-template-columns: 1fr; gap: 10px; }
  .tf-tier__badge { position: static; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .tf-tier__badge .tf-hex { width: 44px; height: 50px; font-size: 1.1rem; }
  .tf-tier__row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tf-tier__row > * { scroll-snap-align: start; }
  .tf-steps { grid-auto-columns: 62%; }
  .tf-branch__head { flex-direction: column; gap: 8px; }
  .tf-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .tf-sold { flex-direction: column; align-items: center; text-align: center; }
  .tf-sold__st { justify-content: center; }
  .tf-sold ul { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .tf-veh, .tf-sold, .tf-gun { animation: none; } .tf-veh, .tf-veh__img img, .tf-step__img img { transition: none; } }
/* a vízszintesen görgethető sávok ne szélesítsék ki a rácsot */
.tf-upg > *, .tf-branch, .tf-tier > *, .tf-tier__row > *, .tf-grid > *, .tf-ammo-grid > *, .tf-sold-grid > *, .tf-guns > *, .tf-gear-grid > *, .tf-iupg-grid > * { min-width: 0; }
.tf-steps, .tf-tier__row { max-width: 100%; }
.tf-panel, .tf-hero { overflow-x: clip; }
.tf-steps, .tf-tier__row { scrollbar-width: thin; scrollbar-color: rgba(127, 212, 255, .55) transparent; }
.tf-steps::-webkit-scrollbar, .tf-tier__row::-webkit-scrollbar { height: 6px; }
.tf-steps::-webkit-scrollbar-thumb, .tf-tier__row::-webkit-scrollbar-thumb { background: rgba(127, 212, 255, .55); }
.tf-det__img .tf-prem { top: auto; bottom: 14px; font-size: 12px; padding: 6px 14px 6px 18px; }
/* 11-19 (a tulaj): PC-n tierenként 3/2 -- felül a 3 alapjármű, alatta új sorban a 2 prémium, egyforma kártyamérettel */
@media (min-width: 761px) {
  .tf-tier__row { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
  .tf-veh--ujsor { grid-column-start: 1; }
}
