/* ==========================================================================
   MissingSeven / 5th ERA — Landing Page
   Design tokens, layout and components.
   ========================================================================== */

:root {
  /* --- Brand colors ---
     5E (5th ERA): red is the primary accent everywhere, black/graphite for
     backgrounds. The cyan/green/amber from the 5E palette are an in-game
     color-code and are intentionally NOT used on marketing surfaces.
     M7 (MissingSeven): dark ink + a softer red, used only to tint the
     "About the developer" section so it reads distinct from the game brand. */
  --red: #f3004a;
  --red-dim: #b8003a;
  --m7-red: #e3445a;
  --m7-ink: #231c23;

  --bg-950: #100e14;
  --bg-900: #17131a;
  --bg-panel: #232527;
  --bg-panel-2: #1c1e1f;

  --ink: #f6f4f7;
  --ink-soft: #cfc9d3;
  --muted: #8f889a;
  --line: rgba(246, 244, 247, 0.1);

  --font-display: "Rajdhani", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", "Inter", sans-serif;
  --font-pixel: "Press Start 2P", monospace;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.4em; letter-spacing: 0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------- Texture layers ---------------------------- */
.grain-overlay {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scan-overlay {
  position: fixed; inset: 0; z-index: 299; pointer-events: none; opacity: 0.035;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, #000 3px);
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--m7-red));
  z-index: 1000; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(243, 0, 74, 0.7);
}

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(243, 0, 74, 0.65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px rgba(243, 0, 74, 0.8); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--ink); border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* --------------------------------- Header --------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 0; transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding: 10px 0; background: rgba(16, 14, 20, 0.82); backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand-logo { height: 26px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--red); transition: width 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--bg-900); border-left: 1px solid var(--line);
    flex-direction: column; justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; width: 34px; height: 24px;
    background: none; border: none; cursor: pointer; margin-left: auto; z-index: 210; padding: 0;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------------------------- Eyebrow -------------------------------- */
