@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary: #22e5ec;
  --primary-2: #6ee7ff;
  --dark: #0b141b;
  --darker: #060a0e;
  --accent: #c9d6dc;
  --success: #3abe78;
  --warning: #ffbe3c;
  --danger: #dc3c3c;
  --text: #eef7f8;
  --muted: rgba(238, 247, 248, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.055);
  --glow: rgba(34, 229, 236, 0.45);
  --font-display: "Rajdhani", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.custom-cursor body,
html.custom-cursor a,
html.custom-cursor button,
html.custom-cursor summary { cursor: none; }
html.custom-cursor input,
html.custom-cursor textarea,
html.custom-cursor select { cursor: auto; }

body {
  margin: 0;
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(34, 229, 236, 0.05), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(34, 229, 236, 0.04), transparent 30%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow-x: hidden;
}
body.loaded { opacity: 1; }
html.no-js body { opacity: 1; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: rgba(34, 229, 236, 0.25); border-radius: 999px; border: 2px solid var(--darker); }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 229, 236, 0.45); }
* { scrollbar-color: rgba(34, 229, 236, 0.3) var(--darker); scrollbar-width: thin; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.5em; letter-spacing: 0.01em; }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--primary);
  box-shadow: 0 0 8px 2px var(--glow);
  transition: opacity 0.2s ease;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(34, 229, 236, 0.5);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
html.cursor-hover .cursor-ring { width: 52px; height: 52px; background: rgba(34, 229, 236, 0.08); border-color: var(--primary); }
html.cursor-hover .cursor-dot { opacity: 0; }
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body { transition: none; opacity: 1; }
}

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 27, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(9, 16, 22, 0.92); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.navbar-inner { display: flex; align-items: center; justify-content: flex-start; padding: 12px 28px; gap: 36px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.brand img { border-radius: 6px; filter: drop-shadow(0 0 6px rgba(34,229,236,0.35)); }
.brand em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; gap: 24px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: right 0.25s ease; border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
/* ---- "Játék infó" legördülő panel (a fejléc navigációjában) ---- */
.game-info-dropdown { position: relative; }
.game-info-trigger {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  color: var(--muted); font: inherit; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  padding: 4px 0; transition: color 0.2s ease;
}
.game-info-trigger:hover { color: var(--text); }
.game-info-trigger .caret { font-size: 0.7em; transition: transform 0.2s ease; display: inline-block; }
.game-info-dropdown.open .game-info-trigger { color: var(--text); }
.game-info-dropdown.open .caret { transform: rotate(180deg); }
.game-info-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, -8px);
  width: min(680px, 86vw); background: rgba(11, 18, 25, 0.98); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
  /* FONTOS: content-visibility:hidden nélkül a böngésző a panel MIND A
     41 képét (27 agent + 4 szerepkör-ikon + 10 nagyfelbontású térkép-
     borítókép) azonnal letöltötte volna MINDEN oldalbetöltéskor — a
     fejléc minden oldalon ott van —, még akkor is, ha a látogató soha
     nem nyitja meg a menüt. Ez okozta az érzékelhető lassulást. A
     content-visibility:hidden ezt teljesen kihagyja (nem tölt, nem
     renderel), amíg meg nem nyitod a panelt — onnantól a kép-letöltés
     is csak akkor indul el. */
  content-visibility: hidden;
}
.game-info-dropdown.open .game-info-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  content-visibility: visible;
}
.game-info-panel h5 {
  font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin: 0 0 10px;
}
.game-info-col-side { display: flex; flex-direction: column; gap: 20px; }
.gi-agent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.gi-agent { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gi-agent-icon-wrap { position: relative; width: 44px; height: 44px; }
.gi-agent-icon {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border);
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%; animation: gi-shimmer 1.4s ease-in-out infinite;
}
.gi-agent-role {
  position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: #0b1219; border: 1px solid var(--border); padding: 2px;
}
/* Amíg egy kép még tölt, halvány "csillanó" placeholder-t mutatunk
   (kép betöltése után a böngésző ezt automatikusan eltakarja a valódi
   képpel) — így nem üres/törtnek tűnő dobozok látszanak a rövid
   betöltési pillanat alatt, amikor a panelt megnyitod. */
