/* ================================================================
   HERO V2 — Cinematic fight-themed slider
   ================================================================ */

.hero-v2 {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a0308 0%, #050507 70%);
  color: var(--text);
  isolation: isolate;
}

/* ---------- Background layers ---------- */

.hero-v2__stripes {
  position: absolute; inset: -20%;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 80px,
    rgba(255, 26, 60, 0.04) 80px 120px,
    transparent 120px 200px
  );
  animation: hero-stripes 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes hero-stripes {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

.hero-v2__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 26, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 26, 60, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  z-index: 1;
  pointer-events: none;
  animation: hero-grid 60s linear infinite;
}
@keyframes hero-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

.hero-v2__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(5,5,7,0.85) 100%),
    radial-gradient(circle at 50% 50%, rgba(255,26,60,0.22), transparent 45%);
  z-index: 2;
  pointer-events: none;
}

.hero-v2__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(255, 26, 60, 0.03) 2px 3px
  );
  z-index: 3;
  pointer-events: none;
  animation: hero-scan 4s linear infinite;
}
@keyframes hero-scan {
  from { background-position: 0 0; }
  to { background-position: 0 6px; }
}

.hero-v2__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* ---------- Lightning SVG ---------- */

.hero-v2__bolts {
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: hero-bolt 7s infinite;
}
.hero-v2__bolts path {
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 6px #ff1a3c) drop-shadow(0 0 18px #ff1a3c);
}
@keyframes hero-bolt {
  0%, 88%, 100% { opacity: 0; }
  90%, 92% { opacity: 0.9; }
  91% { opacity: 0; }
  93% { opacity: 0.5; }
}

/* ---------- Central rotating halo + logo ---------- */

.hero-v2__core {
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, transform .6s ease;
}

/* Per-slide core adjustments — slide 0 (title) must NOT compete with big title */
.hero-v2--s0 .hero-v2__logo { opacity: 0.12; filter: drop-shadow(0 0 40px var(--red-glow)); }
.hero-v2--s0 .halo-text { opacity: 0; }
.hero-v2--s0 .halo { opacity: 0.3; }
.hero-v2--s0 .shockwave { opacity: 0.5; }

/* Slide 1 (VS) — shift core behind, dim it */
.hero-v2--s1 .hero-v2__core { opacity: 0.35; transform: translate(-50%, -50%) scale(1.3); }

/* Slide 2 (event) — full expressive core, logo visible */
.hero-v2--s2 .hero-v2__core { opacity: 0.55; }

.halo {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 26, 60, 0.25);
  border-radius: 50%;
  animation: halo-rot 20s linear infinite;
}
.halo--2 {
  inset: 60px;
  border-style: dashed;
  border-color: rgba(255, 26, 60, 0.4);
  animation: halo-rot 14s linear infinite reverse;
}
.halo--3 {
  inset: -80px;
  border-color: rgba(0, 229, 255, 0.15);
  animation: halo-rot 40s linear infinite;
}
@keyframes halo-rot {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.halo-text {
  position: absolute;
  inset: -30px;
  animation: halo-rot 30s linear infinite;
}
.halo-text text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 10px;
  fill: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 26, 60, 0.7));
}

.hero-v2__logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 30px var(--red-glow)) drop-shadow(0 0 60px var(--red-glow));
  animation: logo-pulse 2s ease-in-out infinite;
  z-index: 2;
  transition: opacity .5s ease;
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255,26,60,0.8)) drop-shadow(0 0 60px rgba(255,26,60,0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(255,26,60,1)) drop-shadow(0 0 100px rgba(255,26,60,0.6)); }
}

