/* ============================
   GAME DEV PAGE
   ============================ */

/* ---- Page Header ---- */
.gamedev-header {
  padding: 80px 80px 40px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section-accent-bar--orange {
  background-color: var(--accent);
}

.section-overline--accent {
  color: var(--accent);
}

.gamedev-headline {
  font-family: var(--font-primary);
  font-size: clamp(56px, 8vw, 100px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--foreground);
  margin: 0;
}

.gamedev-subhead {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 600px;
  margin-top: var(--spacing-l);
}

/* ---- Shared game elements ---- */
.game-overline {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}

.game-title-accent {
  width: 4px;
  height: 40px;
  background-color: var(--primary);
  flex-shrink: 0;
}

.game-title-accent--orange {
  background-color: var(--accent);
}

.game-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--foreground);
  margin: 0;
}

.game-description {
  font-family: var(--font-secondary);
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 480px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
}

.game-image-accent {
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  flex-shrink: 0;
}

.game-divider {
  max-width: var(--container-max);
  margin-inline: auto;
  height: 1px;
  background-color: var(--border);
}

/* ---- Split layout (even games) ---- */
.game-split {
  display: flex;
  min-height: 540px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.game-split--flipped {
  flex-direction: row-reverse;
}

.game-split-image {
  display: flex;
  flex-direction: column;
  flex: 0 0 55%;
}

.game-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
}

.game-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-l);
  flex: 1;
  padding: 60px;
  background-color: var(--bg-surface);
}

/* ---- Full-bleed layout (odd games) ---- */
.game-fullbleed {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  max-width: var(--container-max);
  margin-inline: auto;
}

.game-fullbleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.70) 50%,
    rgba(8, 8, 8, 0.15) 100%
  );
}

.game-ghost-number {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-size: 340px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.game-fullbleed-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  padding: 60px 80px;
  max-width: 640px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .gamedev-header {
    padding: 60px 40px 32px;
  }

  .game-split {
    flex-direction: column;
    min-height: auto;
  }

  .game-split--flipped {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .game-split-image {
    flex: 0 0 auto;
    height: 300px;
  }

  .game-split-content {
    padding: 40px;
  }

  .game-fullbleed-content {
    padding: 40px;
  }

  .game-ghost-number {
    font-size: 200px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .gamedev-header {
    padding: 48px var(--spacing-l) 24px;
  }

  .game-split-image {
    height: 240px;
  }

  .game-split-content {
    padding: var(--spacing-l);
    gap: var(--spacing-m);
  }

  .game-fullbleed {
    min-height: 480px;
  }

  .game-fullbleed-content {
    padding: var(--spacing-l);
    gap: var(--spacing-m);
  }

  .game-fullbleed-overlay {
    background: linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.3) 0%,
      rgba(8, 8, 8, 0.92) 100%
    );
  }

  .game-ghost-number {
    display: none;
  }
}

@media (max-width: 480px) {
  .game-split-image {
    height: 200px;
  }

  .game-description {
    font-size: 14px;
  }
}
