/* AIWORKS Játéktér – nyitóoldal */
html.landing-html { height: auto; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; } /* a nyitóoldal normál görgethető dokumentum – a játékapp „html, body { overflow: hidden }” szabálya itt nem érvényes */
body.landing { overflow: visible; height: auto; min-height: 100%; user-select: auto; -webkit-user-select: auto; }
body.landing #bg { position: fixed; }
.landing main { position: relative; z-index: 1; overflow-x: hidden; overflow-x: clip; }
.center { text-align: center; }
.small { font-size: 13px; }

.ln-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: calc(12px + var(--safe-t)) max(16px, calc(50% - 560px)) 12px; transition: background .3s, box-shadow .3s; }
.ln-nav.scrolled { background: rgba(11,18,32,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--stroke); }
.ln-nav .brand { color: var(--text); flex: none; }
.ln-links { display: flex; gap: 22px; margin-left: auto; }
.ln-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .ln-links a:hover { color: var(--text); } }
.ln-nav-cta { display: flex; gap: 8px; align-items: center; margin-left: 12px; }
@media (max-width: 720px) { .ln-links { display: none; } .ln-nav-cta { margin-left: auto; } }
@media (max-width: 420px) { .hide-xs { display: none; } .ln-nav .btn.small { padding: 9px 11px; } }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; max-width: 1120px; margin: 0 auto; padding: 40px 16px 60px; min-height: calc(100vh - 70px); }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--cyan); padding: 6px 12px; border: 1px solid rgba(77,225,255,.35); border-radius: 99px; background: rgba(77,225,255,.08); }
.hero h1 { font-family: var(--font-head); font-size: clamp(44px, 8vw, 84px); line-height: 1.02; margin: 18px 0; }
.hero h1 .grad .ch { background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 400% 100%; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 32px; color: var(--amber); }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-logo { width: 58%; filter: drop-shadow(0 0 40px rgba(77,225,255,.45)); position: relative; z-index: 2; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.hero-ring.r1 { inset: 4%; }
.hero-ring.r2 { inset: 18%; border-style: solid; border-color: rgba(139,123,255,.25); }
.orbit { position: absolute; inset: 0; }
.orbit .badge { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 10px; min-height: 0; }
  .hero-art { order: -1; max-width: 320px; }
  .lead { margin: 0 auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .orbit .badge { width: 44px; height: 44px; margin: -22px; border-radius: 14px; }
}

.ln-section { max-width: 1120px; margin: 0 auto; padding: 70px 16px 30px; }
.sec-title { font-family: var(--font-head); font-size: clamp(30px, 5vw, 46px); text-align: center; margin: 0 0 8px; }
.sec-sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 34px; line-height: 1.55; }

.ln-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ln-game { position: relative; overflow: hidden; display: block; padding: 22px 20px; border-radius: var(--radius); color: var(--text); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); border: 1px solid var(--stroke); transition: transform .3s, box-shadow .3s; }
.ln-game::before { content: ''; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--c1), transparent 70%); opacity: .45; transition: transform .5s; }
@media (hover: hover) and (pointer: fine) { .ln-game:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px var(--c1); } }
@media (hover: hover) and (pointer: fine) { .ln-game:hover::before { transform: scale(1.5); } }
.ln-game .badge { margin-bottom: 14px; position: relative; }
.ln-game h3 { font-family: var(--font-head); font-size: 22px; margin: 0 0 6px; position: relative; }
.ln-game p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; position: relative; }

