:root {
  --bg: #070a18;
  --bg2: #101936;
  --card: rgba(12, 18, 39, .82);
  --card2: rgba(20, 28, 59, .95);
  --line: rgba(255,255,255,.15);
  --text: #f7f3e8;
  --muted: #b5bfd8;
  --red: #e43737;
  --green: #3cc45a;
  --white: #fff7e6;
  --gold: #ffcc4d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --pixel: 'Press Start 2P', monospace;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(228,55,55,.28), transparent 26%),
    radial-gradient(circle at 80% 16%, rgba(60,196,90,.18), transparent 24%),
    linear-gradient(180deg, var(--bg), #080a16 45%, #05060c);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -2;
}

#starCanvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
}

.scanlines, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.scanlines {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
  opacity: .32;
}
.noise {
  opacity: .08;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 7px 7px;
  animation: noiseMove .25s steps(2) infinite;
}
@keyframes noiseMove { to { transform: translate(3px, -3px); } }

a { color: inherit; text-decoration: none; }
code { color: var(--gold); background: rgba(0,0,0,.22); padding: 3px 6px; border-radius: 6px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 24, .72);
  border-bottom: 1px solid var(--line);
}

body {
  padding-top: 76px;
}
.navbar {
  max-width: 1220px;
  margin: auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  width: 42px; height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #090909;
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #000;
}
.brand-text { font-family: var(--pixel); font-size: 14px; text-shadow: 3px 3px 0 #000; }
.brand-text span { color: var(--green); }
.hero-brand-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.hero-brand-intro .eyebrow { margin: 0; }
.hero-brand-logo {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 6px 6px 0 #000;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  transition: .2s;
}
.nav-links a:hover { color: var(--gold); transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 3px; margin: 5px; background: var(--text); box-shadow: 2px 2px 0 #000; }

@media (max-width: 640px) {
  .hero-brand-logo { width: 72px; height: 72px; }
  .hero-brand-intro { align-items: flex-start; }
}

.section { max-width: 1220px; margin: auto; padding: 104px 24px; position: relative; }
.alt-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1220px)/2 + 24px));
  padding-right: max(24px, calc((100vw - 1220px)/2 + 24px));
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  border-block: 1px solid rgba(255,255,255,.08);
}
.hero { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.eyebrow {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .5px;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 {
  font-family: var(--pixel);
  font-size: clamp(42px, 7vw, 86px);
  text-shadow: 6px 6px 0 #000, -2px 2px 0 var(--red);
  margin: 18px 0 20px;
}
h1 span { color: var(--green); }
.hero h2 { font-size: clamp(24px, 4vw, 48px); max-width: 820px; }
.lead, .section-heading p, .about-grid p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border: 3px solid #000;
  background: var(--card2);
  color: var(--text);
  font-weight: 900;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.pixel-btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #000; filter: brightness(1.15); }
.pixel-btn.primary { background: linear-gradient(90deg, var(--red), #f2efe7, var(--green)); color: #101018; }
.pixel-btn.ghost { background: transparent; border-color: var(--gold); }
.pixel-btn.small { padding: 11px 13px; font-size: 14px; }
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats div {
  padding: 16px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
.hero-stats strong { display: block; font-family: var(--pixel); color: var(--gold); }
.hero-stats span { color: var(--muted); font-size: 13px; }

.floating-pixels span {
  position: absolute;
  left: var(--x); top: var(--y);
  color: var(--gold);
  animation: floaty 4s var(--d) ease-in-out infinite;
  text-shadow: 3px 3px 0 #000;
}
@keyframes floaty { 50% { transform: translateY(-18px) rotate(8deg); } }

.arcade-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,204,77,.22), rgba(11,15,34,.95));
  border: 4px solid #000;
  box-shadow: var(--shadow), 10px 10px 0 #000;
  transform: rotate(1deg);
}
.arcade-screen {
  background: #060712;
  border: 4px solid #111;
  box-shadow: inset 0 0 50px rgba(60,196,90,.12);
  padding: 16px;
}
.screen-top { display: flex; justify-content: space-between; color: var(--green); font-family: var(--pixel); font-size: 10px; margin-bottom: 12px; }
.pixel-landscape {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: linear-gradient(#0c1434 0 45%, #19133d 45% 58%, #06142c 58%);
}
.moon { position: absolute; right: 34px; top: 26px; width: 62px; height: 62px; background: var(--gold); box-shadow: 0 0 40px var(--gold); border-radius: 50%; }
.castle, .parliament { position: absolute; bottom: 80px; width: 150px; height: 92px; background: linear-gradient(90deg, #777, #bbb); clip-path: polygon(0 100%,0 35%,12% 35%,12% 10%,25% 10%,25% 35%,42% 35%,42% 0,58% 0,58% 35%,75% 35%,75% 10%,88% 10%,88% 35%,100% 35%,100% 100%); filter: drop-shadow(6px 8px 0 #000); }
.castle { left: 24px; }
.parliament { right: 28px; background: linear-gradient(90deg, #8b5a32, #ffc46b); transform: scaleX(1.1); }
.river { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: repeating-linear-gradient(0deg, #0c56a0 0 8px, #0a2d69 8px 16px); animation: river 1.4s linear infinite; }
@keyframes river { to { background-position-y: 16px; } }
.hero-sprite { position: absolute; bottom: 76px; left: 48%; font-size: 42px; animation: spriteJump 1.8s infinite; }
@keyframes spriteJump { 50% { transform: translateY(-18px); } }
.screen-title { font-family: var(--pixel); text-align: center; margin-top: 16px; color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.arcade-controls { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; }
.joystick { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ff7474, #9a1111); border: 4px solid #111; box-shadow: 0 10px 0 #000; }
.buttons span { display: inline-block; width: 34px; height: 34px; margin-left: 10px; border-radius: 50%; border: 4px solid #111; background: var(--green); box-shadow: 0 7px 0 #000; }
.buttons span:nth-child(2) { background: var(--red); }
.buttons span:nth-child(3) { background: var(--gold); }

.section-heading { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.section-heading.align-left { text-align: left; margin: 0; }
.section-heading h2 { font-size: clamp(30px, 5vw, 58px); text-shadow: 4px 4px 0 #000; }
.cards, .download-grid, .gallery-grid { display: grid; gap: 22px; }
.game-grid { grid-template-columns: repeat(3, 1fr); }
.game-card, .download-card, .timeline-item, .social-panel, .contact-form, .value-grid > div {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.game-card::before, .download-card::before, .timeline-item::before, .social-panel::before, .contact-form::before, .value-grid > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228,55,55,.14), transparent 35%, rgba(60,196,90,.12));
  pointer-events: none;
}
.game-card { transition: transform .22s, border-color .22s; }
.game-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.game-art { height: 170px; display: grid; place-items: center; font-size: 58px; border-bottom: 1px solid var(--line); }
.game-art span { filter: drop-shadow(5px 5px 0 #000); animation: floaty 3s ease-in-out infinite; }
.petofi { background: linear-gradient(135deg, rgba(228,55,55,.35), rgba(255,255,255,.08)); }
.hunyadi { background: linear-gradient(135deg, rgba(255,204,77,.32), rgba(60,196,90,.12)); }
.aquincum { background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(88,133,255,.18)); }
.honfoglalas { background: linear-gradient(135deg, rgba(122,74,30,.38), rgba(60,196,90,.14)); }
.langos { background: linear-gradient(135deg, rgba(255,204,77,.28), rgba(228,55,55,.18)); }
.card-body { padding: 24px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.card-tags span { font-size: 12px; font-weight: 900; color: #080a16; background: var(--gold); padding: 6px 8px; }
.card-body h3, .download-card h3, .timeline-item h3 { font-size: 24px; margin-bottom: 12px; }
.card-body p, .download-card p, .timeline-item p, .value-grid p { color: var(--muted); line-height: 1.65; }

.download-grid { grid-template-columns: repeat(3, 1fr); }
.download-card { padding: 28px; }
.download-icon { font-size: 42px; display: block; margin-bottom: 14px; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  min-height: 190px;
  border: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(228,55,55,.2), rgba(255,255,255,.08), rgba(60,196,90,.16));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.gallery-item:hover { transform: scale(1.035) rotate(-1deg); filter: brightness(1.15); }
.gallery-item span { display: block; font-size: 54px; margin-bottom: 12px; }
.gallery-item strong { font-family: var(--pixel); font-size: 12px; }
.timeline { max-width: 850px; margin: auto; display: grid; gap: 18px; }
.timeline-item { padding: 28px; border-left: 6px solid var(--gold); }
.timeline-item time { color: var(--gold); font-family: var(--pixel); font-size: 10px; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-grid > div { padding: 24px; }
.value-grid span { font-size: 34px; }
.value-grid strong { display: block; font-size: 20px; margin-top: 10px; }
.contact-grid { align-items: stretch; }
.social-panel, .contact-form { padding: 28px; }
.social-panel { display: grid; gap: 14px; }
.social-panel a { padding: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 900; transition: .2s; }
.social-panel a:hover { transform: translateX(8px); color: var(--gold); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
input, textarea {
  width: 100%;
  padding: 14px;
  color: var(--text);
  background: rgba(0,0,0,.26);
  border: 1px solid var(--line);
  outline: none;
  font-family: var(--body);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); }
.contact-form small { color: var(--muted); }

@media (min-width: 981px) {
  .contact-grid { align-items: stretch !important; }
  .social-panel, .contact-form { height: 100%; }
  .social-panel { grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .social-panel a { display: flex; align-items: center; }
}
.site-footer { padding: 32px 24px; text-align: center; border-top: 1px solid var(--line); background: rgba(0,0,0,.22); color: var(--muted); }
.site-footer a { color: var(--gold); font-weight: 900; }

.modal, .lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
  z-index: 80;
}
.modal.is-open, .lightbox.is-open { display: flex; }
.modal-content, .lightbox-card {
  width: min(560px, 100%);
  background: var(--card2);
  border: 4px solid #000;
  box-shadow: 12px 12px 0 #000, var(--shadow);
  padding: 32px;
  position: relative;
}
.modal-close, .lightbox-close {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 30px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.lightbox-art { font-size: 96px; text-align: center; padding: 42px; background: linear-gradient(135deg, rgba(228,55,55,.22), rgba(60,196,90,.18)); }
.lightbox-card p { text-align: center; font-weight: 900; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .game-grid, .download-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .arcade-card { transform: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(7,10,24,.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; }
  .section { padding: 82px 18px; }
  .alt-section { padding-left: 18px; padding-right: 18px; }
  .game-grid, .download-grid, .gallery-grid, .value-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .hero h2 { font-size: 26px; }
  .lead, .section-heading p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .pixel-btn { width: 100%; }
  .pixel-landscape { min-height: 220px; }
  .brand-text { font-size: 12px; }
}

/* --- HungaroGames frissítés: valódi játékképek, galéria és vissza a tetejére gomb --- */
.image-art {
  height: 210px;
  padding: 0;
  overflow: hidden;
  background: rgba(0,0,0,.28);
}
.image-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}
.game-card:hover .image-art img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.1);
}
.single-download {
  grid-template-columns: minmax(260px, 680px);
  justify-content: center;
}
.disabled-link {
  opacity: .65;
  pointer-events: none;
}
.gallery-item {
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .28s ease, filter .28s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.08) saturate(1.15);
}
.gallery-item strong {
  display: block;
  padding: 14px 16px 16px;
  background: rgba(0,0,0,.65);
  min-height: 50px;
}
.lightbox-card {
  width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: hidden;
}
.lightbox-art {
  padding: 0;
  background: rgba(0,0,0,.35);
}
.lightbox-art img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.45);
}
.back-to-top {
  margin-top: 14px;
  color: var(--gold);
  font-weight: 900;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  padding: 12px 18px;
  cursor: pointer;
  font-family: var(--body);
  border-radius: 12px;
}
.back-to-top:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
@media (max-width: 760px) {
  .image-art { height: 190px; }
  .gallery-item img { height: 190px; }
}

/* ============================
   MOBIL RESPONSIVE JAVÍTÁS
   HungaroGames
============================ */

/* Biztonságos dobozméretezés minden elemre */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ne tudjon oldalirányban szétcsúszni az oldal */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Képek, videók mindig igazodjanak a kijelzőhöz */
img,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* A teljes képernyős szekciók mobilon is jól vegyék fel a magasságot */
.hero,
.fullscreen,
.section-hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Általános konténer igazítás */
.container,
.section-inner,
.wrapper {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Tableten */
@media (max-width: 1024px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero-content,
  .about-grid,
  .contact-grid,
  .download-grid {
    grid-template-columns: 1fr !important;
  }

  .games-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-title,
  h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem) !important;
  }

  .hero-subtitle,
  .lead {
    font-size: clamp(1rem, 2.8vw, 1.35rem) !important;
  }
}

/* Mobilon */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .site-header,
  header,
  nav {
    width: 100%;
  }

  .nav,
  .navbar,
  .nav-inner {
    padding-inline: 16px;
  }

  .brand,
  .logo {
    font-size: 1.1rem;
    max-width: 70%;
  }

  /* Menü mobilon */
  .nav-links,
  .menu,
  .desktop-menu {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(10, 8, 18, 0.96);
    border: 1px solid rgba(255, 204, 84, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .nav-links.active,
  .menu.active,
  .desktop-menu.active {
    display: flex;
  }

  .menu-toggle,
  .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 100dvh;
    padding: 110px 18px 64px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-title,
  h1 {
    font-size: clamp(2rem, 12vw, 3.4rem) !important;
    line-height: 1.05;
    word-break: normal;
  }

  .hero-subtitle,
  .lead {
    font-size: 1rem !important;
    line-height: 1.55;
  }

  .hero-actions,
  .cta-row,
  .button-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
  }

  .pixel-btn,
  button,
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 48px;
  }

  section,
  .section {
    padding: 64px 18px;
  }

  .section-title,
  h2 {
    font-size: clamp(1.7rem, 8vw, 2.6rem) !important;
    line-height: 1.15;
  }

  .games-grid,
  .gallery-grid,
  .news-grid,
  .download-grid,
  .cards-grid,
  .contact-grid,
  .about-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .game-card,
  .gallery-card,
  .news-card,
  .download-card,
  .info-card,
  .card {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .gallery-item,
  .gallery-card {
    min-height: 220px;
  }

  .gallery-item img,
  .gallery-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .social-links,
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .contact-form,
  form {
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    font-size: 16px;
  }

  footer,
  .footer {
    text-align: center;
    padding: 32px 18px;
  }

  .back-to-top,
  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

/* Nagyon kicsi telefonokon */
@media (max-width: 420px) {
  .container,
  .section-inner,
  .wrapper {
    width: min(100%, calc(100% - 24px));
  }

  .hero {
    padding-top: 96px;
  }

  .hero-title,
  h1 {
    font-size: clamp(1.8rem, 13vw, 2.8rem) !important;
  }

  .pixel-btn,
  button,
  .btn {
    font-size: 0.9rem;
    padding-inline: 14px;
  }

  .game-card,
  .gallery-card,
  .news-card,
  .download-card,
  .card {
    padding: 15px;
  }
}

/* iPhone notch / biztonságos zóna */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-header,
  header {
    padding-top: env(safe-area-inset-top);
  }
}

/* JavaScript által számolt valódi mobilmagasság */
.hero,
.fullscreen,
.section-hero {
  min-height: calc(var(--vh, 1vh) * 100);
}

/* =====================================================
   FŐOLDALI HERO RÉSZ MOBIL RESPONSIVE JAVÍTÁSA
   HungaroGames
===================================================== */

/* Alap hero javítás: ne lógjon ki semmi */
.hero,
.hero-section,
#home,
#hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Ha a hero belső része grid/flex, asztalin maradhat, mobilon majd törjük */
.hero-inner,
.hero-content,
.hero-grid,
.home-hero,
.hero-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

/* Tablet és mobil */
@media (max-width: 900px) {
  .hero,
  .hero-section,
  #home,
  #hero {
    min-height: auto !important;
    padding: 96px 18px 56px !important;
  }

  .hero-inner,
  .hero-content,
  .hero-grid,
  .home-hero,
  .hero-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Bal oldali szöveges rész */
  .hero-text,
  .hero-copy,
  .hero-left {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Kis felső címke */
  .hero-kicker,
  .eyebrow,
  .hero-label {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.08em !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* Nagy HungaroGames cím */
  .hero h1,
  .hero-title,
  .main-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.6rem, 13vw, 5.2rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.04em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  /* Alcím */
  .hero h2,
  .hero-subtitle,
  .hero-lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.55rem, 7vw, 2.7rem) !important;
    line-height: 1.12 !important;
  }

  /* Leíró bekezdés */
  .hero p,
  .hero-description,
  .lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  /* CTA gombok */
  .hero-actions,
  .cta-row,
  .button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-actions a,
  .hero-actions button,
  .cta-row a,
  .cta-row button,
  .button-row a,
  .button-row button {
    flex: 1 1 220px !important;
    min-height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Statisztika dobozok */
  .hero-stats,
  .stats-row,
  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-stats > *,
  .stats-row > *,
  .hero-metrics > * {
    min-width: 0 !important;
    padding: 12px 10px !important;
  }

  /* Jobb oldali arcade gép / vizuális elem */
  .hero-visual,
  .hero-art,
  .arcade-wrap,
  .arcade-machine,
  .hero-right {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .arcade-machine {
    scale: 0.9;
    transform-origin: center top !important;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .hero,
  .hero-section,
  #home,
  #hero {
    padding: 88px 16px 44px !important;
    text-align: left !important;
  }

  .hero-inner,
  .hero-content,
  .hero-grid,
  .home-hero,
  .hero-wrapper {
    gap: 26px !important;
  }

  .hero h1,
  .hero-title,
  .main-title {
    font-size: clamp(2.15rem, 15vw, 4rem) !important;
    line-height: 0.95 !important;
  }

  .hero h2,
  .hero-subtitle,
  .hero-lead {
    font-size: clamp(1.35rem, 8vw, 2.15rem) !important;
  }

  .hero p,
  .hero-description,
  .lead {
    font-size: 0.96rem !important;
  }

  .hero-actions,
  .cta-row,
  .button-row {
    flex-direction: column !important;
  }

  .hero-actions a,
  .hero-actions button,
  .cta-row a,
  .cta-row button,
  .button-row a,
  .button-row button {
    width: 100% !important;
    flex: none !important;
  }

  .hero-stats,
  .stats-row,
  .hero-metrics {
    grid-template-columns: 1fr !important;
  }

  .hero-visual,
  .hero-art,
  .arcade-wrap,
  .arcade-machine,
  .hero-right {
    max-width: 280px !important;
  }

  .arcade-machine {
    scale: 0.78;
  }
}

/* Nagyon kicsi telefon */
@media (max-width: 420px) {
  .hero,
  .hero-section,
  #home,
  #hero {
    padding: 82px 14px 38px !important;
  }

  .hero h1,
  .hero-title,
  .main-title {
    font-size: clamp(1.9rem, 14vw, 3.2rem) !important;
  }

  .hero h2,
  .hero-subtitle,
  .hero-lead {
    font-size: clamp(1.2rem, 7vw, 1.8rem) !important;
  }

  .hero-kicker,
  .eyebrow,
  .hero-label {
    font-size: 0.65rem !important;
  }

  .hero-visual,
  .hero-art,
  .arcade-wrap,
  .arcade-machine,
  .hero-right {
    max-width: 230px !important;
  }

  .arcade-machine {
    scale: 0.68;
  }
}

/* =========================================
   HERO JOBB OLDALI TV / ARCADE ELEM JAVÍTÁSA
   Eredeti arány, nem keskeny verzió
========================================= */

.hero-visual,
.hero-right,
.arcade-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 360px !important;
  margin-inline: auto !important;
}

/* Maga a kis TV / arcade gép */
.arcade-machine,
.tv-machine,
.hero-tv {
  position: relative !important;
  width: 260px !important;
  height: 420px !important;
  border: 6px solid #050505 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #111827 0%, #07111f 100%) !important;
  box-shadow:
    0 0 0 3px rgba(255, 216, 102, 0.18),
    12px 14px 0 rgba(0, 0, 0, 0.65),
    0 24px 55px rgba(0, 0, 0, 0.45) !important;
  padding: 18px !important;
  transform: none !important;
  scale: 1 !important;
}

/* TV képernyő */
.arcade-machine .screen,
.tv-machine .screen,
.hero-tv .screen {
  width: 100% !important;
  height: 270px !important;
  border: 5px solid #050505 !important;
  border-radius: 6px !important;
  background:
    radial-gradient(circle at 35% 28%, #ffd35c 0 15%, transparent 16%),
    linear-gradient(180deg, #101a3b 0%, #162b65 55%, #e9c16a 56%, #e9c16a 69%, #075bb8 70%, #075bb8 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 18px !important;
}

/* Felső kis kijelzőszöveg */
.arcade-machine .screen::before,
.tv-machine .screen::before,
.hero-tv .screen::before {
  content: "HP-ONLINE 01";
  position: absolute;
  top: 12px;
  left: 12px;
  color: #39d353;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 0 #000;
}

/* Start szöveg, ha nincs külön HTML-ben */
.arcade-machine .screen::after,
.tv-machine .screen::after,
.hero-tv .screen::after {
  content: "PRESS START";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #ffd866;
  font-size: 1rem;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

/* Gombok része */
.arcade-machine .controls,
.tv-machine .controls,
.hero-tv .controls {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 10px !important;
}

/* Ha span gombokat használsz */
.arcade-machine .controls span,
.tv-machine .controls span,
.hero-tv .controls span {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 4px solid #050505 !important;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.25),
    0 6px 0 rgba(0, 0, 0, 0.45) !important;
}

.arcade-machine .controls span:nth-child(1),
.tv-machine .controls span:nth-child(1),
.hero-tv .controls span:nth-child(1) {
  background: #e84545 !important;
}

.arcade-machine .controls span:nth-child(2),
.tv-machine .controls span:nth-child(2),
.hero-tv .controls span:nth-child(2) {
  background: #39d353 !important;
}

.arcade-machine .controls span:nth-child(3),
.tv-machine .controls span:nth-child(3),
.hero-tv .controls span:nth-child(3) {
  background: #f4c542 !important;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-visual,
  .hero-right,
  .arcade-wrap {
    max-width: 320px !important;
  }

  .arcade-machine,
  .tv-machine,
  .hero-tv {
    width: 240px !important;
    height: 390px !important;
    padding: 16px !important;
  }

  .arcade-machine .screen,
  .tv-machine .screen,
  .hero-tv .screen {
    height: 245px !important;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .hero-visual,
  .hero-right,
  .arcade-wrap {
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .arcade-machine,
  .tv-machine,
  .hero-tv {
    width: 220px !important;
    height: 360px !important;
    padding: 14px !important;
  }

  .arcade-machine .screen,
  .tv-machine .screen,
  .hero-tv .screen {
    height: 225px !important;
  }
}

/* Nagyon kis telefon */
@media (max-width: 420px) {
  .arcade-machine,
  .tv-machine,
  .hero-tv {
    width: 200px !important;
    height: 330px !important;
  }

  .arcade-machine .screen,
  .tv-machine .screen,
  .hero-tv .screen {
    height: 205px !important;
  }

  .arcade-machine .controls span,
  .tv-machine .controls span,
  .hero-tv .controls span {
    width: 28px !important;
    height: 28px !important;
  }
}


@media (max-width: 900px) {
  .hero-title,
  .hero h1,
  .main-title {
    font-size: clamp(2.2rem, 10vw, 5rem) !important;
  }
}

@media (max-width: 640px) {
  .hero-title,
  .hero h1,
  .main-title {
    font-size: clamp(1.9rem, 12vw, 3.8rem) !important;
  }
}

@media (max-width: 420px) {
  .hero-title,
  .hero h1,
  .main-title {
    font-size: clamp(1.7rem, 11vw, 3rem) !important;
  }
}

/* =========================================
   HUNGAROGAMES FŐCÍM JAVÍTÁS
   Ne törje szét a szót karakterenként
========================================= */

.hero-title,
.hero h1,
.main-title {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;

  font-size: clamp(3.2rem, 6.4vw, 6.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;

  margin: 0 0 22px 0 !important;
}

/* A Hungaro és Games szavak maradjanak egymás mellett asztalin */
.hero-title span,
.main-title span,
.hero h1 span {
  display: inline !important;
}

/* Ha a fő hero két oszlopos, a bal oszlop kapjon elég helyet */
.hero-inner,
.hero-grid,
.hero-content,
.hero-wrapper {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr) !important;
  gap: 48px !important;
}

/* Tablet alatt már mehet egymás alá */
@media (max-width: 1050px) {
  .hero-inner,
  .hero-grid,
  .hero-content,
  .hero-wrapper {
    grid-template-columns: 1fr !important;
  }

  .hero-title,
  .hero h1,
  .main-title {
    max-width: 100% !important;
    font-size: clamp(3rem, 10vw, 5.5rem) !important;
    white-space: nowrap !important;
  }
}

/* Mobilon engedjük két sorba, de csak szóhatáron */
@media (max-width: 640px) {
  .hero-title,
  .hero h1,
  .main-title {
    font-size: clamp(2.6rem, 16vw, 4.4rem) !important;
    line-height: 0.92 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  /* Ha spanek vannak: Hungaro és Games külön sorba mobilon */
  .hero-title span,
  .main-title span,
  .hero h1 span {
    display: block !important;
  }
}

/* Nagyon kis mobilon */
@media (max-width: 420px) {
  .hero-title,
  .hero h1,
  .main-title {
    font-size: clamp(2.2rem, 15vw, 3.4rem) !important;
    line-height: 0.95 !important;
  }
}

/* =========================================
   HUNGAROGAMES HERO FELIRAT JAVÍTÁS
   Ehhez a HTML-hez:
   <h1>Hungaro<span>Games</span></h1>
========================================= */

.hero-copy h1 {
  display: block !important;
  max-width: 100% !important;
  margin: 0 0 22px 0 !important;

  font-size: clamp(4rem, 7vw, 7.4rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.06em !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.hero-copy h1 span {
  display: inline !important;
  color: #35d85c !important;
  white-space: nowrap !important;
}

/* A bal oldali hero szöveg kapjon elég helyet */
.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr) !important;
  gap: 52px !important;
  align-items: center !important;
}

/* 1200 alatt kicsit kisebb cím, de még egy sor */
@media (max-width: 1200px) {
  .hero-copy h1 {
    font-size: clamp(3.4rem, 7.2vw, 6rem) !important;
  }
}

/* Tablet alatt már egymás alá mehet a szöveg és a TV */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 11vw, 5.8rem) !important;
    white-space: nowrap !important;
  }
}

/* Mobilon szóhatáron törjük: Hungaro / Games */
@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.8rem) !important;
    line-height: 0.9 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .hero-copy h1 span {
    display: block !important;
  }
}

/* Nagyon kis mobil */
@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(2.45rem, 16vw, 3.6rem) !important;
    line-height: 0.92 !important;
  }
}

/* =====================================================
   VÉGLEGES HERO + MOBIL JAVÍTÁS
   HungaroGames
   Fontos: ez a te jelenlegi HTML/CSS szerkezetedhez készült.
   A TV nálad: .arcade-card
   A főcím nálad: .hero-copy h1
===================================================== */

/* Hero alap elrendezés */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr) !important;
  gap: 56px !important;
  align-items: center !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
}

/* Bal oldali szöveg */
.hero-copy {
  min-width: 0 !important;
  max-width: 760px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* HungaroGames főcím */
.hero-copy h1 {
  display: block !important;
  max-width: 100% !important;
  margin: 18px 0 20px !important;

  font-family: var(--pixel) !important;
  font-size: clamp(3.6rem, 5.4vw, 6.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;

  text-shadow: 6px 6px 0 #000, -2px 2px 0 var(--red) !important;
}

.hero-copy h1 span {
  display: inline !important;
  color: var(--green) !important;
  white-space: nowrap !important;
}

/* Alcím */
.hero-copy h2 {
  font-size: clamp(2rem, 3.3vw, 3rem) !important;
  line-height: 1.1 !important;
  max-width: 760px !important;
}

/* Leírás */
.hero-copy .lead {
  max-width: 760px !important;
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
}

/* Jobb oldali TV / arcade kártya */
/* Nálad EZ a tényleges TV elem */
.hero .arcade-card {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  justify-self: end !important;
  margin-top: 105px !important; /* EZ MOZGATJA LEJJEBB */
  position: relative !important;
  z-index: 1 !important;
  transform: rotate(1deg) !important;
}

/* Ha reveal animáció miatt lenullázódna a transform */
.hero .arcade-card.reveal.visible {
  transform: translateY(105px) rotate(1deg) !important;
  margin-top: 0 !important;
}

/* TV belső képernyő */
.hero .arcade-screen {
  width: 100% !important;
}

/* A képernyő aránya maradjon TV-s, ne keskeny */
.hero .pixel-landscape {
  min-height: 270px !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 38px !important;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 5vw, 5rem) !important;
  }

  .hero .arcade-card {
    max-width: 340px !important;
    margin-top: 80px !important;
  }

  .hero .arcade-card.reveal.visible {
    transform: translateY(80px) rotate(1deg) !important;
  }

  .hero .pixel-landscape {
    min-height: 235px !important;
  }
}

/* Mobil/tablet alatt egymás alá kerül */
@media (max-width: 900px) {
  .hero {
    min-height: auto !important;
    padding-top: 88px !important;
    padding-bottom: 58px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .hero-copy {
    max-width: 100% !important;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 11vw, 5rem) !important;
    white-space: nowrap !important;
  }

  .hero .arcade-card {
    justify-self: center !important;
    max-width: 360px !important;
    margin-top: 0 !important;
    transform: rotate(1deg) !important;
  }

  .hero .arcade-card.reveal.visible {
    transform: rotate(1deg) !important;
    margin-top: 0 !important;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .navbar {
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(7, 10, 24, .97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .section {
    padding: 76px 18px;
  }

  .hero {
    padding-top: 78px !important;
    text-align: left !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem) !important;
    line-height: 0.92 !important;
    white-space: normal !important;
  }

  .hero-copy h1 span {
    display: block !important;
  }

  .hero-copy h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  .hero-copy .lead {
    font-size: 1rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
  }

  .pixel-btn {
    width: 100% !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero .arcade-card {
    max-width: 310px !important;
  }

  .hero .pixel-landscape {
    min-height: 215px !important;
  }

  .game-grid,
  .download-grid,
  .gallery-grid,
  .value-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Nagyon kis mobil */
@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem) !important;
  }

  .hero .arcade-card {
    max-width: 280px !important;
  }

  .hero .pixel-landscape {
    min-height: 195px !important;
  }

  .brand-text {
    font-size: 11px;
  }
}

/* =========================================
   GALÉRIA: FIX KERET, EREDETI ARÁNY MEGTARTÁSA
========================================= */

.gallery-showcase {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 16px;
}

/* Nagy kép fix kerete */
.gallery-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #000;
  background:
    linear-gradient(135deg, rgba(228,55,55,.10), rgba(255,255,255,.04), rgba(60,196,90,.10)),
    rgba(0,0,0,.42);
  box-shadow: 8px 8px 0 rgba(0,0,0,.5);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Fontos: contain, nem cover.
   Így a kép teljes egészében látszik, nem vágja le. */
.gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.35);
}

.gallery-featured-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line);
}

.gallery-featured-caption strong {
  font-size: 18px;
  color: var(--text);
}

.gallery-featured-caption span {
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
}

/* Alsó csúszka */
.gallery-slider-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 2px 14px;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 10px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,204,77,.55);
  border-radius: 999px;
}

/* Kicsi képek fix aránya */
.gallery-thumb {
  flex: 0 0 150px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.38);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.35);
}

