/* ==========================================================================
   The Penguin Studio
   Brand: navy #13202B, purple #9F64FF, Poppins (headings), DM Sans (body).
   Text colors meet WCAG AA on navy: text ~15:1, text-soft ~8:1, accent ~9:1.
   ========================================================================== */

/* Fonts (self-hosted, latin subset)
   ========================================================================== */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}

/* Tokens
   ========================================================================== */
:root {
  --navy-950: #0b141c;
  --navy-900: #13202b;
  --navy-800: #1a2b39;

  --text: #f1f4f8;
  --text-soft: #b3c0cd;
  --line: rgb(255 255 255 / 0.12);

  --brand: #9f64ff;
  --brand-text: #c9b0ff;
  --brand-strong: #7c3aed;
  --brand-hover: #6d28d9;

  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  background: var(--navy-900);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(60rem 40rem at 110% 40%, rgb(159 100 255 / 0.1), transparent 60%),
    radial-gradient(50rem 36rem at -10% 75%, rgb(159 100 255 / 0.08), transparent 60%), var(--navy-900);
}

/* Faint dot texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

main,
.site-head,
.site-foot {
  position: relative;
  z-index: 1;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
}

p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 8px;
}

section {
  scroll-margin-top: 72px;
}

/* Utilities
   ========================================================================== */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-strong);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.accent-bar {
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 18px rgb(159 100 255 / 0.7);
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgb(159 100 255 / 0.6);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--ghost {
  border: 1.5px solid rgb(255 255 255 / 0.35);
  background: rgb(19 32 43 / 0.35);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--brand-text);
}

/* Header
   ========================================================================== */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.site-head.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(19 32 43 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand img {
  width: auto;
  height: 34px;
}

.nav {
  display: none;
  gap: 28px;
}

.nav a {
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

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

@media (min-width: 721px) {
  .nav {
    display: flex;
  }
}

.socials {
  display: flex;
  gap: 6px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text);
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.socials a:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--brand-text);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.socials--large {
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.socials--large a {
  width: 48px;
  height: 48px;
}

.socials--large svg {
  width: 30px;
  height: 30px;
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 120px 0 56px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48rem 32rem at 82% 18%, rgb(159 100 255 / 0.32), transparent 65%),
    linear-gradient(180deg, rgb(19 32 43 / 0.55) 0%, rgb(19 32 43 / 0.72) 45%, var(--navy-900) 100%),
    linear-gradient(90deg, rgb(19 32 43 / 0.85) 0%, rgb(19 32 43 / 0.25) 75%);
}

.hero__mark {
  position: absolute;
  top: 18%;
  right: -4vw;
  z-index: -1;
  width: min(52vw, 720px);
  opacity: 0.09;
  pointer-events: none;
}

.hero > .wrap {
  width: 100%;
}

.hero__kicker {
  color: var(--brand-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
}

.hero h1 {
  max-width: 11ch;
  margin-top: 10px;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.35);
}

.hero__lede {
  max-width: 54ch;
  margin-top: 24px;
  color: #dde4ec;
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: grid;
  max-width: 720px;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(19 32 43 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stats li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.stats li + li {
  border-top: 1px solid var(--line);
}

.stats img {
  flex: none;
  width: 40px;
  opacity: 0.9;
}

.stats b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.stats span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

  .stats li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* Sections
   ========================================================================== */
.section {
  position: relative;
  padding: 112px 0;
}

.section--tight-top {
  padding-top: 32px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}

.section__head p {
  max-width: 48ch;
  color: var(--text-soft);
}

/* Games
   ========================================================================== */
.games {
  isolation: isolate;
  overflow: hidden;
}

.games__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Slowly drifting wall of the game cover art */
.art-wall {
  position: absolute;
  inset: -10% -20%;
  display: grid;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  gap: 18px;
  opacity: 0.14;
  filter: saturate(0.8) blur(1px);
  transform: rotate(-8deg);
  animation: art-drift 60s linear infinite alternate;
}

.art-wall img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

@keyframes art-drift {
  from {
    translate: 0 0;
  }
  to {
    translate: -12% -6%;
  }
}

.games__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--navy-900) 0%,
    rgb(19 32 43 / 0.55) 25%,
    rgb(19 32 43 / 0.55) 75%,
    var(--navy-900) 100%
  );
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 900px) {
  .games__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.card {
  position: relative;
  display: block;
  /* As wide as the widest cover (640x752), so no cover art is cut at the sides */
  aspect-ratio: 640 / 752;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--navy-800);
  box-shadow: 0 24px 50px -28px rgb(0 0 0 / 0.8);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s var(--ease);
}

.card__panel {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 18px 18px;
  background: linear-gradient(
    to top,
    rgb(19 32 43 / 1) 0%,
    rgb(19 32 43 / 0.96) 40%,
    rgb(19 32 43 / 0.7) 70%,
    rgb(19 32 43 / 0) 100%
  );
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__platform {
  margin-top: 4px;
  color: var(--brand-text);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Description expands on hover; hidden on touch screens to keep cards clean */
.card__desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.card__desc > p {
  overflow: hidden;
  color: #dbe3eb;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  transition:
    opacity 0.3s var(--ease),
    margin-top 0.4s var(--ease);
}

@media (hover: hover) {
  .card:hover,
  .card:focus-visible {
    border-color: rgb(201 176 255 / 0.55);
    box-shadow: 0 30px 60px -28px rgb(159 100 255 / 0.55);
    transform: translateY(-4px);
  }

  .card:hover > img,
  .card:focus-visible > img {
    transform: scale(1.05);
  }

  .card:hover .card__desc,
  .card:focus-visible .card__desc {
    grid-template-rows: 1fr;
  }

  .card:hover .card__desc > p,
  .card:focus-visible .card__desc > p {
    margin-top: 10px;
    opacity: 1;
  }
}

/* About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px;
  }
}

.about__portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

/* Soft brand glow behind the photo */
.about__portrait::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(159 100 255 / 0.3), transparent);
  filter: blur(12px);
}

