/* Phoenix Down Arcade — MvC / VS Series Aesthetic */
/* Marvel vs Capcom 2 · Street Fighter · Capcom Fighting Heritage */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Barlow+Condensed:ital,wght@0,400;0,700;0,800;1,700&family=Share+Tech+Mono&display=swap');

:root {
  --red:    #ff0033;
  --blue:   #0066ff;
  --gold:   #ffcc00;
  --orange: #ff6600;
  --purple: #9900ff;
  --cyan:   #00ffff;
  --white:  #ffffff;
  --dark:   #020010;   /* MvC2 deep space black */
  --darker: #010008;
  --panel:  #0a0018;
  --text:   #f0f0f0;
  --dim:    rgba(240,240,240,0.45);
  --border-red:  rgba(255,0,51,0.35);
  --border-blue: rgba(0,102,255,0.35);
  --ff-head: 'Black Han Sans', sans-serif;
  --ff-body: 'Barlow Condensed', sans-serif;
  --ff-mono: 'Share Tech Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--ff-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCANLINES ────────────────────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  animation: scanMove 10s linear infinite;
  opacity: 0.5;
}
@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2,0,16,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-red);
}

/* Capcom-style nav: diagonal color split */
.nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    rgba(255,0,51,0.04) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0,102,255,0.04) 100%
  );
  pointer-events: none;
}

.nav-logo {
  font-family: var(--ff-head);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  position: relative;
}
.phoenix { color: var(--red);  text-shadow: 0 0 12px rgba(255,0,51,0.7); }
.down    { color: var(--white); }
.arc     { color: var(--cyan);  font-size: 0.75em; opacity: 0.7; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,255,255,0.6);
}
.nav.scrolled { border-bottom-color: rgba(255,0,51,0.6); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darker);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── TICKER — Direct child of .hero, fixed below nav ─────────────────────── */
.hero-ticker {
  position: absolute;
  top: 60px;      /* flush under nav */
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--red);
  padding: 0.35rem 0;
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--white);
  white-space: nowrap;
  display: flex;
  /* Capcom orange line above */
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 4px 20px rgba(255,0,51,0.4);
}
.hero-ticker span {
  display: inline-block;
  animation: ticker 35s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── VS ENERGY BEAMS — MvC character select clash ─────────────────────────── */
.hero-vs-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.vs-beam {
  position: absolute;
  top: 0;
  height: 100%;
  width: 55%;
  opacity: 0.12;
  animation: beamPulse 4s ease-in-out infinite;
}
.vs-beam-left {
  left: -10%;
  background: linear-gradient(105deg,
    rgba(255,0,51,0.8) 0%,
    rgba(255,102,0,0.4) 40%,
    transparent 70%
  );
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
  animation-delay: 0s;
}
.vs-beam-right {
  right: -10%;
  background: linear-gradient(255deg,
    rgba(0,102,255,0.8) 0%,
    rgba(0,204,255,0.4) 40%,
    transparent 70%
  );
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
  animation-delay: 0.5s;
}
.vs-center-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
  animation: centerFlash 3s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.18; }
}
@keyframes centerFlash {
  0%, 100% { opacity: 0; height: 20%; }
  50% { opacity: 1; height: 80%; }
}

/* Radial lines — VS screen starburst */
.hero-vs-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 55%,
      transparent 0deg,
      rgba(255,255,255,0.015) 0.5deg,
      transparent 1deg,
      transparent 6deg
    );
  animation: rotateLines 60s linear infinite;
}
@keyframes rotateLines {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── HERO CONTENT ─────────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px; /* clear the ticker */
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.hero-title span {
  font-family: var(--ff-head);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* MvC title treatment: white → red → white, angled shadow */
.line1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--white);
  text-shadow:
    4px 4px 0 rgba(0,0,0,0.8),
    0 0 40px rgba(255,255,255,0.1);
}
.line2 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--red);
  text-shadow:
    3px 3px 0 #880000,
    6px 6px 0 rgba(0,0,0,0.6),
    0 0 60px rgba(255,0,51,0.5);
  /* Italic for MvC dramatic lean */
  font-style: italic;
  transform: skewX(-3deg);
}
.line3 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  opacity: 0.85;
  text-align: center;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.7);
}