.gallery-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  filter: brightness(1.1);
}

.gallery-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,204,77,.25);
}

/* Nyilak */
.gallery-arrow {
  width: 48px;
  height: 48px;
  border: 3px solid #000;
  background: var(--card2);
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
}

.gallery-arrow:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

/* Lightbox: itt az eredeti képarányban látszik */
.lightbox-card {
  width: min(1200px, 96vw);
  max-height: 92vh;
  overflow: auto;
}

.lightbox-art {
  padding: 0;
  background: rgba(0,0,0,.5);
  display: grid;
  place-items: center;
}

/* Ez a lényeg:
   a lightboxban NINCS fix képarány, a feltöltött kép aránya marad. */
.lightbox-art img {
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

#lightboxCaption {
  text-align: center;
  font-weight: 900;
  color: var(--text);
  margin-top: 14px;
}

@media (max-width: 760px) {
  .gallery-showcase {
    padding: 16px;
  }

  .gallery-featured {
    aspect-ratio: 16 / 10;
  }

  .gallery-slider-row {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    display: none;
  }

  .gallery-thumb {
    flex-basis: 118px;
  }

  .gallery-featured-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   VISSZA A TETEJÉRE GOMB - MOBIL JAVÍTÁS
========================================= */

.back-to-top {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  max-width: 100% !important;
  min-width: auto !important;
  width: auto !important;

  padding: 12px 18px !important;
  border-radius: 14px !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  color: var(--gold) !important;
  font-weight: 900 !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  cursor: pointer !important;
  font-family: var(--body) !important;
}

/* Mobilon már ne hosszú szöveg legyen, hanem kis négyzet/kör gomb */
@media (max-width: 640px) {
  .back-to-top {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 9999 !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;

    padding: 0 !important;
    border-radius: 50% !important;

    background: linear-gradient(180deg, #ffd866, #d99822) !important;
    color: #120b04 !important;
    border: 3px solid #000 !important;
    box-shadow: 4px 4px 0 #000 !important;

    font-size: 24px !important;
    line-height: 1 !important;
  }

  .back-to-top .back-label {
    display: none !important;
  }

  .back-to-top .back-arrow {
    display: block !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
}

/* =========================================
   MATYAS + GALÉRIA VÉGLEGESÍTÉS
========================================= */
.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-art img {
  object-fit: cover;
}

.gallery-featured {
  aspect-ratio: 16 / 9 !important;
}

.gallery-featured img,
.gallery-thumb img {
  object-fit: contain !important;
}

.lightbox-card {
  width: min(1200px, 96vw) !important;
  max-height: 92vh !important;
  overflow: auto !important;
}

.lightbox-art img {
  width: auto !important;
  height: auto !important;
  max-width: 94vw !important;
  max-height: 78vh !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: 1fr !important;
  }

  .back-to-top {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 9999 !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #ffd866, #d99822) !important;
    color: #120b04 !important;
    border: 3px solid #000 !important;
    box-shadow: 4px 4px 0 #000 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .back-to-top .back-label {
    display: none !important;
  }

  .back-to-top .back-arrow {
    display: block !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
}

/* =========================================
   LIGHTBOX JAVÍTÁS
   Kattintott kép teljes egészében, görgetés nélkül
========================================= */

.lightbox {
  padding: 18px !important;
  overflow: hidden !important;
}

.lightbox-card {
  width: min(1200px, 96vw) !important;
  max-width: 96vw !important;
  height: auto !important;
  max-height: 94vh !important;
  overflow: hidden !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;
}

.lightbox-art {
  width: 100% !important;
  height: auto !important;
  max-height: calc(94vh - 90px) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(0,0,0,.45) !important;
}

.lightbox-art img,
#lightboxImage {
  width: auto !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: calc(94vh - 120px) !important;

  object-fit: contain !important;
  display: block !important;
}

#lightboxCaption {
  flex: 0 0 auto !important;
  margin: 12px 40px 0 !important;
  text-align: center !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
}

/* Bezáró gomb ne takarja ki a képet */
.lightbox-close {
  z-index: 5 !important;
}

/* Mobilon még szorosabb keret */
@media (max-width: 640px) {
  .lightbox {
    padding: 10px !important;
  }

  .lightbox-card {
    width: 98vw !important;
    max-width: 98vw !important;
    max-height: 94vh !important;
    padding: 12px !important;
  }

  .lightbox-art {
    max-height: calc(94vh - 80px) !important;
  }

  .lightbox-art img,
  #lightboxImage {
    max-width: 100% !important;
    max-height: calc(94vh - 105px) !important;
  }

  #lightboxCaption {
    margin-top: 10px !important;
    font-size: 13px !important;
  }
}