/* Thin gradient frame: brand purple fading into the line colour */
.about__portrait > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
    linear-gradient(135deg, var(--brand), rgb(159 100 255 / 0.15) 45%, var(--line)) border-box;
}

.about h2 {
  margin-bottom: 22px;
}

.about p {
  max-width: 60ch;
  color: var(--text-soft);
}

.about p + p {
  margin-top: 16px;
}

.about strong {
  color: var(--text);
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tags li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.92rem;
}

/* Contact
   ========================================================================== */
.contact {
  padding-bottom: 96px;
}

.contact__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 24px;
  border: 1px solid rgb(201 176 255 / 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
  background: radial-gradient(40rem 22rem at 50% 0%, rgb(159 100 255 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}

@media (min-width: 768px) {
  .contact__card {
    padding: 80px 48px;
  }
}

.contact__mark {
  position: absolute;
  bottom: -40px;
  left: 50%;
  z-index: -1;
  width: 560px;
  max-width: none;
  opacity: 0.06;
  transform: translateX(-50%);
}

.contact__card h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.contact__card > p {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--text-soft);
}

.contact__mail {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--brand);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.4vw, 2.1rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s var(--ease);
}

.contact__mail:hover {
  color: var(--brand-text);
}

/* Footer
   ========================================================================== */
.site-foot {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-foot img {
  width: auto;
  height: 26px;
}

/* Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .art-wall {
    animation: none;
  }
}

/* Store buttons
   ========================================================================== */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 20px;
  border: 1.5px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-sm);
  background: rgb(11 20 28 / 0.6);
  color: var(--text);
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.store-btn small {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.store-btn span {
  font-family: var(--font-heading);
  font-weight: 600;
}

.store-btn:hover {
  border-color: var(--brand-text);
}

.store-btn.is-recommended {
  border-color: transparent;
  background: var(--brand-strong);
}

.store-btn.is-recommended small {
  color: rgb(255 255 255 / 0.85);
}

/* Game pages
   ========================================================================== */
.game-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 72px;
}

.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.game-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(40px) saturate(1.2);
  transform: scale(1.3);
}

.game-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 26rem at 80% 20%, rgb(159 100 255 / 0.25), transparent 65%),
    linear-gradient(180deg, rgb(19 32 43 / 0.4), var(--navy-900));
}

.game-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

@media (min-width: 900px) {
  .game-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 72px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.back-link:hover {
  color: var(--text);
}

.game-hero__id {
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-hero__icon {
  flex: none;
  width: 88px;
  border-radius: 22px;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.7);
}

.game-hero h1 {
  margin-top: 4px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.game-hero__tagline {
  max-width: 46ch;
  margin-top: 22px;
  color: #dde4ec;
  font-size: 1.2rem;
}

.game-hero__cover {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

@media (max-width: 899px) {
  .game-hero__cover {
    max-width: 220px;
  }
}

.game-hero__cover img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -36px rgb(159 100 255 / 0.6);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  gap: 1px;
}

@media (min-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.metric-grid li {
  padding: 20px;
  background: var(--navy-800);
}

.metric-grid b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric-grid span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.metric-grid small {
  display: block;
  margin-top: 2px;
  color: var(--brand-text);
  font-size: 0.82rem;
}

.game-section {
  padding: 96px 0 0;
}

.game-section h2 {
  margin-bottom: 24px;
}

.game-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  .game-about {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 72px;
  }
}

.game-about p {
  max-width: 62ch;
  color: var(--text-soft);
}

.game-about p + p {
  margin-top: 16px;
}

.tags--modes {
  margin-top: 24px;
}

.fact-list {
  align-self: start;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(26 43 57 / 0.6);
}

.fact-list div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.fact-list dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.built-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .built-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.built-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--navy-800);
}

.built-card h3 {
  margin-bottom: 12px;
  color: var(--brand-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.built-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
}

.built-card li + li {
  margin-top: 10px;
}

.built-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 2px solid var(--line);
    border-left: 0;
  }
}

.timeline li {
  position: relative;
  padding: 0 0 28px 24px;
}

@media (min-width: 900px) {
  .timeline li {
    padding: 28px 24px 0 0;
  }
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgb(159 100 255 / 0.8);
}

@media (min-width: 900px) {
  .timeline li::before {
    top: -7px;
    left: 0;
  }
}

.timeline__year {
  color: var(--brand-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

.timeline h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
}

.timeline p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Horizontal screenshot strip */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
  scrollbar-color: var(--navy-800) transparent;
}

.gallery > img {
  flex: none;
  width: auto;
  height: min(70vh, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--navy-800);
}

.gallery.is-landscape > img {
  height: min(50vh, 380px);
}

.gallery[data-drag-scroll] {
  cursor: grab;
}

.gallery.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.gallery__credit {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.game-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 96px;
}

.game-pager a {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.game-pager a:last-child {
  text-align: right;
}

.game-pager a:hover {
  border-color: var(--brand-text);
}

.game-pager small {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.game-pager span {
  font-family: var(--font-heading);
  font-weight: 600;
}

.page-game .contact {
  padding-top: 64px;
}

/* 404 page
   ========================================================================== */
.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  text-align: center;
}

.not-found img {
  margin: 0 auto 32px;
}

.not-found h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.not-found p {
  margin: 16px 0 32px;
  color: var(--text-soft);
}