.ln-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ln-plat { border-radius: var(--radius); padding: 24px; position: relative; transition: transform .3s, box-shadow .3s; }
.ln-plat.mine { box-shadow: 0 0 0 2px var(--cyan), 0 30px 60px -25px rgba(77,225,255,.7); }
.ln-plat.mine::after { content: 'A te eszközöd'; position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; color: #0b1220; background: var(--cyan); padding: 4px 9px; border-radius: 99px; }
.plat-ic { margin-bottom: 4px; }
.ln-plat h3 { font-family: var(--font-head); font-size: 24px; margin: 8px 0 4px; }
.ln-plat p { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.ln-plat .btn { width: 100%; }

.ln-dl { margin-top: 18px; border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.qr-box { text-align: center; }
#qr { background: #fff; padding: 12px; border-radius: 16px; display: inline-block; line-height: 0; }
#qr img, #qr canvas { width: 150px; height: 150px; }
.qr-box p { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.dl-list h3 { margin: 0 0 12px; font-family: var(--font-head); font-size: 22px; }
.dl-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 8px; }
.dl-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.dl-ic { font-size: 26px; text-align: center; }
.dl-empty { color: var(--muted); font-size: 14px; padding: 6px 2px 14px; line-height: 1.5; }
@media (max-width: 640px) { .ln-dl { grid-template-columns: 1fr; } }

.ln-lb { border-radius: var(--radius); padding: 10px; max-width: 640px; margin: 0 auto 26px; }
.ln-imp { border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.ln-imp .imp-logo { width: 140px; height: 140px; margin: 0; border-radius: 30px; padding: 14px; }
.ln-imp p { margin: 0 0 6px; line-height: 1.5; }
.ln-imp .tagline { margin: 4px 0; text-align: left; }
@media (max-width: 640px) { .ln-imp { grid-template-columns: 1fr; text-align: center; padding: 22px 16px; } .ln-imp .imp-logo { margin: 0 auto; width: 110px; height: 110px; } .ln-imp .tagline { text-align: center; } }

.ln-foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 40px 16px calc(30px + var(--safe-b)); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-reveal .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Okos telepítőkártya */
.ln-smart { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius); margin-bottom: 16px; border-color: rgba(77,225,255,.35); }
.smart-title { display: block; font-family: var(--font-head); font-size: 22px; }
.smart-sub { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .ln-smart { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; } .ln-smart .btn { width: 100%; } }

/* Rögzített telepítősáv mobilon */
.ln-installbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 40; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(20,30,50,.94); border: 1px solid var(--stroke); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ln-installbar img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.ln-installbar b { display: block; font-size: 14px; }
.ln-installbar small { color: var(--muted); font-size: 12px; }
.ln-installbar > div { min-width: 0; }
.ln-installbar b, .ln-installbar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-installbar .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .ln-installbar { left: 8px; right: 8px; gap: 8px; grid-template-columns: 34px 1fr auto auto; padding: 8px; }
  .ln-installbar img { width: 34px; height: 34px; }
  .ln-installbar small { display: none; }
  .ln-installbar b { font-size: 13px; }
  .ln-installbar .btn.small { padding: 8px 10px; }
}
@media (min-width: 900px) { .ln-installbar { left: auto; width: 420px; } }

/* Kis képernyők */
@media (max-width: 400px) {
  .hero { padding-left: 14px; padding-right: 14px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 16px; justify-content: space-around; }
  .hero-stats b { font-size: 26px; }
  .ln-section { padding: 56px 14px 24px; }
  .ln-dl { padding: 18px 14px; }
  .dl-row { grid-template-columns: 34px 1fr; }
  .dl-row .btn { grid-column: 1 / -1; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero { grid-template-columns: 1fr 1fr; text-align: left; min-height: 0; padding-top: 10px; }
  .hero-art { order: 0; max-width: 260px; }
  .hero-cta, .hero-stats { justify-content: flex-start; }
}
/* UX: a saját eszköz kártyája helyett az okos kártya; QR csak asztali nézetben */
.ln-other { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
@media (max-width: 640px) { .qr-box { display: none; } .ln-dl { grid-template-columns: 1fr; } }
body.has-bar .ln-foot { padding-bottom: calc(100px + var(--safe-b)); }
.ln-nav .brand { padding: 6px 4px 6px 0; min-height: 44px; }

/* érintésre egységes visszajelzés */
.ln-game:active { transform: scale(.98); }

/* Telefonon a nyitóoldal rögzített sávjai elmosás nélkül (görgetés közben nem kell folyamatosan újrarajzolni) */
@media (pointer: coarse) {
  .ln-nav.scrolled, .ln-installbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 18, 32, .96); }
}
