:root {
  --bg: #09050a;
  --bg-2: #14080f;
  --red: #ff2d2d;
  --orange: #ff7a18;
  --pink: #ff4d8d;
  --cream: #ffe8d6;
  --muted: #c9a8a0;
  --card: #1a0c14;
  --line: #3a1824;
  --ink: #1a0508;
  --shadow: #4a1200;
  --glow: rgba(255, 45, 45, 0.45);
  --nav-glass: rgba(9, 5, 10, 0.88);
  --scanline-opacity: 0.35;
  --font-display: "Press Start 2P", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-pixel: "VT323", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, #3a1020 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 30%, #2a0818 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange);
}

.scanlines,
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
  opacity: var(--scanline-opacity);
}

.noise {
  opacity: 0.04;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--nav-glass);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--red);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 45, 45, 0.6);
}

.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--cream);
  background: transparent;
  border: 2px solid var(--orange);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-itch {
  border: 2px solid var(--red);
  padding: 0.15rem 0.55rem;
  color: var(--red) !important;
}

.hero,
.featured,
.games,
.about {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  color: var(--red);
  text-shadow:
    3px 3px 0 var(--shadow),
    0 0 24px var(--glow);
}

h2 {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--orange);
}

h3 {
  font-size: 0.78rem;
  color: var(--cream);
}

.hero-lead {
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-lead em {
  color: var(--pink);
  font-style: normal;
  font-weight: 600;
}

.hero-actions,
.featured-body,
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 3px solid currentColor;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 var(--shadow);
}

.btn-ghost {
  color: var(--cream);
  background: transparent;
  border-color: var(--cream);
}

.btn-disabled {
  color: var(--muted);
  border-color: var(--line);
  background: var(--bg-2);
  cursor: not-allowed;
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
}

.featured {
  padding: 1rem 0 3rem;
}

.featured-banner {
  position: relative;
  border: 3px solid var(--red);
  box-shadow: 8px 8px 0 var(--shadow);
  overflow: hidden;
  background: var(--bg);
}

.featured-banner img {
  width: 100%;
  height: clamp(180px, 38vw, 360px);
  object-fit: cover;
}

.stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--ink);
  background: var(--red);
  padding: 0.5rem 0.6rem;
  transform: rotate(6deg);
  box-shadow: 3px 3px 0 var(--shadow);
  white-space: nowrap;
}

.featured-body {
  margin-top: 1.4rem;
  align-items: start;
  gap: 1.25rem;
}

.featured-thumb {
  width: min(220px, 100%);
  border: 3px solid var(--orange);
  box-shadow: 5px 5px 0 var(--shadow);
}

.subtitle {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--pink);
  margin: -0.4rem 0 0.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
}

.tags span {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  border: 1px dashed var(--pink);
  padding: 0.05rem 0.45rem;
  color: var(--pink);
}

.section-head {
  margin-bottom: 1.5rem;
}

.games {
  padding: 1rem 0 3rem;
}

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.game-card {
  background: var(--card);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: rotate(-0.6deg) translateY(-4px);
  border-color: var(--orange);
}

.game-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: var(--bg);
  image-rendering: pixelated;
}

.game-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.game-card-body p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.game-card .btn {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.game-card--soon {
  outline: 2px dashed var(--red);
  outline-offset: -6px;
}

.hidden {
  display: none !important;
}

.about {
  padding: 1rem 0 4rem;
  flex-direction: column;
  align-items: flex-start;
}

.about-grid {
  display: grid;
  gap: 0.6rem;
  max-width: 46rem;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.footer {
  border-top: 2px solid var(--line);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--muted);
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 2px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--line);
  }

  .featured-thumb {
    width: 100%;
  }

  h1 {
    word-break: break-word;
  }
}