/* ── CTA BUTTON — Capcom character select style ──────────────────────────── */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  position: relative;
  border: none;
  transition: all 0.2s;
  /* Capcom double-border effect */
  outline: 2px solid var(--red);
  outline-offset: 3px;
  box-shadow:
    0 0 0 1px rgba(255,0,51,0.3),
    inset 0 0 0 1px rgba(255,0,51,0.2),
    0 0 20px rgba(255,0,51,0.2);
  animation: ctaPulse 2s ease-in-out infinite;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,0,51,0.08) 100%);
}
.hero-cta:hover {
  background: var(--red);
  box-shadow: 0 0 50px rgba(255,0,51,0.6), inset 0 0 20px rgba(255,102,0,0.3);
  transform: scale(1.02);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,0,51,0.3), 0 0 0 1px rgba(255,0,51,0.2); }
  50%       { box-shadow: 0 0 40px rgba(255,0,51,0.6), 0 0 0 1px rgba(255,0,51,0.5); }
}
.cta-insert {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}
.cta-sub {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(0,255,255,0.4);
  z-index: 10;
  animation: fadeUpDown 2s ease-in-out infinite;
}
@keyframes fadeUpDown {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(-6px); }
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Section label — Capcom UI chrome style */
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.6);
}

/* ── HISTORY ──────────────────────────────────────────────────────────────── */
.history {
  border-top: 2px solid var(--border-red);
  background: linear-gradient(180deg, var(--dark) 0%, var(--panel) 100%);
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe — Capcom corner decoration */
.history::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(0,102,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.history-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.history-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dim);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.history-callout {
  font-family: var(--ff-head);
  font-size: 1.4rem !important;
  color: var(--white) !important;
  border-left: 4px solid var(--red);
  padding-left: 1.2rem;
  font-style: italic;
  text-shadow: 0 0 20px rgba(255,0,51,0.2);
}

.history-stats { display: flex; flex-direction: column; gap: 2rem; }

/* SF-style health bar chrome for stats */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(255,0,51,0.1));
}

.stat-num {
  font-family: var(--ff-head);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,0,51,0.4), 2px 2px 0 rgba(0,0,0,0.8);
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── MOMENT 37 ─────────────────────────────────────────────────────────────── */
.moment37 {
  position: relative;
  border-top: 2px solid var(--border-blue);
  background: var(--darker);
}

.moment37-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,102,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,0,51,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.moment-sub {
  font-size: 1.1rem;
  color: var(--dim);
  line-height: 1.6;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* ── CABINET ─────────────────────────────────────────────────────────────── */
.arcade-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cabinet {
  position: relative;
  width: 340px;
  background: #0c0014;
  border: 2px solid rgba(255,0,51,0.5);
  box-shadow:
    0 0 0 1px rgba(255,0,51,0.15),
    0 0 60px rgba(255,0,51,0.2),
    0 0 120px rgba(0,102,255,0.1),
    inset 0 0 20px rgba(0,0,0,0.6);
  border-radius: 8px 8px 4px 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.cabinet:hover {
  transform: scale(1.02);
  box-shadow: 0 0 80px rgba(255,0,51,0.35), 0 0 140px rgba(0,102,255,0.15);
}

.cabinet-top {
  background: #08000f;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(255,0,51,0.6);
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: hidden;
}
/* Capcom marquee light strip */
.cabinet-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--gold), var(--red), var(--blue));
  animation: marqueeLights 2s linear infinite;
  background-size: 200% 100%;
}
@keyframes marqueeLights {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.cabinet-marquee {
  text-align: center;
  font-family: var(--ff-head);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-shadow: 0 0 12px rgba(255,0,51,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.marquee-sub {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,255,255,0.6);
}

.cabinet-bezel {
  padding: 1rem;
  background: #060010;
  border-bottom: 1px solid #1a0030;
}

.cabinet-screen-wrap {
  position: relative;
  background: #000;
  border: 3px solid #1a0030;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 0 25px rgba(0,102,255,0.15);
}

.screen-scanlines {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 4px
  );
}

#fightCanvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.cabinet-panel {
  background: #0a000e;
  padding: 1rem;
  border-top: 1px solid #1a0030;
}

