@font-face {
  font-family: "PressStart2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "PixelifySans";
  src: url("assets/fonts/PixelifySans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Jersey25";
  src: url("assets/fonts/Jersey25-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #f4f2df;
  --bg-1: #101727;
  --bg-2: #121e3a;
  --bg-3: #1a2c45;
  --card: rgba(14, 22, 38, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ff5137;
  --accent-hot: #ffd44a;
  --accent-cool: #3fd9e8;
  --success: #80f98f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  font-family: "PixelifySans", monospace;
  background: #000;
  overflow-x: hidden;
  position: relative;
}

#pixelField {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

/* ── Floating music FAB ── */
.music-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 212, 74, 0.5);
  background: rgba(8, 13, 24, 0.85);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: "PressStart2P", monospace;
  font-size: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.music-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  background: rgba(255, 81, 55, 0.25);
}

.music-fab.is-playing {
  border-color: var(--success);
}

.music-fab.is-playing .fab-icon {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.fab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Logo hero ── */
.logo-hero {
  padding-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.logo-stage {
  position: relative;
  width: min(520px, 80vw);
  aspect-ratio: 16 / 10;
}

.logo-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.logo-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-sprites {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.lsprite {
  position: absolute;
  width: clamp(48px, 7vw, 80px);
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

.ls1 { left: -8%; top: 10%; animation: bob 3s ease-in-out infinite; }
.ls2 { right: -8%; top: 12%; animation: bob 2.6s ease-in-out infinite 0.4s; }
.ls3 { right: 2%; bottom: 2%; animation: bob 3.2s ease-in-out infinite 0.3s; }
.ls4 { left: 2%; bottom: 2%; animation: bob 2.8s ease-in-out infinite 0.8s; }
.ls5 { left: 30%; top: -14%; animation: bob 3.4s ease-in-out infinite 0.2s; }
.ls6 { right: 30%; top: -14%; animation: bob 2.9s ease-in-out infinite 0.6s; }

/* ── Main container ── */
main {
  width: min(1220px, 94vw);
  margin: 0 auto;
  padding-bottom: 5rem;
}

section { margin-top: 3.5rem; }

.eyebrow {
  color: var(--accent-hot);
  font-family: "PressStart2P", monospace;
  font-size: clamp(0.58rem, 1.35vw, 0.78rem);
  letter-spacing: 1px;
}

/* ── Hero copy ── */
.hero {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.hero h1 {
  font-family: "PressStart2P", monospace;
  line-height: 1.45;
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.05rem, 2.5vw, 2rem);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.tagline {
  margin: 0 auto 1.2rem;
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  font-family: "PressStart2P", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.4px;
  padding: 0.75rem 1.08rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f18f21);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.btn-small { padding: 0.62rem 0.95rem; }

/* ── Price pills (hero) ── */
.price-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  font-family: "PressStart2P", monospace;
  font-size: 0.52rem;
  color: var(--accent-cool);
  background: rgba(63, 217, 232, 0.08);
  border: 1px solid rgba(63, 217, 232, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.3px;
}

.pill-price {
  color: var(--accent-hot);
  background: rgba(255, 212, 74, 0.1);
  border-color: rgba(255, 212, 74, 0.3);
  font-size: 0.62rem;
}

/* ── Trailer (video only, no header) ── */
.trailer {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.video-frame,
.feature-card,
.review-card,
.price-panel,
.price-art,
.legal-main,
.support-layout {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-frame { padding: 0.7rem; }

.video-frame video {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Section heads ── */
.section-head h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  font-family: "Jersey25", monospace;
  letter-spacing: 0.35px;
}

/* ── Features ── */
.feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  padding: 1rem;
  transition: transform 0.2s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  display: block;
  margin-bottom: 0.4rem;
}

.feature-card h3 {
  margin: 0.35rem 0;
  font-family: "PressStart2P", monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}

.feature-card p { margin: 0; font-size: 1rem; }

/* ── Sprite runway ── */
.sprite-runway {
  margin-top: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.runway-track {
  display: flex;
  width: max-content;
  padding: 0.95rem;
  gap: 1rem;
  animation: march 24s linear infinite;
}

.runner {
  min-width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.runner img {
  width: 62px;
  height: 62px;
  image-rendering: pixelated;
}

/* ── Reviews ── */
.review-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.review-card {
  padding: 1rem;
  position: relative;
}

.review-card::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.stars {
  margin: 0;
  color: var(--accent-hot);
  font-family: "PressStart2P", monospace;
  font-size: 0.63rem;
}

.review-card blockquote {
  margin: 0.7rem 0;
  font-size: 1.06rem;
}

.source {
  margin: 0 0 0.5rem;
  color: var(--accent-cool);
}

.paladin-showcase {
  margin: 1.4rem auto 0;
  width: fit-content;
  text-align: center;
}

.paladin-showcase img {
  width: clamp(110px, 16vw, 170px);
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.55));
}

.paladin-showcase figcaption { opacity: 0.88; }

/* ── Price section ── */
.price {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.price-panel { padding: 1.2rem; }

.price-panel h2 {
  margin: 0.2rem 0;
  font-family: "Jersey25", monospace;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.price-value {
  margin: 0.1rem 0;
  font-family: "Jersey25", monospace;
  color: var(--accent-hot);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 0.9;
}

.price-sub {
  margin: 0.3rem 0 0.8rem;
  font-size: 1.2rem;
}

.price-panel ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.price-panel li { margin-bottom: 0.35rem; }

.price-art {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 1rem;
}

.tile {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 0.3rem;
  animation: bob 2.8s ease-in-out infinite;
}

.tile.b { animation-delay: 0.2s; }
.tile.c { animation-delay: 0.4s; }
.tile.d { animation-delay: 0.6s; }
.tile.e { animation-delay: 0.8s; }
.tile.f { animation-delay: 1s; }
.tile.g { animation-delay: 1.2s; }
.tile.h { animation-delay: 1.4s; }

/* ── Footer ── */
.site-footer {
  width: min(1220px, 94vw);
  margin: 1rem auto 2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  border-radius: 10px;
}

.footer-brand p { margin: 0.1rem 0; }

.footer-sub {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: "PressStart2P", monospace;
  font-size: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-hot);
  border-color: rgba(255, 212, 74, 0.6);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.4;
  margin: 0.5rem 0 0;
}

/* ── Legal pages (shared) ── */
.legal-page { min-height: 100vh; }

.legal-header {
  width: min(900px, 92vw);
  margin: 2.2rem auto 1.2rem;
}

.legal-header h1 {
  margin: 0.2rem 0;
  font-family: "Jersey25", monospace;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.legal-header p { margin: 0; }

.legal-main,
.support-layout {
  width: min(900px, 92vw);
  margin: 0 auto 2rem;
  padding: 1.2rem;
}

.legal-main h2,
.support-layout h2 {
  font-family: "PressStart2P", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-top: 0;
}

.legal-main p,
.legal-main li,
.support-layout p,
.support-layout li {
  font-size: 1.06rem;
}

.back-home { display: inline-flex; margin-top: 0.95rem; }

.support-layout ul,
.legal-main ul { margin-top: 0; }

/* ── Keyframes ── */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes march {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .price { grid-template-columns: 1fr; }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }

  .price-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { text-align: center; justify-content: center; }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }

  .logo-stage { width: 90vw; }

  .lsprite { width: clamp(36px, 10vw, 56px); }

  .music-fab {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
