/* =========================================================
   elgodox games — same system as elgodox.com
   Monochrome + one accent. Bold type. Short copy.
   Each game brings its own two colors (--g1, --g2).
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --graphite: #262626;
  --grey-6: #525252;
  --grey-5: #737373;
  --grey-4: #a3a3a3;
  --grey-3: #d4d4d4;
  --grey-2: #e8e8e4;
  --off: #f4f3ef;
  --white: #ffffff;
  --accent: #4b3fad;
  --accent-mid: #6d5ae6;
  --accent-light: #9384f7;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 68px;
  --container: 1140px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

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

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--white), var(--accent));
  transition: width 70ms linear;
}

/* Layout */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section--tight {
  padding: 80px 0;
}

.section--light {
  background: var(--off);
  color: var(--black);
}

.section--dark {
  background: var(--black);
}

.section--ink {
  background: var(--ink);
}

.section--cta {
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(91, 91, 214, 0.16), transparent 55%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--black);
  padding: 110px 0 96px;
}

.section-bg-word {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 14rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.section-bg-word--dark {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.05);
  top: 24%;
}

.section__head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section__head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  align-items: end;
}

.section__head--split .section__tag {
  max-width: 300px;
  margin-bottom: 6px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 16px;
  letter-spacing: 0.18em;
}

.section--light .eyebrow {
  color: var(--grey-5);
}

.section__title {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section__title em {
  font-style: normal;
  color: var(--grey-4);
}

.section--light .section__title em {
  color: var(--grey-5);
}

.section__tag {
  font-size: 1.05rem;
  color: var(--grey-6);
  max-width: 420px;
  line-height: 1.5;
  font-weight: 500;
}

.section__tag.light {
  color: var(--grey-4);
}

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js [data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}
.js [data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}
.js [data-reveal][data-delay="3"] {
  transition-delay: 0.24s;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1080px);
  height: var(--nav-h);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.nav.is-solid {
  background: rgba(10, 10, 10, 0.82);
  border-color: var(--graphite);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 5px 14px rgba(79, 65, 184, 0.2));
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.nav__brand:hover .mark {
  transform: rotate(-5deg) scale(1.035);
  filter: drop-shadow(0 7px 18px rgba(117, 104, 232, 0.34));
}

.nav__word {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.nav__word span {
  color: var(--grey-4);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  color: var(--grey-4);
  font-size: 13px;
  font-weight: 550;
  padding: 8px 11px;
  border-radius: 9px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.nav > .btn {
  display: none;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--graphite);
}

.nav__toggle .i {
  width: 20px;
  height: 20px;
}

.nav-drawer {
  position: fixed;
  top: calc(12px + var(--nav-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 400px);
  z-index: 89;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--graphite);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a {
  color: var(--grey-4);
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 550;
}

.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav > .btn {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s,
    transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 14px;
  font-size: 13px;
  background: var(--white);
  color: var(--black);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--sm:hover,
.btn--primary:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.i polygon {
  fill: currentColor;
}

.btn--ghost {
  color: var(--white);
  border-color: var(--graphite);
}

.btn--ghost:hover {
  border-color: var(--grey-6);
  background: rgba(255, 255, 255, 0.03);
}

.section--light .btn--ghost {
  color: var(--black);
  border-color: var(--grey-3);
}

.section--light .btn--ghost:hover {
  border-color: var(--grey-5);
  background: rgba(0, 0, 0, 0.03);
}

.section--light .btn--primary {
  background: var(--black);
  color: var(--white);
}

.section--light .btn--primary:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn.is-disabled {
  color: var(--grey-5);
  cursor: default;
  font-size: 11px;
  text-transform: uppercase;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-4);
  transition:
    color 0.2s,
    gap 0.2s;
}

.text-link:hover {
  color: var(--white);
  gap: 12px;
}

.section--light .text-link {
  color: var(--grey-6);
}

.section--light .text-link:hover {
  color: var(--black);
}

/* Chips & pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.chip--dev {
  color: #fcd34d;
}

.chip--soon {
  color: var(--accent-light);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.45);
  animation: pulse 2.2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(110, 231, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 231, 168, 0);
  }
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--graphite);
  color: var(--grey-4);
  font-size: 12.5px;
  font-weight: 550;
  background: rgba(10, 10, 10, 0.4);
}

.pill-n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-4);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--graphite);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  overflow: hidden;
  background: var(--black);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 38% at 72% 42%, rgba(75, 63, 173, 0.16), transparent 62%),
    radial-gradient(36% 32% at 14% 78%, rgba(255, 255, 255, 0.03), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
  pointer-events: none;
  opacity: 0.5;
}

.hero__layout {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  color: var(--grey-4);
  font-size: 11px;
  margin-bottom: 26px;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.4);
}

.hero__title {
  font-size: clamp(2.6rem, 7.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--grey-4);
}

.hero__lead {
  color: var(--grey-4);
  font-size: 1.12rem;
  max-width: 470px;
  margin-bottom: 28px;
  line-height: 1.5;
  font-weight: 500;
}

.hero__lead strong {
  color: var(--white);
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

/* Hero panel: the latest game, playing */
.hero__panel {
  display: block;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--graphite);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s;
}

.hero__panel:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--grey-6);
}