/* =========================================
   LIGHTBOX LAPOZÓ NYILAK
========================================= */

.lightbox-nav {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 58px !important;
  height: 72px !important;

  border: 3px solid #000 !important;
  background: linear-gradient(180deg, #ffd866, #d99822) !important;
  color: #120b04 !important;

  font-size: 54px !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  z-index: 99999 !important;

  box-shadow: 6px 6px 0 #000 !important;
  font-family: Arial, sans-serif !important;
}

.lightbox-prev {
  left: 28px !important;
}

.lightbox-next {
  right: 28px !important;
}

.lightbox-nav:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 44px !important;
    height: 56px !important;
    font-size: 40px !important;
    box-shadow: 4px 4px 0 #000 !important;
  }

  .lightbox-prev {
    left: 10px !important;
  }

  .lightbox-next {
    right: 10px !important;
  }
}

/* =====================================================
   VÉGLEGES APRÓ JAVÍTÁSOK - HungaroGames
===================================================== */
html { scroll-padding-top: 86px; }

/* Mobilon a vissza a tetejére gomb csak nyilas, ne folyjon ki a szöveg. */
@media (max-width: 640px) {
  .back-to-top {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 9999 !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .back-to-top .back-label { display: none !important; }
  .back-to-top .back-arrow { display: block !important; font-size: 24px !important; line-height: 1 !important; }
}

/* Lightboxban a kép férjen bele a képernyőbe, ne kelljen görgetni. */
.lightbox { overflow: hidden !important; }
.lightbox-card {
  width: min(1200px, 96vw) !important;
  max-width: 96vw !important;
  max-height: 94vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.lightbox-art {
  width: 100% !important;
  max-height: calc(94vh - 90px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.lightbox-art img, #lightboxImage {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(94vh - 120px) !important;
  object-fit: contain !important;
}

/* Asztali főcím: maradjon teljesen a bal oszlopban, ne lógjon a játékgépre. */
@media (min-width: 1101px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    gap: 48px !important;
  }

  .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(2.8rem, 3.25vw, 3.55rem) !important;
    letter-spacing: -0.06em !important;
  }
}

/* =====================================================
   VÉGLEGES FEJLÉC- ÉS MOBILMENÜ-JAVÍTÁS
===================================================== */

/* A felső menüsáv HungaroGames felirata. */
.brand-text {
  font-size: 16px !important;
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 14px !important;
  }

  /* A három vonal valódi, egymás alatti hamburgerikon legyen. */
  .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .menu-toggle span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    margin: 0 !important;
    flex: 0 0 3px !important;
    border-radius: 999px !important;
    background: var(--text) !important;
    box-shadow: none !important;
    transform-origin: center !important;
    transition: transform .25s ease, opacity .2s ease !important;
  }

  /* Nyitott menünél a hamburger X alakú bezárógombbá változik. */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
}