@keyframes gi-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.gi-agent span { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }
.gi-rank-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gi-rank-pill {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  border: 1px solid; background: rgba(255,255,255,0.03);
}
.gi-map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gi-map {
  height: 52px; border-radius: 8px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 6px 8px; border: 1px solid var(--border);
}
.gi-map span { font-size: 0.72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.gi-footnote { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.68rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
@media (max-width: 767px) {
  .game-info-panel {
    position: static; transform: none; width: 100%; margin-top: 10px; grid-template-columns: 1fr;
    display: none; box-shadow: none;
  }
  .game-info-dropdown.open .game-info-panel { display: grid; transform: none; }
  .gi-agent-grid { grid-template-columns: repeat(4, 1fr); max-height: 220px; }
}

.navbar-auth { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch {
  display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--muted); transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--primary); color: #0b1017; }
.user-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 0.875rem; }
.user-chip img { border-radius: 999px; }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); position: relative; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 20px; height: 2px; background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.btn-primary-sm, .btn-primary {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #06181a; font-weight: 700;
  border-radius: 8px; padding: 9px 18px; border: none; cursor: pointer; font-size: 0.9rem;
  box-shadow: 0 4px 18px rgba(34, 229, 236, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary-sm:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(34, 229, 236, 0.38); filter: brightness(1.05); }
.btn-primary-sm:active, .btn-primary:active { transform: translateY(0); }
.btn-ghost-sm, .btn-ghost {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 18px; cursor: pointer; font-size: 0.9rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-ghost-sm:hover, .btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(34,229,236,0.4); transform: translateY(-1px); }
.btn-danger {
  position: relative; overflow: hidden; background: transparent; border: 1px solid rgba(220,60,60,0.4); color: var(--danger);
  border-radius: 8px; padding: 7px 16px; cursor: pointer; font-size: 0.85rem; transition: background 0.18s ease, transform 0.18s ease;
}
.btn-danger:hover { background: rgba(220,60,60,0.12); transform: translateY(-1px); }
.btn-ripple {
  position: absolute; border-radius: 999px; background: rgba(255,255,255,0.55); pointer-events: none;
  width: 12px; height: 12px; transform: translate(-50%, -50%) scale(0);
  animation: btn-ripple-anim 0.55s ease-out forwards;
}
@keyframes btn-ripple-anim { to { transform: translate(-50%, -50%) scale(18); opacity: 0; } }

/* Flash messages */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; border-left: 3px solid transparent; }
.flash-success { background: rgba(58,190,120,0.12); border: 1px solid rgba(58,190,120,0.3); border-left-color: var(--success); color: var(--success); }
.flash-error { background: rgba(220,60,60,0.12); border: 1px solid rgba(220,60,60,0.3); border-left-color: var(--danger); color: var(--danger); }
.flash-info { background: rgba(34,229,236,0.1); border: 1px solid rgba(34,229,236,0.3); border-left-color: var(--primary); color: var(--primary); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: #06181a;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 110px 16px 96px;
}
/* Háttérvideó — natív <video> tag (NEM YouTube-beágyazás, nincs
   player-keret/logó/felirat), egy jogtiszta, Pixabay Content License alatt
   szabadon felhasználható, hurkolható neon-absztrakt klip. A .hero mögötti
   teljes területet kitölti, a ::after pszeudo-elem sötétíti/tintázi, hogy
   a szöveg fölötte olvasható maradjon. A logó-pulzálás/részecske-canvas/
   tartalom mind efölött ül. */