.cabinet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}

.joystick {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.joystick-base {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a0040, #0a000f);
  border: 2px solid #330055;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(153,0,255,0.2);
}
.joystick-stick {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #111);
  border: 2px solid #444;
  transition: transform 0.1s ease;
}

/* MvC button layout — Capcom 6-button */
.buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  transition: all 0.1s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.btn:hover { transform: scale(1.2); filter: brightness(1.5); }
.btn-1 { background: radial-gradient(circle at 35% 35%, #ff4444, #cc0000); box-shadow: 0 0 6px rgba(255,0,0,0.4); }
.btn-2 { background: radial-gradient(circle at 35% 35%, #ffaa44, #cc8800); box-shadow: 0 0 6px rgba(255,136,0,0.4); }
.btn-3 { background: radial-gradient(circle at 35% 35%, #44ff44, #00aa00); box-shadow: 0 0 6px rgba(0,255,0,0.4); }
.btn-4 { background: radial-gradient(circle at 35% 35%, #4488ff, #0055cc); box-shadow: 0 0 6px rgba(0,102,255,0.4); }
.btn-5 { background: radial-gradient(circle at 35% 35%, #cc44ff, #880088); box-shadow: 0 0 6px rgba(204,0,255,0.4); }
.btn-6 { background: radial-gradient(circle at 35% 35%, #44eeff, #007799); box-shadow: 0 0 6px rgba(0,200,255,0.4); }

.cabinet-coin {
  background: #060010;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1a0030;
  border-bottom: 2px solid rgba(255,0,51,0.4);
}

.coin-slot {
  width: 30px;
  height: 6px;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 3px;
  cursor: pointer;
  transition: box-shadow 0.1s;
}
.coin-slot:hover { box-shadow: 0 0 8px rgba(255,204,0,0.5); }
.coin-inserted { box-shadow: 0 0 15px rgba(255,204,0,0.9) !important; }

.cabinet-text {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255,204,0,0.7);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── SUPER METER (crowd bar) ─────────────────────────────────────────────── */
.crowd-bar {
  width: 340px;
  background: #080012;
  border: 1px solid var(--border-blue);
  padding: 0.75rem 1rem;
  position: relative;
}
/* SF Super meter label */
.crowd-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}
.crowd-meter {
  height: 8px;
  background: #0a0020;
  border: 1px solid rgba(0,102,255,0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  position: relative;
}
/* Segmented super meter look */
.crowd-meter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0, transparent 30px,
    rgba(0,0,0,0.4) 30px, rgba(0,0,0,0.4) 32px
  );
  pointer-events: none;
}
.crowd-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--gold));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0,102,255,0.6);
}
.crowd-level {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255,204,0,0.5);
}

/* ── COMMENTARY ─────────────────────────────────────────────────────────── */
.moment-commentary {
  width: 340px;
  min-height: 60px;
  background: #060010;
  border: 1px solid rgba(0,102,255,0.25);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}
.commentary-text {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* ── PLAY BUTTON ──────────────────────────────────────────────────────────── */
.play-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 1rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
/* Diagonal fill on hover — Capcom style */
.play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%) skewX(-10deg);
  transition: transform 0.2s ease;
}
.play-btn:hover::before { transform: translateX(0) skewX(-10deg); }
.play-btn:hover { box-shadow: 0 0 30px rgba(255,0,51,0.5); }
.play-btn > * { position: relative; z-index: 1; }
.play-icon { font-size: 1.2rem; color: var(--red); transition: color 0.2s; }
.play-btn:hover .play-icon { color: var(--white); }

/* ── MOMENT FACTS ─────────────────────────────────────────────────────────── */
.moment-facts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-blue);
  padding-top: 2rem;
}

.fact-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0,102,255,0.04);
  border: 1px solid rgba(0,102,255,0.12);
  position: relative;
}
.fact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.fact-num {
  font-family: var(--ff-head);
  font-size: 3.5rem;
  color: var(--cyan);
  text-shadow: 0 0 25px rgba(0,255,255,0.5), 2px 2px 0 rgba(0,0,0,0.8);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.fact-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── LEGENDS — Character Select ──────────────────────────────────────────── */
.legends {
  border-top: 2px solid var(--border-red);
  background: linear-gradient(180deg, var(--panel) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
/* MvC character select background grid */
.legends::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,51,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,51,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.legends-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

/* MvC character portrait frame */
.legend-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,0,51,0.2);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
/* Character card corner cut — MvC style */
.legend-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent rgba(255,0,51,0.5) transparent transparent;
}
.legend-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,51,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.legend-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255,0,51,0.2), inset 0 0 20px rgba(255,0,51,0.04);
}