.hero__panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-5);
  padding: 2px 4px 12px;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 60px -12px color-mix(in srgb, var(--g1) 35%, transparent),
    0 18px 60px -20px color-mix(in srgb, var(--g2) 40%, transparent);
}

.screen__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
}

.hero__panel-foot strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__panel-foot .mono {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--grey-5);
}

.round-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.hero__panel:hover .round-btn {
  transform: rotate(45deg);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  animation: bob 2.4s ease-in-out infinite;
}

.hero__scroll .i {
  width: 14px;
  height: 14px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (min-width: 1000px) {
  .hero__layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

@media (max-width: 999px) {
  .hero--home .hero__scroll {
    display: none;
  }
}

/* Game hero */
.hero--game {
  min-height: 92svh;
  align-items: end;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  image-rendering: pixelated;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: scale(1.06) translate(-1%, -1%);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(10, 10, 10, 0) 45%);
}

.hero__inner--game {
  width: min(100% - 32px, var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

.hero__inner--game > .text-link {
  margin-bottom: 26px;
}

.hero__inner--game .hero__meta {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  padding: 5px 13px 5px 5px;
}

.hero__logo {
  margin: 0 0 18px -8px;
  width: min(520px, 92%);
}

.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
}

.hero__lead--wide {
  max-width: 560px;
}

/* Facts */
.facts-wrap {
  margin-top: -1px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.facts > div {
  padding: 18px 20px;
  border-right: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}

.facts dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-5);
  margin-bottom: 4px;
}

.facts dd {
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 760px) {
  .facts-wrap .facts {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts-wrap .facts > div {
    border-bottom: 0;
  }
}

.facts-wrap .facts > div:last-child {
  border-right: 0;
}

.section--light .facts {
  background: var(--white);
  border-color: var(--grey-2);
}

.section--light .facts > div {
  border-color: var(--grey-2);
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--graphite);
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
}

.ticker__track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: ticker 32s linear infinite;
  color: var(--grey-4);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ticker__track .sep {
  color: var(--accent-light);
  opacity: 0.6;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--graphite);
  background: var(--ink);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    opacity 0.8s var(--ease);
}

.js .game-card[data-reveal] {
  transition:
    border-color 0.3s,
    transform 0.6s var(--ease),
    box-shadow 0.5s var(--ease),
    opacity 0.8s var(--ease);
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--g1) 45%, var(--graphite));
  box-shadow:
    0 24px 60px -24px color-mix(in srgb, var(--g1) 45%, transparent),
    0 24px 60px -30px color-mix(in srgb, var(--g2) 50%, transparent);
}

.game-card.is-in:hover {
  transform: translateY(-4px);
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.game-card__media > img:first-child,
.game-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    opacity 0.4s;
}

.game-card__media video {
  opacity: 0;
}