.eyebrow {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em;
  color: var(--red); display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow-m7 { color: var(--m7-red); }
.pixel-dot { width: 8px; height: 8px; background: currentColor; display: inline-block; box-shadow: 0 0 10px currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.15rem; color: var(--ink); }
.lead-emphasis { font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------------------------------- Reveal --------------------------------- */
.reveal-ready {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ----------------------------------- Hero ---------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; padding-top: 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; overflow: hidden; }
.hero-bg-img {
  width: 100%; height: 103%; object-fit: cover; object-position: 50% 55%;
  transform-origin: 50% 30%;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
@keyframes heroKenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}
/* Su schermi stretti/verticali (telefono, tablet in verticale) l'immagine
   key art (quasi quadrata) riempie sempre l'intera altezza per via del
   suo formato, quindi `object-position` da solo non basta a spostare
   l'inquadratura verso il basso (niente margine verticale da "panoramare").
   Qui si allarga forzatamente l'immagine oltre il contenitore, così si
   crea margine verticale reale da usare per inquadrare più in basso, sui
   personaggi, invece che sulle teste scure dei cattivi in alto. */
@media (max-width: 900px) {
  .hero-bg-img { max-width: none; width: 220%; height: 115%; object-position: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img { animation: none; }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 15%, rgba(16,14,20,0.25) 0%, rgba(16,14,20,0.65) 45%, rgba(16,14,20,0.96) 100%),
    linear-gradient(180deg, rgba(16,14,20,0.55) 0%, rgba(16,14,20,0.35) 30%, rgba(16,14,20,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-logo { max-width: min(560px, 80vw); width: 100%; margin: 18px 0; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); }
.hero-tagline { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 620px; color: var(--ink); }
.hero-badges { display: flex; gap: 12px; margin: 6px 0 26px; flex-wrap: wrap; justify-content: center; }
.badge {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 13px;
  letter-spacing: 0.03em; padding: 8px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
}
.badge-live { background: rgba(243,0,74,0.16); color: #ff5b83; border: 1px solid rgba(243,0,74,0.4); }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5b83; animation: pulse 1.6s ease-in-out infinite; }
.badge-steam { background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--ink-soft); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.35); border-radius: 20px;
  background: transparent; cursor: pointer; z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--red);
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: 8px; opacity: 1; } 70% { opacity: 0.4; } 100% { top: 22px; opacity: 0; } }

/* ------------------------------- Steam widget strip ------------------------------- */
.steam-strip { background: var(--bg-950); padding: 40px 0; position: relative; z-index: 3; }
.steam-strip-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.steam-strip-label {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.steam-widget-frame {
  width: 100%; max-width: 646px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  background: var(--bg-panel-2);
}
.steam-widget-frame iframe { display: block; }

/* ---------------------------------- Ticker --------------------------------- */
.ticker {
  background: var(--red); overflow: hidden; white-space: nowrap; position: relative; z-index: 3;
  border-top: 1px solid rgba(0,0,0,0.15); border-bottom: 1px solid rgba(0,0,0,0.15);
}
.ticker-track { display: inline-flex; gap: 14px; padding: 10px 0; animation: ticker 32s linear infinite; }
.ticker-track span {
  font-family: var(--font-pixel); font-size: 11px; color: #fff; letter-spacing: 0.05em; padding: 0 6px;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------- About ---------------------------------- */
.about { padding: 130px 0 70px; background: var(--bg-950); position: relative; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; }
.checklist li {
  position: relative; padding-left: 28px; color: var(--ink); font-weight: 500;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 4px;
  background: rgba(227,68,90,0.15); border: 1px solid var(--m7-red);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 4px;
  border-left: 2px solid var(--m7-red); border-bottom: 2px solid var(--m7-red); transform: rotate(-45deg);
}
.about-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.about-card {
  background: linear-gradient(160deg, var(--m7-ink) 0%, var(--bg-950) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; text-align: center;
}
.about-card-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-card-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,28,35,0) 55%, var(--m7-ink) 97%);
  pointer-events: none;
}
.about-card-photo img.about-card-badge {
  position: absolute; top: 18px; right: 18px; width: 46px; height: auto; opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); object-fit: contain;
}
.about-card-info { padding: 0 32px 40px; margin-top: -38px; position: relative; z-index: 1; }
.about-card-eyebrow { display: block; font-family: var(--font-pixel); font-size: 10px; color: var(--m7-red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.about-card-name { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.about-card-role { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.about-card-stats { display: flex; justify-content: center; gap: 36px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.about-card-stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--m7-red); }
.about-card-stats span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ------------------------------------ Game ---------------------------------- */
.game { position: relative; background: linear-gradient(180deg, var(--bg-panel) 0%, #1a0810 100%); padding: 130px 0; overflow: hidden; }
.game-glow {
  position: absolute; top: -20%; right: -10%; width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(243,0,74,0.25) 0%, transparent 70%); filter: blur(40px); pointer-events: none;
}
.game-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.game-top {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.game-intro { max-width: 620px; }
.game-cta { margin-top: 8px; }

.game-trailer { width: 100%; }
.game-trailer-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0,0,0,0.7);
  background: var(--bg-panel-2);
}
.game-trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-trailer-facade { display: block; }
.game-trailer-facade img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease); filter: saturate(0.9);
}
.game-trailer-facade:hover img { transform: scale(1.05); filter: saturate(1.1); }
.game-trailer-facade::after { content: ""; position: absolute; inset: 0; background: rgba(16,14,20,0.15); transition: background 0.35s var(--ease); }
.game-trailer-facade:hover::after { background: rgba(16,14,20,0.3); }
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; z-index: 2;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(243,0,74,0.7); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.play-button svg { margin-left: 3px; }
.game-trailer-facade:hover .play-button { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 14px 38px -6px rgba(243,0,74,0.85); }
.game-trailer-caption {
  display: block; margin-top: 12px; text-align: center; font-family: var(--font-pixel);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 980px) {
  .game-top { grid-template-columns: 1fr; gap: 40px; }
  .game-intro { max-width: none; }
}

.stats {
  position: relative; z-index: 1; margin-top: 72px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(16,14,20,0.7); padding: 34px 26px; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  color: var(--red); line-height: 1; text-shadow: 0 0 30px rgba(243,0,74,0.5);
}
.stat-label { display: block; font-weight: 700; margin: 10px 0 8px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }
.stat-sub { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}

/* ----------------------------------- Roster ---------------------------------- */
.roster { padding: 130px 0 70px; background: var(--bg-950); text-align: center; position: relative; overflow: hidden; }
.roster h2, .roster > .wrap > .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

.roster-lineup {
  margin-top: 70px; display: flex; justify-content: center; align-items: flex-end;
  position: relative; z-index: 1;
}
.roster-lineup::before {
  content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: min(1200px, 96%); height: 70%;
  background: radial-gradient(ellipse 60% 100% at center, rgba(227,68,90,0.22) 0%, rgba(227,68,90,0) 72%);
  pointer-events: none; z-index: -1;
}
.roster-lineup::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(246,244,247,0) 0%, rgba(246,244,247,0.18) 50%, rgba(246,244,247,0) 100%);
}

