/* ==========================================================
   #06 · DON'T LOOK BACK (Halloween, 29 oct) — din IG (2).psd
   Aceleași layere servesc hero-ul (js/hero-06.js) și scena din istorie (js/editions.js).
   Scena: .x6-stage (afiș 3:4, unități cqw = % din lățimea afișului).
   ========================================================== */
.x6-stage { isolation: isolate; aspect-ratio: .75; container-type: inline-size; overflow: hidden; background: #05060b; }
.x6-stage .sp { position: relative; will-change: transform, translate; }
.x6-stage .sl { will-change: transform, opacity, translate, scale; }
/* layerele de lumină se schimbă la fiecare cadru: fiecare pe stratul lui de GPU */
.x6-glow, .x6-tvlight, .x6-tvwarm, .x6-tvshade, .x6-flash, .x6-window, .x6-threat, .x6-torch, .x6-dark, .x6-end { will-change: opacity; }
.x6-group { position: absolute; inset: 0; }

/* lumini din PSD refăcute ca layere animabile */
.x6-window { mix-blend-mode: screen; opacity: 0; }
.x6-glow { position: absolute; left: 6%; top: 3%; width: 88%; height: 44%; pointer-events: none; mix-blend-mode: screen; opacity: .7;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 96, 40, .3), rgba(170, 24, 12, .14) 55%, transparent 76%); }
/* lumina televizorului (ecranul e spre canapea): pată albastră care urcă din spatele lui */
.x6-tvlight, .x6-tvwarm { position: absolute; left: 2%; top: 22%; width: 96%; height: 36.5%; pointer-events: none; mix-blend-mode: screen; }
.x6-tvlight { opacity: .55; background: radial-gradient(46% 78% at 50% 100%, rgba(150, 190, 255, .7), rgba(70, 110, 255, .24) 46%, transparent 76%); }
.x6-tvwarm { opacity: 0; background: radial-gradient(46% 78% at 50% 100%, rgba(255, 226, 190, .55), rgba(255, 170, 120, .16) 46%, transparent 76%); }
.x6-tvshade { position: absolute; left: 0; top: 26%; width: 100%; height: 34%; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 62% at 50% 72%, rgba(0, 0, 6, .9), transparent 100%); }

/* titlul cu dedublare RGB pentru glitch */
.x6-title .sp { filter: drop-shadow(0 0 .9cqw rgba(200, 20, 20, .35)); }
.x6-rgb { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; }
.x6-rgb--r { filter: brightness(.7) sepia(1) saturate(9) hue-rotate(-40deg); }
.x6-rgb--c { filter: brightness(.7) sepia(1) saturate(9) hue-rotate(150deg); }

/* ucigașii se apleacă din talie/picioare spre cameră */
.x6-killers .sl { transform-origin: 50% 100%; }
.x6-logo .sl { transform-origin: 50% 40%; }