.legend-rank {
  font-family: var(--ff-head);
  font-size: 2rem;
  color: rgba(255,0,51,0.25);
  line-height: 1;
  min-width: 2.5rem;
  transition: color 0.3s, transform 0.3s;
}
.legend-card:hover .legend-rank { color: var(--red); }

.legend-info h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.legend-tag {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}
.legend-info p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--dim);
}

/* ── GAMES ────────────────────────────────────────────────────────────────── */
.games {
  border-top: 2px solid var(--border-blue);
  background: var(--darker);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

.game-card {
  background: rgba(0,0,16,0.6);
  border: 1px solid rgba(0,102,255,0.15);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
  position: relative;
}
/* Top color bar — like CPS2 game select */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover { border-color: rgba(0,102,255,0.5); }
.game-card:hover::before { opacity: 1; }

.game-screen {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #050015 0%, #0a0030 100%);
  position: relative;
  overflow: hidden;
}
/* CRT grid overlay */
.game-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,40,0.3) 3px, rgba(0,0,40,0.3) 4px),
    repeating-linear-gradient(90deg, transparent 0, transparent 3px, rgba(0,0,40,0.3) 3px, rgba(0,0,40,0.3) 4px);
}

.game-card h4 {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--white);
  padding: 0.75rem 1rem 0.25rem;
}
.game-card span {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding: 0 1rem 0.75rem;
}

/* ── LOCATION ─────────────────────────────────────────────────────────────── */
.location {
  border-top: 2px solid var(--border-red);
  background: linear-gradient(180deg, var(--dark) 0%, var(--panel) 50%, var(--dark) 100%);
}
.location-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location-details { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.loc-item {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.loc-icon { color: var(--red); text-shadow: 0 0 8px rgba(255,0,51,0.5); }

.location-cta {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 1rem;
  letter-spacing: 0.12em;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.location-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.4s ease;
}
.location-cta:hover { box-shadow: 0 0 40px rgba(255,0,51,0.6); transform: translateX(2px); }
.location-cta:hover::after { left: 150%; }

.location-cabinet { display: flex; justify-content: center; }

.mini-cabinet {
  width: 160px;
  height: 220px;
  background: #0c0020;
  border: 2px solid rgba(255,0,51,0.4);
  border-radius: 6px 6px 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(255,0,51,0.15), 0 0 80px rgba(0,102,255,0.08);
}
.mc-screen {
  width: 120px;
  height: 80px;
  background: #000;
  border: 2px solid #1a0030;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0,102,255,0.3), inset 0 0 10px rgba(0,0,20,0.9);
}
.mc-text {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,204,0,0.6);
  animation: blink 1.5s step-end infinite;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: #000008;
  border-top: 1px solid var(--border-red);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255,0,51,0.4);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: rgba(240,240,240,0.18);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .history-grid { grid-template-columns: 1fr; }
  .legends-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .location-inner { grid-template-columns: 1fr; }
  .location-cabinet { display: none; }
  .moment-facts { grid-template-columns: 1fr; }
  .hero-content { margin-top: 60px; }
}

@media (max-width: 600px) {
  .legends-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .crowd-bar, .moment-commentary { width: 100%; max-width: 340px; }
  .hero-ticker { font-size: 0.58rem; }
}