/* Shockwaves */
.shockwave {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: shock 3s ease-out infinite;
}
.shockwave--2 { animation-delay: 1s; border-color: rgba(255,26,60,0.6); }
.shockwave--3 { animation-delay: 2s; border-color: rgba(255,26,60,0.3); }
@keyframes shock {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Trigger shockwave on slide change */
.shockwave--burst {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border: 3px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.shockwave--burst.fire {
  animation: burst 0.9s ease-out;
}
@keyframes burst {
  0% { transform: scale(0.2); opacity: 1; border-width: 6px; }
  100% { transform: scale(5); opacity: 0; border-width: 0; }
}

/* ---------- Slides ---------- */

.hero-v2__slides {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Slide 1: Hero Title --- */

.slide--title {
  gap: 24px;
}
.slide--title .slide__tag {
  font-family: var(--font-mono);
  letter-spacing: 8px;
  font-size: 12px;
  color: var(--red);
  display: flex; align-items: center; gap: 18px;
}
.slide--title .slide__tag::before,
.slide--title .slide__tag::after {
  content: ""; width: 44px; height: 1px; background: var(--red);
}
.slide--title.active .slide__tag {
  animation: slide-up-entry 0.7s 0.1s ease-out backwards;
}
@keyframes slide-up-entry {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -2px;
  font-size: clamp(64px, 11vw, 180px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.slide__title .t {
  display: block;
  overflow: hidden;
  line-height: 0.9;
}
.slide__title .t > span {
  display: inline-block;
}
.slide.active .slide__title .t > span {
  animation: slide-up-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.slide.active .slide__title .t:nth-child(1) > span { animation-delay: 0.25s; }
.slide.active .slide__title .t:nth-child(2) > span { animation-delay: 0.4s; }
.slide.active .slide__title .t:nth-child(3) > span { animation-delay: 0.55s; }

.slide__title .outline {
  -webkit-text-stroke: 2px var(--red);
  color: transparent;
}
.slide__title .glitch {
  position: relative;
  color: var(--text);
}
.slide__title .glitch::before,
.slide__title .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  mix-blend-mode: screen;
  animation: glitch-shift 3s infinite;
}
.slide__title .glitch::before { color: var(--red); }
.slide__title .glitch::after { color: var(--cyan); animation-delay: 0.15s; }
@keyframes glitch-shift {
  0%, 90%, 100% { transform: translate(0,0); opacity: 0; }
  91% { transform: translate(-4px, 2px); opacity: 1; }
  92% { transform: translate(4px, -2px); opacity: 0.8; }
  93% { transform: translate(-2px, -1px); opacity: 1; }
  94% { transform: translate(3px, 2px); opacity: 0.6; }
  95% { transform: translate(0,0); opacity: 0; }
}

/* --- Slide 2: VS Card --- */

.slide--vs {
  gap: 24px;
}
.slide--vs .slide__tag {
  font-family: var(--font-mono);
  color: var(--red);
  letter-spacing: 5px;
  font-size: 12px;
  padding: 6px 18px;
  border: 1px solid var(--red);
  background: rgba(255, 26, 60, 0.1);
}

.vs-card {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-display);
}
.vs-card__fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.slide--vs.active .vs-card__fighter--red {
  animation: slide-in-left 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.slide--vs.active .vs-card__fighter--blue {
  animation: slide-in-right 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

.vs-card__img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  filter: grayscale(30%) contrast(1.1);
  border: 2px solid transparent;
}
.vs-card__fighter--red .vs-card__img {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255, 26, 60, 0.5);
}
.vs-card__fighter--blue .vs-card__img {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}
.vs-card__name {
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1;
}
.vs-card__nick {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
}
.vs-card__fighter--red .vs-card__name { color: var(--red); }
.vs-card__fighter--blue .vs-card__name { color: var(--cyan); }

.vs-card__x {
  font-family: var(--font-display);
  font-size: 140px;
  color: var(--text);
  -webkit-text-stroke: 3px var(--red);
  text-shadow: 0 0 40px rgba(255, 26, 60, 0.8);
}
.slide--vs.active .vs-card__x {
  animation: vs-smash 0.7s 0.6s cubic-bezier(0.5, 1.6, 0.5, 1) backwards;
}
@keyframes vs-smash {
  0% { opacity: 0; transform: scale(2.5) rotate(-30deg); }
  60% { opacity: 1; transform: scale(0.8) rotate(5deg); }
  80% { transform: scale(1.1) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.vs-card__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-top: 20px;
}
.vs-card__meta b { color: var(--text); font-size: 16px; font-family: var(--font-display); letter-spacing: 2px; }
.vs-card__meta .spacer { width: 140px; }

/* --- Slide 3: Apocalypse / event --- */

.slide--event {
  gap: 20px;
}
.slide--event .slide__tag {
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-size: 12px;
  color: var(--red);
}
.slide--event .event-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 15vw, 240px);
  letter-spacing: -2px;
  line-height: 0.82;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.slide--event .event-title .t {
  display: block;
  overflow: hidden;
}
.slide--event .event-title .t > span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #ff4060 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide--event.active .event-title .t > span {
  animation: slide-up-reveal 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.slide--event .event-sub {
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-size: 13px;
  color: var(--text);
}
.slide--event.active .event-sub {
  animation: slide-up-entry 0.8s 0.8s ease-out backwards;
}

.countdown-mini {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.slide--event.active .countdown-mini {
  animation: slide-up-entry 0.8s 1s ease-out backwards;
}
.countdown-mini__u {
  background: rgba(17,17,23,0.85);
  border: 1px solid var(--red);
  padding: 14px 22px;
  min-width: 92px;
  text-align: center;
}
.countdown-mini__u b {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -1px;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.countdown-mini__u span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* --- Reusable slide-in animations --- */
@keyframes slide-up-reveal {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- HUD corners ---------- */

.hud {
  position: absolute;
  z-index: 20;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}
.hud--tl { top: 100px; left: 32px; }
.hud--tr { top: 100px; right: 32px; }
.hud--bl { bottom: 120px; left: 32px; }
.hud--br { bottom: 120px; right: 32px; }
.hud__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.hud__dot--green {
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Audio visualizer bars */
.audio-viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.audio-viz span {
  display: block;
  width: 3px;
  background: var(--red);
  animation: audio 0.9s ease-in-out infinite;
}
.audio-viz span:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.audio-viz span:nth-child(2) { animation-delay: 0.1s; height: 80%; }
.audio-viz span:nth-child(3) { animation-delay: 0.2s; height: 50%; }
.audio-viz span:nth-child(4) { animation-delay: 0.3s; height: 100%; }
.audio-viz span:nth-child(5) { animation-delay: 0.4s; height: 60%; }
.audio-viz span:nth-child(6) { animation-delay: 0.5s; height: 40%; }
.audio-viz span:nth-child(7) { animation-delay: 0.6s; height: 90%; }
@keyframes audio {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.3); }
}

/* ---------- Vertical marquees ---------- */

.vmarquee {
  position: absolute;
  top: 0; bottom: 0;
  width: 34px;
  overflow: hidden;
  z-index: 15;
  background: linear-gradient(to right, rgba(5,5,7,0.9), rgba(5,5,7,0.2));
  border: 1px solid var(--border);
  border-top: none;
  border-bottom: none;
}
.vmarquee--left { left: 0; }
.vmarquee--right { right: 0; background: linear-gradient(to left, rgba(5,5,7,0.9), rgba(5,5,7,0.2)); }

.vmarquee__track {
  position: absolute;
  top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255, 26, 60, 0.6);
  line-height: 34px;
  animation: vmarquee 40s linear infinite;
}
.vmarquee--right .vmarquee__track {
  writing-mode: vertical-lr;
  transform: rotate(0);
  animation-direction: reverse;
  color: rgba(0, 229, 255, 0.3);
}
@keyframes vmarquee {
  from { transform: translateY(0) rotate(180deg); }
  to { transform: translateY(-50%) rotate(180deg); }
}
.vmarquee--right .vmarquee__track {
  animation-name: vmarquee-r;
}
@keyframes vmarquee-r {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* ---------- Slide navigation ---------- */

.hero-v2__nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 20;
}
.hero-v2__progress {
  width: 280px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hero-v2__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff4060, var(--red));
  background-size: 200% 100%;
  box-shadow: 0 0 10px var(--red-glow);
  width: 0;
  animation: prog-shine 1.5s linear infinite;
}
@keyframes prog-shine {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.hero-v2__dots {
  display: flex;
  gap: 10px;
}
.hero-v2__dot {
  width: 36px; height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.hero-v2__dot:hover { background: rgba(255, 255, 255, 0.3); }
.hero-v2__dot.active { background: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.hero-v2__dot .n {
  position: absolute;
  top: -18px; left: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  opacity: 0;
}
.hero-v2__dot.active .n { opacity: 1; color: var(--red); }

/* ---------- CTA row (persistent across slides) ---------- */

.hero-v2__cta {
  position: absolute;
  bottom: 180px;
  right: 80px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.hero-v2__cta a {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 13px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: filter 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.hero-v2__cta a:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 30px var(--red-glow);
}
.hero-v2__cta a.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  clip-path: none;
  padding: 13px 21px;
}
.hero-v2__cta a.ghost:hover { border-color: var(--red); color: var(--red); box-shadow: none; }

/* ---------- Blood drip (decorative) ---------- */

.bloodrip {
  position: absolute;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--red) 40%, var(--red-2));
  opacity: 0.6;
  z-index: 4;
  border-radius: 0 0 3px 3px;
  filter: drop-shadow(0 0 6px var(--red-glow));
}
.bloodrip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: -3px;
  width: 9px;
  height: 12px;
  background: var(--red-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-glow);
}
.bloodrip--1 { left: 15%; height: 120px; animation: drip 6s ease-in infinite; }
.bloodrip--2 { left: 70%; height: 180px; animation: drip 8s 2s ease-in infinite; }
.bloodrip--3 { left: 40%; height: 80px; animation: drip 5s 1.5s ease-in infinite; }
@keyframes drip {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 0.8; }
  70% { opacity: 0.8; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ---------- Corner frames ---------- */

.hero-v2__frame {
  position: absolute;
  z-index: 16;
  width: 90px;
  height: 90px;
  border: 2px solid var(--red);
  pointer-events: none;
}
.hero-v2__frame--tl { top: 88px; left: 50px; border-right: 0; border-bottom: 0; }
.hero-v2__frame--tr { top: 88px; right: 50px; border-left: 0; border-bottom: 0; }
.hero-v2__frame--bl { bottom: 30px; left: 50px; border-right: 0; border-top: 0; }
.hero-v2__frame--br { bottom: 30px; right: 50px; border-left: 0; border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-v2 { min-height: 680px; }
  .hero-v2__slides { padding: 0 20px; }
  .hud--tl, .hud--tr, .hud--bl, .hud--br,
  .vmarquee, .hero-v2__frame { display: none; }
  .hero-v2__core { width: 360px; height: 360px; }
  .hero-v2__logo { width: 130px; }
  .hero-v2__cta { position: static; margin: 40px; flex-direction: row; }
  .vs-card { gap: 10px; }
  .vs-card__img { width: 130px; height: 130px; }
  .vs-card__name { font-size: 22px; }
  .vs-card__x { font-size: 70px; }
  .slide__title { font-size: clamp(48px, 13vw, 90px); }
}