.char-figure {
  position: relative; flex: 1 1 240px; max-width: 280px; margin: 0 -16px;
  text-align: center; transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
.char-figure:nth-child(1) { z-index: 1; }
.char-figure:nth-child(2) { z-index: 2; margin-bottom: 24px; }
.char-figure:nth-child(3) { z-index: 3; margin-bottom: 24px; }
.char-figure:nth-child(4) { z-index: 4; }

.char-figure-img { position: relative; aspect-ratio: 3 / 4; }
.char-figure-img img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 112%; width: auto; max-width: none;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,0.55));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.char-info { margin-top: 10px; opacity: 0.82; transition: opacity 0.4s var(--ease); }
.char-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.char-role { display: block; font-size: 0.82rem; color: var(--red); letter-spacing: 0.01em; font-weight: 500; margin-top: 2px; }
.char-role-long {
  font-size: 0.74rem; line-height: 1.4;
  max-width: 260px; margin-left: auto; margin-right: auto;
}

.roster-lineup:hover .char-figure { filter: brightness(0.55) saturate(0.7); opacity: 0.75; }
.roster-lineup:hover .char-figure:hover { filter: none; opacity: 1; }
.char-figure:hover { z-index: 5; }
.char-figure:hover .char-figure-img img { transform: translateX(-50%) scale(1.05); }
.char-figure:hover .char-info { opacity: 1; }

.roster-note {
  margin-top: 56px; padding-top: 32px; max-width: 560px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1; border-top: 1px solid var(--line);
}
.roster-note-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink-soft);
}
.roster-note-body { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .roster-lineup { flex-wrap: wrap; row-gap: 40px; }
  .char-figure { flex: 0 1 44%; margin: 0; }
  .char-figure:nth-child(2), .char-figure:nth-child(3) { margin-bottom: 0; }
}
@media (max-width: 520px) {
  .char-figure { flex: 0 1 100%; max-width: 240px; }
}

/* ---------------------------------- Gallery ---------------------------------- */
.gallery { padding: 70px 0 130px; background: linear-gradient(180deg, var(--bg-950) 0%, var(--bg-panel-2) 100%); }
.gallery h2 { max-width: 640px; }
.gallery-filters { display: flex; gap: 10px; margin: 30px 0 40px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: rgba(255,255,255,0.35); }
.filter-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid figure {
  margin: 0; position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 16/9; border: 1px solid var(--line); background: var(--bg-panel-2);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.gallery-grid figure.is-hidden { display: none; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.6s var(--ease); filter: saturate(0.9); }
.gallery-grid figure:hover { transform: translateY(-4px); }
.gallery-grid figure:hover img { transform: scale(1.08); filter: saturate(1.15); }
.gallery-grid figure::after {
  content: "＋"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; background: rgba(16,14,20,0.35); opacity: 0; transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-cta { margin-top: 48px; text-align: center; justify-content: center; display: flex; }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------- Quote banner --------------------------------- */
.quote-banner {
  padding: 110px 0; text-align: center; background: var(--m7-ink); position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quote-banner blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600;
  max-width: 880px; margin: 0 auto 20px; color: var(--ink); line-height: 1.4;
}
.quote-banner cite { color: var(--m7-red); font-style: normal; font-weight: 600; letter-spacing: 0.02em; }

/* ---------------------------------- Awards ---------------------------------- */
.awards { padding: 70px 0 130px; background: var(--bg-950); }
.section-head { margin-bottom: 50px; }
.awards .section-head .lead { max-width: 620px; }

.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.award-card {
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.award-card:hover { transform: translateY(-6px); border-color: rgba(227,68,90,0.4); }

.award-card-media { position: relative; aspect-ratio: 630 / 500; overflow: hidden; }
.award-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.award-card:hover .award-card-media img { transform: scale(1.05); }
.award-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,20,0) 55%, rgba(16,14,20,0.85) 100%);
}
.award-card-year {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink); background: rgba(16,14,20,0.72); border: 1px solid rgba(227,68,90,0.5);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}

.award-card-body { padding: 26px 26px 30px; }
.award-contest { display: block; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.award-card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 8px 0 16px; }
.award-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.award-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em;
  color: #ff9dae; background: rgba(227,68,90,0.14); border: 1px solid rgba(227,68,90,0.4);
  padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center;
}