.game-card__media.is-playing video {
  opacity: 1;
}

.game-card:hover .game-card__media > img:first-child {
  transform: scale(1.04);
}

.game-card__media .chip {
  position: absolute;
  top: 12px;
  left: 12px;
}

.game-card__logo {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 62%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
  transition:
    opacity 0.4s,
    transform 0.6s var(--ease);
}

.game-card__media.is-playing .game-card__logo {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 22px;
  flex: 1;
}

.game-card__kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-5);
}

.game-card__title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.game-card__text {
  color: var(--grey-4);
  font-size: 0.95rem;
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.game-card--next {
  border-style: dashed;
  background: transparent;
}

.game-card__media--next {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--black);
}

/* A pixel "?" that blinks while the next game is made */
.pixel-q {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  grid-template-rows: repeat(3, 18px);
  gap: 4px;
}

.pixel-q span {
  border-radius: 3px;
  background: var(--graphite);
  animation: pix 2.4s steps(1) infinite;
}

.pixel-q span:nth-child(1),
.pixel-q span:nth-child(2),
.pixel-q span:nth-child(3),
.pixel-q span:nth-child(6),
.pixel-q span:nth-child(8) {
  background: var(--accent-light);
}

.pixel-q span:nth-child(8) {
  animation-delay: 1.2s;
}

@keyframes pix {
  50% {
    opacity: 0.25;
  }
}

/* Featured */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px -30px color-mix(in srgb, var(--g1) 60%, transparent),
    0 30px 80px -40px color-mix(in srgb, var(--g2) 70%, transparent),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.feature__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__media .chip {
  position: absolute;
  top: 14px;
  left: 14px;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature__media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.75), transparent);
  pointer-events: none;
}

.feature__logo {
  position: absolute;
  left: 4%;
  bottom: 4%;
  width: 40%;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.feature__text {
  color: var(--grey-6);
  font-size: 1.08rem;
  font-weight: 500;
  max-width: 460px;
}

.feature .hero__actions {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
  }
}

/* Stats */
.stats {
  display: grid;
  gap: 32px;
}

.stat strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat p {
  color: var(--grey-4);
  max-width: 300px;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA */
.cta {
  display: grid;
  gap: 32px;
  align-items: end;
}

.cta .section__tag {
  margin-top: 18px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1.4fr 1fr;
  }
  .cta__actions {
    justify-content: flex-end;
  }
}

/* Game page: trailer + story */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
  }
}

.trailer {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px -30px color-mix(in srgb, var(--g1) 60%, transparent),
    0 30px 80px -40px color-mix(in srgb, var(--g2) 70%, transparent);
}

.trailer video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.prose {
  color: var(--grey-6);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.prose:first-of-type {
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--graphite);
  background: var(--ink);
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--grey-6);
}

.card__n {
  display: block;
  font-size: 11px;
  color: var(--grey-5);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.card p {
  color: var(--grey-4);
  font-size: 0.95rem;
}

/* Roster */
.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.roster li {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--graphite);
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--g1) 18%, transparent), transparent 70%),
    var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.roster li:nth-child(even) {
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--g2) 18%, transparent), transparent 70%),
    var(--black);
}

.roster img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.4s var(--ease);
}

.roster li:hover img {
  transform: translateY(-4px) scale(1.06);
}

.roster span {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--grey-4);
}

@media (min-width: 760px) {
  .roster {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--graphite);
  aspect-ratio: 16 / 9;
  background: #000;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.lightbox {
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1600px);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  border-radius: 12px;
}

.lightbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--graphite);
  background: var(--ink);
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--grey-4);
  padding: 36px 0 44px;
  border-top: 1px solid var(--graphite);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.footer__brand .nav__word {
  color: var(--white);
  display: inline-block;
  margin-bottom: 8px;
}

.footer__brand p {
  font-size: 0.92rem;
  color: var(--grey-5);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__meta a:hover {
  color: var(--white);
}

@media (min-width: 700px) {
  .footer__meta {
    text-align: right;
  }
}