.hero-video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video-bg video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 100%; min-height: 100%;
  object-fit: cover; border: 0;
}
.hero-video-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,18,0.86) 0%, rgba(6,16,18,0.62) 45%, rgba(6,16,18,0.9) 100%),
              radial-gradient(circle at 20% 20%, rgba(34,229,236,0.14), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(34,229,236,0.08), transparent 40%);
}
.hero-canvas { position: absolute; z-index: 1; inset: -6%; width: 112%; height: 112%; pointer-events: none; opacity: 0.8; will-change: transform; }
.hero > .wrap { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block; margin-bottom: 16px; border-radius: 999px; border: 1px solid rgba(34,229,236,0.4);
  background: rgba(34,229,236,0.1); padding: 4px 16px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary);
}
.hero img.logo {
  max-width: 100%; height: auto; width: 208px; margin: 0 auto; display: block;
  filter: drop-shadow(0 0 22px rgba(34, 229, 236, 0.35));
  animation: logo-pulse 4.5s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(34, 229, 236, 0.3)); }
  50% { filter: drop-shadow(0 0 34px rgba(34, 229, 236, 0.55)); }
}
.hero .tagline { margin-top: 8px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.hero .tagline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-shine 5s linear infinite;
}
@keyframes text-shine { to { background-position: 200% center; } }
.hero p.lead { max-width: 640px; margin: 24px auto 0; font-size: 1.125rem; color: var(--muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.hero .member-count { margin-top: 32px; font-size: 0.875rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.hero .member-count .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 8px var(--success); animation: dot-blink 2s ease-in-out infinite; }
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero img.logo, .hero .tagline em, .hero .member-count .dot { animation: none; }
}

/* ============ Sections ============ */
section.section { max-width: 1152px; margin: 0 auto; padding: 72px 16px; }
section.section.alt { border-top: 1px solid var(--border); background: rgba(7,13,18,0.6); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

/* ============ Cards ============ */
.card {
  border-radius: 14px; border: 1px solid var(--border); background: var(--card-bg); padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,229,236,0.35); background: var(--card-bg-hover); box-shadow: 0 14px 34px rgba(0,0,0,0.3); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* News */
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.news-card .excerpt { color: var(--accent); font-size: 0.9rem; }
.news-card a.readmore { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 0.875rem; transition: gap 0.15s ease; }
.news-card a.readmore:hover { text-decoration: underline; }

/* ============ Forms ============ */
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--accent); }
input[type=text], input[type=number], input[type=search], input[type=password], input[type=email], textarea, select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 10px 12px; font-size: 0.9rem; font-family: inherit; margin-bottom: 16px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); background: rgba(34,229,236,0.06);
  box-shadow: 0 0 0 3px rgba(34,229,236,0.15);
}
textarea { min-height: 160px; resize: vertical; }
select { cursor: pointer; }
select, select option { color-scheme: dark; }
select option { background-color: #0e1922; color: var(--text); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.checkbox-row input { width: auto; margin: 0; }
details.card summary { list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::before { content: "▸ "; color: var(--primary); transition: transform 0.2s ease; display: inline-block; }
details.card[open] summary::before { transform: rotate(90deg); }

/* ============ Party cards ============ */
.party-card {
  border-radius: 14px; border: 1px solid var(--border); background: var(--card-bg); padding: 22px; margin-bottom: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.party-card:hover { border-color: rgba(34,229,236,0.3); background: var(--card-bg-hover); box-shadow: 0 14px 34px rgba(0,0,0,0.28); }
.party-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.party-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.party-card .origin { font-size: 0.75rem; color: var(--muted); }
.badge { display: inline-block; border-radius: 999px; background: rgba(34,229,236,0.12); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; }
.party-members { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.party-member { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 0.8rem; }
.party-member img { border-radius: 999px; }
.party-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }

table.roster { width: 100%; border-collapse: collapse; }
table.roster th, table.roster td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.roster th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
table.roster tbody tr { transition: background 0.15s ease; }
table.roster tbody tr:hover { background: rgba(255,255,255,0.03); }

.pagination { display: flex; gap: 8px; margin-top: 32px; justify-content: center; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.85rem; }
.pagination a:hover { background: rgba(255,255,255,0.06); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--darker); padding: 48px 0 24px; font-size: 0.875rem; color: var(--muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 10px; }
.footer-brand img { border-radius: 6px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { transition: color 0.15s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { border-color: rgba(34,229,236,0.5); background: rgba(34,229,236,0.1); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom p { margin: 0; display: flex; align-items: center; gap: 8px; }
.muted { color: rgba(238,247,248,0.35); }

/* --------------------------------------------------------------------- */
/* Rólunk — vezetőségi kártyák                                            */
/* --------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 28px;
}
.team-card {
  position: relative;
  text-align: center;
  padding: 32px 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 229, 236, 0.35);
  background: var(--card-bg-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.team-card.is-ceo {
  border-color: rgba(255, 209, 102, 0.35);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.07), var(--card-bg));
}
.team-card.is-ceo:hover { border-color: rgba(255, 209, 102, 0.55); }

.team-avatar-wrap {
  width: 128px; height: 128px; margin: 0 auto 18px;
  border-radius: 999px; padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.team-card.is-ceo .team-avatar-wrap { background: linear-gradient(135deg, #ffd166, #ff9f43); }
.team-avatar-wrap img {
  width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block;
  border: 3px solid #050a0e;
}

.team-title {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
  color: var(--primary); background: rgba(34, 229, 236, 0.1); border: 1px solid rgba(34, 229, 236, 0.25);
}
.team-card.is-ceo .team-title {
  color: #ffd166; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.3);
}

.team-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.team-name em { color: var(--primary); font-style: normal; }
.team-card.is-ceo .team-name em { color: #ffd166; }

.team-agents { margin-top: 20px; display: flex; gap: 22px; justify-content: center; }
.agent-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.role-icon-img {
  width: 34px; height: 34px; padding: 6px; box-sizing: border-box;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  object-fit: contain; filter: drop-shadow(0 0 6px rgba(34, 229, 236, 0.25));
}
.team-card.is-ceo .role-icon-img { filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.3)); }
.agent-icon-img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover;
  background: #0e1922; border: 1px solid var(--border);
}
.agent-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

/* ============ Competitive felállás (competitive.php) ============ */
.comp-meta-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 28px; }
.comp-map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.comp-map-card { padding: 0; overflow: hidden; }
.comp-map-banner {
  position: relative; height: 96px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 16px;
}
.comp-map-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.comp-wr-badge, .comp-new-badge {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  align-self: center;
}
.comp-wr-badge { color: var(--primary); background: rgba(34, 229, 236, 0.14); border: 1px solid rgba(34, 229, 236, 0.35); }
.comp-new-badge { color: #ffd166; background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.35); }
.comp-agent-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.comp-agent { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; }
.comp-agent img, .comp-agent-noicon {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: #0e1922;
}
.comp-agent-noicon { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.comp-agent span:last-child { font-size: 0.68rem; color: var(--muted); text-align: center; line-height: 1.15; }
.comp-alt-line { padding: 0 16px 16px; font-size: 0.82rem; color: var(--muted); }
.comp-alt-line strong { color: var(--accent); }
.comp-new-note { color: #ffd166; }
.comp-source-note { margin-top: 28px; font-size: 0.78rem; color: var(--muted); max-width: 720px; }

/* ============ Hogyan kell játszani (howtoplay.php) ============ */
.video-section-heading { margin: 36px 0 16px; font-family: var(--font-display); font-size: 1.15rem; }
.video-section-heading:first-of-type { margin-top: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.video-card { padding: 0; overflow: hidden; }
.video-embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0e1922; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 14px 16px 4px; font-size: 0.98rem; }
.video-desc { padding: 0 16px; font-size: 0.84rem; color: var(--muted); }
.video-yt-link { display: inline-block; margin: 12px 16px 16px; color: var(--primary); font-size: 0.85rem; }
.video-yt-link:hover { text-decoration: underline; }

/* ============ Nav LIVE-pötty (a fejlécben, minden oldalon) ============ */
.nav-live-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--danger);
  box-shadow: 0 0 8px var(--danger); animation: dot-blink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .nav-live-dot { animation: none; } }

/* ============ LIVE oldal (live.php) ============ */
.live-no-status { margin-bottom: 24px; font-size: 0.85rem; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.live-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.live-card.is-live { border-color: rgba(220, 60, 60, 0.45); box-shadow: 0 0 0 1px rgba(220, 60, 60, 0.15); }
.live-card-head { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; gap: 10px; margin-bottom: 6px; }
.live-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border); background: rgba(255,255,255,0.04);
}
.live-card.is-live .live-avatar { border-color: var(--danger); }
.live-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); background: rgba(255,255,255,0.06); border: 1px solid var(--border); flex-shrink: 0;
}
.live-badge.is-live {
  color: #fff; background: var(--danger); border-color: var(--danger); animation: dot-blink 1.4s ease-in-out infinite;
}
.live-role { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.live-stream-title { font-size: 0.85rem; margin-bottom: 4px; }
.live-viewers { font-size: 0.78rem; color: var(--primary); margin-bottom: 10px; }
.live-watch-link { display: inline-block; margin-top: 6px; color: var(--primary); font-size: 0.85rem; }
.live-watch-link:hover { text-decoration: underline; }
/* Csapattag-kártyák több platformmal (Twitch + TikTok) — egy sor / platform. */
.live-platform-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.live-platform-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--muted); min-width: 44px;
}
.live-platform-row .live-watch-link { margin-top: 0; margin-left: auto; }
.live-tiktok-note { margin-top: 6px; margin-bottom: 8px; font-size: 0.78rem; color: var(--muted); max-width: 640px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}
@media (max-width: 767px) {
  /* Mobil nézetben a "Játék infó" és a többi nav-link kikerül a normál
     flex-sorból (lásd lentebb, position:absolute), így a .navbar-inner
     36px-es "gap"-je itt csak a logó és a jobb oldali gombcsoport között
     maradna — ez túl széles lenne a keskeny képernyőn és lelógatná a
     hamburger gombot a képernyő széléről, ezért itt szűkebbre vesszük. */
  .navbar-inner { gap: 0; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 16px; right: 16px;
    background: rgba(9, 16, 22, 0.97); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease; backdrop-filter: blur(10px);
  }
  /* A "Játék infó" legördülő panel (agentek/rangok/térképek) jóval
     magasabb tartalmat ad hozzá, mint a régi, néhány linkes menü —
     ezért a mobil menü most a képernyő nagy részét kihasználhatja, és
     saját magában görgethető, ha a tartalom mégis hosszabb lenne nála. */
  .nav-links.open { max-height: min(600px, 80vh); overflow-y: auto; opacity: 1; pointer-events: auto; padding: 12px; }
  .nav-links a { padding: 10px 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

::selection { background-color: var(--primary); color: #06181a; }
