/* orb2bit Games: the /games hub and each game's own pages.
 *
 * Loaded after styles.css and only by the game pages, so nothing here can change a product page.
 * It adds what a game page needs and a tool page does not: pixel art that stays sharp, a grid for
 * the game's sprites, and the dated updates log.
 */

/* Pixel art is drawn a pixel at a time. Scale it by whole numbers and never smooth it, or every
   edge the artist placed turns to fog. crisp-edges first for older Firefox, pixelated wins where known. */
.px {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* ---- Game hero ------------------------------------------------------------------------------ */

.game-hero-art {
  display: grid;
  place-items: center;
}
.game-hero-art img {
  width: min(100%, 400px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(236, 120, 178, 0.22));
}
.hero-orb.dusk {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(196, 92, 160, 0.42), transparent 70%);
  top: -140px; right: -60px;
}
.status-badge .dot {
  background: #f3b34a;
  box-shadow: 0 0 0 4px rgba(243, 179, 74, 0.18);
}

/* ---- Quick facts ---------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fact {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact .num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fact .lbl {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- The game's art ------------------------------------------------------------------------- */

.art-group {
  font-size: 1.05rem;
  margin: 36px 0 14px;
}
.art-group:first-of-type { margin-top: 0; }
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.art-grid--village { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.art-grid--land { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.art-cell {
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 10px;
  padding: 20px 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.art-cell img {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}
.art-cell figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* ---- Updates log ---------------------------------------------------------------------------- */

.updates {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}
.update {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.update time {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--brand-2);
  padding-top: 3px;
}
.update h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.update p {
  color: var(--muted);
  font-size: 0.97rem;
}
.update p + p { margin-top: 8px; }
.update .kind {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.update .shots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.update .shots figure {
  margin: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}
.update .shots img {
  max-width: 100%;
  height: auto;
}
.update .shots figcaption {
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---- Play Store button ---------------------------------------------------------------------- */

.btn-soon {
  cursor: default;
  opacity: 0.85;
}
.btn-soon:hover { transform: none; }

@media (max-width: 920px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero-art img { width: min(100%, 300px); }
}

@media (max-width: 640px) {
  .update { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .art-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .art-grid--village { grid-template-columns: 1fr; }
}
