/* play.pyroplay.io: pyroplay.io's palette and type, one card per game. */
:root {
  --surface: #0a0806;
  --surface-container: #14110b;
  --surface-high: #1b160f;
  --on-surface: #fdf9f4;
  --on-surface-variant: #a39a90;
  --on-surface-muted: #6f675f;
  --accent: #ff5a1a;
  --accent-bright: #ff9d3d;
  --ink: #190a02;
  --hairline: rgba(253, 249, 244, 0.1);
  --grad-fire: linear-gradient(135deg, #ff9d3d 0%, #ff5a1a 52%, #ff3d00 100%);
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 24px;
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 45% at 50% -5%, rgba(255, 90, 26, 0.16), transparent 70%),
    var(--surface);
}

/* The art stays here: nothing drags out, and a long press lands on the card. */
img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

a {
  color: var(--accent-bright);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px
    max(16px, env(safe-area-inset-left));
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.brand img {
  width: 150px;
}

.top__link {
  color: var(--on-surface-variant);
  font-size: 14px;
  text-decoration: none;
}

.top__link:hover {
  color: var(--on-surface);
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

.intro {
  max-width: 640px;
  margin: 12px 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font: 800 clamp(40px, 8vw, 72px) / 0.95 var(--font-display);
  letter-spacing: -0.02em;
}

.lede {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--on-surface-variant);
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The game's art fills the card, softened behind its logo; the Play button
   comes up where it sits, at the bottom, when the card is hovered or focused
   (and is always there on touch screens, which have no hover). */
.game__play {
  position: relative;
  flex: 1;
  display: block;
  aspect-ratio: 10 / 11;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.game__play:hover,
.game__play:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 26, 0.55);
  box-shadow: 0 18px 40px -18px rgba(255, 90, 26, 0.45);
}

.game__play:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

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

.game__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) brightness(0.72);
  transform: scale(1.12);
  transition:
    transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
}

/* a little more shade towards the bottom, under the Play button */
.game__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 6, 0.05) 40%, rgba(10, 8, 6, 0.6));
}

/* The art comes into focus while the card is hovered, and softens again after. */
.game__play:hover .game__art img,
.game__play:focus-visible .game__art img {
  filter: blur(0) brightness(0.72);
  transform: scale(1.16);
}

.game__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.04em;
  color: var(--on-surface);
  background: rgba(12, 10, 8, 0.62);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.game__logo img {
  width: 70%;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
}

/* Captain's Call's art is two captains at either edge: hold one of them in
   the frame rather than the empty pitch between. */
.game--cc .game__art img {
  object-position: 4% 50%;
}

.game--six .game__logo img {
  width: 66%;
}

.game--cc .game__logo img {
  width: 84%;
}

.game--faro .game__logo img {
  width: 72%;
}

/* SNAP!'s art is the turtle's face: the logo sits low, under its eyes. */
.game--snap .game__logo img {
  width: 64%;
  transform: translateY(18%);
}

/* LCKDWN's logo is an emblem, not a wordmark: narrower, so it clears the
   badge and the button. */
.game--lck .game__logo img {
  width: 52%;
}

.game__cta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 11px 20px;
  border-radius: 999px;
  font: 700 15px/1 var(--font-display);
  color: var(--ink);
  background: var(--grad-fire);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.game__play:hover .game__cta,
.game__play:focus-visible .game__cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .game__cta {
    opacity: 1;
    transform: none;
  }
}

.game__more {
  align-self: flex-start;
  margin-left: 6px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.game__more:hover {
  color: var(--on-surface);
}

.foot {
  border-top: 1px solid var(--hairline);
  padding: 22px max(16px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  font-size: 13.5px;
  color: var(--on-surface-variant);
}

.foot p {
  max-width: 1180px;
  margin: 0 auto 8px;
}

.foot__legal {
  color: var(--on-surface-muted);
}

/* PyroPlay's policies, which cover every game here. */
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: 1180px;
  margin: 12px auto 0;
}

.foot__links a {
  color: var(--on-surface-variant);
}

.foot__links a:hover {
  color: var(--on-surface);
}

.age {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border: 1px solid var(--on-surface-variant);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: var(--on-surface);
}

@media (prefers-reduced-motion: reduce) {
  .game__play,
  .game__art img,
  .game__cta {
    transition: none;
  }
  .game__play:hover {
    transform: none;
  }
  .game__play:hover .game__art img {
    transform: scale(1.12);
  }
}