@media (max-width: 720px) {
  .awards-grid { grid-template-columns: 1fr; }
  .awards { padding: 50px 0 90px; }
}

/* ------------------------------- More games (studio hub) ------------------------------- */
.more-games { padding: 130px 0; background: var(--bg-950); border-top: 1px solid var(--line); }
.more-games .section-head .lead { max-width: 620px; }
.more-games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card {
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(227,68,90,0.4); }
.game-card-year {
  display: inline-block; font-family: var(--font-pixel); font-size: 10px; color: var(--m7-red);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
}
.game-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.game-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .more-games-grid { grid-template-columns: 1fr; }
  .more-games { padding: 90px 0; }
}

/* ---------------------------------- Contact ---------------------------------- */
.contact { padding: 140px 0; text-align: center; background: var(--m7-ink); border-top: 1px solid var(--line); position: relative; }
.contact-mark { width: 70px; margin: 0 auto 24px; }
.contact-inner p { max-width: 480px; margin-left: auto; margin-right: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.email-capture { max-width: 480px; margin: 32px auto 0; }
.email-capture-row {
  display: flex; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; flex-wrap: wrap;
}
.email-capture-row input {
  flex: 1 1 200px; min-width: 0; background: transparent; border: none; color: var(--ink);
  font-family: var(--font-body); font-size: 15px; padding: 10px 18px; outline: none;
}
.email-capture-row input::placeholder { color: var(--muted); }
.email-capture-row .btn { flex: 0 0 auto; }
.email-capture-note { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; }
.email-capture-status { font-size: 0.85rem; margin: 8px 0 0; min-height: 1.2em; }
.email-capture-status.is-success { color: #4ade80; }
.email-capture-status.is-error { color: var(--red); }

@media (max-width: 520px) {
  .email-capture-row {
    flex-direction: column; flex-wrap: nowrap; border-radius: 20px; padding: 10px;
  }
  .email-capture-row input { flex: 0 0 auto; width: 100%; text-align: center; padding: 12px 14px; }
  .email-capture-row .btn { width: 100%; flex: 0 0 auto; }
}

.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0 40px; }
.social-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.social-row a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 13px;
  letter-spacing: 0.04em; color: var(--muted); transition: color 0.3s;
}
.social-row a:hover { color: var(--red); }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--bg-950); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 20px; width: auto; opacity: 0.85; }
.footer-nav { display: flex; gap: 20px; margin-left: auto; }
.footer-nav a { font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { width: 100%; order: 3; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (min-width: 640px) { .footer-copy { width: auto; order: 0; margin-left: 24px; margin-top: 0; } }

/* ---------------------------------- Lightbox ---------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(10,8,12,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); padding: 40px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: #fff;
  border-radius: 50%; cursor: pointer; transition: background 0.25s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(243,0,74,0.5); }
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 640px) { .lightbox-nav { width: 40px; height: 40px; } }

/* Progressive enhancement, keyboard access and factual game information. */
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 20px; background: var(--bg-panel); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--m7-red); outline-offset: 5px; }
.hero-title { margin: 0; }
.hero-title .hero-logo { margin-left: auto; margin-right: auto; }
.lightbox-open { overflow: hidden; }
.gallery-grid a, .gallery-grid picture { display: block; width: 100%; height: 100%; }
.gallery-grid figure:focus-within { outline: 3px solid var(--m7-red); outline-offset: 3px; }
.faq { padding: 90px 0; background: var(--bg-900); }
.faq .wrap { max-width: 900px; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.faq details p { margin: 16px 0 0; }
.faq a, #steam-widget-placeholder a { text-decoration: underline; text-underline-offset: 3px; }
.steam-widget-frame iframe { max-width: 100%; border: 0; }
#steam-widget-placeholder { padding: 24px; text-align: center; }
@media (max-width: 900px) {
  .main-nav:not(.nav-enhanced) { display: flex; position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 16px; padding: 12px 0; margin: 0; transform: none; border: 0; order: 3; background: var(--bg-950); }
  .header-inner:has(.main-nav:not(.nav-enhanced)) { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; transform: none; }
  * { animation-iteration-count: 1 !important; }
}

/* ---------------------------------- Responsive: about/hero tweaks ---------------------------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about, .game, .roster, .gallery, .awards, .contact { padding: 90px 0; }
}

/* Steam is the primary hero action; leave room for the scroll cue. */
.hero-steam { width: min(646px, 100%); min-height: 190px; margin: 12px auto 56px; }
.hero-steam iframe { display: block; width: 100%; height: 190px; border: 0; }