/* sclipire pe gheața din frapieră */
.x6-glint { position: absolute; left: 6.4%; top: 40.6%; width: 2.6cqw; aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(closest-side, #fff, rgba(200, 230, 255, .5) 30%, transparent),
    linear-gradient(90deg, transparent 46%, #fff 50%, transparent 54%), linear-gradient(0deg, transparent 46%, #fff 50%, transparent 54%);
  animation: x6-glint 5.5s 2s ease-in-out infinite; }
@keyframes x6-glint { 0%, 80%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 88% { opacity: .9; transform: scale(1) rotate(45deg); } }

/* picături de sânge din „SPRITZ” (poziții = vârfurile scurgerilor, din PSD) */
.x6-drop { position: absolute; left: var(--x); top: var(--y); width: 1.05cqw; height: 1.4cqw; margin: -.7cqw 0 0 -.52cqw; pointer-events: none; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%; transform-origin: 50% 0;
  background: radial-gradient(circle at 36% 34%, #e04452, #8c0b14 52%, #3a0206 100%);
  animation: x6-drop var(--t, 4.6s) var(--d, 0s) cubic-bezier(.55, 0, .9, .55) infinite; }
@keyframes x6-drop {
  0% { opacity: 0; transform: translateY(0) scale(.15); }
  6% { opacity: 1; }
  48% { opacity: 1; transform: translateY(0) scale(1); }
  58% { transform: translateY(35%) scale(.92, 1.15); }
  100% { opacity: 0; transform: translateY(1100%) scale(.75, 1.7); }
}

/* ceață la podea + întunecare (intro) + fulger + capătul dolly-ului */
.x6-fog { position: absolute; left: -60%; width: 220%; top: 46%; height: 60%; pointer-events: none; mix-blend-mode: screen; opacity: .2;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='700' preserveAspectRatio='none'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0019 .006' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .62  0 0 0 0 .7  0 0 0 0 .9  0 0 0 1.35 -.38'/%3E%3C/filter%3E%3Crect width='2400' height='700' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%);
  animation: x6-fog 26s ease-in-out infinite alternate; }
@keyframes x6-fog { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
.x6-flash { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(130% 95% at 0% 22%, rgba(220, 232, 255, .95), rgba(150, 176, 255, .42) 42%, rgba(60, 80, 150, .14) 78%); }
.x6-dark { position: absolute; inset: 0; pointer-events: none; --hole: 160%; opacity: 1;
  background: radial-gradient(calc(var(--hole) * 1.25) var(--hole) at 50% 54%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 45%, #000 100%); visibility: hidden; }
.x6-end { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; }
.x6-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- ambient doar din CSS (scena din istorie; hero-ul le conduce din JS) ---------- */
.x6-ambient .x6-tvlight { animation: x6-tv 7s steps(1) infinite; }
.x6-ambient .x6-tvwarm { animation: x6-tvw 7s steps(1) infinite; }
.x6-ambient .x6-tvshade { animation: x6-tvs 7s steps(1) infinite; }
@keyframes x6-tv { 0% { opacity: .55; } 9% { opacity: .9; } 12% { opacity: .35; } 20% { opacity: .7; } 34% { opacity: .2; } 37% { opacity: .95; } 39% { opacity: .5; } 55% { opacity: .75; } 70% { opacity: .3; } 82% { opacity: .85; } 90% { opacity: .6; } }
@keyframes x6-tvw { 0%, 33% { opacity: 0; } 34% { opacity: .5; } 54% { opacity: 0; } 70% { opacity: .35; } 81%, 100% { opacity: 0; } }
@keyframes x6-tvs { 0% { opacity: .1; } 12% { opacity: .3; } 20% { opacity: .05; } 34% { opacity: .4; } 37% { opacity: 0; } 70% { opacity: .3; } 82%, 100% { opacity: .05; } }
.x6-ambient .x6-glow { animation: x6-fire 3.2s ease-in-out infinite alternate; }
@keyframes x6-fire { 0% { opacity: .55; } 35% { opacity: .8; } 60% { opacity: .62; } 100% { opacity: .9; } }
.x6-ambient .x6-flash:not(.x6-bolt) { animation: x6-storm 13s 3s infinite; }
.x6-ambient .x6-window { animation: x6-storm-win 13s 3s infinite; }
@keyframes x6-storm { 0%, 61%, 100% { opacity: 0; } 62% { opacity: .75; } 63% { opacity: .1; } 64% { opacity: .55; } 68% { opacity: 0; } 86% { opacity: 0; } 86.6% { opacity: .35; } 88% { opacity: 0; } }
@keyframes x6-storm-win { 0%, 61%, 100% { opacity: .15; } 62% { opacity: 1; } 63% { opacity: .3; } 64% { opacity: .9; } 70% { opacity: .15; } 86.6% { opacity: .7; } 89% { opacity: .15; } }

/* ==========================================================
   HERO #06 — afișul ca film: scena în centru, camera (intro + scroll) din JS
   ========================================================== */
.hero6 { position: relative; isolation: isolate; overflow: hidden; color: #f3ece6; background: #030306; }
.hero6__world { position: absolute; inset: -8%; z-index: 0; background: url('../assets/editions/06/world.webp') center 42% / cover; filter: blur(14px); }
.hero6__world::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(3, 3, 6, .2), rgba(3, 3, 6, .85) 80%); }
.hero6__dolly { position: relative; z-index: 2; transform-origin: 50% 30%; will-change: transform; }
.hero6__cam { position: relative; will-change: transform; perspective: 1600px; }
.hero6__cam .x6-stage { position: relative; transform-style: flat; will-change: transform; }
.hero6__pulse { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(75% 70% at 50% 45%, transparent 45%, rgba(150, 0, 10, .55) 85%, rgba(60, 0, 4, .9) 100%); }
.hero6 .hs-fog--a { z-index: 1; }
.hero6 .hs-fog--b { z-index: 3; }
.hero6 .hs-grain { z-index: 5; }
.hero6 .hs-vignette { z-index: 4; }

/* lanterna / privirea (mouse sau atingere) */
.x6-torch { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(17cqw 17cqw at var(--tx, 50%) var(--ty, 34%), rgba(255, 232, 200, .24), rgba(255, 220, 180, .07) 55%, transparent 76%); }
.is-torch .x6-torch { opacity: 1; }
.x6-threat { position: absolute; inset: 0; pointer-events: none; opacity: var(--threat, 0);
  background: radial-gradient(34cqw 34cqw at var(--tx, 50%) var(--ty, 34%), transparent 25%, rgba(0, 0, 0, .72) 100%);
  /* titlul și logo-urile de sus rămân citibile */
  -webkit-mask-image: linear-gradient(180deg, transparent 17%, #000 27%); mask-image: linear-gradient(180deg, transparent 17%, #000 27%); }

/* informațiile ediției */
.hero6__ui { position: relative; z-index: 8; pointer-events: none; }
.hero6__ui > * { pointer-events: auto; }
.hero6__info { display: grid; justify-items: center; text-align: center; }
.hero6__num { margin: 0; font-family: var(--font-bubble); font-size: clamp(44px, 5vw, 76px); line-height: 1; color: #fff; text-shadow: 0 0 26px rgba(255, 30, 40, .45); }
.hero6__date { display: grid; margin: 8px 0 0; font-family: 'Steelfish', var(--font-cond); font-weight: 700; text-transform: uppercase; line-height: .88; letter-spacing: .02em; }
.hero6__date span { font-size: clamp(22px, 2vw, 30px); color: #f3ece6; letter-spacing: .14em; }
.hero6__date strong { font-size: clamp(54px, 5.6vw, 92px); color: #e0262e; text-shadow: 0 0 24px rgba(224, 38, 46, .5); }
.hero6__place { margin: 12px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 236, 230, .78); }
.hero6__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

.hero6__count { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 22px); margin: 0; font-family: 'Steelfish', var(--font-cond); font-weight: 700; text-transform: uppercase; }
.hero6__count[hidden] { display: none; }
.hero6__count div { display: grid; justify-items: center; min-width: 2.2ch; }
.hero6__count b { display: block; font-size: clamp(44px, 4.8vw, 78px); line-height: .9; color: #f3ece6; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 40, 40, .35); }
.hero6__count span { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #e0262e; }
.hero6__count.is-live b { color: #e0262e; }


/* Telefon / tabletă: afișul sus, informațiile dedesubt */
@media (max-width: 1099px) {
  .hero6 { min-height: 100svh; padding-bottom: var(--dock-space); }
  .hero6__cam { width: min(100%, 64svh, 620px); margin: 0 auto; }
  /* afișul se topește în fundal jos (și lateral, când e mai îngust decât ecranul) */
  .hero6__cam .x6-stage { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
  .hero6__ui { display: grid; gap: 26px; justify-items: center; margin-top: calc(-.08 * min(100vw, 64svh, 620px)); padding: 0 16px; }
}
/* Desktop lat: scena în mijloc pe toată înălțimea, ediția în stânga, numărătoarea în dreapta */
@media (min-width: 1100px) {
  .hero6 { height: 100svh; min-height: 620px; }
  .hero6__dolly { position: absolute; inset: 0; }
  .hero6__cam { position: absolute; left: 50%; top: -2svh; width: 70.5svh; height: 94svh; margin-left: -35.25svh; }
  .hero6__cam .x6-stage { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .hero6__ui { position: absolute; inset: 0 0 calc(var(--dock-space) - 30px); display: grid; grid-template-columns: 1fr 70.5svh 1fr; align-items: center; }
  .hero6__info { grid-column: 1; padding: 0 24px; }
  .hero6__count { grid-column: 3; flex-direction: column; align-items: center; gap: 14px; }
  .hero6__count div { grid-template-columns: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .x6-drop, .x6-glint, .x6-fog, .x6-ambient .x6-tvlight, .x6-ambient .x6-tvwarm, .x6-ambient .x6-tvshade, .x6-ambient .x6-glow, .x6-ambient .x6-flash, .x6-ambient .x6-window { animation: none; }
}

/* ==========================================================
   #06 în istorie
   ========================================================== */
#editia-6 { --scene-bg: #05060b; --ar: .75; --scrim: 5, 6, 11; --fact-label: var(--font-body); --fact-value: 'Steelfish', var(--font-cond); color: #fff; }
@media (min-width: 900px) {
  #editia-6 .scene__stage { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%); mask-image: linear-gradient(90deg, transparent 0, #000 15%); }
}
#editia-6 .ed__num { color: #fff; text-shadow: 0 0 22px rgba(255, 30, 40, .55); }
#editia-6 .scene-brand { gap: 0; }
#editia-6 .scene-brand__logo { width: min(100%, 440px); }
#editia-6 .scene-brand__logo + .scene-brand__logo { width: min(92%, 400px); margin: -4% 0 0 4%; }
#editia-6 .scene-brand__sub { width: min(100%, 440px); margin: 18px 0 0; filter: brightness(1.35) drop-shadow(0 0 14px rgba(200, 20, 20, .5)); }
#editia-6 .scene-facts { margin-top: 24px; }
#editia-6 .scene-facts dd { font-size: 24px; letter-spacing: .03em; }
#editia-6 .scene-facts dd a { border-bottom-color: #e0262e; }
#editia-6 .scene-powered img { height: 26px; }
#editia-6 .ed__cta { margin-top: 26px; }
