/* Home page only (index.html). The page uses the site's own look from style.css; this adds Tempo, the Razaki Games
   mascot, standing on the hero's low-poly hills, and the cast panel's closing line. */
.hero-mascot {
  display: block;
  justify-self: center;
  width: min(62vw, 230px);
  height: auto;
  margin: -0.5rem 0 -6.25rem;
  filter: drop-shadow(0 14px 18px rgba(40, 20, 90, 0.32));
}
@media (min-width: 760px) {
  .hero-mascot {
    justify-self: end;
    width: 300px;
    margin: -2rem 2rem -6.75rem 0;
  }
}
.cast-preview .character-intro {
  max-width: 44rem;
  color: var(--ink-dim);
}
.cast-more {
  margin: 1.25rem 0 0;
  color: var(--ink-dim);
}
/* Homepage game footage: a fixed frame keeps cards still while the video loads. */
.game { grid-template-columns: minmax(0, 1fr); }
.game .actions { grid-column: 1 / -1; flex-direction: row; }
/* Racers keeps its own navy plates, yellow wordmark and solid-lip buttons on the homepage. */
.game.rr {
  --ink: #fff;
  --ink-dim: var(--lav);
  --surface-2: var(--tile);
  --line: rgba(228, 232, 255, 0.24);
  --focus: var(--gold);
  background: var(--row);
  color: var(--ink);
  border-color: var(--tile);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 5px 0 var(--night);
}
.game.rr .mark { --size: clamp(40px, 12vw, 58px); margin-bottom: 0.4em; }
.game.rr .tags { margin-top: 0.75rem; }
.game-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  isolation: isolate;
}
.game .game-preview__poster,
.game-preview__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.game-preview__video { position: absolute; inset: 0; opacity: 0; }
.game-preview[data-ready] .game-preview__video { opacity: 1; }
.game-preview__toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 17, 49, 0.85);
  cursor: pointer;
}
.game-preview__toggle:hover { background: #0e1131; }
.game-preview__toggle:focus-visible { outline-color: #fff; outline-offset: -5px; }
.game-preview__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.game-preview__toggle [data-play] { fill: currentColor; stroke-width: 1; }
.game-preview [hidden] { display: none; }
@media (min-width: 760px) {
  .game { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: start; }
  .game-preview { grid-row: span 2; align-self: center; }
  .game .actions { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .game-preview[data-ready] .game-preview__video { opacity: 0; }
  .game-preview__toggle { display: none; }
}
/* How we make games: four short cards, one row on a wide screen, two by two on a tablet. */
.grid--how {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .grid--how {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .grid--how {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
