/* 4 Darts Pro – „wow” látványelemek a főoldalhoz (2026-12-04 este).
   2) neon kártyák: kurzort követő fény, 3D billenés
   1) nyitás: az app kezdővideója (home_intro.mp4)
   3) egysávos LED eredményjelző-szalag
   5) apró ízek: filmes szemcse, fényfoltok, fénysugár a gombokon
   Animációt kikapcsolt telefonon (prefers-reduced-motion) minden nyugodt, statikus változatban jelenik meg. */

/* Semmi ne lógjon ki oldalra (a clip a ragadós telefont nem zavarja, a hidden igen) */
html, body { overflow-x: clip; }

/* ---------- 1. Nyitás: az app saját kezdővideója ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: #0a0412; transition: opacity .8s ease, transform .8s ease; }
.intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.no-intro .intro { display: none; }
.intro .ivw { position: relative; height: min(92vh, 976px); max-width: 100vw; aspect-ratio: 576 / 976; animation: iv-in .6s ease-out both; }
.intro .iv { position: relative; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* A videó szélei beleolvadnak a háttérbe (mint az appban) */
.intro .ivw::after { content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #0a0412 0, rgba(10,4,18,.9) 7%, rgba(10,4,18,.55) 17%, rgba(10,4,18,.2) 27%, rgba(10,4,18,0) 36%,
                rgba(10,4,18,0) 64%, rgba(10,4,18,.2) 73%, rgba(10,4,18,.55) 83%, rgba(10,4,18,.9) 93%, #0a0412 100%),
              linear-gradient(180deg, #0a0412 0, rgba(10,4,18,0) 12%, rgba(10,4,18,0) 60%, rgba(10,4,18,.6) 82%, #0a0412 100%); }
@keyframes iv-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.intro .skip { position: absolute; right: 18px; bottom: 18px; z-index: 6; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* A nyitás után a hős-cím neon felvillanása */
.hero .display { position: relative; }
.played .hero .display { animation: neon-on 1.4s ease-out both; }
@keyframes neon-on { 0% { text-shadow: 0 0 0 transparent; } 12% { text-shadow: 0 0 40px rgba(165,28,255,.9); } 18% { text-shadow: none; } 26% { text-shadow: 0 0 60px rgba(165,28,255,.85), 0 0 120px rgba(245,200,76,.35); } 100% { text-shadow: 0 0 50px rgba(165,28,255,.35); } }
.hero .display .p { background: linear-gradient(180deg, #ffe9a8 0%, #f5c84c 45%, #b8862b 100%) !important; -webkit-background-clip: text !important; background-clip: text !important;
  filter: drop-shadow(0 0 24px rgba(245,200,76,.35)); }

/* Fényfoltok a nyitórészben */
.hero .leak { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero .leak.a { width: 520px; height: 520px; left: -120px; top: 80px; background: radial-gradient(circle, rgba(165,28,255,.55), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero .leak.b { width: 460px; height: 460px; right: -120px; top: 220px; background: radial-gradient(circle, rgba(245,200,76,.32), transparent 65%); animation: drift 17s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(80px,40px) scale(1.15); } }

/* ---------- 2. Neon kártyák ---------- */
.tile, .feat > div, .step { --mx: 50%; --my: 0%; }
.tile::after, .feat > div::after, .step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(165,28,255,.16), transparent 45%); opacity: 0; transition: opacity .35s; }
.tile:hover::after, .feat > div:hover::after, .step:hover::after { opacity: 1; }
.feat > div, .step { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.tile, .feat > div, .step { box-shadow: 0 0 0 1px rgba(165,28,255,.22), 0 20px 50px rgba(0,0,0,.35) !important; }
.tile:hover, .feat > div:hover, .step:hover { box-shadow: 0 0 0 1px rgba(217,168,255,.55), 0 0 40px rgba(165,28,255,.28), 0 30px 60px rgba(0,0,0,.45) !important; }
.tile > :not(.rings):not(.glow), .feat > div > *, .step > * { position: relative; z-index: 2; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.feat svg { filter: drop-shadow(0 0 10px rgba(165,28,255,.6)); }

/* ---------- 3. Eredményjelző-szalag (mint a tőzsdei / csarnoki LED-kijelző) ---------- */
.ticker { position: relative; display: flex; align-items: stretch; height: 46px; overflow: hidden; user-select: none;
  background: #030106; border-top: 1px solid #2a1f38; border-bottom: 1px solid #2a1f38;
  box-shadow: inset 0 8px 14px -10px rgba(0,0,0,.9), inset 0 -8px 14px -10px rgba(0,0,0,.9), 0 0 30px rgba(165,28,255,.12); }
.ticker .live { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 18px; z-index: 3; position: relative;
  background: linear-gradient(90deg, #a51cff, #6d28d9); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .18em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 26px; }
.ticker .live b { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 8px #ff3b4f; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticker .tape { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker .tape::before, .ticker .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker .tape::before { left: 0; background: linear-gradient(90deg, #030106, transparent); }
.ticker .tape::after { right: 0; background: linear-gradient(-90deg, #030106, transparent); }
/* LED-pontrács a betűkön */
.ticker .tape > .row::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1.5px 1.5px, transparent 1px, #030106 1.4px) 0 0 / 3px 3px; opacity: .55; }
.ticker .row { position: relative; display: flex; width: max-content; white-space: nowrap; animation: slide 40s linear infinite;
  font: 700 22px/1 "Courier New", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.ticker .row span { color: #ffc94a; text-shadow: 0 0 6px rgba(255,201,74,.85), 0 0 14px rgba(255,160,40,.45); padding-right: 22px; }
.ticker .row span:nth-of-type(3n+2) { color: #e2b8ff; text-shadow: 0 0 6px rgba(217,168,255,.85), 0 0 14px rgba(165,28,255,.5); }
.ticker .row i { font-style: normal; font-size: 12px; color: #a51cff; text-shadow: 0 0 8px #a51cff; margin-right: 22px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 5. Apró ízek ---------- */
body::after { content: ""; position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.btn, .bar nav a.cta-s, .codebar button, .scorer .pad .ok { position: relative; overflow: hidden; }
.btn::after, .bar nav a.cta-s::after, .codebar button::after, .scorer .pad .ok::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.btn:hover::after, .bar nav a.cta-s:hover::after, .codebar button:hover::after, .scorer .pad .ok:hover::after { left: 130%; }
.bar nav a.cta-s { box-shadow: 0 0 22px rgba(245,200,76,.35); }
.tag::before { box-shadow: 0 0 0 2px #0a0412, 0 0 0 3.5px #f5c84c, 0 0 12px rgba(165,28,255,.9) !important; }
.scorer { box-shadow: 0 0 0 1px rgba(165,28,255,.35), 0 0 0 7px rgba(165,28,255,.05), 0 40px 80px rgba(0,0,0,.55), 0 0 120px rgba(165,28,255,.22) !important; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  body::after { animation: none; }
  .ticker .row, .ticker .live b { animation: none !important; }
  .hero .leak { animation: none; }
}
