/* =====================================================================================
   [cine] BEJÁTSZÁSOK (js/cine/index.js) – meccskezdő filmes bejátszás, 3-2-1, pillanat-sávok, meccs végi lezárás.
   B · Műszak tokenek (style.css): --f-disp / --f-mono / --f-body, --paper, --light, --bg. Csak transform / opacity / clip-path
   animálódik (WAAPI). Törlés: docs/intros.md (ez a fájl + az index.html <link> sora).
   ===================================================================================== */
#cine { position: fixed; inset: 0; z-index: 56; overflow: hidden; pointer-events: none; contain: strict; color: var(--paper); }
#cine[hidden] { display: none; }
#cine * { pointer-events: none; }
#cine [hidden] { display: none !important; }
/* a repülés alatt a HUD és a „Kattints a játékhoz” nem látszik (a landolásra visszajön) */
html.cine-fly #hud { opacity: 0; transition: opacity .2s ease; }
#hud { transition: opacity .45s ease; }
html.cine-fly #clickToPlay { opacity: 0 !important; }
html.cine-fly #centerMsg, html.cine-fly #subMsg { visibility: hidden; }

.cn-shade { position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(6, 6, 7, .62) 0%, rgba(6, 6, 7, .28) 30%, rgba(6, 6, 7, 0) 55%),
    linear-gradient(0deg, rgba(6, 6, 7, .66) 0%, rgba(6, 6, 7, 0) 38%); }
#cine[data-fly="0"] .cn-shade { display: none; }
.cn-bars i { position: absolute; left: 0; right: 0; height: 7.5vh; background: #050506; translate: 0 -101%; }
.cn-bars .t { top: 0; } .cn-bars .b { bottom: 0; translate: 0 101%; }
.cn-dip { position: absolute; inset: 0; background: #050506; opacity: 0; }
.cn-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(38% 42% at 50% 52%, rgba(255, 214, 140, .75), rgba(243, 162, 91, .28) 45%, rgba(243, 162, 91, 0) 75%); mix-blend-mode: screen; }
/* Hűtőkirály: dér a kép szélén, a hűtőben lehelet-pára alul */
.cn-frost { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(115% 92% at 50% 50%, rgba(220, 238, 255, 0) 44%, rgba(200, 226, 252, .38) 72%, rgba(236, 246, 255, .86) 100%), linear-gradient(rgba(170, 205, 240, .1), rgba(170, 205, 240, .1)),
    repeating-radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .06) 0 2px, transparent 2px 9px),
    repeating-radial-gradient(circle at 86% 80%, rgba(255, 255, 255, .05) 0 1.5px, transparent 1.5px 7px); }
.cn-frost .br { position: absolute; left: 50%; bottom: 4vh; width: 46vw; height: 30vh; margin-left: -23vw; border-radius: 50%; opacity: 0;
  background: radial-gradient(50% 50% at 50% 60%, rgba(240, 248, 255, .5), rgba(240, 248, 255, 0) 70%); filter: blur(6px); }
.cn-frost.in .br { animation: cn-breath 2.1s ease-in-out .2s infinite; }
@keyframes cn-breath { 0% { opacity: 0; translate: 0 10vh; scale: .6; } 30% { opacity: .9; } 70% { opacity: .2; } 100% { opacity: 0; translate: 0 -6vh; scale: 1.3; } }

/* cím: bal alsó, szerkesztett (a pálya órája, helye; a mód nagy keskeny betűvel; a cél) */
.cn-head { position: absolute; left: clamp(24px, 6vw, 120px); bottom: calc(7.5vh + clamp(22px, 5vh, 56px)); display: grid; justify-items: start; gap: 6px; max-width: min(58vw, 100vw - 520px); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.cn-kick { display: inline-flex; align-items: baseline; gap: .7em; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--light); }
.cn-kick span { color: rgba(245, 242, 236, .88); } .cn-kick i { font-style: normal; color: rgba(245, 242, 236, .4); }
.cn-title { font-family: var(--f-disp); font-weight: 900; font-size: clamp(60px, 7.2vw, 136px); line-height: .84; padding: .18em 0 .04em; text-transform: uppercase; text-wrap: balance; clip-path: inset(0 -1em); }
.cn-sub { font-family: var(--f-body); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 242, 236, .9); }
/* szereped: bal felül */
.cn-role { position: absolute; left: clamp(24px, 6vw, 120px); top: calc(7.5vh + 22px); display: inline-flex; align-items: center; gap: 10px; opacity: 0;
  font-family: var(--f-body); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 10px rgba(0, 0, 0, .5); }
