/* /games/ only. Each game gets its own colour band; the page sits under the
   studio's pixel lantern on a night sky. Loaded after site.css. */

.games-page {
  --night: #1a1033;
  --night-deep: #0d0820;
  --glow: #ff9a3c;
  --gold: #ffd36b;
  --cream: #fff6e3;
  --chunky: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--cream);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  overflow: hidden;
}

/* ---------- hero ---------- */
.games-hero {
  position: relative;
  text-align: center;
  padding: 56px 16px 64px;
  isolation: isolate;
}
.games-hero .sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 154, 60, 0.35), transparent 42%),
    radial-gradient(ellipse 120% 80% at 50% 0%, #2a1650, transparent 70%);
}
/* pixel sparkles */
.games-hero .sky::before,
.games-hero .sky::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow:
    8vw 60px #fff6c9, 18vw 180px #ffd36b, 30vw 40px #fff6c9, 72vw 70px #fff6c9,
    84vw 200px #ffd36b, 92vw 40px #fff6c9, 12vw 320px #fff6c9, 88vw 340px #fff6c9;
  opacity: 0.7;
  animation: twinkle 3.2s steps(2) infinite;
}
.games-hero .sky::after {
  box-shadow:
    24vw 110px #fff6c9, 40vw 260px #ffd36b, 62vw 30px #fff6c9, 78vw 280px #fff6c9,
    5vw 240px #ffd36b, 95vw 140px #fff6c9;
  animation-delay: 1.6s;
}
@keyframes twinkle { 50% { opacity: 0.15; } }

.games-lantern {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  image-rendering: pixelated;
  box-shadow: 0 0 0 4px rgba(255, 211, 107, 0.25), 0 18px 60px rgba(255, 154, 60, 0.45);
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }

.games-eyebrow {
  margin: 22px 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.games-hero h1 {
  margin: 0;
  font-family: var(--chunky);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 6rem);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 4px 0 #6b2f0f, 0 10px 40px rgba(255, 154, 60, 0.45);
}
.games-tagline {
  margin: 10px 0 0;
  font-family: var(--chunky);
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  color: var(--gold);
}
.games-lede {
  max-width: 34rem;
  margin: 12px auto 0;
  font-size: 1.05rem;
  color: rgba(255, 246, 227, 0.82);
}

.jump-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.jump img { width: 40px; height: 40px; border-radius: 50%; }
.jump:hover, .jump:focus-visible { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ---------- game bands ---------- */
.game {
  --band: #13304a;
  --band-deep: #0b1d30;
  --accent: #ffd36b;
  --accent-ink: #2a1600;
  --edge: #000;
  position: relative;
  padding: 56px 16px 64px;
  background: linear-gradient(180deg, var(--band) 0%, var(--band-deep) 100%);
  scroll-margin-top: 16px;
}
.game::before {
  /* pixel step edge between bands */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background:
    linear-gradient(90deg, var(--band) 50%, transparent 50%) 0 0 / 24px 12px repeat-x;
}
.game--pufferfish { --band: #12707f; --band-deep: #0a3f4f; --accent: #ffd23f; --accent-ink: #3a2400; }
.game--battleboats { --band: #0d63b0; --band-deep: #06305e; --accent: #ff6a3d; --accent-ink: #fff; }
.game--popword { --band: #4a2f17; --band-deep: #1e130a; --accent: #f2c230; --accent-ink: #2a1a00; }

.game-inner { max-width: 1100px; margin: 0 auto; }

.game-hero {
  margin: 0 0 32px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.game-hero img, .art-card img, .phone img { display: block; width: 100%; height: auto; }

.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .game-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

.game-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.game-id img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.game-name { display: block; font-family: var(--chunky); font-size: 1.5rem; line-height: 1.1; }
.game-genre { display: block; font-size: 0.85rem; color: rgba(255, 246, 227, 0.72); }

.game-headline {
  margin: 0 0 14px;
  font-family: var(--chunky);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.02;
  color: var(--accent);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.game-pitch { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; color: rgba(255, 246, 227, 0.9); }

.game-features { list-style: none; margin: 0 0 26px; padding: 0; }
.game-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.game-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}
.store-btn:hover, .store-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.4); }
.store-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.store-small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
.store-big { font-family: var(--chunky); font-size: 1.35rem; line-height: 1.05; }

.game-support { margin: 18px 0 0; font-size: 0.88rem; }
.game-support a { color: rgba(255, 246, 227, 0.7); border-bottom: 1px solid rgba(255, 246, 227, 0.3); }
.game-support a:hover { color: var(--cream); }

/* screenshots in phone frames */
.game-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.phone {
  margin: 0;
  padding: 6px;
  border-radius: 26px;
  background: #0b0b10;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 20px 40px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 20px; }
.phone:nth-child(2) { transform: translateY(-18px) scale(1.04); }
@media (min-width: 960px) {
  .phone:nth-child(1) { transform: rotate(-3deg); }
  .phone:nth-child(3) { transform: rotate(3deg); }
}

/* extra art (games without raw screenshots) */
.game-more { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .game-more { grid-template-columns: 1fr 1fr; } }
.art-card--lead { transform: rotate(1.5deg); }
@media (max-width: 959px) { .art-card--lead { order: -1; transform: none; } }
@media (min-width: 960px) { .game-body { align-items: center; } }
.art-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- follow ---------- */
.games-follow {
  text-align: center;
  padding: 64px 16px 72px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 154, 60, 0.22), transparent 55%);
}
.games-follow h2 {
  margin: 0 0 10px;
  font-family: var(--chunky);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold);
}
.games-follow p { max-width: 34rem; margin: 0 auto 10px; color: rgba(255, 246, 227, 0.85); }
.follow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px !important; }
.follow-btn {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--chunky);
  font-size: 1.2rem;
  color: var(--cream);
  transition: background 0.2s, transform 0.2s;
}
.follow-btn span { font-family: var(--sans); font-size: 0.8rem; opacity: 0.75; }
.follow-btn:hover, .follow-btn:focus-visible { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.games-quiet { margin-top: 36px !important; font-size: 0.92rem; }
.games-quiet a { color: var(--gold); border-bottom: 1px solid rgba(255, 211, 107, 0.4); }

@media (prefers-reduced-motion: reduce) {
  .games-lantern, .games-hero .sky::before, .games-hero .sky::after { animation: none; }
  .jump, .store-btn, .follow-btn { transition: none; }
}