.cn-role i { width: 8px; height: 8px; border-radius: 50%; }
.cn-role em { font-style: normal; padding: 3px 10px; border-radius: 999px; color: var(--bg); background: var(--light); text-shadow: none; letter-spacing: .14em; }
#cine[data-fly="0"] .cn-role { left: 50%; top: auto; bottom: 22vh; translate: -50% 0; }
/* beállítás-felirat (bombapont, zóna, széf, csapat): jobb felül, kinyílik */
.cn-cap { position: absolute; right: clamp(24px, 5vw, 96px); top: calc(7.5vh + 20px); display: grid; justify-items: end; gap: 2px; opacity: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .45); }
.cn-cap.on { animation: cn-cap 2.2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes cn-cap { 0% { opacity: 0; translate: 16px 0; clip-path: inset(0 0 0 100%); } 18% { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); } 82% { opacity: 1; } 100% { opacity: 0; } }
.cn-ck { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--light); }
.cn-ct { font-family: var(--f-disp); font-weight: 800; font-size: clamp(28px, 3vw, 46px); line-height: .95; text-transform: uppercase; }
.cn-cap[data-t="0"] .cn-ct { color: var(--rose-2); } .cn-cap[data-t="1"] .cn-ct { color: var(--blue-2); }
/* névsor: jobb alsó, a két crew jelvénnyel */
.cn-roster { position: absolute; right: clamp(24px, 5vw, 96px); bottom: calc(7.5vh + clamp(22px, 5vh, 56px)); display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: flex-end; opacity: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .5); }
.cn-crew { min-width: 150px; }
.cn-ch { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(245, 242, 236, .28); font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cn-ch span { margin-left: auto; font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; color: rgba(245, 242, 236, .6); letter-spacing: .1em; }
.cn-emb { flex: none; display: inline-grid; width: 24px; height: 24px; font-style: normal; } .cn-emb svg { width: 100%; height: 100%; }
.cn-crew ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-family: var(--f-body); font-size: 13px; color: rgba(245, 242, 236, .92); }
.cn-crew li.bot { color: rgba(245, 242, 236, .66); }
.cn-crew li.me { color: var(--light); font-weight: 700; }
.cn-crew li.more { font-family: var(--f-mono); font-size: 11px; color: rgba(245, 242, 236, .55); }
.cn-crew.ffa ul { grid-template-columns: repeat(2, minmax(110px, auto)); column-gap: 22px; }
/* fegyverlétra: a fegyverek sora végigfut */
.cn-ladder { position: absolute; left: 0; right: 0; top: calc(7.5vh + 64px); height: 64px; opacity: 0; overflow: hidden; }
.cn-lt { display: inline-flex; gap: 26px; align-items: center; height: 100%; white-space: nowrap; padding-left: 4vw; }
.cn-lt span { display: inline-flex; align-items: center; gap: 8px; }
.cn-lt em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--light); }
.cn-lt .cn-wi { height: 34px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) brightness(1.15); }
.cn-skip { position: absolute; left: 50%; bottom: 0; height: 7.5vh; translate: -50% 0; display: flex; align-items: center; gap: 8px; opacity: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 242, 236, .62); }
.cn-skip kbd { font: inherit; padding: 1px 6px; border: 1px solid rgba(245, 242, 236, .35); border-radius: 3px; color: rgba(245, 242, 236, .85); }
/* 3 – 2 – 1 – HAJRÁ: a célkereszt fölött, kis takaróval */
.cn-count { position: absolute; left: 0; right: 0; top: 23vh; display: grid; place-items: center; visibility: hidden; }
.cn-count b { display: block; font-family: var(--f-disp); font-weight: 900; font-size: clamp(90px, 11vw, 190px); line-height: .9; padding: .1em .2em 0; text-transform: uppercase; opacity: 0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .55), 0 0 28px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.cn-count[data-n="0"] b { color: var(--light); font-size: clamp(76px, 8.6vw, 150px); }

/* ---------- meccs végi lezárás ---------- */
#cine[data-k="outro"] .cn-shade { background: linear-gradient(90deg, rgba(6, 6, 7, .66) 0%, rgba(6, 6, 7, .3) 32%, rgba(6, 6, 7, 0) 58%), linear-gradient(0deg, rgba(6, 6, 7, .7), rgba(6, 6, 7, 0) 45%); }
.cn-end { position: absolute; left: clamp(24px, 6vw, 120px); bottom: calc(7.5vh + clamp(22px, 5vh, 56px)); display: grid; justify-items: start; gap: 8px; text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.cn-ek { font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 242, 236, .8); }
.cn-et { font-family: var(--f-disp); font-weight: 900; font-size: clamp(72px, 9.5vw, 176px); line-height: .8; padding: .18em 0 .04em; text-transform: uppercase; white-space: nowrap; clip-path: inset(0 -1em); }
.cn-end[data-w="w"] .cn-et { color: var(--light); }
.cn-end[data-w="l"] .cn-et { color: rgba(245, 242, 236, .9); }
.cn-el { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-body); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.cn-el b { font-family: var(--f-disp); font-weight: 900; font-size: 34px; letter-spacing: .02em; }
.cn-el .cn-emb { width: 30px; height: 30px; }
.cn-em { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: 14px; }
.cn-em em { font-style: normal; padding: 2px 8px; border-radius: 3px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--bg); background: var(--light); text-shadow: none; }
.cn-em span { color: rgba(245, 242, 236, .72); }

/* ---------- meccs közbeni pillanat-sáv: a felső eredményjelző ALATT, a célkereszttől távol ---------- */
#cineBand { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; top: 132px; z-index: 3; display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; padding: 8px 22px 10px;
  background: linear-gradient(90deg, rgba(6, 6, 7, 0), rgba(6, 6, 7, .72) 18%, rgba(6, 6, 7, .72) 82%, rgba(6, 6, 7, 0)); color: var(--paper); pointer-events: none; white-space: nowrap; }
#cineBand[hidden] { display: none; }
#cineBand .cb-k { grid-column: 1 / -1; justify-self: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--light); }
#cineBand .cb-t { font-family: var(--f-disp); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
#cineBand .cb-s { font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 242, 236, .86); }
#cineBand .cb-line { position: absolute; left: 22px; right: 22px; bottom: 3px; height: 2px; background: var(--light); transform-origin: 0 50%; opacity: .8; }
@media (max-width: 760px) {
  .cn-roster { display: none; } .cn-title { font-size: clamp(48px, 15vw, 90px); white-space: normal; }
  #cineBand .cb-t { font-size: 24px; } #cineBand { top: 104px; }
}
